X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/bac542e65c0030c0d819c7ff1dcfc25892a61844..19894a1236eae932b4028640f24ab843f691d4e4:/unit-tests/test-cases/re-export-dylib/Makefile diff --git a/unit-tests/test-cases/re-export-dylib/Makefile b/unit-tests/test-cases/re-export-dylib/Makefile index cb28183..5cea7a1 100644 --- a/unit-tests/test-cases/re-export-dylib/Makefile +++ b/unit-tests/test-cases/re-export-dylib/Makefile @@ -1,5 +1,5 @@ ## -# Copyright (c) 2007 Apple Inc. All rights reserved. +# Copyright (c) 2007-2009 Apple Inc. All rights reserved. # # @APPLE_LICENSE_HEADER_START@ # @@ -27,36 +27,28 @@ PWD = `pwd` # -# Test that the 10.4 and 10.5 ways to re-export a dylib work +# Test that dylib re-exports work # -run : all - ./main4 - ./main5 +all-check: all check -all : main4 main5 +check: + ./main -libbar4.dylib : bar.c - gcc bar.c -dynamiclib -o $(PWD)/libbar4.dylib -mmacosx-version-min=10.4 +all: main -libfoo4.dylib : foo.c libbar4.dylib - gcc foo.c -dynamiclib libbar4.dylib -sub_library libbar4 -o $(PWD)/libfoo4.dylib -mmacosx-version-min=10.4 -main4 : main.c libfoo4.dylib - gcc main.c -I${TESTROOT}/include -o main4 libfoo4.dylib -mmacosx-version-min=10.4 +libbar.dylib : bar.c + ${CC} bar.c -dynamiclib -o $(PWD)/libbar.dylib +libfoo.dylib : foo.c libbar.dylib + ${CC} foo.c -dynamiclib libbar.dylib -sub_library libbar -install_name $(PWD)/libfoo.dylib -o libfoo.dylib -libbar5.dylib : bar.c - gcc bar.c -dynamiclib -o $(PWD)/libbar5.dylib -mmacosx-version-min=10.5 - -libfoo5.dylib : foo.c libbar5.dylib - gcc foo.c -dynamiclib libbar5.dylib -sub_library libbar5 -o $(PWD)/libfoo5.dylib -mmacosx-version-min=10.5 - -main5 : main.c libfoo5.dylib - gcc main.c -I${TESTROOT}/include -o main5 libfoo5.dylib -mmacosx-version-min=10.5 +main : main.c libfoo.dylib + ${CC} main.c -I${TESTROOT}/include -o main libfoo.dylib clean: - rm -rf main4 main5 libfoo4.dylib libfoo5.dylib libbar4.dylib libbar5.dylib + rm -rf main libfoo.dylib libbar.dylib \ No newline at end of file