how to use a makefile for mingw on win32

user571099 picture user571099 · Mar 7, 2011 · Viewed 15.2k times · Source

i seem to have forgotten what is typed on the command line when using a makefile for a c program on a win32 machine. what i remember is that i should type something like

mingw32 -make

. but that is not working atm. ive done all the necessary stuff like setting environment mingw variables. any help on the command?

Answer

srgerg picture srgerg · Mar 7, 2011

A lot depends on the details of your installation, but I suspect the problem is the space between mingw32 and -make.

You want to use the mingw32-make command, not the mingw32 command with a -make argument.