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

View File

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