### -*-Makefile-*- ### ### Common build-system definition ### ### (c) 1998 Straylight/Edgeware ### ###----- Licensing notice --------------------------------------------------- ### ### This file is part of the mLib utilities library. ### ### mLib is free software; you can redistribute it and/or modify ### it under the terms of the GNU Library General Public License as ### published by the Free Software Foundation; either version 2 of the ### License, or (at your option) any later version. ### ### mLib 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 Library General Public License for more details. ### ### You should have received a copy of the GNU Library General Public ### License along with mLib; if not, write to the Free ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, ### MA 02111-1307, USA. ###-------------------------------------------------------------------------- ### Miscellaneous useful definitions. ## Installation directories. pkglibexecdir = $(libexecdir)/$(PACKAGE) ###-------------------------------------------------------------------------- ### Initial values for common variables. EXTRA_DIST = CLEANFILES = DISTCLEANFILES = MAINTAINERCLEANFILES = BUILT_SOURCES = bin_PROGRAMS = check_PROGRAMS = pkginclude_HEADERS = PROGMANS = LIBMANS = EXTRA_DIST += $(PROGMANS) $(LIBMANS) ###-------------------------------------------------------------------------- ### Machinery for precomputations. ## Location of precomputed tables. precomp = $(top_srcdir)/precomp ## Precomputed source code files. PRECOMPS = EXTRA_DIST += $(PRECOMPS) BUILT_SOURCES += $(PRECOMPS) MAINTAINERCLEANFILES += $(PRECOMPS) ###-------------------------------------------------------------------------- ### Include path. MLIB_INCLUDES = \ -I$(top_srcdir)/buf \ -I$(top_srcdir)/codec \ -I$(top_srcdir)/hash \ -I$(top_srcdir)/mem \ -I$(top_srcdir)/net \ -I$(top_srcdir)/struct \ -I$(top_srcdir)/sys \ -I$(top_srcdir)/test \ -I$(top_srcdir)/trace \ -I$(top_srcdir)/ui \ -I$(top_srcdir)/utils AM_CPPFLAGS = $(MLIB_INCLUDES) ###-------------------------------------------------------------------------- ### Standard configuration substitutions. ## Substitute tags in files. confsubst = $(top_srcdir)/config/confsubst SUBSTITUTIONS = \ prefix=$(prefix) exec_prefix=$(exec_prefix) \ libdir=$(libdir) includedir=$(includedir) \ bindir=$(bindir) sbindir=$(sbindir) \ PACKAGE=$(PACKAGE) VERSION=$(VERSION) \ MLIB_LIBS="$(MLIB_LIBS)" V_SUBST = $(V_SUBST_@AM_V@) V_SUBST_ = $(V_SUBST_@AM_DEFAULT_V@) V_SUBST_0 = @echo " SUBST $@"; SUBST = $(V_SUBST)$(confsubst) ###-------------------------------------------------------------------------- ### Building utilities. ## Which libraries we need. UTIL_LIBS = \ $(top_builddir)/ui/libui.la \ $(top_builddir)/utils/libutils.la ###-------------------------------------------------------------------------- ### Testing. TEST_CPPFLAGS = -DTEST_RIG -DSRCDIR="\"$(srcdir)\"" $(AM_CPPFLAGS) LDADD = $(top_builddir)/libmLib.la check: tests .PHONY: check tests tests::; .PHONY: tests ###-------------------------------------------------------------------------- ### Manual. EXTRA_DIST += $(LIBMANS) $(PROGMANS) install-data-local: install-man install-man: $(LIBMANS) $(PROGMANS) @$(NORMAL_INSTALL) $(mkdir_p) $(DESTDIR)$(mandir) $(top_srcdir)/config/maninst \ -d $(DESTDIR)$(mandir) -s $(srcdir) \ -i "$(INSTALL)" \ install $(PROGMANS) $(top_srcdir)/config/maninst \ -d $(DESTDIR)$(mandir) -s $(srcdir) \ -i "$(INSTALL)" -e $(manext) \ install $(LIBMANS) .PHONY: install-man uninstall-local: uninstall-man uninstall-man: @$(NORMAL_UNINSTALL) $(top_srcdir)/config/maninst \ -d $(DESTDIR)$(mandir) -s $(srcdir) \ uninstall $(PROGMANS) $(top_srcdir)/config/maninst \ -d $(DESTDIR)$(mandir) -s $(srcdir) -e $(manext) \ uninstall $(LIBMANS) .PHONY: uninstall-man ###----- That's all, folks --------------------------------------------------