set MINGW=path\to\mingw
set PATH=%MINGW%\bin;%PATH%
set wxDIR = rootpath\of\wxwidgets
cd %wxDIR%\build\msw
debug
mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1
release
mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1