]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/test-cases/weak-library/Makefile
dyld-132.13.tar.gz
[apple/dyld.git] / unit-tests / test-cases / weak-library / Makefile
index b4eb71ca1c3fc74e20e6b4deadff5a109d2c6347..1d1863e400d51af58ebd74879af967a91d8ab11f 100644 (file)
@@ -1,5 +1,5 @@
 ##
-# Copyright (c) 2005 Apple Computer, Inc. All rights reserved.
+# Copyright (c) 2005-2008 Apple Inc. All rights reserved.
 #
 # @APPLE_LICENSE_HEADER_START@
 # 
 TESTROOT = ../..
 include ${TESTROOT}/include/common.makefile
 
-run: all
-       cd absent/  && ../${TESTROOT}/bin/exit-zero-pass.pl "pass message" "fail message" ./main
-       cd present/ && ../${TESTROOT}/bin/exit-zero-pass.pl "pass message" "fail message" ./main
+all-check: all check
+
+check:
+       cd absent/  && ../${TESTROOT}/bin/exit-zero-pass.pl "weak-library" "weak-library" ./main
+       cd present/ && ../${TESTROOT}/bin/exit-zero-pass.pl "weak-library" "weak-library" ./main
 
 all: foo.c main.c
        ${CC} -dynamiclib -prebind -seg1addr 400000 -o libfoo.dylib foo.c
        mkdir -p absent/
-       export MACOSX_DEPLOYMENT_TARGET=10.2 && ${CC} -prebind -I${TESTROOT}/include -L. -Wl,-weak-lfoo -o absent/main main.c
+       ${CC} -prebind -I${TESTROOT}/include -L. -Wl,-weak-lfoo -o absent/main main.c
        mkdir -p present/
-       export MACOSX_DEPLOYMENT_TARGET=10.2 && ${CC} -prebind -I${TESTROOT}/include -L. -Wl,-weak-lfoo -o present/main main.c
+       ${CC} -prebind -I${TESTROOT}/include -L. -Wl,-weak-lfoo -o present/main main.c
        mv libfoo.dylib present/
 
 clean: