]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/bundle_loader/Makefile
ld64-77.tar.gz
[apple/ld64.git] / unit-tests / test-cases / bundle_loader / Makefile
index 3b31968ec8b3e8f65636bf77a381515e4731c2d4..c0163d03db579d9eb6df2bced31ae15d1e8156cf 100644 (file)
@@ -32,12 +32,12 @@ run: all
 
 all:
        ${CC} ${CCFLAGS} bar.c -dynamiclib -o libbar.dylib
+       ${FAIL_IF_BAD_MACHO} libbar.dylib
        ${CC} ${CCFLAGS} main.c bar.c -o main
+       ${FAIL_IF_BAD_MACHO} main
        ${CC} ${CCFLAGS} bundle.c -bundle -bundle_loader main libbar.dylib -o bundle.bundle
        ${FAIL_IF_BAD_MACHO} bundle.bundle
        nm -m bundle.bundle | grep _bar | grep "from executable" | ${PASS_IFF_STDIN}
 
 clean:
-       rm libbar.dylib main bundle.bundle
-       
-
+       rm *.dylib main bundle.bundle