X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/bac542e65c0030c0d819c7ff1dcfc25892a61844..19894a1236eae932b4028640f24ab843f691d4e4:/unit-tests/test-cases/rpath-nesting/Makefile diff --git a/unit-tests/test-cases/rpath-nesting/Makefile b/unit-tests/test-cases/rpath-nesting/Makefile index 0364549..14e3a99 100644 --- a/unit-tests/test-cases/rpath-nesting/Makefile +++ b/unit-tests/test-cases/rpath-nesting/Makefile @@ -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