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
28 ACLOCAL_AMFLAGS = -Im4
32 ###--------------------------------------------------------------------------
33 ### Top-level library.
35 lib_LTLIBRARIES = libmLib.la
36 libmLib_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO) \
39 libmLib_la_LIBADD = $(MLIB_LIBS)
41 ###--------------------------------------------------------------------------
42 ### Package-configuration file.
44 pkgconfigdir = $(libdir)/pkgconfig
45 pkgconfig_DATA = mLib.pc
46 EXTRA_DIST += mLib.pc.in
49 mLib.pc: mLib.pc.in Makefile
50 $(SUBST) $(srcdir)/mLib.pc.in >$@.new \
54 ###--------------------------------------------------------------------------
57 ### Note: There are implicit dependencies between the subdirectories. Be
58 ### careful about reordering them.
62 libmLib_la_LIBADD += utils/libutils.la
66 libmLib_la_LIBADD += mem/libmem.la
70 libmLib_la_LIBADD += ui/libui.la
74 libmLib_la_LIBADD += hash/libhash.la
78 libmLib_la_LIBADD += struct/libstruct.la
80 ## Encoding and decoding.
82 libmLib_la_LIBADD += codec/libcodec.la
86 libmLib_la_LIBADD += sys/libsys.la
90 libmLib_la_LIBADD += buf/libbuf.la
92 ## Event-driven networking.
94 libmLib_la_LIBADD += sel/libsel.la
98 libmLib_la_LIBADD += test/libtest.la
102 libmLib_la_LIBADD += trace/libtrace.la
104 ## At this point we should construct the library.
108 SUBDIRS += test/example
109 SUBDIRS += ui/example
111 ###--------------------------------------------------------------------------
114 EXTRA_DIST += defs.man
116 EXTRA_DIST += mLib.3.in
119 ###--------------------------------------------------------------------------
124 ###--------------------------------------------------------------------------
127 ## Make sure the precomputed tables are available. Hang this off of any
129 mLib.pc.in: ensure-precomp-libs
131 for d in ui utils; do (cd $$d && $(MAKE) all) || exit 1; done
135 echo $(VERSION) >$(distdir)/RELEASE
137 ## Additional build tools.
138 EXTRA_DIST += config/confsubst
139 EXTRA_DIST += config/auto-version
140 EXTRA_DIST += config/maninst
142 ###--------------------------------------------------------------------------
146 EXTRA_DIST += debian/rules debian/copyright
147 EXTRA_DIST += debian/control debian/changelog
148 EXTRA_DIST += debian/compat debian/source/format
149 EXTRA_DIST += debian/common.symbols
152 EXTRA_DIST += debian/mlib2.install
153 EXTRA_DIST += debian/mlib2.symbols
156 EXTRA_DIST += debian/mlib2-adns.install.in
157 EXTRA_DIST += debian/mlib2-adns.symbols
160 EXTRA_DIST += debian/mlib-bin.install
163 EXTRA_DIST += debian/mlib-dev.install
165 ###----- That's all, folks --------------------------------------------------