configure.ac, Makefile.am: Collect libs only needed by Catcomb itself.
[catacomb] / Makefile.am
... / ...
CommitLineData
1### -*-makefile-*-
2###
3### Build script for Catacomb
4###
5### (c) 2013 Straylight/Edgeware
6###
7
8###----- Licensing notice ---------------------------------------------------
9###
10### This file is part of Catacomb.
11###
12### Catacomb 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### Catacomb 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 Catacomb; 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### The main library.
34
35lib_LTLIBRARIES = libcatacomb.la
36libcatacomb_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO) \
37 -no-undefined
38libcatacomb_la_LIBADD = $(MATHLIBS) $(PIXIE_LIBS) $(CATACOMB_LIBS) \
39 $(mLib_LIBS)
40libcatacomb_la_SOURCES =
41
42## Basic utilities.
43SUBDIRS += base
44libcatacomb_la_LIBADD += base/libbase.la
45
46## Mathematical infrastructure.
47SUBDIRS += math
48libcatacomb_la_LIBADD += math/libmath.la
49
50## Symmetric cryptography.
51SUBDIRS += symm
52libcatacomb_la_LIBADD += symm/libsymm.la
53
54## Key management.
55SUBDIRS += key
56libcatacomb_la_LIBADD += key/libkey.la
57
58## Miscellaneous cryptography.
59SUBDIRS += misc
60libcatacomb_la_LIBADD += misc/libmisc.la
61
62## Public-key cryptography.
63SUBDIRS += pub
64libcatacomb_la_LIBADD += pub/libpub.la
65
66## Random number generators and related functionality.
67SUBDIRS += rand
68libcatacomb_la_LIBADD += rand/librand.la
69
70## At this point, we should construct the library.
71SUBDIRS += .
72
73###--------------------------------------------------------------------------
74### Ancillary programs.
75
76SUBDIRS += progs
77
78###--------------------------------------------------------------------------
79### The pkg-config file.
80
81pkgconfigdir = $(libdir)/pkgconfig
82pkgconfig_DATA = catacomb.pc
83EXTRA_DIST += catacomb.pc.in
84CLEANFILES += catacomb.pc
85
86catacomb.pc: catacomb.pc.in Makefile
87 $(SUBST) $(srcdir)/catacomb.pc.in >$@.new $(SUBSTITUTIONS) && \
88 mv $@.new $@
89
90###--------------------------------------------------------------------------
91### Release tweaking.
92
93## Release number.
94dist-hook::
95 echo $(VERSION) >$(distdir)/RELEASE
96
97## Additional build tools.
98EXTRA_DIST += build-setup
99EXTRA_DIST += config/auto-version
100EXTRA_DIST += config/confsubst
101
102## Documentation files.
103EXTRA_DIST += README.cipher
104EXTRA_DIST += README.hash
105EXTRA_DIST += README.mp
106EXTRA_DIST += README.random
107
108###--------------------------------------------------------------------------
109### Debian.
110
111## General stuff.
112EXTRA_DIST += debian/rules
113EXTRA_DIST += debian/control
114EXTRA_DIST += debian/changelog
115EXTRA_DIST += debian/copyright
116EXTRA_DIST += debian/compat
117EXTRA_DIST += debian/source/format
118
119## catacomb2
120EXTRA_DIST += debian/catacomb2.install
121
122## catacomb-bin
123EXTRA_DIST += debian/catacomb-bin.install
124EXTRA_DIST += debian/catacomb-bin.prerm
125EXTRA_DIST += debian/catacomb-bin.postinst
126EXTRA_DIST += debian/catacomb-bin.config
127EXTRA_DIST += debian/catacomb-bin.templates
128
129## catacomb-dev
130EXTRA_DIST += debian/catacomb-dev.install
131
132###----- That's all, folks --------------------------------------------------