beta-0.89.2
[luatex.git] / source / libs / poppler / poppler-src / poppler / Makefile.am
blob79b6000d2449e34c2085c3d5b64e1e9f334858bf
1 CFLAGS+=$(PTHREAD_CFLAGS)
2 CXXFLAGS+=$(PTHREAD_CFLAGS)
4 AM_CPPFLAGS =                                   \
5         -I$(top_srcdir)                         \
6         -I$(top_srcdir)/goo
8 lib_LTLIBRARIES = libpoppler.la
10 if BUILD_CAIRO_OUTPUT
11 noinst_LTLIBRARIES = libpoppler-cairo.la
12 endif
14 if BUILD_SPLASH_OUTPUT
16 splash_sources =                                \
17         SplashOutputDev.cc
19 splash_headers =                                \
20         SplashOutputDev.h
22 splash_includes =                               \
23         $(SPLASH_CFLAGS)
25 splash_libs =                                   \
26         $(SPLASH_LIBS)                          \
27         $(top_builddir)/splash/libsplash.la
29 endif
31 if BUILD_LIBJPEG
33 libjpeg_sources =                               \
34         DCTStream.h                             \
35         DCTStream.cc
37 libjpeg_libs =                                  \
38         $(LIBJPEG_LIBS)
39 libjpeg_includes =                              \
40         $(LIBJPEG_CFLAGS)
42 endif
44 if BUILD_LIBPNG
46 libpng_libs =                                   \
47         $(LIBPNG_LIBS)
48 libpng_includes =                               \
49         $(LIBPNG_CFLAGS)
51 endif
53 if BUILD_LIBTIFF
55 libtiff_libs =                                  \
56         $(LIBTIFF_LIBS)
57 libtiff_includes =                              \
58         $(LIBTIFF_CFLAGS)
60 endif
62 if BUILD_LIBOPENJPEG
64 libjpeg2000_sources =                           \
65         JPEG2000Stream.h                        \
66         JPEG2000Stream.cc
68 libjpeg2000_libs =                              \
69         $(LIBOPENJPEG_LIBS)
70 libjpeg2000_includes =                          \
71         $(LIBOPENJPEG_CFLAGS)
73 else
75 libjpeg2000_sources =                           \
76         JPXStream.h                     \
77         JPXStream.cc
79 endif
82 if BUILD_ZLIB
84 zlib_sources =                                  \
85         FlateStream.h                           \
86         FlateStream.cc
88 zlib_libs =                                     \
89         $(ZLIB_LIBS)
91 endif
93 if BUILD_LIBCURL
95 libcurl_libs =                                  \
96         $(LIBCURL_LIBS)
98 libcurl_includes =                              \
99         $(LIBCURL_CFLAGS)
101 curl_headers =                                  \
102         CurlCachedFile.h                        \
103         CurlPDFDocBuilder.h
105 curl_sources =                                  \
106         CurlCachedFile.cc                       \
107         CurlPDFDocBuilder.cc
109 endif
111 if USE_CMS
112 cms_includes = $(LCMS_CFLAGS)
113 cms_libs = $(LCMS_LIBS)
114 endif
116 if ENABLE_XPDF_HEADERS
118 poppler_includedir = $(includedir)/poppler
119 poppler_include_HEADERS =       \
120         $(splash_headers)       \
121         $(curl_headers)         \
122         Annot.h                 \
123         Array.h                 \
124         BuiltinFont.h           \
125         BuiltinFontTables.h     \
126         CachedFile.h            \
127         Catalog.h               \
128         CharCodeToUnicode.h     \
129         CMap.h                  \
130         DateInfo.h              \
131         Decrypt.h               \
132         Dict.h                  \
133         Error.h                 \
134         FileSpec.h              \
135         FontEncodingTables.h    \
136         FontInfo.h              \
137         Form.h                  \
138         Function.h              \
139         Gfx.h                   \
140         GfxFont.h               \
141         GfxState.h              \
142         GfxState_helpers.h      \
143         GlobalParams.h          \
144         Hints.h                 \
145         JArithmeticDecoder.h    \
146         JBIG2Stream.h           \
147         Lexer.h                 \
148         Linearization.h         \
149         Link.h                  \
150         LocalPDFDocBuilder.h    \
151         Movie.h                 \
152         NameToCharCode.h        \
153         Object.h                \
154         OptionalContent.h       \
155         Outline.h               \
156         OutputDev.h             \
157         Page.h                  \
158         PageTransition.h        \
159         Parser.h                \
160         PDFDoc.h                \
161         PDFDocBuilder.h         \
162         PDFDocEncoding.h        \
163         PDFDocFactory.h         \
164         PopplerCache.h          \
165         ProfileData.h           \
166         PreScanOutputDev.h      \
167         PSTokenizer.h           \
168         Rendition.h             \
169         StdinCachedFile.h       \
170         StdinPDFDocBuilder.h    \
171         Stream-CCITT.h          \
172         Stream.h                \
173         StructElement.h         \
174         StructTreeRoot.h        \
175         UnicodeMap.h            \
176         UnicodeMapTables.h      \
177         UnicodeTypeTable.h      \
178         UnicodeCClassTables.h   \
179         UnicodeCompTables.h     \
180         UnicodeDecompTables.h   \
181         ViewerPreferences.h     \
182         XRef.h                  \
183         CharTypes.h             \
184         CompactFontTables.h     \
185         ErrorCodes.h            \
186         NameToUnicodeTable.h    \
187         PSOutputDev.h           \
188         TextOutputDev.h         \
189         MarkedContentOutputDev.h \
190         SecurityHandler.h       \
191         UTF.h                   \
192         UTF8.h                  \
193         XpdfPluginAPI.h         \
194         Sound.h
195 nodist_poppler_include_HEADERS = poppler-config.h
197 endif
199 libpoppler_la_SOURCES =         \
200         $(splash_sources)       \
201         $(libjpeg_sources)      \
202         $(zlib_sources)         \
203         $(libjpeg2000_sources)  \
204         $(curl_sources)         \
205         Annot.cc                \
206         Array.cc                \
207         BuiltinFont.cc          \
208         BuiltinFontTables.cc    \
209         CachedFile.cc           \
210         Catalog.cc              \
211         CharCodeToUnicode.cc    \
212         CMap.cc                 \
213         DateInfo.cc             \
214         Decrypt.cc              \
215         Dict.cc                 \
216         Error.cc                \
217         FileSpec.cc             \
218         FontEncodingTables.cc   \
219         Form.cc                 \
220         FontInfo.cc             \
221         Function.cc             \
222         Gfx.cc                  \
223         GfxFont.cc              \
224         GfxState.cc             \
225         GlobalParams.cc         \
226         Hints.cc                \
227         JArithmeticDecoder.cc   \
228         JBIG2Stream.cc          \
229         Lexer.cc                \
230         Linearization.cc        \
231         Link.cc                 \
232         LocalPDFDocBuilder.cc   \
233         Movie.cc                \
234         NameToCharCode.cc       \
235         Object.cc               \
236         OptionalContent.cc      \
237         Outline.cc              \
238         OutputDev.cc            \
239         Page.cc                 \
240         PageTransition.cc       \
241         Parser.cc               \
242         PDFDoc.cc               \
243         PDFDocEncoding.cc       \
244         PDFDocFactory.cc        \
245         PopplerCache.cc         \
246         ProfileData.cc          \
247         PreScanOutputDev.cc \
248         PSTokenizer.cc          \
249         Rendition.cc            \
250         StdinCachedFile.cc      \
251         StdinPDFDocBuilder.cc   \
252         Stream.cc               \
253         StructTreeRoot.cc       \
254         StructElement.cc        \
255         strtok_r.cpp            \
256         UnicodeMap.cc           \
257         UnicodeTypeTable.cc     \
258         UTF.cc                  \
259         ViewerPreferences.cc    \
260         XRef.cc                 \
261         PSOutputDev.cc          \
262         TextOutputDev.cc        \
263         MarkedContentOutputDev.cc \
264         PageLabelInfo.h         \
265         PageLabelInfo.cc        \
266         SecurityHandler.cc      \
267         Sound.cc                \
268         XpdfPluginAPI.cc
270 libpoppler_la_CPPFLAGS =                        \
271         $(cms_includes)                         \
272         $(splash_includes)                      \
273         $(libjpeg_includes)                     \
274         $(libtiff_includes)                     \
275         $(libjpeg2000_includes)                 \
276         $(libpng_includes)                      \
277         $(libcurl_includes)                     \
278         $(FREETYPE_CFLAGS)                      \
279         $(FONTCONFIG_CFLAGS)                    \
280         $(AM_CPPFLAGS)
282 libpoppler_la_LIBADD =                          \
283         $(top_builddir)/goo/libgoo.la           \
284         $(top_builddir)/fofi/libfofi.la         \
285         $(cms_libs)                             \
286         $(splash_libs)                          \
287         $(libtiff_libs)                         \
288         $(libjpeg_libs)                         \
289         $(libpng_libs)                          \
290         $(zlib_libs)                            \
291         $(libcurl_libs)                         \
292         $(libjpeg2000_libs)                     \
293         $(FREETYPE_LIBS)                        \
294         $(FONTCONFIG_LIBS)                      \
295         $(PTHREAD_LIBS)                         \
296         $(win32_libs)
298 libpoppler_la_LDFLAGS =                         \
299         -version-info 58:0:0                    \
300         @create_shared_lib@                     \
301         @auto_import_flags@
303 libpoppler_cairo_la_SOURCES =                   \
304         CairoFontEngine.cc                      \
305         CairoFontEngine.h                       \
306         CairoOutputDev.cc                       \
307         CairoOutputDev.h                        \
308         CairoRescaleBox.cc                      \
309         CairoRescaleBox.h
311 libpoppler_cairo_la_CPPFLAGS =                  \
312         $(CAIRO_CFLAGS)                         \
313         $(AM_CPPFLAGS)
315 EXTRA_DIST = gen-unicode-tables.py      \
316              GlobalParamsWin.cc         \
317              PageLabelInfo_p.h