3 ### Definitions used throughout the build system
5 ### (c) 2008 Straylight/Edgeware
8 ###----- Licensing notice ---------------------------------------------------
10 ### This file is part of Trivial IP Encryption (TrIPE).
12 ### TrIPE is free software; you can redistribute it and/or modify
13 ### it under the terms of the GNU General Public License as published by
14 ### the Free Software Foundation; either version 2 of the License, or
15 ### (at your option) any later version.
17 ### TrIPE is distributed in the hope that it will be useful,
18 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ### GNU General Public License for more details.
22 ### You should have received a copy of the GNU General Public License
23 ### along with TrIPE; if not, write to the Free Software Foundation,
24 ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 ###--------------------------------------------------------------------------
27 ### Initial values of common variables.
33 MAINTAINERCLEANFILES =
37 ###--------------------------------------------------------------------------
41 -I$(top_builddir)/config.h \
42 -I$(top_srcdir)/common \
45 CPPFLAGS += $(TRIPE_INCLUDES)
47 ###--------------------------------------------------------------------------
48 ### Miscellanous useful definitions.
50 ## Libraries of common code.
51 libtripe = $(top_builddir)/common/libtripe.a
52 libpriv = $(top_builddir)/priv/libpriv.a
54 ## Substitute tags in files.
55 confsubst = $(top_srcdir)/config/confsubst
57 ###--------------------------------------------------------------------------
58 ### Standard configuration substitutions.
61 prefix=$(prefix) exec_prefix=$(exec_prefix) \
62 libdir=$(libdir) includedir=$(includedir) \
63 bindir=$(bindir) sbindir=$(sbindir) \
64 configdir=$(configdir) socketdir=$(socketdir) \
65 initconfig=$(initconfig) \
66 pidfile=$(pidfile) logfile=$(logfile) \
67 PACKAGE=$(PACKAGE) VERSION=$(VERSION) \
70 V_SUBST = $(V_SUBST_$(V))
71 V_SUBST_ = $(V_SUBST_$(AM_DEFAULT_VERBOSITY))
72 V_SUBST_0 = @echo " SUBST $@";
73 SUBST = $(V_SUBST)$(confsubst)
75 ###--------------------------------------------------------------------------
76 ### Manpage substitutions.
83 mandefs = $(top_srcdir)/common/defs.man
84 makesummary = $(top_srcdir)/common/make-summary
87 V_MAN_ = $(V_MAN_$(AM_DEFAULT_VERBOSITY))
88 V_MAN_0 = @echo " MAN $@";
90 .1.in.1 .5.in.5 .7.in.7 .8.in.8:
92 $(AM_V_at)sed '/^\.$$/ d; /^\.\\"/ d' $(mandefs) >$@.defs
93 $(AM_V_at)sed -e '/@@@PRE@@@/ {' -e 'r$@.defs' -e 'd' -e '}' \
95 $(AM_V_at)$(confsubst) $@.merge >$@.subst $(SUBSTITUTIONS)
96 $(AM_V_at)awk -f $(makesummary) $@.subst >$@.new
97 $(AM_V_at)rm -f $@.defs $@.merge $@.subst && mv $@.new $@
99 ###----- That's all, folks --------------------------------------------------