]> git.saurik.com Git - apple/ld64.git/blob - ld64-134.9/unit-tests/test-cases/dso_handle/Makefile
ld64-134.9.tar.gz
[apple/ld64.git] / ld64-134.9 / unit-tests / test-cases / dso_handle / Makefile
1
2 TESTROOT = ../..
3 include ${TESTROOT}/include/common.makefile
4
5 SHELL = bash # use bash shell so we can redirect just stderr
6
7 #
8 # Verify the linker errors out nicely when __dso_handle is defined in source.
9 #
10
11 run: all
12
13 all:
14 ${CC} ${CCFLAGS} test.c -o test
15 ${FAIL_IF_BAD_MACHO} test
16 ${CC} ${CCFLAGS} test.c -DDSO_DEF=1 -o test-def 2>warnings.txt
17 ${FAIL_IF_BAD_MACHO} test-def
18 ${CC} ${CCFLAGS} test.c -DDSO_TENT=1 -o test-tent
19 ${PASS_IFF_GOOD_MACHO} test-tent
20
21
22 clean:
23 rm -f test test-def test-tent warnings.txt