1## Proxy Makefile.am to build xpdf for TeX Live.
2##
3##   Copyright (C) 2009-2015 Peter Breitenlohner <tex-live@tug.org>
4##
5##   This file is free software; the copyright holder
6##   gives unlimited permission to copy and/or distribute it,
7##   with or without modifications, as long as this notice is preserved.
8##
9#========================================================================
10##
11## Main xpdf Makefile.
12## Goo library Makefile
13## FoFi library Makefile
14## Xpdf Makefile
15##
16## Copyright 1996-2003 Glyph & Cog, LLC
17##
18#========================================================================
19##
20ACLOCAL_AMFLAGS = -I ../../m4
21
22## We want to re-distribute the whole original xpdf source tree.
23##
24EXTRA_DIST = $(XPDF_TREE)
25
26## Official patches as obtained from ftp://ftp.foolabs.com/pub/xpdf
27## (if any)
28##
29EXTRA_DIST += $(XPDF_TREE)-foolabs
30
31## Actual patches applied to the original source tree
32##
33EXTRA_DIST += $(XPDF_TREE)-PATCHES
34
35# Files not to be distributed
36include $(srcdir)/../../am/dist_hook.am
37NEVER_NAMES += $(NEVER_NAMES_SUB)
38
39SUBDIRS = . goo fofi splash xpdf
40
41GOO_SRC = $(top_srcdir)/$(XPDF_TREE)/goo
42FOFI_SRC = $(top_srcdir)/$(XPDF_TREE)/fofi
43SPLASH_SRC = $(top_srcdir)/$(XPDF_TREE)/splash
44XPDF_SRC = $(top_srcdir)/$(XPDF_TREE)/xpdf
45
46AM_CPPFLAGS = -Igoo -Ifofi -Isplash -Ixpdf
47AM_CPPFLAGS += -I$(GOO_SRC) -I$(FOFI_SRC) -I$(SPLASH_SRC) -I$(XPDF_SRC)
48AM_CPPFLAGS += -DPDF_PARSER_ONLY
49AM_CFLAGS = $(WARNING_CFLAGS)
50AM_CXXFLAGS = $(NO_WARN_CXXFLAGS)
51
52noinst_LIBRARIES = libxpdf.a
53
54nodist_libxpdf_a_SOURCES = \
55	$(goo_libGoo_a_sources) \
56	$(fofi_libfofi_a_sources) \
57	$(xpdf_libxpdf_a_sources)
58
59goo_libGoo_a_sources = \
60	@XPDF_TREE@/goo/FixedPoint.cc \
61	@XPDF_TREE@/goo/GHash.cc \
62	@XPDF_TREE@/goo/GList.cc \
63	@XPDF_TREE@/goo/GString.cc \
64	@XPDF_TREE@/goo/gfile.cc \
65	@XPDF_TREE@/goo/gmem.cc \
66	@XPDF_TREE@/goo/gmempp.cc
67
68fofi_libfofi_a_sources = \
69	@XPDF_TREE@/fofi/FoFiBase.cc \
70	@XPDF_TREE@/fofi/FoFiEncodings.cc \
71	@XPDF_TREE@/fofi/FoFiIdentifier.cc \
72	@XPDF_TREE@/fofi/FoFiTrueType.cc \
73	@XPDF_TREE@/fofi/FoFiType1.cc \
74	@XPDF_TREE@/fofi/FoFiType1C.cc
75
76xpdf_libxpdf_a_sources = \
77	@XPDF_TREE@/xpdf/AcroForm.cc \
78	@XPDF_TREE@/xpdf/Annot.cc \
79	@XPDF_TREE@/xpdf/Array.cc \
80	@XPDF_TREE@/xpdf/BuiltinFont.cc \
81	@XPDF_TREE@/xpdf/BuiltinFontTables.cc \
82	@XPDF_TREE@/xpdf/CMap.cc \
83	@XPDF_TREE@/xpdf/Catalog.cc \
84	@XPDF_TREE@/xpdf/CharCodeToUnicode.cc \
85	@XPDF_TREE@/xpdf/Decrypt.cc \
86	@XPDF_TREE@/xpdf/Dict.cc \
87	@XPDF_TREE@/xpdf/Error.cc \
88	@XPDF_TREE@/xpdf/FontEncodingTables.cc \
89	@XPDF_TREE@/xpdf/Form.cc \
90	@XPDF_TREE@/xpdf/Function.cc \
91	@XPDF_TREE@/xpdf/Gfx.cc \
92	@XPDF_TREE@/xpdf/GfxFont.cc \
93	@XPDF_TREE@/xpdf/GfxState.cc \
94	@XPDF_TREE@/xpdf/GlobalParams.cc \
95	@XPDF_TREE@/xpdf/JArithmeticDecoder.cc \
96	@XPDF_TREE@/xpdf/JBIG2Stream.cc \
97	@XPDF_TREE@/xpdf/JPXStream.cc \
98	@XPDF_TREE@/xpdf/Lexer.cc \
99	@XPDF_TREE@/xpdf/Link.cc \
100	@XPDF_TREE@/xpdf/NameToCharCode.cc \
101	@XPDF_TREE@/xpdf/Object.cc \
102	@XPDF_TREE@/xpdf/OptionalContent.cc \
103	@XPDF_TREE@/xpdf/Outline.cc \
104	@XPDF_TREE@/xpdf/OutputDev.cc \
105	@XPDF_TREE@/xpdf/PDFDoc.cc \
106	@XPDF_TREE@/xpdf/PDFDocEncoding.cc \
107	@XPDF_TREE@/xpdf/PSTokenizer.cc \
108	@XPDF_TREE@/xpdf/Page.cc \
109	@XPDF_TREE@/xpdf/Parser.cc \
110	@XPDF_TREE@/xpdf/SecurityHandler.cc \
111	@XPDF_TREE@/xpdf/Stream.cc \
112	@XPDF_TREE@/xpdf/TextString.cc \
113	@XPDF_TREE@/xpdf/UnicodeMap.cc \
114	@XPDF_TREE@/xpdf/XFAForm.cc \
115	@XPDF_TREE@/xpdf/XRef.cc \
116	@XPDF_TREE@/xpdf/Zoox.cc
117
118# Rebuild
119rebuild_prereq =
120rebuild_target = all
121CLEANFILES =
122
123include $(srcdir)/../../am/rebuild.am
124
125