extra libraries included:

htmlhelp.lib
htmlhelp.h

1. Edit Env.bat to point to your MingW tree
2. Run env.bat, then compile
3. compile mame32 with MingW:

make WINUI=1

The results should end up as  mame32.exe