]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/no-uuid/Makefile
ld64-77.tar.gz
[apple/ld64.git] / unit-tests / test-cases / no-uuid / Makefile
index 223c8b8e7767540ab0600e4b2bbdd1e307ae5a7c..c24abecf5ee3dca14bec1492c4b352029c177a0e 100644 (file)
@@ -38,17 +38,26 @@ all:
        rm -f foo-${ARCH}
 
 # Test with stabs
-       ${CC} ${CCFLAGS} foo.c -o foo-${ARCH} -gfull
+       ${CC} ${CCFLAGS} foo.c -o foo-${ARCH} -gfull -gstabs+
        ${FAIL_IF_BAD_MACHO} foo-${ARCH}
        ${OTOOL} -hlv foo-${ARCH} | grep LC_UUID | ${FAIL_IF_STDIN}
 
 # Test with two files one with UUID
        ${CC} ${CCFLAGS} bar.c -c -gdwarf-2
+       ${FAIL_IF_BAD_OBJ} bar.o
+
        ${LD} -arch ${ARCH} bar.o -r -o bar-${ARCH}.o -no_uuid
+       ${FAIL_IF_BAD_OBJ} bar-${ARCH}.o
+
        ${CC} ${CCFLAGS} foo.c -c -gdwarf-2
+       ${FAIL_IF_BAD_OBJ} foo.o
+
        ${LD} -arch ${ARCH} foo.o -r -o foo-${ARCH}.o
+       ${FAIL_IF_BAD_OBJ} foo-${ARCH}.o
+
        ${CC} ${CCFLAGS} foo-${ARCH}.o bar-${ARCH}.o -o temp-${ARCH}
        ${FAIL_IF_BAD_MACHO} temp-${ARCH}
+
        ${OTOOL} -hlv temp-${ARCH} | grep LC_UUID | ${FAIL_IF_EMPTY}
        rm -f foo.o bar.o foo-${ARCH}.o bar-${ARCH}.o temp-${ARCH}
 
@@ -58,4 +67,4 @@ all:
        ${OTOOL} -hlv foo-${ARCH} | grep LC_UUID | ${PASS_IFF_EMPTY}
 
 clean:
-       rm -rf foo-${ARCH} bar-${ARCH}.dylib temp-${ARCH}.dylib
+       rm -rf foo-*