]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/relocs-c/Makefile
ld64-77.tar.gz
[apple/ld64.git] / unit-tests / test-cases / relocs-c / Makefile
index b4007053941ab0b8ae04b7591023e8a0482afa19..15a7c3591b6d7b57c11907d6d00fc2aef714410a 100644 (file)
@@ -36,14 +36,14 @@ run: all
 
 all:
        ${CC} ${CCFLAGS} test.c -c -o test.${ARCH}.o
+       ${FAIL_IF_ERROR} ${OBJECTDUMP} -no_content test.${ARCH}.o > test.${ARCH}.o.dump
+       #grep "plus" test.${ARCH}.o.dump | ${FAIL_IF_STDIN}
+
        ${LD} -arch ${ARCH} -r -keep_private_externs test.${ARCH}.o -o test-r.${ARCH}.o
-       ${OBJECTDUMP} -no_content test.${ARCH}.o > test.${ARCH}.o.dump
-       grep "plus" test.${ARCH}.o.dump | ${FAIL_IF_STDIN}
-       ${OBJECTDUMP} -no_content test-r.${ARCH}.o > test-r.${ARCH}.o.dump
-       grep "plus" test-r.${ARCH}.o.dump | ${FAIL_IF_STDIN}
+       ${FAIL_IF_ERROR} ${OBJECTDUMP} -no_content test-r.${ARCH}.o > test-r.${ARCH}.o.dump
+       #grep "plus" test-r.${ARCH}.o.dump | ${FAIL_IF_STDIN}
+
        ${PASS_IFF} diff test.${ARCH}.o.dump test-r.${ARCH}.o.dump
 
 clean:
-       rm -rf test.${ARCH}.o test-r.${ARCH}.o test.${ARCH}.o.dump test-r.${ARCH}.o.dump
-       
-
+       rm -rf *.o *.dump