Add support for MacOSX

This commit is contained in:
2020-03-06 03:27:15 +01:00
parent 17c892a234
commit c62ab4019f
5 changed files with 465 additions and 4 deletions

View File

@@ -1,15 +1,22 @@
IsMinGW := $(findstring MSYS,$(shell uname -s))$(findstring MINGW,$(shell uname -s))
IsMinGW := $(findstring MSYS,$(shell uname -s))
IsDarwin := $(findstring Darwin,$(shell uname -s))
ifneq (,$(IsMinGW))
TARGET_ARCH := mingw
else
ifneq (,$(IsDarwin))
TARGET_ARCH := macosx
else
TARGET_ARCH := linux
endif
endif
ifeq ($(TARGET_ARCH),mingw)
include Makefile.win32
else
endif
ifeq ($(TARGET_ARCH),linux)
include Makefile.linux
endif # linux
endif # mingw
endif
ifeq ($(TARGET_ARCH),macosx)
include Makefile.macosx
endif