diff options
author | twinaphex | 2021-03-09 22:05:36 +0100 |
---|---|---|
committer | twinaphex | 2021-03-09 22:05:36 +0100 |
commit | bd36c9c77dcbd7c6c91159071fa92bdb2d7b0d78 (patch) | |
tree | 00c3087e1fef269ef71c2b5dd987483e1f838e4d /Makefile | |
parent | 45c8ef0a0bdf0557ab9c1153b5a6e77298cca34a (diff) | |
download | picogpsp-bd36c9c77dcbd7c6c91159071fa92bdb2d7b0d78.tar.gz picogpsp-bd36c9c77dcbd7c6c91159071fa92bdb2d7b0d78.tar.bz2 picogpsp-bd36c9c77dcbd7c6c91159071fa92bdb2d7b0d78.zip |
Add osx-arm64 target
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 39 |
1 files changed, 17 insertions, 22 deletions
@@ -7,26 +7,18 @@ HAVE_MMAP_WIN32=0 UNAME=$(shell uname -a) -ifneq ($(EMSCRIPTEN),) - platform = emscripten -endif - +# platform ifeq ($(platform),) - platform = unix - ifeq ($(UNAME),) - platform = win - else ifneq ($(findstring MINGW,$(UNAME)),) - platform = win - else ifneq ($(findstring Darwin,$(UNAME)),) - platform = osx - arch = intel - ifeq ($(shell uname -p),powerpc) - arch = ppc - FORCE_32BIT_ARCH = 1 - endif - else ifneq ($(findstring win,$(UNAME)),) - platform = win - endif +platform = unix +ifeq ($(shell uname -s),) + platform = win +else ifneq ($(findstring MINGW,$(shell uname -s)),) + platform = win +else ifneq ($(findstring Darwin,$(shell uname -s)),) + platform = osx +else ifneq ($(findstring win,$(shell uname -s)),) + platform = win +endif endif @@ -48,16 +40,19 @@ endif # system platform system_platform = unix -ifeq ($(UNAME),) +ifeq ($(shell uname -a),) EXE_EXT = .exe system_platform = win -else ifneq ($(findstring Darwin,$(UNAME)),) +else ifneq ($(findstring Darwin,$(shell uname -a)),) system_platform = osx arch = intel ifeq ($(shell uname -p),powerpc) arch = ppc endif - else ifneq ($(findstring MINGW,$(UNAME)),) + ifeq ($(shell uname -p),arm) + arch = arm + endif +else ifneq ($(findstring MINGW,$(shell uname -a)),) system_platform = win endif |