Improve compatibility with the Unix tools included in Git for Windows.

Previously the Makefile, when run on Windows, expected the uname command to report either "MINGW" or "windows32". This was unfortunate because the uname included in Git for Windows reports "MSYS".

With this change, the Makefile will work properly with any uname, whether it comes from MinGW, GnuWin32 or Git for Windows.
This commit is contained in:
Alvaro Burnett 2018-08-19 22:07:16 +02:00
parent 737c1e2a4f
commit 83ab8efbd7
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,10 @@ PLATFORM := windows32
USE_WINDRES := true
endif
ifneq ($(findstring MSYS,$(PLATFORM)),)
PLATFORM := windows32
endif
ifeq ($(PLATFORM),Darwin)
DEFAULT := cocoa
else