3 ### Common build-system definition
5 ### (c) 1998 Straylight/Edgeware
8 ###----- Licensing notice ---------------------------------------------------
10 ### This file is part of the mLib utilities library.
12 ### mLib is free software; you can redistribute it and/or modify
13 ### it under the terms of the GNU Library General Public License as
14 ### published by the Free Software Foundation; either version 2 of the
15 ### License, or (at your option) any later version.
17 ### mLib 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 Library General Public License for more details.
22 ### You should have received a copy of the GNU Library General Public
23 ### License along with mLib; if not, write to the Free
24 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
25 ### MA 02111-1307, USA.
27 ###--------------------------------------------------------------------------
28 ### Miscellaneous useful definitions.
30 ## Installation directories.
31 pkglibexecdir = $(libexecdir)/$(PACKAGE)
33 ###--------------------------------------------------------------------------
34 ### Initial values for common variables.
39 MAINTAINERCLEANFILES =
52 ###--------------------------------------------------------------------------
53 ### Machinery for precomputations.
55 ## Location of precomputed tables.
56 precomp = $(top_srcdir)/precomp
58 ## Precomputed source code files.
60 EXTRA_DIST += $(PRECOMPS)
61 BUILT_SOURCES += $(PRECOMPS)
62 MAINTAINERCLEANFILES += $(PRECOMPS)
64 ###--------------------------------------------------------------------------
69 -I$(top_srcdir)/codec \
70 -I$(top_srcdir)/hash \
73 -I$(top_srcdir)/struct \
75 -I$(top_srcdir)/test \
76 -I$(top_srcdir)/trace \
80 AM_CPPFLAGS = $(MLIB_INCLUDES)
82 ###--------------------------------------------------------------------------
83 ### Standard configuration substitutions.
85 ## Substitute tags in files.
86 confsubst = $(top_srcdir)/config/confsubst
89 prefix=$(prefix) exec_prefix=$(exec_prefix) \
90 libdir=$(libdir) includedir=$(includedir) \
91 bindir=$(bindir) sbindir=$(sbindir) \
92 PACKAGE=$(PACKAGE) VERSION=$(VERSION) \
93 MLIB_LIBS="$(MLIB_LIBS)"
95 V_SUBST = $(V_SUBST_@AM_V@)
96 V_SUBST_ = $(V_SUBST_@AM_DEFAULT_V@)
97 V_SUBST_0 = @echo " SUBST $@";
98 SUBST = $(V_SUBST)$(confsubst)
100 ###--------------------------------------------------------------------------
101 ### Building utilities.
103 ## Which libraries we need.
105 $(top_builddir)/ui/libui.la \
106 $(top_builddir)/utils/libutils.la
108 ###--------------------------------------------------------------------------
111 TEST_CPPFLAGS = -DTEST_RIG -DSRCDIR="\"$(srcdir)\"" $(AM_CPPFLAGS)
112 LDADD = $(top_builddir)/libmLib.la
120 ###--------------------------------------------------------------------------
123 noinst_DATA += $(PROGMANS) $(LIBMANS)
124 CLEANFILES += $(PROGMANS) $(LIBMANS)
129 mandefs = $(top_srcdir)/defs.man
131 V_MAN = $(V_MAN_@AM_V@)
132 V_MAN_ = $(V_MAN_@AM_DEFAULT_V@)
133 V_MAN_0 = @echo " MAN $@";
137 $(AM_V_at)sed '/^\.$$/ d; /^\.\\"/ d' $(mandefs) >$@.defs
138 $(AM_V_at)sed -e '/@@@PRE@@@/ {' -e 'r$@.defs' -e 'd' -e '}' \
140 $(AM_V_at)rm -f $@.defs && mv $@.new $@
142 install-data-local: install-man
143 install-man: $(LIBMANS) $(PROGMANS)
145 $(mkdir_p) $(DESTDIR)$(mandir)
146 $(top_srcdir)/config/maninst \
147 -d $(DESTDIR)$(mandir) -s . \
150 $(top_srcdir)/config/maninst \
151 -d $(DESTDIR)$(mandir) -s . \
152 -i "$(INSTALL)" -e "$(manext)" \
156 uninstall-local: uninstall-man
159 $(top_srcdir)/config/maninst \
160 -d $(DESTDIR)$(mandir) -s . \
161 uninstall $(PROGMANS)
162 $(top_srcdir)/config/maninst \
163 -d $(DESTDIR)$(mandir) -s . -e "$(manext)" \
165 .PHONY: uninstall-man
167 ###----- That's all, folks --------------------------------------------------