1#
2# Tag Image File Format Library
3#
4# Copyright (c) 1988, 1989, 1990, 1991, 1992 Sam Leffler
5# Copyright (c) 1991, 1992 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 Sam Leffler 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# This Makefile is for use with microsoft nmake version 1.50 and
27# Microsoft 32-bit C/C++ Compiler 9.00
28#
29DESTDIR=.
30#
31IPATH=	-I.
32CONF_LIBRARY=$(NULL)
33COPTS=	-Oxa -DBSDTYPES -Zd
34CFLAGS=	$(COPTS)  $(CONF_LIBRARY)
35#
36INCS=	tiff.h tiffio.h
37SRCS=	tif_aux.c \
38	tif_close.c \
39	tif_codec.c \
40	tif_compress.c \
41	tif_dir.c \
42	tif_dirinfo.c \
43	tif_dirread.c \
44	tif_dirwrite.c \
45	tif_dumpmode.c \
46	tif_error.c \
47	tif_getimage.c \
48	tif_jpeg.c \
49	tif_flush.c \
50	tif_lzw.c \
51	tif_next.c \
52	tif_open.c \
53	tif_packbits.c \
54	tif_predict \
55	tif_print.c \
56	tif_read.c \
57	tif_swab.c \
58	tif_strip.c \
59	tif_thunder.c \
60	tif_tile.c \
61	tif_version.c \
62	tif_warning.c \
63	tif_write.c \
64	tif_win32.c
65
66
67OBJS=	tif_aux.obj \
68	tif_close.obj \
69	tif_codec.obj \
70	tif_compress.obj \
71	tif_dir.obj \
72	tif_dirinfo.obj \
73	tif_dirread.obj \
74	tif_dirwrite.obj \
75	tif_dumpmode.obj \
76	tif_error.obj \
77	tif_getimage.obj \
78	tif_jpeg.obj \
79	tif_flush.obj \
80	tif_lzw.obj \
81	tif_next.obj \
82	tif_open.obj \
83	tif_packbits.obj \
84	tif_predict.obj \
85	tif_print.obj \
86	tif_read.obj \
87	tif_swab.obj \
88	tif_strip.obj \
89	tif_thunder.obj \
90	tif_tile.obj \
91	tif_version.obj \
92	tif_warning.obj \
93	tif_write.obj \
94	tif_win32.obj
95
96
97
98ALL=	libtiff.lib
99
100all:	 $(ALL)
101
102%.obj : %.c
103	$(CC) $(CFLAGS) -c $*.c
104
105
106#.INCLUDE .IGNORE : depend
107
108libtiff.lib: $(OBJS)
109	 - del libtiff.lib
110	 lib /OUT:libtiff.lib $(OBJS)
111
112
113#To include fax3 support, you need to modify mkg3states.c so it could run
114#under windows 95 or NT. This application make the file g3state.h.
115#after that, you have to add to the build script : tif_fax3.c and tif_fax3.obj
116#and define CCITT_SUPPORT in the file tifconf.h
117
118#$(OBJS): tiffio.h tiff.h tiffcomp.h tiffiop.h tiffconf.h
119#tif_fax3.obj: tif_fax3.c g3states.h t4.h tif_fax3.h
120
121#g3states.h: mkg3states.c t4.h
122#	$(CC) $(CFLAGS) mkg3states.c
123#	mkg3states -c > g3states.h
124
125
126clean:
127	del *.obj
128        del mkg3stat
129        del g3states.h
130
131tags:	$(SRCS)
132	$(CTAGS) $(SRCS)
133