2014-06-09 03:22:54 +02:00
|
|
|
ARCH = armv7
|
2014-01-29 09:31:09 +01:00
|
|
|
include $(SRC_PATH)build/platform-darwin.mk
|
2014-02-26 13:58:34 +01:00
|
|
|
CXX = clang++
|
|
|
|
CC = clang
|
|
|
|
ifneq ($(filter %86 x86_64, $(ARCH)),)
|
|
|
|
SDKTYPE = iPhoneSimulator
|
|
|
|
else
|
|
|
|
SDKTYPE = iPhoneOS
|
|
|
|
endif
|
2014-03-19 09:31:34 +01:00
|
|
|
SDK = $(shell xcrun --sdk $(shell echo $(SDKTYPE) | tr A-Z a-z) --show-sdk-version)
|
2014-02-26 13:58:34 +01:00
|
|
|
SDK_MIN = 5.1
|
|
|
|
|
2014-06-05 10:20:50 +02:00
|
|
|
XCODE=$(shell xcode-select -p)
|
|
|
|
SDKROOT = $(XCODE)/Platforms/$(SDKTYPE).platform/Developer/SDKs/$(SDKTYPE)$(SDK).sdk
|
2014-03-01 16:24:15 +01:00
|
|
|
CFLAGS += -arch $(ARCH) -isysroot $(SDKROOT) -miphoneos-version-min=$(SDK_MIN) -DAPPLE_IOS
|
2014-02-26 13:58:34 +01:00
|
|
|
LDFLAGS += -arch $(ARCH) -isysroot $(SDKROOT) -miphoneos-version-min=$(SDK_MIN)
|
|
|
|
|