]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/test-cases/rpath-nesting/Makefile
dyld-132.13.tar.gz
[apple/dyld.git] / unit-tests / test-cases / rpath-nesting / Makefile
index 0364549d216dd34f1e4072d920878a9debe53ab4..14e3a99ac178146c2e3ea1b050ccda4adad2d29b 100644 (file)
@@ -23,6 +23,7 @@
 TESTROOT = ../..
 include ${TESTROOT}/include/common.makefile
 
+PWD = $(shell pwd)
 
 #
 # The main executable supplies an rpath.  libfoo.dylib supplies an 
@@ -31,8 +32,9 @@ include ${TESTROOT}/include/common.makefile
 # rpath. 
 #
 
+all-check: all check
 
-run: all
+check:
        ./main
 
 all: main
@@ -46,10 +48,10 @@ hide2/libbaz.dylib : baz.c
        ${CC} baz.c -dynamiclib -o hide2/libbaz.dylib  -install_name @rpath/libbaz.dylib
 
 libfoo.dylib : foo.c hide1/libbar.dylib hide2/libbaz.dylib
-       ${CC} foo.c -dynamiclib -o libfoo.dylib hide1/libbar.dylib hide2/libbaz.dylib -Wl,-rpath -Wl,`pwd`/hide2
+       ${CC} foo.c -dynamiclib -o libfoo.dylib hide1/libbar.dylib hide2/libbaz.dylib -Wl,-rpath -Wl,${PWD}/hide2
 
 main : main.c libfoo.dylib
-       ${CC} -I${TESTROOT}/include main.c -o main libfoo.dylib -Wl,-rpath -Wl,`pwd`/hide1
+       ${CC} -I${TESTROOT}/include main.c -o main libfoo.dylib -Wl,-rpath -Wl,${PWD}/hide1
 
 clean:
        ${RM} ${RMFLAGS} *~  main hide1 hide2 libfoo.dylib