]> git.saurik.com Git - apple/dyld.git/blob - unit-tests/include/common.makefile
243fc2d0fc314ad2e7ecdd052b7986b77d9f16bc
[apple/dyld.git] / unit-tests / include / common.makefile
1 # stuff to include in every test Makefile
2
3 SHELL = /bin/sh
4
5 # set default to be host
6 ARCH ?= $(shell arch)
7
8 # set default to be all
9 VALID_ARCHS ?= "ppc ppc64 i386 x86_64"
10
11 CC = gcc-4.0 -arch ${ARCH}
12 CCFLAGS = -Wall -std=c99
13
14 CXX = g++-4.0 -arch ${ARCH}
15 CXXFLAGS = -Wall
16
17 RM = rm
18 RMFLAGS = -rf
19
20 SAFE_RUN = ${TESTROOT}/bin/fail-if-non-zero.pl