]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/test-cases/sym-link-load/Makefile
dyld-132.13.tar.gz
[apple/dyld.git] / unit-tests / test-cases / sym-link-load / Makefile
index 00dd9acdae893afb7123404f047e4a94086551fa..a0feb3ab16915c1c3e686fa87fcc4da69440eb44 100644 (file)
@@ -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"