]> git.saurik.com Git - apple/dyld.git/blob - unit-tests/test-cases/weak-external-reloc/Makefile
dyld-360.19.tar.gz
[apple/dyld.git] / unit-tests / test-cases / weak-external-reloc / Makefile
1
2
3 TESTROOT = ../..
4 include ${TESTROOT}/include/common.makefile
5
6 all-check: all check
7
8 check:
9 ./main
10
11 all: main
12
13 main: main.c librealmain.dylib
14 ${CC} ${CCFLAGS} -I${TESTROOT}/include -o main main.c librealmain.dylib
15
16 librealmain.dylib: realmain.c libfoo.dylib
17 ${CC} ${CCFLAGS} -I${TESTROOT}/include -dynamiclib -o librealmain.dylib realmain.c libfoo.dylib
18
19 libfoo.dylib: foo.c libbar.dylib
20 ${CC} ${CCFLAGS} -I${TESTROOT}/include -dynamiclib -o libfoo.dylib foo.c libbar.dylib
21
22 libbar.dylib: bar.c libbaz.dylib
23 ${CC} ${CCFLAGS} -I${TESTROOT}/include -dynamiclib -o libbar.dylib bar.c libbaz.dylib
24
25 libbaz.dylib: baz.c
26 ${CC} ${CCFLAGS} -I${TESTROOT}/include -dynamiclib -o libbaz.dylib baz.c
27
28 clean:
29 ${RM} ${RMFLAGS} *~ main libfoo.dylib libbar.dylib libbaz.dylib librealmain.dylib
30