chiark / gitweb /
codec/{base32,hex}.h: Include `codec.h'.
[mLib] / vars.am
CommitLineData
18c831dc
MW
1### -*-Makefile-*-
2###
3### Common build-system definition
4###
5### (c) 1998 Straylight/Edgeware
6###
7
8###----- Licensing notice ---------------------------------------------------
9###
10### This file is part of the mLib utilities library.
11###
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.
16###
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.
21###
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.
26
27###--------------------------------------------------------------------------
28### Installation directories.
29
30pkglibexecdir = $(libexecdir)/$(PACKAGE)
31
32###--------------------------------------------------------------------------
33### Initial values for common variables.
34
35bin_PROGRAMS =
36check_PROGRAMS =
37pkginclude_HEADERS =
173ff44a 38PRECOMPS =
18c831dc
MW
39PROGMANS =
40LIBMANS =
173ff44a 41EXTRA_DIST = $(PRECOMPS) $(LIBMANS) $(PROGMANS)
18c831dc 42CLEANFILES =
173ff44a 43MAINTAINERCLEANFILES = $(PRECOMPS)
18c831dc
MW
44
45###--------------------------------------------------------------------------
46### Include path.
47
48MLIB_INCLUDES = \
49 -I$(top_srcdir)/buf \
50 -I$(top_srcdir)/codec \
51 -I$(top_srcdir)/hash \
52 -I$(top_srcdir)/mem \
53 -I$(top_srcdir)/net \
54 -I$(top_srcdir)/struct \
55 -I$(top_srcdir)/sys \
56 -I$(top_srcdir)/test \
57 -I$(top_srcdir)/trace \
58 -I$(top_srcdir)/ui \
59 -I$(top_srcdir)/utils
60
61CPPFLAGS += $(MLIB_INCLUDES)
62
63###--------------------------------------------------------------------------
64### Miscellaneous useful definitions.
65
66## Substitute tags in files.
67confsubst = $(top_srcdir)/config/confsubst
68
69SUBSTITUTIONS = \
70 prefix=$(prefix) exec_prefix=$(exec_prefix) \
71 libdir=$(libdir) includedir=$(includedir) \
72 bindir=$(bindir) sbindir=$(sbindir) \
73 PACKAGE=$(PACKAGE) VERSION=$(VERSION)
74
173ff44a
MW
75## Location of precomputed tables.
76precomp = $(top_srcdir)/precomp
77
18c831dc
MW
78###--------------------------------------------------------------------------
79### Building utilities.
80
81## Which libraries we need.
82UTIL_LIBS = \
83 $(top_builddir)/ui/libui.la \
84 $(top_builddir)/utils/libutils.la
85
86## Making sure they're built properly. Without this, `make dist' on a bare
87## source tree fails hopelessly.
88build_util_libs = \
89 for i in ui utils; do \
90 (cd $(top_builddir)/$$i && $(MAKE) lib$$i.la) || exit 1; \
91 done
92
93###--------------------------------------------------------------------------
94### Testing.
95
96TEST_CPPFLAGS = -DTEST_RIG -DSRCDIR="\"$(srcdir)\"" $(AM_CPPFLAGS)
97LDADD = $(top_builddir)/libmLib.la
98
99check: tests
100.PHONY: check tests
101
7cf5c72a
MW
102tests::;
103.PHONY: tests
104
18c831dc
MW
105###--------------------------------------------------------------------------
106### Manual.
107
108EXTRA_DIST += $(LIBMANS) $(PROGMANS)
109
110install-data-local: install-man
111install-man: $(LIBMANS) $(PROGMANS)
112 @$(NORMAL_INSTALL)
113 $(mkdir_p) $(DESTDIR)$(mandir)
114 $(top_srcdir)/config/maninst \
115 -d $(DESTDIR)$(mandir) -s $(srcdir) \
116 -i "$(INSTALL)" \
117 install $(PROGMANS)
118 $(top_srcdir)/config/maninst \
119 -d $(DESTDIR)$(mandir) -s $(srcdir) \
120 -i "$(INSTALL)" -e $(manext) \
121 install $(LIBMANS)
122.PHONY: install-man
123
124uninstall-local: uninstall-man
125uninstall-man:
126 @$(NORMAL_UNINSTALL)
127 $(top_srcdir)/config/maninst \
128 -d $(DESTDIR)$(mandir) -s $(srcdir) \
129 uninstall $(PROGMANS)
130 $(top_srcdir)/config/maninst \
131 -d $(DESTDIR)$(mandir) -s $(srcdir) -e $(manext) \
132 uninstall $(LIBMANS)
133.PHONY: uninstall-man
134
135###----- That's all, folks --------------------------------------------------