]> git.saurik.com Git - apple/ld64.git/blame - unit-tests/test-cases/dso_handle/Makefile
ld64-236.3.tar.gz
[apple/ld64.git] / unit-tests / test-cases / dso_handle / Makefile
CommitLineData
b2fa67a8
A
1
2TESTROOT = ../..
3include ${TESTROOT}/include/common.makefile
4
5SHELL = 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
11run: all
12
13all:
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
9543cb2f 18 ${CC} ${CCFLAGS} test.c -DDSO_TENT=1 -o test-tent -Wl,-w
b2fa67a8
A
19 ${PASS_IFF_GOOD_MACHO} test-tent
20
21
22clean:
23 rm -f test test-def test-tent warnings.txt