1 # stuff to include in every test Makefile
5 # set default to be host
8 # set default to be all
9 VALID_ARCHS ?= "ppc ppc64 i386"
11 # if run within Xcode, add the just built tools to the command path
12 ifdef BUILT_PRODUCTS_DIR
13 PATH := ${BUILT_PRODUCTS_DIR}:${PATH}
17 OBJECTDUMP = ObjectDump
18 MACHOCHECK = machocheck
26 CC = gcc-4.0 -arch ${ARCH}
27 CCFLAGS = -Wall -g -std=c99
30 CXX = g++-4.0 -arch ${ARCH}
36 # utilites for Makefiles
37 PASS_IFF = ${TESTROOT}/bin/pass-iff-exit-zero.pl
38 PASS_IFF_EMPTY = ${TESTROOT}/bin/pass-iff-no-stdin.pl
39 PASS_IFF_STDIN = ${TESTROOT}/bin/pass-iff-stdin.pl
40 PASS_IFF_GOOD_MACHO = ${TESTROOT}/bin/pass-iff-exit-zero.pl ${MACHOCHECK}
41 FAIL_IFF = ${TESTROOT}/bin/fail-iff-exit-zero.pl
42 FAIL_IF_BAD_MACHO = ${TESTROOT}/bin/fail-if-exit-non-zero.pl ${MACHOCHECK}
43 FAIL_IF_SUCCESS = ${TESTROOT}/bin/fail-if-exit-zero.pl
44 FAIL_IF_EMPTY = ${TESTROOT}/bin/fail-if-no-stdin.pl
45 FAIL_IF_STDIN = ${TESTROOT}/bin/fail-if-stdin.pl