X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/bac542e65c0030c0d819c7ff1dcfc25892a61844..797cc9518557438c2166863f4e1804db04ecfa2d:/unit-tests/test-cases/weak-symbol-flat/Makefile diff --git a/unit-tests/test-cases/weak-symbol-flat/Makefile b/unit-tests/test-cases/weak-symbol-flat/Makefile index ba1d7aa..dfd56ce 100644 --- a/unit-tests/test-cases/weak-symbol-flat/Makefile +++ b/unit-tests/test-cases/weak-symbol-flat/Makefile @@ -1,4 +1,4 @@ -## +# # Copyright (c) 2005 Apple Computer, Inc. All rights reserved. # # @APPLE_LICENSE_HEADER_START@ @@ -23,11 +23,13 @@ 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 - ${CC} -I${TESTROOT}/include -mmacosx-version-min=10.2 -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