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