aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortwinaphex2015-10-16 03:15:34 +0200
committertwinaphex2015-10-16 03:15:34 +0200
commit18e33c92f65a6dcecaa2c3bfc752cb7dfaac2e99 (patch)
tree02ecffa5b9a3d1b88ef134e2d065a90ae44d61a6 /Makefile
parent5d8e281d125ef8050de6d15c1d3f19040cf65611 (diff)
downloadsnes9x2005-18e33c92f65a6dcecaa2c3bfc752cb7dfaac2e99.tar.gz
snes9x2005-18e33c92f65a6dcecaa2c3bfc752cb7dfaac2e99.tar.bz2
snes9x2005-18e33c92f65a6dcecaa2c3bfc752cb7dfaac2e99.zip
Add iOS 9 rules
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index ba121fe..e1407dc 100644
--- a/Makefile
+++ b/Makefile
@@ -77,7 +77,11 @@ ifndef ($(NOUNIVERSAL))
FLAGS += $(ARCHFLAGS)
LDFLAGS += $(ARCHFLAGS)
endif
-else ifeq ($(platform), ios)
+
+# iOS
+else ifneq (,$(findstring ios,$(platform)))
+
+
TARGET := $(TARGET_NAME)_libretro_ios.dylib
fpic := -fPIC
SHARED := -dynamiclib
@@ -86,11 +90,13 @@ ifeq ($(IOSSDK),)
IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path)
endif
- CC = clang -arch armv7 -isysroot $(IOSSDK)
- CXX = clang++ -arch armv7 -isysroot $(IOSSDK)
- OSXVER = `sw_vers -productVersion | cut -d. -f 2`
- OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"`
-ifeq ($(OSX_LT_MAVERICKS),"YES")
+ CC = cc -arch armv7 -isysroot $(IOSSDK)
+ CXX = c++ -arch armv7 -isysroot $(IOSSDK)
+ifeq ($(platform),ios9)
+ SHARED += -miphoneos-version-min=8.0
+ CC += -miphoneos-version-min=8.0
+ CXX += -miphoneos-version-min=8.0
+else
SHARED += -miphoneos-version-min=5.0
CC += -miphoneos-version-min=5.0
CXX += -miphoneos-version-min=5.0