]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/test-cases/fallback-non-unique-leaf-names/Makefile
dyld-132.13.tar.gz
[apple/dyld.git] / unit-tests / test-cases / fallback-non-unique-leaf-names / Makefile
index 8b4d218f4a607a60627bbe6cf34af7ad73ee8c6f..1992633bebb62342c88e5022358ef9dc8c852d9d 100644 (file)
 TESTROOT = ../..
 include ${TESTROOT}/include/common.makefile
 
-all :  main 
-       export DYLD_FALLBACK_LIBRARY_PATH=$$PWD && ./main
+PWD = $(shell pwd)
+
+
+all-check: all check
+
+
+all:  main 
 
 main : main.c libfoo.dylib libbar.dylib
        ${CC} -I${TESTROOT}/include main.c libfoo.dylib libbar.dylib -o main 
 
 libfoo.dylib : foo.c
-       ${CC} -I${TESTROOT}/include  foo.c -DFOO=1 -dynamiclib -o $$PWD/libfoo.dylib
+       ${CC} -I${TESTROOT}/include  foo.c -DFOO=1 -dynamiclib -install_name ${PWD}/libfoo.dylib -o libfoo.dylib
 
 libbar.dylib : bar.c other/libfoo.dylib
-       ${CC} -I${TESTROOT}/include  bar.c -dynamiclib other/libfoo.dylib -o $$PWD/libbar.dylib
-
+       ${CC} -I${TESTROOT}/include  bar.c -dynamiclib other/libfoo.dylib -install_name ${PWD}/libbar.dylib -o libbar.dylib
+       
 other/libfoo.dylib : foo.c
-       mkdir -p $$PWD/other
-       ${CC} -I${TESTROOT}/include  foo.c -DFOO=2 -dynamiclib  -o $$PWD/other/libfoo.dylib
+       mkdir -p ${PWD}/other
+       ${CC} -I${TESTROOT}/include  foo.c -DFOO=2 -dynamiclib  -install_name ${PWD}/other/libfoo.dylib -o other/libfoo.dylib
+
+
+
+check: 
+       export DYLD_FALLBACK_LIBRARY_PATH=${PWD} && ./main
 
 
 clean: