]> git.saurik.com Git - apple/ld64.git/blame - unit-tests/test-cases/prebound-main/Makefile
ld64-123.2.1.tar.gz
[apple/ld64.git] / unit-tests / test-cases / prebound-main / Makefile
CommitLineData
55e3d2f6 1
a61fdf0a
A
2TESTROOT = ../..
3include ${TESTROOT}/include/common.makefile
4
5SHELL = bash # use bash shell so we can redirect just stderr
6
7#
2f2f92e4 8# Verify -prebind for 10.3 make ppc prebound and all others not prebound
a61fdf0a
A
9#
10
2f2f92e4
A
11ifeq (,${findstring 64,$(ARCH)})
12 ifeq (${ARCH},i386)
13 KEYWORD = NOUNDEFS
14 else
15 KEYWORD = PREBOUND
16 endif
17else
18 KEYWORD = NOUNDEFS
19endif
20
a61fdf0a 21
2f2f92e4 22run: all
a61fdf0a 23
2f2f92e4 24all:
55e3d2f6
A
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
2f2f92e4
A
27 otool -hv main | grep ${KEYWORD} | ${FAIL_IF_EMPTY}
28 ${PASS_IFF_GOOD_MACHO} main
a61fdf0a
A
29
30clean:
2f2f92e4 31 rm main