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 =
48 EXTRA_DIST += $(PROGMANS) $(LIBMANS)
50 ###--------------------------------------------------------------------------
51 ### Machinery for precomputations.
53 ## Location of precomputed tables.
54 precomp = $(top_srcdir)/precomp
56 ## Precomputed source code files.
58 EXTRA_DIST += $(PRECOMPS)
59 BUILT_SOURCES += $(PRECOMPS)
60 MAINTAINERCLEANFILES += $(PRECOMPS)
62 ###--------------------------------------------------------------------------
67 -I$(top_srcdir)/codec \
68 -I$(top_srcdir)/hash \
71 -I$(top_srcdir)/struct \
73 -I$(top_srcdir)/test \
74 -I$(top_srcdir)/trace \
78 AM_CPPFLAGS = $(MLIB_INCLUDES)
80 ###--------------------------------------------------------------------------
81 ### Standard configuration substitutions.
83 ## Substitute tags in files.
84 confsubst = $(top_srcdir)/config/confsubst
87 prefix=$(prefix) exec_prefix=$(exec_prefix) \
88 libdir=$(libdir) includedir=$(includedir) \
89 bindir=$(bindir) sbindir=$(sbindir) \
90 PACKAGE=$(PACKAGE) VERSION=$(VERSION)
92 V_SUBST = $(V_SUBST_$(V))
93 V_SUBST_ = $(V_SUBST_$(AM_DEFAULT_VERBOSITY))
94 V_SUBST_0 = @echo " SUBST $@";
95 SUBST = $(V_SUBST)$(confsubst)
97 ###--------------------------------------------------------------------------
98 ### Building utilities.
100 ## Which libraries we need.
102 $(top_builddir)/ui/libui.la \
103 $(top_builddir)/utils/libutils.la
105 ###--------------------------------------------------------------------------
108 TEST_CPPFLAGS = -DTEST_RIG -DSRCDIR="\"$(srcdir)\"" $(AM_CPPFLAGS)
109 LDADD = $(top_builddir)/libmLib.la
117 ###--------------------------------------------------------------------------
120 EXTRA_DIST += $(LIBMANS) $(PROGMANS)
122 install-data-local: install-man
123 install-man: $(LIBMANS) $(PROGMANS)
125 $(mkdir_p) $(DESTDIR)$(mandir)
126 $(top_srcdir)/config/maninst \
127 -d $(DESTDIR)$(mandir) -s $(srcdir) \
130 $(top_srcdir)/config/maninst \
131 -d $(DESTDIR)$(mandir) -s $(srcdir) \
132 -i "$(INSTALL)" -e $(manext) \
136 uninstall-local: uninstall-man
139 $(top_srcdir)/config/maninst \
140 -d $(DESTDIR)$(mandir) -s $(srcdir) \
141 uninstall $(PROGMANS)
142 $(top_srcdir)/config/maninst \
143 -d $(DESTDIR)$(mandir) -s $(srcdir) -e $(manext) \
145 .PHONY: uninstall-man
147 ###----- That's all, folks --------------------------------------------------