]> git.saurik.com Git - apple/ld64.git/blame - unit-tests/test-cases/symbol-resolver-basic/Makefile
ld64-123.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / symbol-resolver-basic / Makefile
CommitLineData
a645023d
A
1
2TESTROOT = ../..
3include ${TESTROOT}/include/common.makefile
4
5#
6# Test a simple symbol resolver function
7#
8TARGET = all
9ifeq (${ARCH},ppc)
10 TARGET = all-ppc
11endif
12
13
14run: ${TARGET}
15
16all:
17 ${CC} ${CCFLAGS} foo.c -c -o foo.o
18 ${CC} ${CCFLAGS} foo.o -dynamiclib -o libfoo.dylib
19 ${DYLDINFO} -export libfoo.dylib | grep _foo | grep resolver | ${FAIL_IF_EMPTY}
20 ${LD} -arch ${ARCH} -r foo.o -o foo-r.o
21 ${CC} ${CCFLAGS} foo-r.o -dynamiclib -o libfoo-r.dylib
22 ${DYLDINFO} -export libfoo-r.dylib | grep _foo | grep resolver | ${FAIL_IF_EMPTY}
23 ${PASS_IFF_GOOD_MACHO} libfoo-r.dylib
24
25all-ppc:
26 echo "PASS"
27
28clean:
29 rm -f foo.o libfoo.dylib foo-r.o libfoo-r.dylib