summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortwinaphex2015-10-16 03:04:06 +0200
committertwinaphex2015-10-16 03:04:06 +0200
commit98d327daa55ca00aa012c36b7fb5073dfce89bac (patch)
tree27b9f6d8973d9dca9291e1b5cd36f6dcdfe19284 /Makefile
parenta93bb43bc84cbc8e81c13cf3428d9f2a501c0c8e (diff)
downloadpicogpsp-98d327daa55ca00aa012c36b7fb5073dfce89bac.tar.gz
picogpsp-98d327daa55ca00aa012c36b7fb5073dfce89bac.tar.bz2
picogpsp-98d327daa55ca00aa012c36b7fb5073dfce89bac.zip
Add iOS 9 rules
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 9c20d8f..42b300a 100644
--- a/Makefile
+++ b/Makefile
@@ -111,7 +111,8 @@ else ifeq ($(platform), osx)
endif
# iOS
-else ifeq ($(platform), ios)
+else ifneq (,$(findstring ios,$(platform)))
+
TARGET := $(TARGET_NAME)_libretro_ios.dylib
fpic := -fPIC
SHARED := -dynamiclib
@@ -121,14 +122,15 @@ else ifeq ($(platform), ios)
IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path)
endif
- CC = clang -arch armv7 -isysroot $(IOSSDK)
+ CC = cc -arch armv7 -isysroot $(IOSSDK)
CFLAGS += -DIOS -DHAVE_POSIX_MEMALIGN -marm
- OSXVER = `sw_vers -productVersion | cut -d. -f 2`
- OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"`
- ifeq ($(OSX_LT_MAVERICKS),"YES")
- CC += -miphoneos-version-min=5.0
- CFLAGS += -miphoneos-version-min=5.0
- endif
+ifeq ($(platform),ios9)
+ CC += -miphoneos-version-min=8.0
+ CFLAGS += -miphoneos-version-min=8.0
+else
+ CC += -miphoneos-version-min=5.0
+ CFLAGS += -miphoneos-version-min=5.0
+endif
# iOS Theos
else ifeq ($(platform), theos_ios)