]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/re-export-layers/Makefile
ld64-127.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / re-export-layers / Makefile
index fc622739aae5367f67100679b367493174bf859f..3ec1fca3767b96999dca7d5fb71f8bfec84c6cfa 100644 (file)
@@ -28,23 +28,17 @@ include ${TESTROOT}/include/common.makefile
 #
 
 
 #
 
 
-run: all
 
 
-all:
+all: all-${ARCH}
 
 
+all-i386: all-new all-old
+all-x86_64: all-new all-old
+all-armv6: all-new 
+all-armv7: all-new 
 
 
-# -reexport_library for 10.4
-       ${CC} ${CCFLAGS} -dynamiclib baz.c -o libbaz.dylib  -mmacosx-version-min=10.4
-       ${FAIL_IF_BAD_MACHO} libbaz.dylib
-       ${CC} ${CCFLAGS} -dynamiclib bar.c -o libbar.dylib -Wl,-reexport_library,libbaz.dylib -mmacosx-version-min=10.4
-       ${FAIL_IF_BAD_MACHO} libbar.dylib
-       ${CC} ${CCFLAGS} -dynamiclib foo.c -o libfoo.dylib -Wl,-reexport_library,libbar.dylib -mmacosx-version-min=10.4
-       ${FAIL_IF_BAD_MACHO} libfoo.dylib
-       ${CC} ${CCFLAGS} main.c libfoo.dylib -o main
-       ${FAIL_IF_BAD_MACHO} main
 
 
-       
-# -reexport_library for 10.5 and later
+all-new:       
+       # -reexport_library for 10.5 and later
        ${CC} ${CCFLAGS} -dynamiclib baz.c -o libbaz.dylib  
        ${FAIL_IF_BAD_MACHO} libbaz.dylib
        ${CC} ${CCFLAGS} -dynamiclib bar.c -o libbar.dylib -Wl,-reexport_library,libbaz.dylib 
        ${CC} ${CCFLAGS} -dynamiclib baz.c -o libbaz.dylib  
        ${FAIL_IF_BAD_MACHO} libbaz.dylib
        ${CC} ${CCFLAGS} -dynamiclib bar.c -o libbar.dylib -Wl,-reexport_library,libbaz.dylib 
@@ -54,6 +48,18 @@ all:
        ${CC} ${CCFLAGS} main.c libfoo.dylib -o main
        ${PASS_IFF_GOOD_MACHO} main
 
        ${CC} ${CCFLAGS} main.c libfoo.dylib -o main
        ${PASS_IFF_GOOD_MACHO} main
 
+all-old:
+       # -reexport_library for 10.4
+       ${CC} ${CCFLAGS} -dynamiclib baz.c -o libbaz.dylib  -mmacosx-version-min=10.4
+       ${FAIL_IF_BAD_MACHO} libbaz.dylib
+       ${CC} ${CCFLAGS} -dynamiclib bar.c -o libbar.dylib -Wl,-reexport_library,libbaz.dylib -mmacosx-version-min=10.4
+       ${FAIL_IF_BAD_MACHO} libbar.dylib
+       ${CC} ${CCFLAGS} -dynamiclib foo.c -o libfoo.dylib -Wl,-reexport_library,libbar.dylib -mmacosx-version-min=10.4
+       ${FAIL_IF_BAD_MACHO} libfoo.dylib
+       ${CC} ${CCFLAGS} main.c libfoo.dylib -o main
+       ${FAIL_IF_BAD_MACHO} main
+
+
 
 clean:
 
 
 clean: