]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/no-uuid/Makefile
ld64-133.3.tar.gz
[apple/ld64.git] / unit-tests / test-cases / no-uuid / Makefile
index 223c8b8e7767540ab0600e4b2bbdd1e307ae5a7c..dcae189ab372eb22ac633112b29d4c26e4a8d628 100644 (file)
@@ -31,31 +31,11 @@ run: all
 
 all:
 
-# Test with dwarf-2
-       ${CC} ${CCFLAGS} foo.c -o foo-${ARCH} -gdwarf-2
-       ${FAIL_IF_BAD_MACHO} foo-${ARCH}
-       ${OTOOL} -hlv foo-${ARCH} | grep LC_UUID | ${FAIL_IF_EMPTY}
-       rm -f foo-${ARCH}
-
-# Test with stabs
-       ${CC} ${CCFLAGS} foo.c -o foo-${ARCH} -gfull
-       ${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
-       ${LD} -arch ${ARCH} bar.o -r -o bar-${ARCH}.o -no_uuid
-       ${CC} ${CCFLAGS} foo.c -c -gdwarf-2
-       ${LD} -arch ${ARCH} foo.o -r -o 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}
-
-# Test with with the flag disabling uuid
-       ${CC} ${CCFLAGS} foo.c -o foo-${ARCH} -Wl,-no_uuid -gdwarf-2
-       ${FAIL_IF_BAD_MACHO} foo-${ARCH}
-       ${OTOOL} -hlv foo-${ARCH} | grep LC_UUID | ${PASS_IFF_EMPTY}
+# Test main executable built with dwarf has uuid
+       ${CC} ${CCFLAGS} foo.c -o foo -gdwarf-2
+       ${FAIL_IF_BAD_MACHO} foo
+       ${OTOOL} -hlv foo | grep LC_UUID | ${FAIL_IF_EMPTY}
+       ${PASS_IFF_GOOD_MACHO} foo
 
 clean:
-       rm -rf foo-${ARCH} bar-${ARCH}.dylib temp-${ARCH}.dylib
+       rm -rf foo