Add support for MacOSX
This commit is contained in:
15
Makefile
15
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user