1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
|
# Source directory Makefile.am
# GNU PDF Library
# Copyright (C) 2007, 2008 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# libgnupdf.so is the main library to build
lib_LTLIBRARIES = libgnupdf.la
# Base Layer sources
LIST_MODULE_SOURCES = base/pdf-list.c base/pdf-list.h
HASH_MODULE_SOURCES = base/pdf-hash.c base/pdf-hash.h
ALLOC_MODULE_SOURCES = base/pdf-alloc.c base/pdf-alloc.h
TYPES_MODULE_SOURCES = base/pdf-types.c base/pdf-types.h
ERROR_MODULE_SOURCES = base/pdf-error.c base/pdf-error.h
FILESYSTEM_MODULE_SOURCES = base/pdf-fsys.c base/pdf-fsys.h \
base/pdf-fsys-def.h \
base/pdf-fsys-disk.c base/pdf-fsys-disk.h
STM_MODULE_SOURCES = base/pdf-stm-f-a85.c base/pdf-stm-f-a85.h \
base/pdf-stm-f-ahex.c base/pdf-stm-f-ahex.h \
base/pdf-stm-f-fax.c base/pdf-stm-f-fax.h \
base/pdf-stm-f-lzw.c base/pdf-stm-f-lzw.h \
base/pdf-stm-f-null.c base/pdf-stm-f-null.h \
base/pdf-stm-f-pred.c base/pdf-stm-f-pred.h \
base/pdf-stm-f-rl.c base/pdf-stm-f-rl.h \
base/pdf-stm-file.c base/pdf-stm-file.h \
base/pdf-stm-mem.c base/pdf-stm-mem.h \
base/pdf-stm.c base/pdf-stm.h
if ZLIB
STM_MODULE_SOURCES += base/pdf-stm-f-flate.c base/pdf-stm-f-flate.h
endif
TEXT_MODULE_SOURCES = base/pdf-text-context.c base/pdf-text-context.h \
base/pdf-text-encoding.c base/pdf-text-encoding.h \
base/pdf-text-host-encoding.c base/pdf-text-host-encoding.h \
base/pdf-text-filter.c base/pdf-text-filter.h \
base/pdf-text-ucd-case.c base/pdf-text-ucd-case.h \
base/pdf-text-ucd-combclass.c base/pdf-text-ucd-combclass.h \
base/pdf-text-ucd-wordbreak.c base/pdf-text-ucd-wordbreak.h \
base/pdf-text-ucd-gencat.c base/pdf-text-ucd-gencat.h \
base/pdf-text-ucd-proplist.c base/pdf-text-ucd-proplist.h \
base/pdf-text-ucd.h \
base/pdf-text.c base/pdf-text.h
TIME_MODULE_SOURCES = base/pdf-time-context.c base/pdf-time-context.h \
base/pdf-time-string.c base/pdf-time-string.h \
base/pdf-time.c base/pdf-time.h
BASE_LAYER_SOURCES = base/pdf-base.c base/pdf-base.h \
$(ALLOC_MODULE_SOURCES) \
$(TYPES_MODULE_SOURCES) \
$(FILESYSTEM_MODULE_SOURCES) \
$(STM_MODULE_SOURCES) \
$(ERROR_MODULE_SOURCES) \
$(LIST_MODULE_SOURCES) \
$(TEXT_MODULE_SOURCES) \
$(HASH_MODULE_SOURCES) \
$(TIME_MODULE_SOURCES)
# Library sources
libgnupdf_la_SOURCES = pdf-global.c pdf-global.h
if COMPILE_BASE_LAYER
libgnupdf_la_SOURCES += $(BASE_LAYER_SOURCES)
endif
include_HEADERS = pdf.h
libgnupdf_la_LIBADD = $(top_srcdir)/lib/libgnu.la
# We want a DLL if compiling for Windows
if COMPILE_W32_SYSTEM
libgnupdf_la_LDFLAGS = -no-undefined
endif
AM_CFLAGS = -Wall -fno-strict-aliasing
if USE_COVERAGE
AM_CFLAGS += -fprofile-arcs -ftest-coverage
endif
AM_CPPFLAGS = -I$(top_builddir)/lib -I$(srcdir)/base \
-I$(srcdir)/object -I$(srcdir)/document
# Public header generation
PUBLIC_HDRS = pdf-global.h \
base/pdf-error.h \
base/pdf-types.h \
base/pdf-alloc.h \
base/pdf-list.h \
base/pdf-hash.h \
base/pdf-time.h \
base/pdf-text.h \
base/pdf-fsys.h \
base/pdf-stm-f-a85.h \
base/pdf-stm-f-ahex.h \
base/pdf-stm-f-fax.h \
base/pdf-stm-f-flate.h \
base/pdf-stm-f-lzw.h \
base/pdf-stm-f-pred.h \
base/pdf-stm-f-rl.h \
base/pdf-stm-file.h \
base/pdf-stm.h
pdf.h : $(PUBLIC_HDRS)
chmod +x $(top_srcdir)/src/extract-public-hdr
cat header-autogen > $@
echo "#ifndef PDF_H" >> $@
echo "#define PDF_H" >> $@
cat $(PUBLIC_HDRS) | $(top_srcdir)/src/extract-public-hdr >> $@
echo "#endif /* !PDF_H */" >> $@
echo "/* end of pdf.h */" >> $@
clean-local:
rm -f $(srcdir)/*.gcno
# End of Makefile.am
|