

The mak build framework currently supports Linux and Windows, but the Windows support assumes that you are using the Windows command shell and the Microsoft Visual Studio C compiler. If you already have another make program you want to keep, you can name GNU make gmake.exe. To solve this problem and make Git Bash even more Linux like, I renamed /c/Program\ Files\ (x86)/mingw-w64/i686-7.3.0-posix-dwarf-rt_v5-rev0/mingw32/bin/mingw32-make.exe to /c/Program\ Files/Git/usr/bin/make.exe, which Git Bash also sees as /usr/bin/make.


This is because make doesn’t expect the blanks in the path name. Because the full path to make is actually /c/Program\ Files\ (x86)/mingw-w64/i686-7.3.0-posix-dwarf-rt_v5-rev0/mingw32/bin/mingw32-make.exe, recursive execution of make using make’s builtin MAKE macro fails. While attempting to build libsxe using the mak build framework, I ran into a problem. Power Shell, one of the programs included in mingw-w64 is GNU make, which is oddly installed under the name mingw-make.exe, meaning to make, you must type “mingw-make”. If you install Git Bash and mingw-w64, as described in my post Git Bash vs.
