]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/objc-gc-checks/Makefile
ld64-127.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / objc-gc-checks / Makefile
index b18012a23030dcdb8d0629d90d1e2a62f5c4a359..67e04a3c7ecc594463aa8f40cece3552cccb7246 100644 (file)
@@ -31,18 +31,19 @@ IMAGE_INFO = "__image_info"
 ifeq ($(ARCH),x86_64)
        IMAGE_INFO = "__objc_imageinfo"
 endif
-ifeq ($(ARCH),armv6)
-       IMAGE_INFO = "__objc_imageinfo"
-endif
 
+test: test-${FILEARCH}
 
+test-i386: test-macosx
+test-x86_64: test-macosx
+test-arm:   test-good
 
 #
 # Validate that the linker catches illegal combinations of .o files 
 # compiled with different GC settings. 
 #
 
-test:
+test-macosx:
        ${CC} ${CCFLAGS} foo.m -c -o foo.o
        ${FAIL_IF_BAD_OBJ} foo.o
 
@@ -127,7 +128,9 @@ test:
        ${CC} ${CCFLAGS} foo.o runtime.c -dynamiclib -o libfoo.dylib 
        ${FAIL_IF_SUCCESS} ${CC} ${CCFLAGS} bar-gc-only.o runtime.c -dynamiclib libfoo.dylib -o libbar.dylib 2> fail.log
 
+       ${PASS_IFF} true
 
+test-good:
        ${PASS_IFF} true
 
 clean: