summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortwinaphex2021-03-09 22:05:36 +0100
committertwinaphex2021-03-09 22:05:36 +0100
commitbd36c9c77dcbd7c6c91159071fa92bdb2d7b0d78 (patch)
tree00c3087e1fef269ef71c2b5dd987483e1f838e4d /Makefile
parent45c8ef0a0bdf0557ab9c1153b5a6e77298cca34a (diff)
downloadpicogpsp-bd36c9c77dcbd7c6c91159071fa92bdb2d7b0d78.tar.gz
picogpsp-bd36c9c77dcbd7c6c91159071fa92bdb2d7b0d78.tar.bz2
picogpsp-bd36c9c77dcbd7c6c91159071fa92bdb2d7b0d78.zip
Add osx-arm64 target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile39
1 files changed, 17 insertions, 22 deletions
diff --git a/Makefile b/Makefile
index fa6ae4f..b1f11e4 100644
--- a/Makefile
+++ b/Makefile
@@ -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