"Initial commit to Gerrit"
[profile/ivi/libtiff.git] / contrib / mac-mpw / top.make
1 #
2 # Tag Image File Format Library
3 #
4 # Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994 Sam Leffler
5 # Copyright (c) 1991, 1992, 1993, 1994 Silicon Graphics, Inc.
6
7 # Permission to use, copy, modify, distribute, and sell this software and 
8 # its documentation for any purpose is hereby granted without fee, provided
9 # that (i) the above copyright notices and this permission notice appear in
10 # all copies of the software and related documentation, and (ii) the names of
11 # Sam Leffler and Silicon Graphics may not be used in any advertising or
12 # publicity relating to the software without the specific, prior written
13 # permission of Stanford and Silicon Graphics.
14
15 # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
16 # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
17 # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
18
19 # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
20 # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
21 # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
22 # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
23 # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
24 # OF THIS SOFTWARE.
25 #
26
27 #
28 # Makefile for Mac using MPW 3.2.3 and MPW C 3.2.4
29 #
30 #
31 #  Written by: Niles D. Ritter
32 #
33
34 RM= delete -y -i
35 PORT=:port:
36 LIBTIFF=:libtiff:
37 TOOLS=:tools:
38 CONTRIB=:contrib:mac-mpw:
39
40 MACTRANS="{CONTRIB}mactrans"
41
42 NULL=
43
44 MAKEFILES = %b6
45         {PORT}Makefile %b6
46         {LIBTIFF}Makefile %b6
47         {TOOLS}Makefile %b6
48         {NULL}
49         
50 all %c4 PORT LIBTIFF TOOLS
51
52 MAKEFILES %c4 {MAKEFILES}
53 TOOLS %c4 LIBTIFF
54
55 LIBTIFF %c4 PORT
56
57 # Create the port routines
58 PORT %c4 {PORT}Makefile
59         directory {PORT}
60         (make || set status 0) > build.mpw
61         set echo 1
62         execute build.mpw
63         set echo 0
64         {RM} build.mpw  || set status 0
65         directory ::
66
67 # Create the port routines
68 LIBTIFF %c4 {LIBTIFF}Makefile
69         directory {LIBTIFF}
70         (make || set status 0) > build.mpw
71         set echo 1
72         execute build.mpw
73         set echo 0
74         {RM} build.mpw  || set status 0
75         directory ::
76
77 # Create the tools
78 TOOLS %c4 {TOOLS}Makefile
79         directory {TOOLS}
80         (make || set status 0) > build.mpw
81         set echo 1
82         execute build.mpw
83         set echo 0
84         {RM} build.mpw  || set status 0
85         directory ::
86
87 # Makefile dependencies
88 {PORT}Makefile  %c4 {CONTRIB}port.make
89         catenate {CONTRIB}port.make | {MACTRANS} > {PORT}Makefile
90
91 {LIBTIFF}Makefile  %c4 {CONTRIB}libtiff.make
92         catenate {CONTRIB}libtiff.make | {MACTRANS} > {LIBTIFF}Makefile
93
94 {TOOLS}Makefile  %c4 {CONTRIB}tools.make
95         catenate {CONTRIB}tools.make | {MACTRANS} > {TOOLS}Makefile
96
97
98 clean %c4  clean.port clean.contrib clean.libtiff clean.tools clean.make
99
100 clean.port %c4
101         directory {PORT}
102         (make clean || set status 0) > purge
103         purge
104         {RM} purge  || set status 0
105         {RM} Makefile || set status 0
106         {RM} build.mpw || set status 0
107         cd ::
108
109 clean.contrib %c4
110         {RM} {MACTRANS} || set status 0
111         
112 clean.libtiff %c4
113         directory {LIBTIFF}
114         (make clean || set status 0) > purge
115         purge
116         {RM} purge  || set status 0
117         {RM} Makefile || set status 0
118         {RM} build.mpw || set status 0
119         cd ::
120
121 clean.tools %c4
122         directory {TOOLS}
123         (make clean || set status 0) > purge
124         purge
125         {RM} purge  || set status 0
126         {RM} Makefile || set status 0
127         {RM} build.mpw || set status 0
128         cd ::
129
130 clean.make %c4
131         {RM} {MAKEFILES} || set status 0
132         {RM} build.mpw || set status 0
133