X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/0959b6d4289bd106fddb7fe7d84a346159895fdd..797cc9518557438c2166863f4e1804db04ecfa2d:/unit-tests/test-cases/dlopen-DYLD_LIBRARY_PATH/Makefile diff --git a/unit-tests/test-cases/dlopen-DYLD_LIBRARY_PATH/Makefile b/unit-tests/test-cases/dlopen-DYLD_LIBRARY_PATH/Makefile index b20f99c..9ea3667 100644 --- a/unit-tests/test-cases/dlopen-DYLD_LIBRARY_PATH/Makefile +++ b/unit-tests/test-cases/dlopen-DYLD_LIBRARY_PATH/Makefile @@ -23,9 +23,13 @@ TESTROOT = ../.. include ${TESTROOT}/include/common.makefile -run: all - ./main "`pwd`/libfoo.dylib" - export DYLD_LIBRARY_PATH="`pwd`/alt" && ./main "`pwd`/libfoo.dylib" +PWD = $(shell pwd) + +all-check: all check + +check: + ./main "${PWD}/libfoo.dylib" + export DYLD_LIBRARY_PATH="${PWD}/alt" && ./main "${PWD}/libfoo.dylib" all: main alt/libfoo.dylib @@ -35,10 +39,10 @@ main : main.c libfoo.dylib alt/libfoo.dylib : foo.c mkdir -p alt - ${CC} ${CCFLAGS} -dynamiclib foo.c -o "`pwd`/alt/libfoo.dylib" -DALT + ${CC} ${CCFLAGS} -dynamiclib foo.c -o "${PWD}/alt/libfoo.dylib" -DALT libfoo.dylib : foo.c - ${CC} ${CCFLAGS} -dynamiclib foo.c -o "`pwd`/libfoo.dylib" + ${CC} ${CCFLAGS} -dynamiclib foo.c -o "${PWD}/libfoo.dylib"