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 ### Installation directories.
30 pkglibexecdir = $(libexecdir)/$(PACKAGE)
32 ###--------------------------------------------------------------------------
33 ### Initial values for common variables.
41 EXTRA_DIST = $(PRECOMPS) $(LIBMANS) $(PROGMANS)
43 MAINTAINERCLEANFILES = $(PRECOMPS)
45 ###--------------------------------------------------------------------------
50 -I$(top_srcdir)/codec \
51 -I$(top_srcdir)/hash \
54 -I$(top_srcdir)/struct \
56 -I$(top_srcdir)/test \
57 -I$(top_srcdir)/trace \
61 CPPFLAGS += $(MLIB_INCLUDES)
63 ###--------------------------------------------------------------------------
64 ### Miscellaneous useful definitions.
66 ## Substitute tags in files.
67 confsubst = $(top_srcdir)/config/confsubst
70 prefix=$(prefix) exec_prefix=$(exec_prefix) \
71 libdir=$(libdir) includedir=$(includedir) \
72 bindir=$(bindir) sbindir=$(sbindir) \
73 PACKAGE=$(PACKAGE) VERSION=$(VERSION)
75 ## Location of precomputed tables.
76 precomp = $(top_srcdir)/precomp
78 ###--------------------------------------------------------------------------
79 ### Building utilities.
81 ## Which libraries we need.
83 $(top_builddir)/ui/libui.la \
84 $(top_builddir)/utils/libutils.la
86 ## Making sure they're built properly. Without this, `make dist' on a bare
87 ## source tree fails hopelessly.
89 for i in ui utils; do \
90 (cd $(top_builddir)/$$i && $(MAKE) lib$$i.la) || exit 1; \
93 ###--------------------------------------------------------------------------
96 TEST_CPPFLAGS = -DTEST_RIG -DSRCDIR="\"$(srcdir)\"" $(AM_CPPFLAGS)
97 LDADD = $(top_builddir)/libmLib.la
102 ###--------------------------------------------------------------------------
105 EXTRA_DIST += $(LIBMANS) $(PROGMANS)
107 install-data-local: install-man
108 install-man: $(LIBMANS) $(PROGMANS)
110 $(mkdir_p) $(DESTDIR)$(mandir)
111 $(top_srcdir)/config/maninst \
112 -d $(DESTDIR)$(mandir) -s $(srcdir) \
115 $(top_srcdir)/config/maninst \
116 -d $(DESTDIR)$(mandir) -s $(srcdir) \
117 -i "$(INSTALL)" -e $(manext) \
121 uninstall-local: uninstall-man
124 $(top_srcdir)/config/maninst \
125 -d $(DESTDIR)$(mandir) -s $(srcdir) \
126 uninstall $(PROGMANS)
127 $(top_srcdir)/config/maninst \
128 -d $(DESTDIR)$(mandir) -s $(srcdir) -e $(manext) \
130 .PHONY: uninstall-man
132 ###----- That's all, folks --------------------------------------------------