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