Makefile.am 5.78 KB
Newer Older
Hib Eris's avatar
Hib Eris committed
1
2
3
4
5
6
7
8
9
10
11
12
13
CFLAGS+=$(PTHREAD_CFLAGS)
CXXFLAGS+=$(PTHREAD_CFLAGS)

AM_CPPFLAGS =					\
	-I$(top_srcdir)				\
	-I$(top_srcdir)/goo

lib_LTLIBRARIES = libpoppler.la

if BUILD_CAIRO_OUTPUT
noinst_LTLIBRARIES = libpoppler-cairo.la
endif

Kristian Høgsberg's avatar
Kristian Høgsberg committed
14
15
16
17
18
19
20
21
if BUILD_SPLASH_OUTPUT

splash_sources =				\
	SplashOutputDev.cc

splash_headers =				\
	SplashOutputDev.h

22
23
24
splash_includes =				\
	$(SPLASH_CFLAGS)

Kristian Høgsberg's avatar
Kristian Høgsberg committed
25
splash_libs =					\
26
	$(SPLASH_LIBS)				\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
27
28
	$(top_builddir)/splash/libsplash.la

29
30
endif

31
32
33
34
35
36
37
38
if BUILD_LIBJPEG

libjpeg_sources =				\
	DCTStream.h				\
	DCTStream.cc

libjpeg_libs =					\
	$(LIBJPEG_LIBS)
39
40
libjpeg_includes =				\
	$(LIBJPEG_CFLAGS)
41
42

endif
Kristian Høgsberg's avatar
Kristian Høgsberg committed
43

44
45
46
47
if BUILD_LIBPNG

libpng_libs =					\
	$(LIBPNG_LIBS)
48
49
libpng_includes =				\
	$(LIBPNG_CFLAGS)
50
51
52

endif

53
54
55
56
57
58
59
60
61
if BUILD_LIBTIFF

libtiff_libs =					\
	$(LIBTIFF_LIBS)
libtiff_includes =				\
	$(LIBTIFF_CFLAGS)

endif

62
63
64
65
66
67
68
69
if BUILD_LIBOPENJPEG

libjpeg2000_sources =				\
	JPEG2000Stream.h			\
	JPEG2000Stream.cc

libjpeg2000_libs =				\
	$(LIBOPENJPEG_LIBS)
70
71
libjpeg2000_includes =				\
	$(LIBOPENJPEG_CFLAGS)
72
73
74
75
76
77
78
79
80

else

libjpeg2000_sources =				\
	JPXStream.h			\
	JPXStream.cc

endif

André Guerreiro's avatar
André Guerreiro committed
81
82
83
84
85
86
87
88
89
90
91
if BUILD_NSS

nss_sources =                   \
	SignatureHandler.cc

nss_libs =                      \
	$(NSS3_LIBS)

nss_includes =                  \
	$(NSS3_CFLAGS)

Albert Astals Cid's avatar
0.42    
Albert Astals Cid committed
92
nss_headers =                   \
André Guerreiro's avatar
André Guerreiro committed
93
94
95
96
	SignatureHandler.h

endif	

97

98
99
100
if BUILD_ZLIB

zlib_sources =					\
101
102
	FlateEncoder.h				\
	FlateEncoder.cc
103
104
105
106
107
108

zlib_libs = 					\
	$(ZLIB_LIBS)

endif

109
110
111
112
113
114
115
116
if BUILD_ZLIB_UNCOMPRESS

zlib_uncompress_sources =			\
	FlateStream.h				\
	FlateStream.cc

endif

Hib Eris's avatar
Hib Eris committed
117
118
119
120
121
122
123
124
125
if BUILD_LIBCURL

libcurl_libs =					\
	$(LIBCURL_LIBS)

libcurl_includes =				\
	$(LIBCURL_CFLAGS)

curl_headers =					\
Hib Eris's avatar
Hib Eris committed
126
127
	CurlCachedFile.h			\
	CurlPDFDocBuilder.h
Hib Eris's avatar
Hib Eris committed
128
129

curl_sources =					\
Hib Eris's avatar
Hib Eris committed
130
131
	CurlCachedFile.cc			\
	CurlPDFDocBuilder.cc
Hib Eris's avatar
Hib Eris committed
132
133
134

endif

135
if USE_CMS
Albert Astals Cid's avatar
Albert Astals Cid committed
136
cms_includes = $(LCMS_CFLAGS)
137
cms_libs = $(LCMS_LIBS)
138
139
endif

140
141
if ENABLE_XPDF_HEADERS

Kristian Høgsberg's avatar
Kristian Høgsberg committed
142
143
144
poppler_includedir = $(includedir)/poppler
poppler_include_HEADERS =	\
	$(splash_headers)	\
Hib Eris's avatar
Hib Eris committed
145
	$(curl_headers)		\
André Guerreiro's avatar
André Guerreiro committed
146
	$(nss_headers) 		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
147
148
149
150
	Annot.h			\
	Array.h			\
	BuiltinFont.h		\
	BuiltinFontTables.h	\
Hib Eris's avatar
Hib Eris committed
151
	CachedFile.h		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
152
153
154
	Catalog.h		\
	CharCodeToUnicode.h	\
	CMap.h			\
155
	DateInfo.h		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
156
157
158
	Decrypt.h		\
	Dict.h			\
	Error.h			\
159
	FileSpec.h		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
160
	FontEncodingTables.h	\
161
	FontInfo.h		\
162
	Form.h 			\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
163
164
165
166
	Function.h		\
	Gfx.h			\
	GfxFont.h		\
	GfxState.h		\
167
	GfxState_helpers.h	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
168
	GlobalParams.h		\
Hib Eris's avatar
Hib Eris committed
169
	Hints.h			\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
170
171
172
	JArithmeticDecoder.h	\
	JBIG2Stream.h		\
	Lexer.h			\
Hib Eris's avatar
Hib Eris committed
173
	Linearization.h 	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
174
	Link.h			\
175
	LocalPDFDocBuilder.h	\
Hugo Mercier's avatar
Hugo Mercier committed
176
	Movie.h                 \
Kristian Høgsberg's avatar
Kristian Høgsberg committed
177
178
	NameToCharCode.h	\
	Object.h		\
179
	OptionalContent.h	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
180
181
182
	Outline.h		\
	OutputDev.h		\
	Page.h			\
183
	PageTransition.h	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
184
185
	Parser.h		\
	PDFDoc.h		\
Hib Eris's avatar
Hib Eris committed
186
	PDFDocBuilder.h		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
187
	PDFDocEncoding.h	\
Hib Eris's avatar
Hib Eris committed
188
	PDFDocFactory.h		\
Albert Astals Cid's avatar
Albert Astals Cid committed
189
	PopplerCache.h		\
190
	ProfileData.h		\
191
	PreScanOutputDev.h	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
192
	PSTokenizer.h		\
193
	Rendition.h		\
André Guerreiro's avatar
André Guerreiro committed
194
	SignatureInfo.h		\
195
	StdinCachedFile.h	\
196
	StdinPDFDocBuilder.h	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
197
198
	Stream-CCITT.h		\
	Stream.h		\
199
200
	StructElement.h		\
	StructTreeRoot.h	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
201
202
203
	UnicodeMap.h		\
	UnicodeMapTables.h	\
	UnicodeTypeTable.h	\
204
205
206
	UnicodeCClassTables.h	\
	UnicodeCompTables.h	\
	UnicodeDecompTables.h	\
207
	ViewerPreferences.h	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
208
209
210
211
212
213
214
	XRef.h			\
	CharTypes.h		\
	CompactFontTables.h	\
	ErrorCodes.h		\
	NameToUnicodeTable.h	\
	PSOutputDev.h		\
	TextOutputDev.h		\
215
	MarkedContentOutputDev.h \
216
	SecurityHandler.h	\
217
	UTF.h			\
218
	UTF8.h			\
219
	XpdfPluginAPI.h		\
220
221
	Sound.h
nodist_poppler_include_HEADERS = poppler-config.h
Kristian Høgsberg's avatar
Kristian Høgsberg committed
222

223
224
endif

Kristian Høgsberg's avatar
Kristian Høgsberg committed
225
226
libpoppler_la_SOURCES =		\
	$(splash_sources)	\
227
	$(libjpeg_sources)	\
228
	$(zlib_sources)		\
229
	$(zlib_uncompress_sources) \
André Guerreiro's avatar
André Guerreiro committed
230
	$(nss_sources)      \
231
	$(libjpeg2000_sources)	\
Hib Eris's avatar
Hib Eris committed
232
	$(curl_sources)		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
233
234
235
236
	Annot.cc		\
	Array.cc 		\
	BuiltinFont.cc		\
	BuiltinFontTables.cc	\
Hib Eris's avatar
Hib Eris committed
237
	CachedFile.cc		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
238
239
240
	Catalog.cc 		\
	CharCodeToUnicode.cc	\
	CMap.cc			\
241
	DateInfo.cc		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
242
243
244
	Decrypt.cc		\
	Dict.cc 		\
	Error.cc 		\
245
	FileSpec.cc		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
246
	FontEncodingTables.cc	\
247
	Form.cc 		\
248
	FontInfo.cc		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
249
250
251
252
253
	Function.cc		\
	Gfx.cc 			\
	GfxFont.cc 		\
	GfxState.cc		\
	GlobalParams.cc		\
Hib Eris's avatar
Hib Eris committed
254
	Hints.cc		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
255
256
257
	JArithmeticDecoder.cc	\
	JBIG2Stream.cc		\
	Lexer.cc 		\
Hib Eris's avatar
Hib Eris committed
258
	Linearization.cc 	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
259
	Link.cc 		\
260
	LocalPDFDocBuilder.cc	\
Hugo Mercier's avatar
Hugo Mercier committed
261
	Movie.cc                \
Kristian Høgsberg's avatar
Kristian Høgsberg committed
262
263
	NameToCharCode.cc	\
	Object.cc 		\
264
	OptionalContent.cc	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
265
266
267
	Outline.cc		\
	OutputDev.cc 		\
	Page.cc 		\
268
	PageTransition.cc	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
269
270
271
	Parser.cc 		\
	PDFDoc.cc 		\
	PDFDocEncoding.cc	\
Hib Eris's avatar
Hib Eris committed
272
	PDFDocFactory.cc	\
273
	PopplerCache.cc		\
274
	ProfileData.cc		\
275
	PreScanOutputDev.cc \
Kristian Høgsberg's avatar
Kristian Høgsberg committed
276
	PSTokenizer.cc		\
277
	Rendition.cc		\
André Guerreiro's avatar
André Guerreiro committed
278
	SignatureInfo.cc	\
279
	StdinCachedFile.cc	\
280
	StdinPDFDocBuilder.cc	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
281
	Stream.cc 		\
282
283
	StructTreeRoot.cc	\
	StructElement.cc	\
284
	strtok_r.cpp		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
285
286
	UnicodeMap.cc		\
	UnicodeTypeTable.cc	\
287
	UTF.cc                  \
288
	ViewerPreferences.cc	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
289
290
	XRef.cc			\
	PSOutputDev.cc		\
291
	TextOutputDev.cc	\
292
	MarkedContentOutputDev.cc \
293
	PageLabelInfo.h		\
294
	PageLabelInfo.cc	\
295
	SecurityHandler.cc	\
Albert Astals Cid's avatar
Albert Astals Cid committed
296
	Sound.cc		\
297
	XpdfPluginAPI.cc
298

Hib Eris's avatar
Hib Eris committed
299
300
301
302
303
304
305
306
libpoppler_la_CPPFLAGS =			\
	$(cms_includes)				\
	$(splash_includes)			\
	$(libjpeg_includes)			\
	$(libtiff_includes)			\
	$(libjpeg2000_includes)			\
	$(libpng_includes)			\
	$(libcurl_includes)			\
André Guerreiro's avatar
André Guerreiro committed
307
	$(nss_includes)				\
Hib Eris's avatar
Hib Eris committed
308
309
310
311
312
313
314
315
316
317
318
319
320
321
	$(FREETYPE_CFLAGS)			\
	$(FONTCONFIG_CFLAGS)			\
	$(AM_CPPFLAGS)

libpoppler_la_LIBADD =				\
	$(top_builddir)/goo/libgoo.la		\
	$(top_builddir)/fofi/libfofi.la		\
	$(cms_libs)				\
	$(splash_libs)				\
	$(libtiff_libs)				\
	$(libjpeg_libs)				\
	$(libpng_libs)				\
	$(zlib_libs)				\
	$(libcurl_libs)				\
André Guerreiro's avatar
André Guerreiro committed
322
	$(nss_libs)                 \
Hib Eris's avatar
Hib Eris committed
323
324
325
326
327
328
329
	$(libjpeg2000_libs)			\
	$(FREETYPE_LIBS)			\
	$(FONTCONFIG_LIBS)			\
	$(PTHREAD_LIBS)				\
	$(win32_libs)

libpoppler_la_LDFLAGS =				\
Albert Astals Cid's avatar
0.49    
Albert Astals Cid committed
330
	-version-info 65:0:0			\
Hib Eris's avatar
Hib Eris committed
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
	@create_shared_lib@			\
	@auto_import_flags@

libpoppler_cairo_la_SOURCES =			\
	CairoFontEngine.cc			\
	CairoFontEngine.h			\
	CairoOutputDev.cc			\
	CairoOutputDev.h			\
	CairoRescaleBox.cc			\
	CairoRescaleBox.h

libpoppler_cairo_la_CPPFLAGS =			\
	$(CAIRO_CFLAGS)				\
	$(AM_CPPFLAGS)

346
EXTRA_DIST = gen-unicode-tables.py	\
347
348
             GlobalParamsWin.cc         \
             PageLabelInfo_p.h