X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/0959b6d4289bd106fddb7fe7d84a346159895fdd..797cc9518557438c2166863f4e1804db04ecfa2d:/unit-tests/test-cases/sym-link-load/Makefile?ds=inline diff --git a/unit-tests/test-cases/sym-link-load/Makefile b/unit-tests/test-cases/sym-link-load/Makefile index 00dd9ac..a0feb3a 100644 --- a/unit-tests/test-cases/sym-link-load/Makefile +++ b/unit-tests/test-cases/sym-link-load/Makefile @@ -36,11 +36,13 @@ include ${TESTROOT}/include/common.makefile ### ### +PWD = $(shell pwd) +all-check: all check -run: all +check: ./main - export DYLD_LIBRARY_PATH="`pwd`/fake" && ./main + export DYLD_LIBRARY_PATH="${PWD}/fake" && ./main all: main real/liblink.dylib real/libtest.dylib fake/libtest.dylib @@ -51,20 +53,20 @@ main: main.c stub/libtest.dylib stub/liblink.dylib real/libbase.dylib stub/libtest.dylib: test.c mkdir -p stub - ${CC} ${CCFLAGS} -I${TESTROOT}/include -dynamiclib test.c -DDO_NOTHING -o stub/libtest.dylib -install_name "`pwd`/real/libtest.dylib" + ${CC} ${CCFLAGS} -I${TESTROOT}/include -dynamiclib test.c -DDO_NOTHING -o stub/libtest.dylib -install_name "${PWD}/real/libtest.dylib" stub/liblink.dylib: link.c mkdir -p stub - ${CC} ${CCFLAGS} -I${TESTROOT}/include -dynamiclib link.c -o stub/liblink.dylib -install_name "`pwd`/real/liblink.dylib" + ${CC} ${CCFLAGS} -I${TESTROOT}/include -dynamiclib link.c -o stub/liblink.dylib -install_name "${PWD}/real/liblink.dylib" real/libbase.dylib: base.c mkdir -p real - ${CC} ${CCFLAGS} -I${TESTROOT}/include -dynamiclib base.c -o "`pwd`/real/libbase.dylib" + ${CC} ${CCFLAGS} -I${TESTROOT}/include -dynamiclib base.c -o "${PWD}/real/libbase.dylib" real/libtest.dylib: test.c real/libbase.dylib mkdir -p real - ${CC} ${CCFLAGS} -I${TESTROOT}/include -dynamiclib test.c real/libbase.dylib -o "`pwd`/real/libtest.dylib" + ${CC} ${CCFLAGS} -I${TESTROOT}/include -dynamiclib test.c real/libbase.dylib -o "${PWD}/real/libtest.dylib" real/liblink.dylib: link.c mkdir -p real @@ -73,7 +75,7 @@ real/liblink.dylib: link.c fake/libtest.dylib: test.c real/libbase.dylib mkdir -p fake - ${CC} ${CCFLAGS} -I${TESTROOT}/include -dynamiclib test.c real/libbase.dylib -o "`pwd`/fake/libtest.dylib" -install_name "`pwd`/real/libtest.dylib" + ${CC} ${CCFLAGS} -I${TESTROOT}/include -dynamiclib test.c real/libbase.dylib -o "${PWD}/fake/libtest.dylib" -install_name "${PWD}/real/libtest.dylib"