3 ### Top-level build for mLib
5 ### (c) 2009 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 include $(top_srcdir)/vars.am
31 ###--------------------------------------------------------------------------
32 ### Top-level library.
34 lib_LTLIBRARIES = libmLib.la
35 libmLib_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO) \
38 libmLib_la_LIBADD = $(MLIB_LIBS)
40 ###--------------------------------------------------------------------------
41 ### Package-configuration file.
43 pkgconfigdir = $(libdir)/pkgconfig
44 pkgconfig_DATA = mLib.pc
45 EXTRA_DIST += mLib.pc.in
48 mLib.pc: mLib.pc.in Makefile
49 $(SUBST) $(srcdir)/mLib.pc.in >$@.new \
53 ###--------------------------------------------------------------------------
56 ### Note: There are implicit dependencies between the subdirectories. Be
57 ### careful about reordering them.
61 libmLib_la_LIBADD += utils/libutils.la
65 libmLib_la_LIBADD += mem/libmem.la
69 libmLib_la_LIBADD += ui/libui.la
73 libmLib_la_LIBADD += hash/libhash.la
77 libmLib_la_LIBADD += struct/libstruct.la
79 ## Encoding and decoding.
81 libmLib_la_LIBADD += codec/libcodec.la
85 libmLib_la_LIBADD += sys/libsys.la
89 libmLib_la_LIBADD += buf/libbuf.la
91 ## Event-driven networking.
93 libmLib_la_LIBADD += sel/libsel.la
97 libmLib_la_LIBADD += test/libtest.la
101 libmLib_la_LIBADD += trace/libtrace.la
103 ###--------------------------------------------------------------------------
108 ###--------------------------------------------------------------------------
111 ## Make sure the precomputed tables are available. Hang this off of any
113 mLib.pc.in: ensure-precomp-libs
115 for d in ui utils; do (cd $$d && $(MAKE) all) || exit 1; done
119 echo $(VERSION) >$(distdir)/RELEASE
121 ## Additional build tools.
122 EXTRA_DIST += config/confsubst
123 EXTRA_DIST += config/auto-version
124 EXTRA_DIST += config/maninst
126 ###--------------------------------------------------------------------------
130 EXTRA_DIST += debian/rules debian/copyright
131 EXTRA_DIST += debian/control debian/changelog
132 EXTRA_DIST += debian/compat debian/source/format
133 EXTRA_DIST += debian/common.symbols
136 EXTRA_DIST += debian/mlib2.install
137 EXTRA_DIST += debian/mlib2.symbols
140 EXTRA_DIST += debian/mlib2-adns.install.in
141 EXTRA_DIST += debian/mlib2-adns.symbols
144 EXTRA_DIST += debian/mlib-bin.install
147 EXTRA_DIST += debian/mlib-dev.install
149 ###----- That's all, folks --------------------------------------------------