]> git.saurik.com Git - apple/dyld.git/blob - unit-tests/test-cases/dlopen-init-dlopen-notify/Makefile
dyld-733.6.tar.gz
[apple/dyld.git] / unit-tests / test-cases / dlopen-init-dlopen-notify / Makefile
1 all-check: all check
2
3 check:##
4 # Copyright (c) 2007 Apple Inc. All rights reserved.
5 #
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.
14 #
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.
22 #
23 # @APPLE_LICENSE_HEADER_END@
24 ##
25 TESTROOT = ../..
26 include ${TESTROOT}/include/common.makefile
27
28
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 ###
35
36 all-check: all check
37
38 check:
39 ./main
40
41 all: main
42
43 main : main.cxx libfoo.dylib
44 ${CXX} ${CCXXFLAGS} -I${TESTROOT}/include -o main main.cxx
45
46
47 libfoo.dylib : foo.c libfoo1.dylib libfoo2.dylib
48 ${CC} ${CCFLAGS} -dynamiclib foo.c -o libfoo.dylib libfoo1.dylib libfoo2.dylib
49
50 libfoo1.dylib : foo1.c libbar.dylib
51 ${CC} ${CCFLAGS} -dynamiclib foo1.c -o libfoo1.dylib
52
53 libfoo2.dylib : foo2.c
54 ${CC} ${CCFLAGS} -dynamiclib foo2.c -o libfoo2.dylib
55
56 libbar.dylib : bar.c libfoo2.dylib
57 ${CC} ${CCFLAGS} -dynamiclib bar.c -o libbar.dylib libfoo2.dylib
58
59
60 clean:
61 ${RM} ${RMFLAGS} *~ main libbar.dylib libfoo.dylib libfoo1.dylib libfoo2.dylib
62