beta-0.89.2
[luatex.git] / source / libs / poppler / Makefile.am
blob0c3f0343e4bdf06631069bcbde82c0760e9b548e
1 ## Proxy Makefile.am to build poppler for TeX Live.
2 ##
3 ##   Copyright (C) 2016 Karl Berry <tex-live@tug.org>
4 ##   Copyright (C) 2011-2015 Peter Breitenlohner <tex-live@tug.org>
5 ##
6 ##   This file is free software; the copyright holder
7 ##   gives unlimited permission to copy and/or distribute it,
8 ##   with or without modifications, as long as this notice is preserved.
9 ##
10 ## We want to re-distribute the whole poppler source tree.
12 EXTRA_DIST = $(POPPLER_TREE)
14 ## Changes applied to the original source tree
16 EXTRA_DIST += poppler-PATCHES
18 # Files not to be distributed
19 include $(srcdir)/../../am/dist_hook.am
20 NEVER_NAMES += $(NEVER_NAMES_SUB)
22 SUBDIRS = . include
24 GOO_SRC = $(top_srcdir)/$(POPPLER_TREE)/goo
25 FOFI_SRC = $(top_srcdir)/$(POPPLER_TREE)/fofi
26 POPPLER_SRC = $(top_srcdir)/$(POPPLER_TREE)/poppler
28 AM_CPPFLAGS = -I$(top_srcdir)/$(POPPLER_TREE) -I$(GOO_SRC) $(ZLIB_INCLUDES)
29 AM_CPPFLAGS += -DPOPPLER_DATADIR='"."'
30 AM_CFLAGS = $(VISIBILITY_CFLAGS) $(WARNING_CFLAGS)
31 AM_CXXFLAGS = $(VISIBILITY_CXXFLAGS) $(NO_WARN_CXXFLAGS)
33 noinst_LIBRARIES = libpoppler.a
35 $(libpoppler_a_OBJECTS): $(ZLIB_DEPEND)
37 nodist_libpoppler_a_SOURCES = \
38         $(goo_libGoo_a_sources) \
39         $(fofi_libfofi_a_sources) \
40         $(poppler_libpoppler_a_sources)
42 goo_libGoo_a_sources = \
43         @POPPLER_TREE@/goo/gfile.cc \
44         @POPPLER_TREE@/goo/gmem.cc \
45         @POPPLER_TREE@/goo/gmempp.cc \
46         @POPPLER_TREE@/goo/grandom.cc \
47         @POPPLER_TREE@/goo/gstrtod.cc \
48         @POPPLER_TREE@/goo/FixedPoint.cc \
49         @POPPLER_TREE@/goo/GooHash.cc \
50         @POPPLER_TREE@/goo/GooList.cc \
51         @POPPLER_TREE@/goo/GooString.cc \
52         @POPPLER_TREE@/goo/GooTimer.cc
54 fofi_libfofi_a_sources = \
55         @POPPLER_TREE@/fofi/FoFiBase.cc \
56         @POPPLER_TREE@/fofi/FoFiEncodings.cc \
57         @POPPLER_TREE@/fofi/FoFiIdentifier.cc \
58         @POPPLER_TREE@/fofi/FoFiTrueType.cc \
59         @POPPLER_TREE@/fofi/FoFiType1.cc \
60         @POPPLER_TREE@/fofi/FoFiType1C.cc
62 poppler_libpoppler_a_sources = \
63         @POPPLER_TREE@/poppler/Annot.cc \
64         @POPPLER_TREE@/poppler/Array.cc \
65         @POPPLER_TREE@/poppler/BuiltinFont.cc \
66         @POPPLER_TREE@/poppler/BuiltinFontTables.cc \
67         @POPPLER_TREE@/poppler/CMap.cc \
68         @POPPLER_TREE@/poppler/CachedFile.cc \
69         @POPPLER_TREE@/poppler/Catalog.cc \
70         @POPPLER_TREE@/poppler/CharCodeToUnicode.cc \
71         @POPPLER_TREE@/poppler/DateInfo.cc \
72         @POPPLER_TREE@/poppler/Decrypt.cc \
73         @POPPLER_TREE@/poppler/Dict.cc \
74         @POPPLER_TREE@/poppler/Error.cc \
75         @POPPLER_TREE@/poppler/FileSpec.cc \
76         @POPPLER_TREE@/poppler/FlateStream.cc \
77         @POPPLER_TREE@/poppler/FontEncodingTables.cc \
78         @POPPLER_TREE@/poppler/FontInfo.cc \
79         @POPPLER_TREE@/poppler/Form.cc \
80         @POPPLER_TREE@/poppler/Function.cc \
81         @POPPLER_TREE@/poppler/Gfx.cc \
82         @POPPLER_TREE@/poppler/GfxFont.cc \
83         @POPPLER_TREE@/poppler/GfxState.cc \
84         @POPPLER_TREE@/poppler/GlobalParams.cc \
85         @POPPLER_TREE@/poppler/Hints.cc \
86         @POPPLER_TREE@/poppler/JArithmeticDecoder.cc \
87         @POPPLER_TREE@/poppler/JBIG2Stream.cc \
88         @POPPLER_TREE@/poppler/JPXStream.cc \
89         @POPPLER_TREE@/poppler/Lexer.cc \
90         @POPPLER_TREE@/poppler/Linearization.cc \
91         @POPPLER_TREE@/poppler/Link.cc \
92         @POPPLER_TREE@/poppler/MarkedContentOutputDev.cc \
93         @POPPLER_TREE@/poppler/Movie.cc \
94         @POPPLER_TREE@/poppler/NameToCharCode.cc \
95         @POPPLER_TREE@/poppler/Object.cc \
96         @POPPLER_TREE@/poppler/OptionalContent.cc \
97         @POPPLER_TREE@/poppler/Outline.cc \
98         @POPPLER_TREE@/poppler/OutputDev.cc \
99         @POPPLER_TREE@/poppler/PDFDoc.cc \
100         @POPPLER_TREE@/poppler/PDFDocEncoding.cc \
101         @POPPLER_TREE@/poppler/PDFDocFactory.cc \
102         @POPPLER_TREE@/poppler/PSTokenizer.cc \
103         @POPPLER_TREE@/poppler/Page.cc \
104         @POPPLER_TREE@/poppler/PageLabelInfo.cc \
105         @POPPLER_TREE@/poppler/PageTransition.cc \
106         @POPPLER_TREE@/poppler/Parser.cc \
107         @POPPLER_TREE@/poppler/PopplerCache.cc \
108         @POPPLER_TREE@/poppler/PreScanOutputDev.cc \
109         @POPPLER_TREE@/poppler/ProfileData.cc \
110         @POPPLER_TREE@/poppler/Rendition.cc \
111         @POPPLER_TREE@/poppler/SecurityHandler.cc \
112         @POPPLER_TREE@/poppler/Sound.cc \
113         @POPPLER_TREE@/poppler/StdinCachedFile.cc \
114         @POPPLER_TREE@/poppler/StdinPDFDocBuilder.cc \
115         @POPPLER_TREE@/poppler/Stream.cc \
116         @POPPLER_TREE@/poppler/StructElement.cc \
117         @POPPLER_TREE@/poppler/StructTreeRoot.cc \
118         @POPPLER_TREE@/poppler/UTF.cc \
119         @POPPLER_TREE@/poppler/UnicodeMap.cc \
120         @POPPLER_TREE@/poppler/UnicodeTypeTable.cc \
121         @POPPLER_TREE@/poppler/ViewerPreferences.cc \
122         @POPPLER_TREE@/poppler/XRef.cc \
123         @POPPLER_TREE@/poppler/XpdfPluginAPI.cc \
124         @POPPLER_TREE@/poppler/strtok_r.cpp
126 $(libpoppler_a_OBJECTS): config.force
128 ## Rebuild zlib
129 @ZLIB_RULE@
131 # Reconfig
132 reconfig_prereq = $(ZLIB_DEPEND)
133 DISTCLEANFILES =
135 include $(srcdir)/../../am/reconfig.am
137 # Rebuild
138 rebuild_prereq =
139 rebuild_target = all
140 CLEANFILES =
142 include $(srcdir)/../../am/rebuild.am