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 = /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.Internal.sdk
27 CC = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cc -arch ${ARCH} -miphoneos-version-min=$(OS_VERSION) -isysroot $(IOSROOT)
28 CXX = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/c++ -arch ${ARCH} -miphoneos-version-min=$(OS_VERSION) -isysroot $(IOSROOT)
30 CC = cc -arch ${ARCH} -mmacosx-version-min=$(OS_VERSION)
31 CXX = c++ -arch ${ARCH} -mmacosx-version-min=$(OS_VERSION)
34 CCFLAGS = -Wall -std=c99
40 SAFE_RUN = ${TESTROOT}/bin/fail-if-non-zero.pl
41 PASS_IFF = ${TESTROOT}/bin/pass-iff-exit-zero.pl
42 PASS_IFF_FAILURE = $(TESTROOT)/bin/exit-non-zero-pass.pl
46 CXXFLAGS += -mno-thumb
47 override FILEARCH = arm
56 override FILEARCH = arm
65 override FILEARCH = arm