]> git.saurik.com Git - apple/ld64.git/blame_incremental - unit-tests/test-cases/prebound-main/Makefile
ld64-123.2.1.tar.gz
[apple/ld64.git] / unit-tests / test-cases / prebound-main / Makefile
... / ...
CommitLineData
1
2TESTROOT = ../..
3include ${TESTROOT}/include/common.makefile
4
5SHELL = bash # use bash shell so we can redirect just stderr
6
7#
8# Verify -prebind for 10.3 make ppc prebound and all others not prebound
9#
10
11ifeq (,${findstring 64,$(ARCH)})
12 ifeq (${ARCH},i386)
13 KEYWORD = NOUNDEFS
14 else
15 KEYWORD = PREBOUND
16 endif
17else
18 KEYWORD = NOUNDEFS
19endif
20
21
22run: all
23
24all:
25 # SnowLeopard is missing libmx.dylib which gcc thinks it needs
26 ${CC} ${CCFLAGS} main.c -o main -prebind -mmacosx-version-min=10.3 -nostdlib -lcrt1.o -lSystem
27 otool -hv main | grep ${KEYWORD} | ${FAIL_IF_EMPTY}
28 ${PASS_IFF_GOOD_MACHO} main
29
30clean:
31 rm main