1# MMS Description file for the Tag Image File Format Library
2#
3# Tag Image File Format Library
4#
5# Copyright (c) 1988, 1989, 1990, 1991, 1992 Sam Leffler
6# Copyright (c) 1991, 1992 Silicon Graphics, Inc.
7#
8# Permission to use, copy, modify, distribute, and sell this software and
9# its documentation for any purpose is hereby granted without fee, provided
10# that (i) the above copyright notices and this permission notice appear in
11# all copies of the software and related documentation, and (ii) the names of
12# Sam Leffler and Silicon Graphics may not be used in any advertising or
13# publicity relating to the software without the specific, prior written
14# permission of Stanford and Silicon Graphics.
15#
16# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
17# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
18# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
19#
20# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
21# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
22# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
23# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
24# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
25# OF THIS SOFTWARE.
26#
27# This MMS description file was written by Rick Dyson on or before 11-NOV-1991
28#	(dyson@IowaSP.Physics.UIowa.EDU)
29#	Updated: 28-APR-1992 -- LIBTIFF v3.0  (19-FEB-1992) for XV (v2.21)
30#	          2-MAR-1993 -- LIBTIFF v3.21 (29-OCT-1992) for XV (v3.00)
31#                14-JUL-1994 -- Added Alpha Support RLD
32#
33# For DEC C (or ALPHA) users, you must add a MACRO qualifier to the
34# command line, i.e.,
35#       MMS /Description = Makefile.mms /Macro = "ALPHA = 1"
36#
37# It is based on the Unix Makefile by Leffler
38#
39
40NULL =
41
42IPATH =	[]
43#
44# Library-wide configuration defines:
45#    MMAP_SUPPORT	add support for memory mapping read-only files
46#    COLORIMETRY_SUPPORT add support for 6.0 colorimetry tags
47#    JPEG_SUPPORT	add support for 6.0 JPEG tags & JPEG algorithms
48#    YCBCR_SUPPORT	add support for 6.0 YCbCr tags
49#    CMYK_SUPPORT	add support for 6.0 CMYK tags
50#
51# Compression configuration defines:
52#    CCITT_SUPPORT	add support for CCITT Group 3 & 4 algorithms
53#    PACKBITS_SUPPORT	add support for Macintosh PackBits algorithm
54#    LZW_SUPPORT	add support for LZW algorithm
55#    THUNDER_SUPPORT	add support for ThunderScan 4-bit RLE algorithm
56#    NEXT_SUPPORT	add support for NeXT 2-bit RLE algorithm
57#    JPEG_SUPPORT	add support for JPEG DCT algorithm
58#
59# Note that if you change the library-wide configuration, you'll
60# need to manual force a full rebuild.  Changing the configuration
61# of which compression algorithms are included in the library is
62# automatically handled (i.e. tif_compress.o has a dependency on
63# the Makefile).
64#
65
66.ifdef ALPHA
67FLAGS =		/Warnings = NoInformationals /Standard = VAXC
68DEFS = 		/Define = ("BSDTYPES=1", "USE_VARARGS=1", "USE_PROTOTYPES=0", \
69		"USE_CONST",__STDC__)
70.else
71FLAGS =
72DEFS = 		/Define = ("BSDTYPES=1", "USE_VARARGS=1", "USE_PROTOTYPES=0", \
73		"USE_CONST", __STDC__)
74.endif
75
76.ifdef DEBUG
77OPTIMIZE = 	/NoOptimize
78DBG = 		/Debug
79.else
80OPTIMIZE = 	/Optimize
81DBG = 		/NoDebug
82.endif
83
84INCS =		/Include_Directory = ($(IPATH))
85CFLAGS = 	$(CFLAGS) $(FLAGS) $(DEFS) $(INCS) $(OPTIMIZE) $(DBG)
86
87INCLUDES =	tiff.h tiffio.h
88
89SRCS =	tif_fax3.c \
90	tif_fax4.c \
91	tif_aux.c \
92	tif_ccittrle.c \
93	tif_close.c \
94	tif_compress.c \
95	tif_dir.c \
96	tif_dirinfo.c \
97	tif_dirread.c \
98	tif_dirwrite.c \
99	tif_dumpmode.c \
100	tif_error.c \
101	tif_getimage.c \
102	tif_jpeg.c \
103	tif_flush.c \
104	tif_lzw.c \
105        tif_next.c \
106	tif_open.c \
107	tif_packbits.c \
108	tif_print.c \
109	tif_read.c \
110	tif_swab.c \
111	tif_strip.c \
112	tif_thunder.c \
113	tif_tile.c \
114	tif_version.c \
115        tif_vms.c \
116	tif_warning.c \
117	tif_write.c
118
119OBJS =	tif_fax3.obj \
120	tif_fax4.obj \
121	tif_aux.obj \
122	tif_ccittrle.obj \
123	tif_close.obj \
124	tif_compress.obj \
125	tif_dir.obj \
126	tif_dirinfo.obj \
127	tif_dirread.obj \
128	tif_dirwrite.obj \
129	tif_dumpmode.obj \
130	tif_error.obj \
131	tif_getimage.obj \
132	tif_jpeg.obj \
133	tif_flush.obj \
134	tif_lzw.obj \
135        tif_next.obj \
136	tif_open.obj \
137	tif_packbits.obj \
138	tif_print.obj \
139	tif_read.obj \
140	tif_strip.obj \
141	tif_swab.obj \
142	tif_thunder.obj \
143	tif_tile.obj \
144	tif_version.obj \
145        tif_vms.obj \
146	tif_warning.obj \
147	tif_write.obj
148
149OBJLIST = tif_fax3.obj,tif_fax4.obj,tif_aux.obj,tif_ccittrle.obj,tif_close.obj,tif_compress.obj,tif_dir.obj,tif_dirinfo.obj,tif_dirread.obj,tif_dirwrite.obj,tif_dumpmode.obj,tif_error.obj,tif_getimage.obj,tif_jpeg.obj,tif_flush.obj,tif_lzw.obj,tif_next.obj,tif_open.obj,tif_packbits.obj,tif_print.obj,tif_read.obj,tif_strip.obj,tif_swab.obj,tif_thunder.obj,tif_tile.obj,tif_version.obj,tif_vms.obj,tif_warning.obj,tif_write.obj
150
151TIFFLIB =	libtiff.olb
152
153.first
154.ifdef ALPHA
155	@- Define /NoLog Sys DECC$Library_Include
156.else
157	@- Define /NoLog Sys Sys$Library
158.endif
159
160all :		lib
161	@ continue
162
163lib :		$(TIFFLIB)
164	@ continue
165
166libtiff.olb :		$(OBJS)
167        If "''F$Search ("$(TIFFLIB)")'" .eqs. "" Then Library /Create $(TIFFLIB)
168	Library /Replace $(TIFFLIB) $(OBJLIST)
169
170$(OBJS) : 	tiffio.h tiff.h tiffcomp.h tiffiop.h tiffconf.h
171
172tif_fax3.obj :	tif_fax3.c g3states.h t4.h tif_fax3.h
173
174mkg3states.exe :	mkg3states.c t4.h
175	- $(CC) $(CFLAGS) mkg3states.c
176.ifdef ALPHA
177.else
178        - $ Define /User_Mode LNK$Library Sys$Library:VAXCRTL
179.endif
180	- $(LINK) $(LINKFLAGS) mkg3states
181
182g3states.h :		mkg3states.exe
183	Define /User_Mode Sys$Output g3states.h
184	Run mkg3states.exe
185#	Mcr Sys$Disk:[]mkg3states.exe > g3states.h
186#   if you want to use the Unix-style redirection in mkg3states, you will
187#   need to add the call to getredirection in mkg3states.  Since this is only
188#   run once, I didn't think it was really necessary anymore.   RLD 24-FEB-1993
189#[-]argproc.obj :	[-]argproc.c [-]includes.h
190#	$(CC) $(CFLAGS) [-]argproc.c
191
192clean :
193	@- Set Protection = Owner:RWED *.*;-1,*.obj
194	- Purge /NoLog /NoConfirm *.*
195	- Delete /NoLog /NoConfirm *.obj;*,*.exe;*,*.olb;
196	- Delete /NoLog /NoConfirm g3states.h;*
197