]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/archive-weak/Makefile
ld64-77.tar.gz
[apple/ld64.git] / unit-tests / test-cases / archive-weak / Makefile
index 676d1a4656c3ef9d76418180b0474a7b07d24afe..2d53734ee7f42c3e553c2552a9ded47f1ac80691 100644 (file)
@@ -37,14 +37,15 @@ run: all
 
 all:
        ${CC} ${CCFLAGS} foo.c -c -o foo-${ARCH}.o 
+       ${FAIL_IF_BAD_OBJ} foo-${ARCH}.o
        ${CC} ${CCFLAGS} bar.c -c -o bar-${ARCH}.o 
+       ${FAIL_IF_BAD_OBJ} bar-${ARCH}.o
        ${CC} ${CCFLAGS} baz.c -c -o baz-${ARCH}.o 
+       ${FAIL_IF_BAD_OBJ} baz-${ARCH}.o
        libtool -static foo-${ARCH}.o  bar-${ARCH}.o  baz-${ARCH}.o -o libfoobar-${ARCH}.a
        ${CC} ${CCFLAGS} main.c foo.c -lfoobar-${ARCH} -L. -o main-${ARCH} 
        ${FAIL_IF_BAD_MACHO} main-${ARCH}
        nm -m main-${ARCH} | grep _baz | grep weak | ${PASS_IFF_STDIN}
 
 clean:
-       rm -rf main-${ARCH} foo-${ARCH}.o bar-${ARCH}.o baz-${ARCH}.o libfoobar-${ARCH}.a
-       
-
+       rm -rf main-* *.o *.a