]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/test-cases/weak-symbol-flat/Makefile
dyld-733.6.tar.gz
[apple/dyld.git] / unit-tests / test-cases / weak-symbol-flat / Makefile
index f49610dad3a8972c80fa43e48219844cb5f5029b..dfd56ce6fd9eac64ee24ccaf0f22507910e9be79 100644 (file)
@@ -1,4 +1,4 @@
-##
+#
 # Copyright (c) 2005 Apple Computer, Inc. All rights reserved.
 #
 # @APPLE_LICENSE_HEADER_START@
 TESTROOT = ../..
 include ${TESTROOT}/include/common.makefile
 
-run: all
+all-check: all check
+
+check:
        (export DYLD_IMAGE_SUFFIX=_missing  && ./main) || echo "FAIL \"weak-symbol-flat\""
         ./main 1
 
-all : main libfoo.dylib libfoo_missing.dylib
+all: main libfoo.dylib libfoo_missing.dylib
 
 libfoo.dylib : foo.c 
        ${CC} -dynamiclib -DSYMBOL_PRESENT -o libfoo.dylib foo.c
@@ -36,7 +38,7 @@ libfoo_missing.dylib : foo.c
        ${CC} -dynamiclib -o libfoo_missing.dylib foo.c -install_name libfoo.dylib
 
 main: main.c libfoo.dylib
-       export MACOSX_DEPLOYMENT_TARGET=10.2 && ${CC} -I${TESTROOT}/include -L. -lfoo -o main  main.c -flat_namespace
+       ${CC} -I${TESTROOT}/include -L. -lfoo -o main  main.c -flat_namespace
 
 clean:
        ${RM} ${RMFLAGS} *~ libfoo.dylib libfoo_missing.dylib main