1 # stuff to include in every test Makefile
5 # set default OS to be current Mac OS X
7 ifeq "$(OS_NAME)" "iPhoneOS"
9 ifeq "$(findstring -$(OS_VERSION)-,-3.0-3.1-3.2-4.0-4.1-4.2-4.3-)" ""
16 ifeq "$(findstring -$(OS_VERSION)-,-10.4-10.5-10.6-)" ""
20 VALID_ARCHS ?= "i386 x86_64"
25 ifeq "$(OS_NAME)" "iPhoneOS"
26 #IOSROOT = $(shell xcodebuild -version -sdk iphoneos.internal Path)
27 IOSROOT = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.Internal.sdk
28 CC = $(shell xcrun -sdk iphoneos.internal -find cc) -arch ${ARCH} -miphoneos-version-min=$(OS_VERSION) -isysroot $(IOSROOT)
29 CXX = $(shell xcrun -sdk iphoneos.internal -find c++) -arch ${ARCH} -miphoneos-version-min=$(OS_VERSION) -isysroot $(IOSROOT)
30 LIPO = $(shell xcrun -sdk iphoneos.internal -find lipo)
31 STRIP = $(shell xcrun -sdk iphoneos.internal -find strip)
32 INSTALL_NAME_TOOL = $(shell xcrun -sdk iphoneos.internal -find install_name_tool)
34 ifeq "$(OSX_SDK_ROOT)" ""
35 OSX_SDK_ROOT = $(shell xcodebuild -version -sdk macosx.internal Path)
37 CC = $(shell xcrun -find cc) -arch ${ARCH} -mmacosx-version-min=$(OS_VERSION) -isysroot $(OSX_SDK_ROOT)
38 CXX = $(shell xcrun -find c++) -arch ${ARCH} -mmacosx-version-min=$(OS_VERSION) -isysroot $(OSX_SDK_ROOT)
39 LIPO = $(shell xcrun -find lipo)
40 STRIP = $(shell xcrun -find strip)
41 INSTALL_NAME_TOOL = $(shell xcrun -find install_name_tool)
44 CCFLAGS = -Wall -std=c99
50 SAFE_RUN = ${TESTROOT}/bin/fail-if-non-zero.pl
51 PASS_IFF = ${TESTROOT}/bin/pass-iff-exit-zero.pl
52 PASS_IFF_FAILURE = $(TESTROOT)/bin/exit-non-zero-pass.pl
56 CXXFLAGS += -mno-thumb
57 override FILEARCH = arm
66 override FILEARCH = arm
75 override FILEARCH = arm