]> git.saurik.com Git - apple/ld64.git/blob - ld64-134.9/unit-tests/test-cases/code-signed-object-file/Makefile
4871de355da841858a07c9a8094c4ba7aa26df61
[apple/ld64.git] / ld64-134.9 / unit-tests / test-cases / code-signed-object-file / Makefile
1
2 TESTROOT = ../..
3 include ${TESTROOT}/include/common.makefile
4
5 #
6 # Test that an object file can be code signed
7 #
8 # <rdar://problem/5881324> when linking a kext the static linker should leave a pad in the headers to allow code signing
9 #
10
11 CODE_SIGN_ARCH = ${ARCH}
12 ifeq (${ARCH},ppc)
13 CODE_SIGN_ARCH = ppc7400
14 endif
15
16
17 run: all
18
19 all:
20 ${CC} foo.c -c -o foo.o
21 ${LD} -r foo.o -o foo2.o
22 codesign_allocate -i foo2.o -a ${CODE_SIGN_ARCH} 256 -o foo3.o
23 ${PASS_IFF} true
24
25 clean:
26 rm foo.o foo2.o foo3.o