[2c3e7f]: Makefile.flags.in Maximize Restore History

Download this file

Makefile.flags.in    263 lines (223 with data), 9.0 kB

  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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
################################################################################
# This file contains project global configuration for building and installation
# process.
#
# Don't include this file to the Makefiles directly unless you need only project
# specific configuration data (like in the QT project files) and include
# Makefile.rules instead
################################################################################
E_RELEASE= @enable_release@
QMAKE = @QMAKE@
LRELEASE = @LRELEASE@
# We need to add one level of indirect definition because of qmake which
# uses QMAKE_{CC,CXX,LINK} to define compiler specific stuff, however
# if we do QMAKE_CC = $(CC) then we will get CC =$(CC) in the result makefile
# which is bad therefore all variables which appears in qmake project file
# must have prefix CONFIG_
CONFIG_CC = @CC@
CONFIG_CXX = @CXX@
CONFIG_LINK = $(CONFIG_CXX)
CC = $(CONFIG_CC)
CXX = $(CONFIG_CXX)
LINK = $(CONFIG_LINK)
CONFIG_AR = @AR@
AR = $(CONFIG_AR)
CONFIG_RANLIB = @RANLIB@
RANLIB = $(CONFIG_RANLIB)
CONFIG_COPY = @COPY@
COPY = $(CONFIG_COPY)
CONFIG_COPY_FILE = $(COPY)
COPY_FILE= $(CONFIG_COPY_FILE)
CONFIG_COPY_DIR = $(COPY) -r
COPY_DIR = $(CONFIG_COPY_DIR)
CONFIG_INSTALL_FILE = $(COPY_FILE)
INSTALL_FILE= $(CONFIG_INSTALL_FILE)
CONFIG_INSTALL_DIR = $(COPY_DIR)
INSTALL_DIR = $(CONFIG_INSTALL_DIR)
CONFIG_DEL_FILE= @DEL_FILE@
DEL_FILE = $(CONFIG_DEL_FILE)
CONFIG_SYMLINK = @SYMLINK@
SYMLINK = $(CONFIG_SYMLINK)
CONFIG_DEL_DIR = @DEL_DIR@
DEL_DIR = $(CONFIG_DEL_DIR)
CONFIG_DEL_FORCE_DIR = @DEL_FORCE_DIR@
DEL_FORCE_DIR = $(CONFIG_DEL_FORCE_DIR)
CONFIG_MOVE = @MOVE@
MOVE = $(MOVE)
CONFIG_CHK_DIR_EXISTS = @CHK_DIR_EXISTS@
CHK_DIR_EXISTS = $(CONFIG_CHK_DIR_EXISTS)
CONFIG_MKDIR = @MKDIR@
MKDIR = $(CONFIG_MKDIR)
SHELL = @SHELL@
DOXYGEN_BIN = @DOXYGEN_BIN@
LIBPREFIX = @LIBPREFIX@
###########################################
# Installation directories
###########################################
# Installation root directory (empty for / otherwise including trailing slash)
INSTALL_ROOT = @root_dir@
# extracts values from configure used by others - don't use them directly
# and _always_ use uppercase variants instead!
#
# TODO version must be distinguished between dev and normal package
version = @PACKAGE_VERSION@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
package_name = $(PACKAGE_TARNAME)
prefix = @prefix@
exec_prefix = @exec_prefix@
datarootdir = @datarootdir@
bindir = @bindir@
docdir = @docdir@
mandir = @mandir@
datadir = @datadir@/$(package_name)
libdir = @libdir@/$(package_name)-$(version)
includedir = @includedir@/$(package_name)-$(version)
# Our abstraction of configure variables - _always_ use this variables when
# you need to refer configuration
VERSION = $(version)
PACKAGENAME = $(package_name)
PREFIX = $(prefix)
EPREFIX = $(exec_prefix)
DATA_PATH = $(datadir)
DOC_PATH = $(docdir)
MAN_PATH = $(mandir)/man1
BIN_PATH = $(bindir)
# this variables are used only for pdfedit-core-dev installation
LIB_PATH = $(libdir)
INCLUDE_PATH = $(includedir)
#############################################
# Flags definition
#############################################
# Debug options
DEBUG = @DEBUG@
# Optimization options
OPTIM = @OPTIM@
# Architecture specific options
ARCH = @ARCH@
# Warning options
WARN = @WARN@
C_EXTRA = @C_EXTRA@
# Note that this value will be used also for pdfedit-core-dev CFLAGS
# (so don't put any debug, optimization or architecture specific options here)
CXX_EXTRA = @CXX_EXTRA@
#######################################
# Optional C parameters
# Put special parameters here
# In fact we are not using many pure C files, so this will be usually out of your concern
#######################################
EXTRA_UTILS_CFLAGS = @EXTRA_UTILS_CFLAGS@
EXTRA_KERNEL_CFLAGS = @EXTRA_KERNEL_CFLAGS@
EXTRA_TESTS_CFLAGS = @EXTRA_TESTS_CFLAGS@
EXTRA_XPDF_CFLAGS = @EXTRA_XPDF_CFLAGS@
#######################################
# Optional C++ parameters
# Put special parameters here
#######################################
# from autoconf --enable-observer-debug
OBSERVER_CXXFLAGS = @OBSERVER_CXXFLAGS@
EXTRA_UTILS_CXXFLAGS = @EXTRA_UTILS_CXXFLAGS@ -pedantic
EXTRA_KERNEL_CXXFLAGS = @EXTRA_KERNEL_CXXFLAGS@ -pedantic
EXTRA_TESTS_CXXFLAGS = @EXTRA_TESTS_CXXFLAGS@
EXTRA_GUI_CXXFLAGS = @EXTRA_GUI_CXXFLAGS@ -D CONFIG_DATA_PATH="$(DATA_PATH)"
EXTRA_XPDF_CXXFLAGS = @EXTRA_XPDF_CXXFLAGS@ -pedantic
# same like for compiler stuff we also define 2 levels
# CONFIG_{NAME} can be used for qmake direct {NAME} can be used
# for compilation
CONFIG_CFLAGS = $(DEBUG) $(OPTIM) $(ARCH) $(WARN) $(C_EXTRA) @STACK_PROTECTOR_FLAGS@ -pipe @C_PORTABILITY_FLAGS@
CONFIG_CXXFLAGS = $(DEBUG) $(OPTIM) $(ARCH) $(WARN) $(CXX_EXTRA) $(OBSERVER_CXXFLAGS) @STACK_PROTECTOR_FLAGS@ -pipe @CXX_PORTABILITY_FLAGS@
CFLAGS = $(CONFIG_CFLAGS)
CXXFLAGS = $(CONFIG_CXXFLAGS)
#######################################
# Absolute paths for all components
#
# Although this is not optimal (e.g. you may want to move whole tree into other directory), this
# is the simpliest solution I have found. We have only one file with whole configuration and
# all other Makefiles just need to include it and don't care about including stuff and so on.
# Just look inside xpdf and the way how it includes its files (you don't want to include xpdf
# headers from some deeper directory (like kernel/tests) because you will be drawned with ../).
#######################################
ROOT = @abs_builddir@
SRCROOT = $(ROOT)/src
DOCROOT = $(ROOT)/doc
XPDFROOT = $(SRCROOT)/xpdf
KERNELROOT = $(SRCROOT)/kernel
UTILSROOT = $(SRCROOT)/utils
TESTSROOT = $(SRCROOT)/tests/
TOOLSROOT = $(SRCROOT)/tools
KERNELTESTSROOT = $(TESTSROOT)/kernel
GUIROOT = $(SRCROOT)/gui
OSROOT = $(SRCROOT)/os
BOOSTFLAGS = @BOOST_CPPFLAGS@
CPPUNITFLAGS = @CPPUNIT_CFLAGS@
FREETYPEFLAGS = @FT2_CFLAGS@
ZLIBFLAGS = @ZLIB_CPPFLAGS@
T1FLAGS = @t1_CFLAGS@
PNGFLAGS = @png_CFLAGS@
XPDFLAGS = -I$(XPDFROOT)/
# All necessary includes for building
MANDATORY_INCPATH = -I$(SRCROOT) $(XPDFLAGS) $(BOOSTFLAGS)\
$(FREETYPEFLAGS) $(T1FLAGS) $(ZLIBFLAGS)
# This is required for qmake which always forces -I when specifying
MANDATORY_PATHS = $(SRCROOT) $(XPDFLAGS) $(BOOSTFLAGS) $(FREETYPEFLAGS)
# All necessary includes for 3rd party code depending on pdfedit-core-dev
DIST_INCPATH = -I$(INCLUDE_PATH) -I$(INCLUDE_PATH)/xpdf $(BOOSTFLAGS) \
$(FREETYPEFLAGS) $(T1FLAGS)
FREETYPE_LIBS = @FT2_LIBS@
T1_LIBS = @t1_LIBS@
ZLIB_LIBS = @ZLIB_LIBS@
PNG_LIBS = @png_LIBS@
BOOST_LIBS = @BOOST_LDFLAGS@
BOOSTPROGRAMOPTIONS_LIBS = @BOOST_PROGRAM_OPTIONS_LIB@
# PDFedit specific libs
CPPUNIT_LIBS = @CPPUNIT_LIBS@
PDFEDIT_LIBS = -lkernel -L$(KERNELROOT) -lutils -L$(UTILSROOT) \
-lxpdf -L$(XPDFROOT)/xpdf -lfofi -L$(XPDFROOT)/fofi \
-lGoo -L$(XPDFROOT)/goo -lsplash -L$(XPDFROOT)/splash
# given from configure parameters
STANDARD_LIBS = @LIBS@
STANDARD_LDFLAGS = @LDFLAGS@
# all necessary libraries
MANDATORY_LIBS = $(BOOST_LIBS) $(PDFEDIT_LIBS) \
$(FREETYPE_LIBS) $(T1_LIBS) $(ZLIB_LIBS)
# All necessary libraries for 3rd party code depending on pdfedit-core-dev
# TODO change to have only one library containing kernel, utils, xpdf, fofi,
# goo, splash libraries
DIST_LIBS = $(BOOST_LIBS) \
-lkernel -L$(LIB_PATH)/kernel -lutils -L$(LIB_PATH)/utils \
-lxpdf -L$(LIB_PATH)/xpdf -lfofi -L$(LIB_PATH)/fofi \
-lGoo -L$(LIB_PATH)/goo -lsplash -L$(LIB_PATH)/splash \
$(FREETYPE_LIBS) $(T1_LIBS)
# all necessary libraries in file with path form (mainly for qmake projects
# to enable dependency on them)
# TODO use more generic library names (LIBPREFIX, suffix according static/
# dynamic library)
MANDATORY_LIB_FILES = $(KERNELROOT)/libkernel.a $(UTILSROOT)/libutils.a \
$(XPDFROOT)/xpdf/libxpdf.a $(XPDFROOT)/fofi/libfofi.a \
$(XPDFROOT)/goo/libGoo.a $(XPDFROOT)/splash/libsplash.a
########################################
# Compilation targets
########################################
# configure parameter --enable-gui
GUI_TARGET = @GUI_TARGET@
# configure parameter --enable-kernel-tests
KERNEL_TESTS_TARGET = @KERNEL_TESTS_TARGET@
# target for tools
TOOLS_TARGET = @TOOLS_TARGET@
# Cumulative target for all possible tests
TEST_TARGETS = $(KERNEL_TESTS_TARGET)
# Target for man pages generation/installation
# These variables are set when --enable-gui is selected
MAN_TARGET = @MAN_TARGET@
MAN_INSTALL_TARGET = @MAN_INSTALL_TARGET@
# configure parameter --enable-doxygen-doc
DOXYGEN_TARGET = @DOXYGEN_TARGET@
DOXYGEN_INSTALL_TARGET = @DOXYGEN_INSTALL_TARGET@
# configure parameter --enable-advanced-doc
ADVANCED_DOC_TARGET = @ADVANCED_TARGET@
ADVANCED_DOC_INSTALL_TARGET = @ADVANCED_INSTALL_TARGET@
# configure parameter --enable-user-manual
USER_MANUAL_TARGET = @USER_MANUAL_TARGET@
USER_MANUAL_INSTALL_TARGET = @USER_MANUAL_INSTALL_TARGET@
# installation rules
INSTALL_TARGET = @INSTALL_TARGET@
UNINSTALL_TARGET = @UNINSTALL_TARGET@