The options you must use to compile your own applications are described in the last section of docs/msw/install.txt file in your wxWidgets installation.
You can also look at the beginning of any makefile.gcc
under samples
directory, e.g. this one to see the options you need to set, but there will be a lot of things you don't need there.