]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/auto-arch/Makefile
ld64-77.tar.gz
[apple/ld64.git] / unit-tests / test-cases / auto-arch / Makefile
index e5caa646e300f7e4a090be473e03a1f115a23a19..3c8b3e5d585b3e8cca26b54ed99fba6b5ed39a8c 100644 (file)
@@ -35,11 +35,10 @@ run: all
 
 all:
        ${CC} ${CCFLAGS} hello.c -c -o hello.o  -mmacosx-version-min=10.4
 
 all:
        ${CC} ${CCFLAGS} hello.c -c -o hello.o  -mmacosx-version-min=10.4
-       ${LD} -lcrt1.o hello.o -o hello -lSystem 2> fail.log
-       ${FAIL_IF_BAD_MACHO} hello
-       file hello | grep ${ARCH} | ${PASS_IFF_STDIN}
+       ${FAIL_IF_BAD_OBJ} hello.o
+       ${LD} -r -lcrt1.o hello.o -o hello-r.o -lSystem
+       ${FAIL_IF_ERROR} ${OBJECTDUMP} hello-r.o >/dev/null
+       file hello-r.o | grep ${ARCH} | ${PASS_IFF_STDIN}
 
 clean:
 
 clean:
-       rm  hello.o hello fail.log
-       
-
+       rm -rf *.o