all : main1 main2 main3 main4 main5 main6 main7 main8
main : main.c libfoo.dylib
- ${CC} -I${TESTROOT}/include main.c -o main libfoo.dylib
+ ${CC} -Wno-deprecated-declarations -I${TESTROOT}/include main.c -o main libfoo.dylib
libfoo.dylib : foo.c
${CC} -I${TESTROOT}/include foo.c -dynamiclib -o $$PWD/libfoo.dylib
# (fails on 10.3)
#
main1 : main.c libfoo.dylib
- ${CC} -I${TESTROOT}/include main.c -o main1 libfoo.dylib
+ ${CC} -Wno-deprecated-declarations -I${TESTROOT}/include main.c -o main1 libfoo.dylib
check1: main1
DYLD_IMAGE_SUFFIX=_debug && export DYLD_IMAGE_SUFFIX && ./main1 libfoo.dylib
# check2: main links with libfoo_debug.dylib and dynamically loads libfoo.dylib
#
main2 : main.c libfoo_debug.dylib
- ${CC} -I${TESTROOT}/include main.c -o main2 libfoo_debug.dylib
+ ${CC} -Wno-deprecated-declarations -I${TESTROOT}/include main.c -o main2 libfoo_debug.dylib
check2: main2
echo "pwd-1 is ${PWD}"
# check3: main links with libfoo.dylib sets DYLD_LIBRARY_PATH=hide and dynamically loads libfoo.dylib
#
main3 : main.c libfoo.dylib
- ${CC} -I${TESTROOT}/include main.c -o main3 libfoo.dylib
+ ${CC} -Wno-deprecated-declarations -Wno-deprecated-declarations -I${TESTROOT}/include main.c -o main3 libfoo.dylib
check3: main3
DYLD_LIBRARY_PATH=$$PWD/hide && export DYLD_LIBRARY_PATH && ./main3 $$PWD/libfoo.dylib
# (fails on 10.3)
#
main4 : main.c libfoo.dylib
- ${CC} -I${TESTROOT}/include main.c -o main4 libfoo.dylib
+ ${CC} -Wno-deprecated-declarations -I${TESTROOT}/include main.c -o main4 libfoo.dylib
check4: main4
DYLD_LIBRARY_PATH=$$PWD/hide && export DYLD_LIBRARY_PATH && DYLD_IMAGE_SUFFIX=_debug && export DYLD_IMAGE_SUFFIX && ./main4 $$PWD/libfoo.dylib
# (fails on 10.3)
#
main5 : main.c libbar.dylib libbar_debug.dylib
- ${CC} -I${TESTROOT}/include main.c -o main5 libbar.dylib
+ ${CC} -Wno-deprecated-declarations -I${TESTROOT}/include main.c -o main5 libbar.dylib
check5: main5
DYLD_IMAGE_SUFFIX=_debug && export DYLD_IMAGE_SUFFIX && ./main5 $$PWD/libbar.dylib
# (fails on 10.3)
#
main6 : main.c libbar_debug.dylib
- ${CC} -I${TESTROOT}/include main.c -o main6 libbar_debug.dylib
+ ${CC} -Wno-deprecated-declarations -I${TESTROOT}/include main.c -o main6 libbar_debug.dylib
check6: main6
DYLD_IMAGE_SUFFIX=_debug && export DYLD_IMAGE_SUFFIX && ./main6 $$PWD/libbar.dylib
# check7: main links with libbar.dylib sets DYLD_LIBRARY_PATH=hide and dynamically loads libbar.dylib
#
main7 : main.c libbar.dylib
- ${CC} -I${TESTROOT}/include main.c -o main7 libbar.dylib
+ ${CC} -Wno-deprecated-declarations -I${TESTROOT}/include main.c -o main7 libbar.dylib
check7: main7
DYLD_LIBRARY_PATH=$$PWD/hide && export DYLD_LIBRARY_PATH && ./main7 $$PWD/libbar.dylib
# (fails on 10.3)
#
main8 : main.c libbar.dylib
- ${CC} -I${TESTROOT}/include main.c -o main8 libbar.dylib
+ ${CC} -Wno-deprecated-declarations -I${TESTROOT}/include main.c -o main8 libbar.dylib
check8: main8
DYLD_LIBRARY_PATH=$$PWD/hide && export DYLD_LIBRARY_PATH && DYLD_IMAGE_SUFFIX=_debug && export DYLD_IMAGE_SUFFIX && ./main8 $$PWD/libbar.dylib