From 18e33c92f65a6dcecaa2c3bfc752cb7dfaac2e99 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 16 Oct 2015 03:15:34 +0200 Subject: Add iOS 9 rules --- Makefile | 18 ++++++++++++------ 1 file 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 -- cgit v1.2.3