]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/relocs-objc/Makefile
ld64-77.tar.gz
[apple/ld64.git] / unit-tests / test-cases / relocs-objc / Makefile
index 9b55f256784fbed1dd915bc99e51669d53c395eb..0f8846d79cd9c31eb302bf1bccdb36a98abcd2d8 100644 (file)
@@ -36,12 +36,12 @@ run: all
 
 all:
        ${CC} ${CCFLAGS} test.m -c -o test.${ARCH}.o
+       ${FAIL_IF_ERROR} ${OBJECTDUMP} -no_content test.${ARCH}.o > test.${ARCH}.o.dump
+
        ${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
-       ${OBJECTDUMP} -no_content test-r.${ARCH}.o > test-r.${ARCH}.o.dump
+       ${FAIL_IF_ERROR} ${OBJECTDUMP} -no_content test-r.${ARCH}.o > test-r.${ARCH}.o.dump
+
        ${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