source: trunk/third/tiff/libtiff/Makefile.in @ 18174

Revision 18174, 12.0 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18173, which included commits to RCS files with non-trunk default branches.
Line 
1#       $Header: /afs/dev.mit.edu/source/repository/third/tiff/libtiff/Makefile.in,v 1.1.1.1 2002-12-26 02:37:11 ghudson Exp $
2#
3# Tag Image File Format Library
4#
5# Copyright (c) 1988-1997 Sam Leffler
6# Copyright (c) 1991-1997 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 Sam Leffler 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
28SRCDIR  = @LIBSRCDIR@
29
30#
31# VERSION:      @VERSION@
32# DATE:         @DATE@
33# TARGET:       @TARGET@
34# CCOMPILER:    @CCOMPILER@
35#
36SHELL   = @SCRIPT_SH@
37SCRIPT_SH = @SCRIPT_SH@
38NULL    =
39CC      = @CCOMPILER@
40AR      = @AR@
41AROPTS  = @AROPTS@
42RANLIB  = @RANLIB@
43INSTALL = @INSTALL@
44
45#
46# If JPEG support is to be included and the Independent JPEG
47# Software distribution is not installed then DIR_JPEG must
48# refer to the directory where the include files reside.
49#
50# Similarly, if the libgz distribution is not installed, then
51# DIR_LIBGZ must refer to the directory where the include files
52# are located.  Note that recent versions
53#
54IPATH   = -I. -I${SRCDIR} @COPT_LIBINC@
55#
56# To enable JPEG support include -DJPEG_SUPPORT here.
57# To enable Deflate support add a -DZIP_SUPPORT here.
58# Note that where the configure script is used these defines
59# are automatically setup when JPEG/ZIP is set to "yes".
60#
61# Otherwise, consult tiffconf.h for information on controlling
62# the configuration of optional library support.
63#
64CONF_LIBRARY=@CONF_JPEG@ @CONF_ZIP@
65COPTS   = @GCOPTS@
66OPTIMIZER=@OPTIMIZER@
67CFLAGS  = @ENVOPTS@ @LIBCOPTS@ ${COPTS} ${OPTIMIZER} ${IPATH} ${CONF_LIBRARY}
68#
69SRCS    = \
70        tif_aux.c \
71        tif_close.c \
72        tif_codec.c \
73        tif_compress.c \
74        tif_dir.c \
75        tif_dirinfo.c \
76        tif_dirread.c \
77        tif_dirwrite.c \
78        tif_dumpmode.c \
79        tif_error.c \
80        tif_fax3.c \
81        tif_fax3sm.c \
82        tif_getimage.c \
83        tif_jpeg.c \
84        tif_flush.c \
85        tif_luv.c \
86        tif_lzw.c \
87        tif_next.c \
88        tif_ojpeg.c \
89        tif_open.c \
90        tif_packbits.c \
91        tif_pixarlog.c \
92        tif_predict.c \
93        tif_print.c \
94        tif_read.c \
95        tif_swab.c \
96        tif_strip.c \
97        tif_thunder.c \
98        tif_tile.c \
99        tif_unix.c \
100        tif_version.c \
101        tif_warning.c \
102        tif_write.c \
103        tif_zip.c \
104        ${NULL}
105OBJS    = \
106        tif_aux.o \
107        tif_close.o \
108        tif_codec.o \
109        tif_compress.o \
110        tif_dir.o \
111        tif_dirinfo.o \
112        tif_dirread.o \
113        tif_dirwrite.o \
114        tif_dumpmode.o \
115        tif_error.o \
116        tif_fax3.o \
117        tif_fax3sm.o \
118        tif_getimage.o \
119        tif_jpeg.o \
120        tif_flush.o \
121        tif_luv.o \
122        tif_lzw.o \
123        tif_next.o \
124        tif_ojpeg.o \
125        tif_open.o \
126        tif_packbits.o \
127        tif_pixarlog.o \
128        tif_predict.o \
129        tif_print.o \
130        tif_read.o \
131        tif_swab.o \
132        tif_strip.o \
133        tif_thunder.o \
134        tif_tile.o \
135        tif_unix.o \
136        tif_version.o \
137        tif_warning.o \
138        tif_write.o \
139        tif_zip.o \
140        ${NULL}
141TARGETS = libtiff.a
142
143all:    ${TARGETS}
144        if [ @DSO@dso != nodso ]; then \
145            ${MAKE} -${MAKEFLAGS} @DSO@dso; \
146        else \
147            true; \
148        fi
149
150libtiff.a: ${OBJS}
151        ${AR} ${AROPTS} libtiff.a $?
152        ${RANLIB} libtiff.a
153
154#
155# NB: The configure script verifies that the configured
156# tools are capable of producing a DSO before enabling
157# their creation/use.  The following rules are effectively
158# duplicated in the configure script to do this verification.
159# This means that if you want to add support for building a
160# DSO on another system you'll need to modify this file *and*
161# configure if you want the right thing to happen automatically
162# (should probably be fixed up).
163#
164
165# default IRIX DSO building rule
166IRIXdso: ${OBJS}
167        @if [ "`basename ${CC}`" = "gcc" ]; then \
168           ${LD} -n32 @ENVOPTS@ -o libtiff.@DSOSUF@ -shared -rdata_shared \
169           ${OBJS}; \
170        else \
171            ${CC} @ENVOPTS@ -o libtiff.@DSOSUF@ -shared -rdata_shared \
172                -check_registry ${SRCDIR}/../port/irix/so_locations \
173                -quickstart_info \
174                ${OBJS} @LIBJPEG@ @LIBGZ@; \
175        fi
176        touch $@
177# special rule for IRIX 5.2
178IRIX52dso: ${OBJS}
179        ${LD} -elf -o libtiff.@DSOSUF@ -shared -no_unresolved -all ${OBJS} \
180            @LIBJPEG@ @LIBGZ@ -lc -lm
181        touch $@
182# Solaris 2.x
183SOLARISdso: ${OBJS}
184        ${LD} -L@DIR_LIB@ -G -h libtiff.@DSOSUF@ -o libtiff.@DSOSUF@ ${OBJS}
185        touch $@
186# HP-UX 10.x+
187HPUXdso: ${OBJS}
188        ${LD} -b -o libtiff.@DSOSUF_VERSION@ +h libtiff.@DSOSUF_VERSION@ ${OBJS}
189        touch $@
190# AIX 2.3.5 and 4.1.1
191AIXdso: ${OBJS}
192        rm -f libtiff.syms shr.o
193        echo "#!" > libtiff.syms
194        /bin/dump -g libtiff.a | sed -n -e \
195              's/^[     ]*[0-9][0-9]*[   ]*\([^  .][^   ]*\)$$/\1/p' \
196              >> libtiff.syms
197        ${LD} -o shr.o libtiff.a -H512 -T512 -bM\:SRE \
198            -bE\:libtiff.syms @LIBJPEG@ @LIBGZ@ -lc -lm -L@DIR_LIB@
199        rm -f libtiff.syms libtiff.@DSOSUF@
200        ${AR} ${AROPTS} libtiff.@DSOSUF@ shr.o
201        rm -f shr.o
202        touch $@
203# GNU linker shared libraries
204GNULDdso: ${OBJS}
205        ${CC} -shared -Wl,-soname,libtiff.@DSOSUF@ \
206            -o libtiff.@DSOSUF_VERSION@  ${OBJS} \
207                @LIBJPEG@ @LIBGZ@ @MACHDEPLIBS@
208        rm -f libtiff.@DSOSUF@
209        if [ @DSOSUF_VERSION@ != @DSOSUF@ ] ; then \
210          @LN@ @LN_S@ libtiff.@DSOSUF_VERSION@ libtiff.@DSOSUF@; \
211        fi
212        touch $@
213DARWINdso: ${OBJS}
214        ${CC} -dynamiclib -undefined suppress \
215          -install_name libtiff.@DSOSUF@ \
216          -o libtiff.@DSOSUF_VERSION@  ${OBJS} \
217          @LIBJPEG@ @LIBGZ@ @MACHDEPLIBS@
218        rm -f libtiff.@DSOSUF@
219        if [ @DSOSUF_VERSION@ != @DSOSUF@ ] ; then \
220          @LN@ @LN_S@ libtiff.@DSOSUF_VERSION@ libtiff.@DSOSUF@; \
221        fi
222        touch $@
223# NetBSD 1.1 or FreeBSD (old style)
224NETBSDdso FREEBSDdso oldOPENBSDdso: ${OBJS}
225        @rm -f libtiff_pic.a
226        @${AR} cq libtiff_pic.a `lorder ${OBJS} | tsort -q`
227        ${RANLIB} libtiff_pic.a
228        ${LD} -x -Bshareable -Bforcearchive -o libtiff.@DSOSUF@ libtiff_pic.a
229        rm -f libtiff_pic.a
230        touch $@
231# linux ELF shared lib rule
232LINUXdso:  ${OBJS}
233        ${CC} -shared -Wl,-soname,libtiff.@DSOSUF@ \
234            -o libtiff.@DSOSUF_VERSION@  ${OBJS} \
235                @LIBJPEG@ @LIBGZ@ @MACHLIBDEPS@
236        rm -f libtiff.@DSOSUF@
237        @LN@ @LN_S@ libtiff.@DSOSUF_VERSION@ libtiff.@DSOSUF@
238        touch $@
239# OSF/1 3.2 shared lib rule
240OSFdso: ${OBJS}
241        ${LD} -o libtiff.@DSOSUF@ -shared -error_unresolved ${OBJS} @LIBJPEG@ @LIBGZ@ -lc -lm
242
243OPENBSDdso: ${OBJS}
244        ${CC} -shared @LIBCOPTS@ -o libtiff.@DSOSUF_VERSION@ ${OBJS} @LIBJPEG@ @LIBGZ@ -lm
245        touch $@
246
247
248${OBJS}: ${SRCDIR}/tiffio.h ${SRCDIR}/tiff.h ${SRCDIR}/tif_dir.h
249${OBJS}: ${SRCDIR}/tiffcomp.h ${SRCDIR}/tiffiop.h ${SRCDIR}/tiffconf.h
250${OBJS}: ${SRCDIR}/tiffvers.h
251
252VERSION = @VERSIONFILE@
253
254${SRCDIR}/tiffvers.h: ${VERSION} ${SRCDIR}/mkversion.c
255        ${CC} -o mkversion ${CFLAGS} ${SRCDIR}/mkversion.c
256        rm -f ${SRCDIR}/tiffvers.h
257        ./mkversion -v ${VERSION} ${SRCDIR}/tiffvers.h
258
259#
260# The finite state machine tables used by the G3/G4 decoders
261# are generated by the mkg3states program.  On systems without
262# make these rules have to be manually carried out.
263#
264tif_fax3sm.c: ${SRCDIR}/mkg3states.c ${SRCDIR}/tif_fax3.h
265        ${CC} -o mkg3states ${CFLAGS} ${SRCDIR}/mkg3states.c
266        rm -f tif_fax3sm.c; ./mkg3states -c const tif_fax3sm.c
267
268tif_aux.o: ${SRCDIR}/tif_aux.c
269        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_aux.c
270tif_close.o: ${SRCDIR}/tif_close.c
271        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_close.c
272tif_codec.o: ${SRCDIR}/tif_codec.c
273        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_codec.c
274tif_compress.o: ${SRCDIR}/tif_compress.c
275        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_compress.c
276tif_dir.o: ${SRCDIR}/tif_dir.c
277        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_dir.c
278tif_dirinfo.o: ${SRCDIR}/tif_dirinfo.c
279        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_dirinfo.c
280tif_dirread.o: ${SRCDIR}/tif_dirread.c
281        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_dirread.c
282tif_dirwrite.o: ${SRCDIR}/tif_dirwrite.c
283        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_dirwrite.c
284tif_dumpmode.o: ${SRCDIR}/tif_dumpmode.c
285        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_dumpmode.c
286tif_error.o: ${SRCDIR}/tif_error.c
287        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_error.c
288tif_fax3.o: ${SRCDIR}/tif_fax3.c ${SRCDIR}/t4.h ${SRCDIR}/tif_fax3.h
289        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_fax3.c
290tif_getimage.o: ${SRCDIR}/tif_getimage.c
291        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_getimage.c
292tif_jpeg.o: ${SRCDIR}/tif_jpeg.c @DEPEND_JPEGLIB@
293        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_jpeg.c
294tif_flush.o: ${SRCDIR}/tif_flush.c
295        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_flush.c
296tif_luv.o: ${SRCDIR}/tif_luv.c
297        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_luv.c
298tif_lzw.o: ${SRCDIR}/tif_lzw.c ${SRCDIR}/tif_predict.h
299        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_lzw.c
300tif_next.o: ${SRCDIR}/tif_next.c
301        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_next.c
302tif_open.o: ${SRCDIR}/tif_open.c
303        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_open.c
304tif_packbits.o: ${SRCDIR}/tif_packbits.c
305        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_packbits.c
306tif_pixarlog.o: ${SRCDIR}/tif_pixarlog.c
307        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_pixarlog.c
308tif_predict.o: ${SRCDIR}/tif_predict.c ${SRCDIR}/tif_predict.h
309        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_predict.c
310tif_print.o: ${SRCDIR}/tif_print.c
311        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_print.c
312tif_read.o: ${SRCDIR}/tif_read.c
313        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_read.c
314tif_swab.o: ${SRCDIR}/tif_swab.c
315        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_swab.c
316tif_strip.o: ${SRCDIR}/tif_strip.c
317        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_strip.c
318tif_thunder.o: ${SRCDIR}/tif_thunder.c
319        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_thunder.c
320tif_tile.o: ${SRCDIR}/tif_tile.c
321        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_tile.c
322tif_unix.o: ${SRCDIR}/tif_unix.c
323        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_unix.c
324tif_version.o: ${SRCDIR}/tif_version.c
325        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_version.c
326tif_warning.o: ${SRCDIR}/tif_warning.c
327        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_warning.c
328tif_write.o: ${SRCDIR}/tif_write.c
329        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_write.c
330tif_zip.o: ${SRCDIR}/tif_zip.c ${SRCDIR}/tif_predict.h @DEPEND_ZLIB@
331        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_zip.c
332
333tif_apple.o: ${SRCDIR}/tif_apple.c
334        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_apple.c
335tif_atari.o: ${SRCDIR}/tif_atari.c
336        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_atari.c
337tif_msdos.o: ${SRCDIR}/tif_msdos.c
338        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_msdos.c
339tif_vms.o: ${SRCDIR}/tif_vms.c
340        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_vms.c
341tif_win3.o: ${SRCDIR}/tif_win3.c
342        ${CC} -c ${CFLAGS} ${SRCDIR}/tif_win3.c
343
344INCS    = ${SRCDIR}/tiff.h ${SRCDIR}/tiffio.h ${SRCDIR}/tiffconf.h \
345        ${SRCDIR}/tiffvers.h
346
347INCS_PRIVATE = ${SRCDIR}/tiffiop.h ${SRCDIR}/tif_dir.h ${SRCDIR}/port.h
348
349installHdrs: ${INCS}
350        ${INSTALL} -idb tiff.sw.dev -m 755 -dir ${DESTDIR}@DIR_INC@
351        for i in ${INCS}; do                                            \
352            f=`basename $$i`;                                           \
353            ${INSTALL} -idb tiff.sw.dev -m 444 -F ${DESTDIR}@DIR_INC@   \
354                -src $$i -O $$f;                                        \
355        done
356
357installPrivateHdrs: ${INCS_PRIVATE}
358        ${INSTALL} -idb tiff.sw.dev -m 755 -dir ${DESTDIR}@DIR_INC@
359        for i in ${INCS_PRIVATE}; do                                    \
360            f=`basename $$i`;                                           \
361            ${INSTALL} -idb tiff.sw.dev -m 444 -F ${DESTDIR}@DIR_INC@   \
362                -src $$i -O $$f;                                        \
363        done
364
365installDSO: @DSO@dso
366        if [ @DSOSUF_VERSION@ != @DSOSUF@ ]; then                       \
367            ${INSTALL} -idb tiff.sw.tools -m 555 -F ${DESTDIR}@DIR_LIB@ \
368                -O libtiff.@DSOSUF_VERSION@;                            \
369            ${INSTALL} -idb tiff.sw.tools -F ${DESTDIR}@DIR_LIB@        \
370                -lns libtiff.@DSOSUF_VERSION@ -O libtiff.@DSOSUF@;      \
371            ${INSTALL} -idb tiff.sw.tools -F ${DESTDIR}@DIR_LIB@        \
372                -lns libtiff.@DSOSUF@ -O libtiff.so;                    \
373        else                                                            \
374            ${INSTALL} -idb tiff.sw.tools -m 555 -F ${DESTDIR}@DIR_LIB@ \
375                -O libtiff.@DSOSUF@;                                    \
376        fi
377
378install: all installHdrs
379        ${INSTALL} -idb tiff.sw.dev -m 755 -dir ${DESTDIR}@DIR_LIB@
380        ${INSTALL} -idb tiff.sw.dev -m 444 -F ${DESTDIR}@DIR_LIB@ -O libtiff.a
381        if [ @DSO@dso != nodso ]; then                                  \
382            ${MAKE} -${MAKEFLAGS} installDSO;                           \
383        else                                                            \
384            true;                                                       \
385        fi
386
387install-private: install installPrivateHdrs
388
389clean:
390        rm -f ${TARGETS} ${OBJS} core a.out \
391            mkg3states tif_fax3sm.c \
392            mkversion ${SRCDIR}/tiffvers.h \
393            libtiff.a libtiff.@DSOSUF@ libtiff.@DSOSUF_VERSION@ *dso
Note: See TracBrowser for help on using the repository browser.