]> git.saurik.com Git - apple/dyld.git/blame - unit-tests/test-cases/weak-external-reloc-flat/Makefile
dyld-353.2.1.tar.gz
[apple/dyld.git] / unit-tests / test-cases / weak-external-reloc-flat / Makefile
CommitLineData
39a8cd10
A
1
2
3TESTROOT = ../..
4include ${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
13all-check: all check
14
15check:
16 ./main
17
18all: main
19
20main: main.c libfoo.dylib
21 ${CC} ${CCFLAGS} -I${TESTROOT}/include -o main main.c libfoo.dylib
22
23libfoo.dylib: foo.c libbar.dylib
24 ${CC} ${CCFLAGS} -I${TESTROOT}/include -dynamiclib -o libfoo.dylib foo.c libbar.dylib -flat_namespace
25
26libbar.dylib: bar.c libbaz.dylib
27 ${CC} ${CCFLAGS} -I${TESTROOT}/include -dynamiclib -o libbar.dylib bar.c libbaz.dylib
28
29libbaz.dylib: baz.c
30 ${CC} ${CCFLAGS} -I${TESTROOT}/include -dynamiclib -o libbaz.dylib baz.c
31
32clean:
33 ${RM} ${RMFLAGS} *~ main libfoo.dylib libbar.dylib libbaz.dylib
34