I downloaded the official mingw build tools and set them up according to the directions on MAMEdev.org. My installation location is E:\mingw
I created a file called "build.bat" in the root of my MAME 0.158 directory with the following two lines...
Code:
set path=e:\mingw\mingw64-w64\bin;e:\mingw\mingw64-w64\opt\bin;e:\mingw\mingw64-w64\Qt\bin make -j3
(Note that -j3 tells "make" how many threads to run. I think the number is supposed to be one more than the number of cores in your CPU (double the core number if you have a CPU with Intel Hyperthreading)
Then I open a command prompt in the root of my MAME 0.158 directory and run build.bat