aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormeepingsnesroms2018-10-12 09:18:57 -0700
committerGitHub2018-10-12 09:18:57 -0700
commit30fe01d0516db2bf861546cfb8c97055fafc6235 (patch)
tree5e1c1c4c4df45d9d03e0b677c1cc091bc91b6a7f /Makefile
parent878f1ce501f6977e666c7a43bfd1199e228bde60 (diff)
downloadsnesemu-30fe01d0516db2bf861546cfb8c97055fafc6235.tar.gz
snesemu-30fe01d0516db2bf861546cfb8c97055fafc6235.tar.bz2
snesemu-30fe01d0516db2bf861546cfb8c97055fafc6235.zip
Fix compiling on Mac OS Mojave
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fb4bb75..1cd2a1f 100644
--- a/Makefile
+++ b/Makefile
@@ -81,9 +81,12 @@ ifeq ($(arch),ppc)
FLAGS += -DMSB_FIRST
OLD_GCC = 1
endif
- OSXVER = `sw_vers -productVersion | cut -d. -f 2`
- OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"`
+ OSXVER = $(shell sw_vers -productVersion | cut -d. -f 2)
+ OSX_GT_MOJAVE = $(shell (( $(OSXVER) >= 14)) && echo "YES")
+ifneq ($(OSX_GT_MOJAVE),YES)
+ #this breaks compiling on Mac OS Mojave
fpic += -mmacosx-version-min=10.1
+endif
ifndef ($(NOUNIVERSAL))
FLAGS += $(ARCHFLAGS)
LDFLAGS += $(ARCHFLAGS)