[CMake] mingw vs MSYS makefiles

Bill Hoffman bill.hoffman at kitware.com
Thu Feb 23 17:49:38 EST 2012


On 2/23/2012 5:18 PM, Alan W. Irwin wrote:
> make commands.  One is called MinGW/bin/mingw32-make.exe and is used
> by the "MinGW Makefiles" generator while the other is called
> MinGW/msys/1.0/bin/make.exe and is used by the "MSYS Makefiles"
> generator.  I presume those two executables correspond to various
> forks of gmake.

The difference is the c runtime that they use.  The MinGW one uses the 
Microsoft run time and so understands MS paths (c: and \).  The msys one 
links to the msys runtime, and understands msys stuff like /c/foo 
instead of c:/foo.

Both of these things aside, gmake upstream does look for sh:


http://unxutils.sourceforge.net/  has the following info :

"From v3.77 upwards, make searches for a sh.exe on the path. If it does 
not find one, it switches to win32 make mode that is it uses 
intermediate batch files for command processing."


So, both versions of gmake are actually the same source code but they 
are built with different c run time libraries.

-- 
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoffman at kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573


More information about the CMake mailing list