chiark / gitweb /
@@@ m4
[mLib] / Makefile.am
... / ...
CommitLineData
1### -*-makefile-*-
2###
3### Top-level build for mLib
4###
5### (c) 2009 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
27include $(top_srcdir)/vars.am
28ACLOCAL_AMFLAGS = -Im4
29
30SUBDIRS =
31
32###--------------------------------------------------------------------------
33### Top-level library.
34
35lib_LTLIBRARIES = libmLib.la
36libmLib_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO) \
37 -no-undefined
38libmLib_la_SOURCES =
39libmLib_la_LIBADD = $(MLIB_LIBS)
40
41###--------------------------------------------------------------------------
42### Package-configuration file.
43
44pkgconfigdir = $(libdir)/pkgconfig
45pkgconfig_DATA = mLib.pc
46EXTRA_DIST += mLib.pc.in
47CLEANFILES += mLib.pc
48
49mLib.pc: mLib.pc.in Makefile
50 $(SUBST) $(srcdir)/mLib.pc.in >$@.new \
51 $(SUBSTITUTIONS) && \
52 mv $@.new $@
53
54###--------------------------------------------------------------------------
55### Subdirectories.
56###
57### Note: There are implicit dependencies between the subdirectories. Be
58### careful about reordering them.
59
60## Utilities.
61SUBDIRS += utils
62libmLib_la_LIBADD += utils/libutils.la
63
64## Memory allocation.
65SUBDIRS += mem
66libmLib_la_LIBADD += mem/libmem.la
67
68## User interface.
69SUBDIRS += ui
70libmLib_la_LIBADD += ui/libui.la
71
72## Hashing.
73SUBDIRS += hash
74libmLib_la_LIBADD += hash/libhash.la
75
76## Data structures.
77SUBDIRS += struct
78libmLib_la_LIBADD += struct/libstruct.la
79
80## Encoding and decoding.
81SUBDIRS += codec
82libmLib_la_LIBADD += codec/libcodec.la
83
84## System utilities.
85SUBDIRS += sys
86libmLib_la_LIBADD += sys/libsys.la
87
88## Buffering.
89SUBDIRS += buf
90libmLib_la_LIBADD += buf/libbuf.la
91
92## Event-driven networking.
93SUBDIRS += sel
94libmLib_la_LIBADD += sel/libsel.la
95
96## Testing.
97SUBDIRS += test
98libmLib_la_LIBADD += test/libtest.la
99
100## Tracing.
101SUBDIRS += trace
102libmLib_la_LIBADD += trace/libtrace.la
103
104###--------------------------------------------------------------------------
105### Testing.
106
107SUBDIRS += t
108
109###--------------------------------------------------------------------------
110### Distribution.
111
112## Make sure the precomputed tables are available. Hang this off of any
113## distributed file.
114mLib.pc.in: ensure-precomp-libs
115ensure-precomp-libs:
116 for d in ui utils; do (cd $$d && $(MAKE) all) || exit 1; done
117
118## Release number.
119dist-hook::
120 echo $(VERSION) >$(distdir)/RELEASE
121
122## Additional build tools.
123EXTRA_DIST += config/confsubst
124EXTRA_DIST += config/auto-version
125EXTRA_DIST += config/maninst
126
127###--------------------------------------------------------------------------
128### Debian.
129
130## General stuff.
131EXTRA_DIST += debian/rules debian/copyright
132EXTRA_DIST += debian/control debian/changelog
133EXTRA_DIST += debian/compat debian/source/format
134EXTRA_DIST += debian/common.symbols
135
136## mlib2
137EXTRA_DIST += debian/mlib2.install
138EXTRA_DIST += debian/mlib2.symbols
139
140## mlib2-adns
141EXTRA_DIST += debian/mlib2-adns.install.in
142EXTRA_DIST += debian/mlib2-adns.symbols
143
144## mlib-bin
145EXTRA_DIST += debian/mlib-bin.install
146
147## mlib-dev
148EXTRA_DIST += debian/mlib-dev.install
149
150###----- That's all, folks --------------------------------------------------