1#	$Header: /usr/people/sam/tiff/libtiff/RCS/Makefile.sco,v 1.5 1994/07/26 16:47:20 sam Exp $
2# Makefile for SCO Unix 3.2.4 on Intel 386/486.
3#
4# Tag Image File Format Library
5#
6# Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994 Sam Leffler
7# Copyright (c) 1991, 1992, 1993, 1994 Silicon Graphics, Inc.
8#
9# Permission to use, copy, modify, distribute, and sell this software and
10# its documentation for any purpose is hereby granted without fee, provided
11# that (i) the above copyright notices and this permission notice appear in
12# all copies of the software and related documentation, and (ii) the names of
13# Sam Leffler and Silicon Graphics may not be used in any advertising or
14# publicity relating to the software without the specific, prior written
15# permission of Sam Leffler and Silicon Graphics.
16#
17# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
18# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
19# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
20#
21# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
22# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
23# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
24# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
25# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
26# OF THIS SOFTWARE.
27#
28DESTDIR=.
29#
30AR=	/bin/ar
31RANLIB=	/bin/ar ts
32NULL=
33
34IPATH=	-I.
35COPTS=	-g
36CFLAGS=	${COPTS} ${IPATH}
37#
38INCS=	tiff.h tiffio.h
39SRCS=	tif_fax3.c \
40	tif_fax4.c \
41	tif_aux.c \
42	tif_ccittrle.c \
43	tif_close.c \
44	tif_compress.c \
45	tif_dir.c \
46	tif_dirinfo.c \
47	tif_dirread.c \
48	tif_dirwrite.c \
49	tif_dumpmode.c \
50	tif_error.c \
51	tif_getimage.c \
52	tif_jpeg.c \
53	tif_flush.c \
54	tif_lzw.c \
55	tif_next.c \
56	tif_open.c \
57	tif_packbits.c \
58	tif_print.c \
59	tif_read.c \
60	tif_swab.c \
61	tif_strip.c \
62	tif_thunder.c \
63	tif_tile.c \
64	tif_unix.c \
65	tif_version.c \
66	tif_warning.c \
67	tif_write.c \
68	${NULL}
69OBJS=	tif_fax3.o \
70	tif_fax4.o \
71	tif_aux.o \
72	tif_ccittrle.o \
73	tif_close.o \
74	tif_compress.o \
75	tif_dir.o \
76	tif_dirinfo.o \
77	tif_dirread.o \
78	tif_dirwrite.o \
79	tif_dumpmode.o \
80	tif_error.o \
81	tif_getimage.o \
82	tif_jpeg.o \
83	tif_flush.o \
84	tif_lzw.o \
85	tif_next.o \
86	tif_open.o \
87	tif_packbits.o \
88	tif_print.o \
89	tif_read.o \
90	tif_swab.o \
91	tif_strip.o \
92	tif_thunder.o \
93	tif_tile.o \
94	tif_unix.o \
95	tif_version.o \
96	tif_warning.o \
97	tif_write.o \
98	${NULL}
99ALL=	libtiff.a
100
101all:	 ${ALL}
102
103${ALL}:	${OBJS}
104	${AR} rc libtiff.a $?
105	${RANLIB} libtiff.a
106
107${OBJS}: tiffio.h tiff.h tiffcomp.h tiffiop.h tiffconf.h
108tif_fax3.o: tif_fax3.c g3states.h t4.h tif_fax3.h
109
110g3states.h: mkg3states.c t4.h
111	${CC} -o mkg3states ${CFLAGS} mkg3states.c
112	./mkg3states > g3states.h
113
114install: all installh
115	-for i in ${ALL}; do \
116		${INSTALL} -c -m 644 $$i ${DESTDIR}/lib/$$i; \
117		${RANLIB} ${DESTDIR}/lib/$$i; \
118	done
119
120installh: ${INCS}
121	-for i in ${INCS}; do \
122	    h=`basename $$i`; \
123	    cmp -s $$i ${DESTDIR}/include/$$h || \
124	        ${INSTALL} -c -m 444 $$i ${DESTDIR}/include/$$h; \
125	done
126
127clean clobber:
128	rm -f ${ALL} ${OBJS} core a.out mkg3states g3states.h
129
130tags:	${SRCS}
131	${CTAGS} ${SRCS}
132