]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/test-cases/dlopen-DYLD_LIBRARY_PATH/Makefile
dyld-851.27.tar.gz
[apple/dyld.git] / unit-tests / test-cases / dlopen-DYLD_LIBRARY_PATH / Makefile
index b20f99c5c5c717ee99dceab178fef6411cc437da..9ea36677af6d322ed183d06a184afccdf88ea776 100644 (file)
 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"