132-13
[darwin-xtools.git] / dyld / unit-tests / test-cases / dlopen-init-dlopen-notify / Makefile
blobb24fa5f57e8b8638baa373e85cc425c7df78bc2d
1 all-check: all check
3 check:##
4 # Copyright (c) 2007 Apple Inc. All rights reserved.
6 # @APPLE_LICENSE_HEADER_START@
7 #
8 # This file contains Original Code and/or Modifications of Original Code
9 # as defined in and that are subject to the Apple Public Source License
10 # Version 2.0 (the 'License'). You may not use this file except in
11 # compliance with the License. Please obtain a copy of the License at
12 # http://www.opensource.apple.com/apsl/ and read it before using this
13 # file.
15 # The Original Code and all software distributed under the License are
16 # distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 # EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 # INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 # FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 # Please see the License for the specific language governing rights and
21 # limitations under the License.
23 # @APPLE_LICENSE_HEADER_END@
25 TESTROOT = ../..
26 include ${TESTROOT}/include/common.makefile
29 ### <rdar://problem/5504633> ADOBE: Premiere Pro crashes on quit
30 ###
31 ### libfoo depends on libfoo1 and libfoo2. main dlopens(libfoo).
32 ### libfoo1 has an initializer that calls dlopen(libbar).
33 ### libbar depends on libfoo2
34 ###
36 all-check: all check
38 check:
39 ./main
41 all: main
43 main : main.cxx libfoo.dylib
44 ${CXX} ${CCXXFLAGS} -I${TESTROOT}/include -o main main.cxx
47 libfoo.dylib : foo.c libfoo1.dylib libfoo2.dylib
48 ${CC} ${CCFLAGS} -dynamiclib foo.c -o libfoo.dylib libfoo1.dylib libfoo2.dylib
50 libfoo1.dylib : foo1.c libbar.dylib
51 ${CC} ${CCFLAGS} -dynamiclib foo1.c -o libfoo1.dylib
53 libfoo2.dylib : foo2.c
54 ${CC} ${CCFLAGS} -dynamiclib foo2.c -o libfoo2.dylib
56 libbar.dylib : bar.c libfoo2.dylib
57 ${CC} ${CCFLAGS} -dynamiclib bar.c -o libbar.dylib libfoo2.dylib
60 clean:
61 ${RM} ${RMFLAGS} *~ main libbar.dylib libfoo.dylib libfoo1.dylib libfoo2.dylib