Debian Codegraph @

texk/xdvipsk/thirdparty/libtiff/libtiff-src/Makefile.am

raw
1 # Tag Image File Format (TIFF) Software
2 #
3 # Copyright (C) 2004, Andrey Kiselev <[email protected]>
4 #
5 # Permission to use, copy, modify, distribute, and sell this software and
6 # its documentation for any purpose is hereby granted without fee, provided
7 # that (i) the above copyright notices and this permission notice appear in
8 # all copies of the software and related documentation, and (ii) the names of
9 # Sam Leffler and Silicon Graphics may not be used in any advertising or
10 # publicity relating to the software without the specific, prior written
11 # permission of Sam Leffler and Silicon Graphics.
12 #
13 # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
14 # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
15 # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
16 #
17 # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
18 # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
19 # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20 # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
21 # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
22 # OF THIS SOFTWARE.
23
24 # Process this file with automake to produce Makefile.in.
25
26 LIBPORT = $(top_builddir)/port/libport.la
27 LIBTIFF = $(top_builddir)/libtiff/libtiff.la
28 libtiffincludedir = $(includedir)
29
30 EXTRA_DIST = \
31 CMakeLists.txt \
32 libtiff.def \
33 libtiff.map \
34 libtiffxx.map \
35 tiffvers.h.cmake.in \
36 tif_config.h.cmake.in \
37 tiffconf.h.cmake.in \
38 tif_win32_versioninfo.rc
39
40 libtiffinclude_HEADERS = \
41 tiff.h \
42 tiffio.h \
43 tiffvers.h
44
45 if HAVE_CXX
46 libtiffinclude_HEADERS += tiffio.hxx
47 endif
48
49 noinst_HEADERS = \
50 t4.h \
51 tif_dir.h \
52 tif_hash_set.h \
53 tif_predict.h \
54 tiffiop.h \
55 uvcode.h
56
57 nodist_libtiffinclude_HEADERS = \
58 tiffconf.h
59
60 libtiff_la_SOURCES = \
61 tif_aux.c \
62 tif_close.c \
63 tif_codec.c \
64 tif_color.c \
65 tif_compress.c \
66 tif_dir.c \
67 tif_dirinfo.c \
68 tif_dirread.c \
69 tif_dirwrite.c \
70 tif_dumpmode.c \
71 tif_error.c \
72 tif_extension.c \
73 tif_fax3.c \
74 tif_fax3sm.c \
75 tif_flush.c \
76 tif_getimage.c \
77 tif_hash_set.c \
78 tif_jbig.c \
79 tif_jpeg.c \
80 tif_jpeg_12.c \
81 tif_lerc.c \
82 tif_luv.c \
83 tif_lzma.c \
84 tif_lzw.c \
85 tif_next.c \
86 tif_ojpeg.c \
87 tif_open.c \
88 tif_packbits.c \
89 tif_pixarlog.c \
90 tif_predict.c \
91 tif_print.c \
92 tif_read.c \
93 tif_strip.c \
94 tif_swab.c \
95 tif_thunder.c \
96 tif_tile.c \
97 tif_version.c \
98 tif_warning.c \
99 tif_webp.c \
100 tif_write.c \
101 tif_zip.c \
102 tif_zstd.c
103
104 libtiffxx_la_SOURCES = \
105 tif_stream.cxx
106
107 if WIN32_IO
108 EXTRA_DIST += tif_unix.c
109 libtiff_la_SOURCES += tif_win32.c
110 else
111 EXTRA_DIST += tif_win32.c
112 libtiff_la_SOURCES += tif_unix.c
113 endif
114
115 lib_LTLIBRARIES = libtiff.la
116 if HAVE_CXX
117 lib_LTLIBRARIES += libtiffxx.la
118 endif
119
120 libtiff_la_LDFLAGS = \
121 -no-undefined \
122 -version-info $(LIBTIFF_VERSION_INFO)
123 if HAVE_RPATH
124 libtiff_la_LDFLAGS += $(LIBDIR)
125 endif
126 if HAVE_LD_VERSION_SCRIPT
127 libtiff_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libtiff.map
128 endif
129
130 libtiffxx_la_LDFLAGS = \
131 -no-undefined \
132 -version-info $(LIBTIFF_VERSION_INFO)
133 if HAVE_RPATH
134 libtiffxx_la_LDFLAGS += $(LIBDIR)
135 endif
136 if HAVE_LD_VERSION_SCRIPT
137 libtiffxx_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libtiffxx.map
138 endif
139 libtiffxx_la_LIBADD = $(LIBTIFF)
140 libtiffxx_la_DEPENDENCIES = libtiff.la
141
142 #
143 # The finite state machine tables used by the G3/G4 decoders
144 # are generated by the mkg3states program. On systems without
145 # make these rules have to be manually carried out.
146 #
147 noinst_PROGRAMS = mkg3states
148 mkg3states_SOURCES = mkg3states.c tif_fax3.h
149 mkg3states_LDADD = $(LIBPORT)
150
151 faxtable: mkg3states
152 (rm -f tif_fax3sm.c && ./mkg3states -b -c const tif_fax3sm.c)
153
154 if STATIC_LERC
155 extra_CPPFLAGS = -DLERC_STATIC
156 else
157 extra_CPPFLAGS =
158 endif
159
160 if HAVE_JPEGTURBO_DUAL_MODE_8_12
161 JPEGTURBO_CPPFLAGS = -DHAVE_JPEGTURBO_DUAL_MODE_8_12
162 else
163 JPEGTURBO_CPPFLAGS =
164 endif
165
166 AM_CPPFLAGS = -I$(top_srcdir)/libtiff -I$(top_srcdir)/port $(extra_CPPFLAGS) $(JPEGTURBO_CPPFLAGS)