X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/0959b6d4289bd106fddb7fe7d84a346159895fdd..797cc9518557438c2166863f4e1804db04ecfa2d:/unit-tests/test-cases/non-weak-library/Makefile diff --git a/unit-tests/test-cases/non-weak-library/Makefile b/unit-tests/test-cases/non-weak-library/Makefile index 41f097c..540909d 100644 --- a/unit-tests/test-cases/non-weak-library/Makefile +++ b/unit-tests/test-cases/non-weak-library/Makefile @@ -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@ # @@ -23,17 +23,19 @@ TESTROOT = ../.. include ${TESTROOT}/include/common.makefile -run: all - cd absent/ && ../${TESTROOT}/bin/exit-non-zero-pass.pl "pass message" "fail message" ./main +all-check: all check + +check: + cd absent/ && ../${TESTROOT}/bin/exit-non-zero-pass.pl "non-weak-library" "non-weak-library" ./main cd present/ && ./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. -lfoo -DLIB_ABSENT -o absent/main main.c + ${CC} -prebind -I${TESTROOT}/include -L. -lfoo -DLIB_ABSENT -o absent/main main.c mkdir -p present/ - export MACOSX_DEPLOYMENT_TARGET=10.2 && ${CC} -prebind -I${TESTROOT}/include -L. -lfoo -DLIB_PRESENT -o present/main main.c + ${CC} -prebind -I${TESTROOT}/include -L. -lfoo -DLIB_PRESENT -o present/main main.c mv libfoo.dylib present/ clean: - ${RM} ${RMFLAGS} *~ libfoo.dylib absent/main present/{main,libfoo.dylib} + ${RM} ${RMFLAGS} *~ libfoo.dylib absent present