]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/re-export-optimizations-indirect/Makefile
ld64-127.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / re-export-optimizations-indirect / Makefile
index fdb13d5de83c1dca375440669b74dfdfa02d8182..4eb7b4336e64bfc22e48f512b2165ff7ed2c2dc7 100644 (file)
@@ -29,11 +29,15 @@ include ${TESTROOT}/include/common.makefile
 #
 
 
-run: all
+all: all-${ARCH}
 
-all:
+all-i386: all-new all-old
+all-x86_64: all-new all-old
+all-armv6: all-new 
+all-armv7: all-new 
        
-# -sub_library for 10.4
+all-old:
+       # -sub_library for 10.4
        ${CC} ${CCFLAGS} -dynamiclib bar.c -o libbar.dylib  -install_name /usr/lib/libbar.dylib -mmacosx-version-min=10.4
        ${FAIL_IF_BAD_MACHO} libbar.dylib
        ${CC} ${CCFLAGS} -dynamiclib middle.c -o libmiddle.dylib -lbar -L. -sub_library libbar -install_name /mid/libmiddle.dylib -mmacosx-version-min=10.4
@@ -45,17 +49,18 @@ all:
        ${CC} ${CCFLAGS} main.c -DCALL_BAR libfoo.dylib libother.dylib -o main -L. -mmacosx-version-min=10.4
        nm -m main | grep _bar | grep libbar | ${FAIL_IF_EMPTY}
        ${PASS_IFF_GOOD_MACHO} main
-               
-# -sub_library for 10.5
-       ${CC} ${CCFLAGS} -dynamiclib bar.c -o libbar.dylib  -install_name /usr/lib/libbar.dylib -mmacosx-version-min=10.5
+
+all-new:               
+       # -sub_library for 10.5
+       ${CC} ${CCFLAGS} -dynamiclib bar.c -o libbar.dylib  -install_name /usr/lib/libbar.dylib 
        ${FAIL_IF_BAD_MACHO} libbar.dylib
-       ${CC} ${CCFLAGS} -dynamiclib middle.c -o libmiddle.dylib -lbar -L. -sub_library libbar -install_name /mid/libmiddle.dylib -mmacosx-version-min=10.5
+       ${CC} ${CCFLAGS} -dynamiclib middle.c -o libmiddle.dylib -lbar -L. -sub_library libbar -install_name /mid/libmiddle.dylib 
        ${FAIL_IF_BAD_MACHO} libmiddle.dylib
-       ${CC} ${CCFLAGS} -dynamiclib foo.c -o libfoo.dylib -lmiddle -L. -sub_library libmiddle -install_name /usr/lib/libfoo.dylib -mmacosx-version-min=10.5
+       ${CC} ${CCFLAGS} -dynamiclib foo.c -o libfoo.dylib -lmiddle -L. -sub_library libmiddle -install_name /usr/lib/libfoo.dylib 
        ${FAIL_IF_BAD_MACHO} libfoo.dylib
-       ${CC} ${CCFLAGS} -dynamiclib other.c -o libother.dylib -lbar -L. -sub_library libbar -install_name /usr/lib/libother.dylib -mmacosx-version-min=10.5
+       ${CC} ${CCFLAGS} -dynamiclib other.c -o libother.dylib -lbar -L. -sub_library libbar -install_name /usr/lib/libother.dylib 
        ${FAIL_IF_BAD_MACHO} libother.dylib
-       ${CC} ${CCFLAGS} main.c -DCALL_BAR libfoo.dylib libother.dylib -o main -L. -mmacosx-version-min=10.5
+       ${CC} ${CCFLAGS} main.c -DCALL_BAR libfoo.dylib libother.dylib -o main -L. 
        nm -m main | grep _bar | grep libbar | ${FAIL_IF_EMPTY}
        ${PASS_IFF_GOOD_MACHO} main