X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/9e225d036f7ada46c87f40647ed12d4c406f502f..ee50caae846913bb8e5e48b51a2dd974b8f7a0e1:/unit-tests/test-cases/fallback-non-unique-leaf-names/Makefile diff --git a/unit-tests/test-cases/fallback-non-unique-leaf-names/Makefile b/unit-tests/test-cases/fallback-non-unique-leaf-names/Makefile index 8b4d218..1992633 100644 --- a/unit-tests/test-cases/fallback-non-unique-leaf-names/Makefile +++ b/unit-tests/test-cases/fallback-non-unique-leaf-names/Makefile @@ -23,21 +23,31 @@ 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: