Add iOS 9 rules
This commit is contained in:
parent
a93bb43bc8
commit
98d327daa5
18
Makefile
18
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)
|
||||
|
|
Loading…
Reference in New Issue