]>
Commit | Line | Data |
---|---|---|
1 | ||
2 | TESTROOT = ../.. | |
3 | include ${TESTROOT}/include/common.makefile | |
4 | ||
5 | # | |
6 | # Test a simple symbol resolver function | |
7 | # | |
8 | TARGET = all | |
9 | ifeq (${ARCH},ppc) | |
10 | TARGET = all-ppc | |
11 | endif | |
12 | ||
13 | ||
14 | run: ${TARGET} | |
15 | ||
16 | all: | |
17 | ${CC} ${CCFLAGS} foo.c -dynamiclib -o libfoo.dylib -Wl,-w | |
18 | ${DYLDINFO} -lazy_bind libfoo.dylib | grep _a | ${FAIL_IF_STDIN} | |
19 | ${PASS_IFF_GOOD_MACHO} libfoo.dylib | |
20 | ||
21 | all-ppc: | |
22 | echo "PASS" | |
23 | ||
24 | clean: | |
25 | rm -f libfoo.dylib |