### -*-makefile-*- ### ### Definitions used throughout the build system ### ### (c) 2008 Straylight/Edgeware ### ###----- Licensing notice --------------------------------------------------- ### ### This file is part of Trivial IP Encryption (TrIPE). ### ### TrIPE 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 2 of the License, or ### (at your option) any later version. ### ### TrIPE 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 TrIPE; if not, write to the Free Software Foundation, ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ###-------------------------------------------------------------------------- ### Initial values of common variables. EXTRA_DIST = CLEANFILES = DISTCLEANFILES = MAINTAINERCLEANFILES = SUFFIXES = ###-------------------------------------------------------------------------- ### Include path. TRIPE_INCLUDES = \ -I$(top_builddir)/config.h \ -I$(top_srcdir)/common \ -I$(top_srcdir)/priv CPPFLAGS += $(TRIPE_INCLUDES) ###-------------------------------------------------------------------------- ### Miscellanous useful definitions. ## Libraries of common code. libtripe = $(top_builddir)/common/libtripe.a libpriv = $(top_builddir)/priv/libpriv.a ## Create a directory if it doesn't exist. mkdir_p = $(top_srcdir)/config/install-sh -d ## Substitute tags in files. confsubst = $(top_srcdir)/config/confsubst ###-------------------------------------------------------------------------- ### Standard configuration substitutions. SUBSTITUTIONS = \ prefix=$(prefix) exec_prefix=$(exec_prefix) \ libdir=$(libdir) includedir=$(includedir) \ bindir=$(bindir) sbindir=$(sbindir) \ configdir=$(configdir) socketdir=$(socketdir) \ initconfig=$(initconfig) \ pidfile=$(pidfile) logfile=$(logfile) \ PACKAGE=$(PACKAGE) VERSION=$(VERSION) \ PYTHON=$(PYTHON) ###-------------------------------------------------------------------------- ### Manpage substitutions. SUFFIXES += .1 .1.in SUFFIXES += .5 .5.in SUFFIXES += .7 .7.in SUFFIXES += .8 .8.in mandefs = $(top_builddir)/defs.man mansubst = sed \ -e '/@@@PRE@@@/ {' \ -e 'r$(mandefs)' \ -e 'd' \ -e '}' .1.in.1 .5.in.5 .7.in.7 .8.in.8: $(mandefs) $(mansubst) $< >$@.new && mv $@.new $@ $(mandefs): $(top_srcdir)/defs.man.in Makefile $(confsubst) $(top_srcdir)/defs.man.in >$@.new $(SUBSTITUTIONS) sed '/^\.$$/ d; /^\.\\"/ d' $@.new >$@.new2 rm -f $@.new mv $@.new2 $@ ###----- That's all, folks --------------------------------------------------