1ARCH = armv7 2include $(SRC_PATH)build/platform-darwin.mk 3CXX = clang++ 4CC = clang 5ifneq ($(filter %86 x86_64, $(ARCH)),) 6SDKTYPE = iPhoneSimulator 7else 8SDKTYPE = iPhoneOS 9endif 10SDK_MIN = 5.1 11 12SDKROOT := $(shell xcrun --sdk $(shell echo $(SDKTYPE) | tr A-Z a-z) --show-sdk-path) 13CFLAGS += -arch $(ARCH) -isysroot $(SDKROOT) -miphoneos-version-min=$(SDK_MIN) -DAPPLE_IOS -fembed-bitcode 14LDFLAGS += -arch $(ARCH) -isysroot $(SDKROOT) -miphoneos-version-min=$(SDK_MIN) 15 16