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 ## Some convenient abbreviations for file suffixes.
35 ## Installation directories.
36 pkglibexecdir = $(libexecdir)/$(PACKAGE)
38 ###--------------------------------------------------------------------------
39 ### Initial values for common variables.
44 MAINTAINERCLEANFILES =
53 EXTRA_DIST += $(PROGMANS) $(LIBMANS)
55 ###--------------------------------------------------------------------------
56 ### Machinery for precomputations.
58 ## Location of precomputed tables.
59 precomp = $(top_srcdir)/precomp
61 ## Precomputed source code files.
63 EXTRA_DIST += $(PRECOMPS)
64 BUILT_SOURCES += $(PRECOMPS)
65 MAINTAINERCLEANFILES += $(PRECOMPS)
67 ###--------------------------------------------------------------------------
72 -I$(top_srcdir)/codec \
73 -I$(top_srcdir)/hash \
76 -I$(top_srcdir)/struct \
78 -I$(top_srcdir)/test \
79 -I$(top_srcdir)/trace \
83 AM_CPPFLAGS = $(MLIB_INCLUDES)
85 ###--------------------------------------------------------------------------
86 ### Standard configuration substitutions.
88 ## Substitute tags in files.
89 confsubst = $(top_srcdir)/config/confsubst
92 prefix=$(prefix) exec_prefix=$(exec_prefix) \
93 libdir=$(libdir) includedir=$(includedir) \
94 bindir=$(bindir) sbindir=$(sbindir) \
95 PACKAGE=$(PACKAGE) VERSION=$(VERSION)
97 V_SUBST = $(V_SUBST_$(V))
98 V_SUBST_ = $(V_SUBST_$(AM_DEFAULT_VERBOSITY))
99 V_SUBST_0 = @echo " SUBST $@";
100 SUBST = $(V_SUBST)$(confsubst)
102 ###--------------------------------------------------------------------------
103 ### Building utilities.
105 ## Which libraries we need.
107 $(top_builddir)/ui/libui.la \
108 $(top_builddir)/utils/libutils.la
110 ###--------------------------------------------------------------------------
113 TEST_CPPFLAGS = -DTEST_RIG -DSRCDIR="\"$(srcdir)\"" $(AM_CPPFLAGS)
114 LDADD = $(top_builddir)/libmLib.la
122 ###--------------------------------------------------------------------------
125 EXTRA_DIST += $(LIBMANS) $(PROGMANS)
127 install-data-local: install-man
128 install-man: $(LIBMANS) $(PROGMANS)
130 $(mkdir_p) $(DESTDIR)$(mandir)
131 $(top_srcdir)/config/maninst \
132 -d $(DESTDIR)$(mandir) -s $(srcdir) \
135 $(top_srcdir)/config/maninst \
136 -d $(DESTDIR)$(mandir) -s $(srcdir) \
137 -i "$(INSTALL)" -e $(manext) \
141 uninstall-local: uninstall-man
144 $(top_srcdir)/config/maninst \
145 -d $(DESTDIR)$(mandir) -s $(srcdir) \
146 uninstall $(PROGMANS)
147 $(top_srcdir)/config/maninst \
148 -d $(DESTDIR)$(mandir) -s $(srcdir) -e $(manext) \
150 .PHONY: uninstall-man
152 ###----- That's all, folks --------------------------------------------------