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