2 # Tag Image File Format Library
4 # Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994 Sam Leffler
5 # Copyright (c) 1991, 1992, 1993, 1994 Silicon Graphics, Inc.
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 Sam Leffler and Silicon Graphics.
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.
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
28 # Makefile for Mac using MPW 3.3.1 and MPW C 3.2.4
30 # Note: This file must be run through "mactrans" before it can
31 # be recognized by MPW as a valid makefile. The problem is that MPW
32 # uses special non-ASCII characters, which tend to get mangled when stored
33 # in unix tar files, etc. "mactrans" is built as part of the TIFF MPW build.
39 # FAX Options: If you do not wish to include the FAX options, uncomment
40 # the first four definitions and comment out the next four
41 # definitions. Note that to build programs with the FAX libraries you
42 # have to include "-model far" in your compile and link statements.
44 # Also, to build the fax code (including the tif_fax3sm.c file, which is
45 # created by the MPW tool "mkg3states", also built below), you will
46 # need to size the MPW program up to about 6 megabytes or so.
50 #FAX_SOURCES = tif_fax3.c
53 FAX_OPTIONS = -model far
54 FAX_OBJECTS = tif_fax3.c.o tif_fax3sm.c.o
55 FAX_SOURCES = tif_fax3.c tif_fax3sm.c
56 FAX_CONFIG = -d CCITT_SUPPORT
63 LIBPORT=::port:libport.o
67 {C} -model far {CFLAGS} -s {Default} {DepDir}{Default}.c -o {TargDir}{Default}.c.o
76 -d COMPRESSION_SUPPORT %b6
77 -d PACKBITS_SUPPORT %b6
79 -d THUNDER_SUPPORT %b6
82 CFLAGS= {FAX_OPTIONS} {IPATH} {CONF_LIBRARY} {CONF_COMPRESSION}
157 Lib {OBJS} -o libtiff.o
160 {OBJS} %c4 tiffio.h tiff.h tiffcomp.h tiffiop.h tiffconf.h
163 # The finite state machine tables used by the G3/G4 decoders
164 # are generated by the mkg3states program. On systems without
165 # make these rules have to be manually carried out.
167 tif_fax3sm.c %c4 mkg3states tif_fax3.h
168 {RM} tif_fax3sm.c || set status 0
169 :mkg3states -c const tif_fax3sm.c
171 mkg3states.c.o %c4 mkg3states.c
172 C -model far mkg3states.c -o mkg3states.c.o
174 mkg3states %c4%c4 mkg3states.c.o
175 Link -model far -d -c 'MPS ' -t MPST %b6
178 "{CLibraries}"StdClib.o %b6
179 "{Libraries}"Stubs.o %b6
180 "{Libraries}"Runtime.o %b6
181 "{Libraries}"Interface.o %b6
184 ALPHA = "{DEPTH}dist:tiff.alpha"
185 VERSION = "{DEPTH}VERSION"
187 version.h %c4 {VERSION} {ALPHA}
188 Set VERSION1 `catenate {VERSION}`
189 Set VERSION2 "{VERSION1}`streamedit -e "1 rep /%a5%c5 %c5 (%c5)%a81/ %a81" {ALPHA}`"
190 delete -y -i version.h || set status 0
191 echo '#define VERSION "LIBTIFF, Version' {VERSION2} '\nCopyright (c) 1988-1995 Sam Leffler\nCopyright (c) 1991-1995 Silicon Graphics, Inc."' >version.h
193 tif_version.c.o %c4 version.h
196 {RM} {ALL} || set status 0
197 {RM} {OBJS} || set status 0
198 {RM} mkg3states || set status 0
199 {RM} mkg3states.c.o || set status 0
200 {RM} tif_fax3sm.c%c5 || set status 0
201 {RM} version.h || set status 0