]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/test-cases/rpath-basic/Makefile
dyld-132.13.tar.gz
[apple/dyld.git] / unit-tests / test-cases / rpath-basic / Makefile
index 536d651dfdde5839465f6be46f3019e3ca4e7950..c559f75362ef64e67f3443d570401d72dd34d086 100644 (file)
 TESTROOT = ../..
 include ${TESTROOT}/include/common.makefile
 
+PWD = $(shell pwd)
 
 #
 # a main executable linked with -rpath used to locate a dylib it links against
 #
 
+all-check: all check
 
-run: all
+check:
        ./main
 
 all: main
@@ -43,7 +45,7 @@ hide/hole/libfoo.dylib : foo.c hide/hole/libbar.dylib
        ${CC} foo.c hide/hole/libbar.dylib -dynamiclib -o hide/hole/libfoo.dylib -install_name @rpath/libfoo.dylib 
 
 main : main.c hide/hole/libfoo.dylib
-       ${CC} -I${TESTROOT}/include main.c -o main hide/hole/libfoo.dylib -Wl,-rpath -Wl,`pwd`/hide/hole
+       ${CC} -I${TESTROOT}/include main.c -o main hide/hole/libfoo.dylib -Wl,-rpath -Wl,${PWD}/hide/hole
 
 clean:
        ${RM} -rf *~  main hide