]> git.saurik.com Git - apple/dyld.git/blob - unit-tests/test-cases/weak-external-reloc-flat/Makefile
dyld-132.13.tar.gz
[apple/dyld.git] / unit-tests / test-cases / weak-external-reloc-flat / Makefile
1
2
3 TESTROOT = ../..
4 include ${TESTROOT}/include/common.makefile
5
6
7 #
8 # <rdar://problem/6369189> flat_namespace and weak binding conflict
9 #
10 # Note that libfoo.dylib is built flat-namespace
11 #
12
13 all-check: all check
14
15 check:
16 ./main
17
18 all: main
19
20 main: main.c libfoo.dylib
21 ${CC} ${CCFLAGS} -I${TESTROOT}/include -o main main.c libfoo.dylib
22
23 libfoo.dylib: foo.c libbar.dylib
24 ${CC} ${CCFLAGS} -I${TESTROOT}/include -dynamiclib -o libfoo.dylib foo.c libbar.dylib -flat_namespace
25
26 libbar.dylib: bar.c libbaz.dylib
27 ${CC} ${CCFLAGS} -I${TESTROOT}/include -dynamiclib -o libbar.dylib bar.c libbaz.dylib
28
29 libbaz.dylib: baz.c
30 ${CC} ${CCFLAGS} -I${TESTROOT}/include -dynamiclib -o libbaz.dylib baz.c
31
32 clean:
33 ${RM} ${RMFLAGS} *~ main libfoo.dylib libbar.dylib libbaz.dylib
34