Generate precomputed tables as sources in `precomps/'.
[u/mdw/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
28
29SUBDIRS =
30
31###--------------------------------------------------------------------------
32### The main library.
33
34lib_LTLIBRARIES = libcatacomb.la
35libcatacomb_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO)
36libcatacomb_la_LIBADD = $(CATACOMB_LIBS) $(mLib_LIBS)
37libcatacomb_la_SOURCES =
38
39## Basic utilities.
40SUBDIRS += base
41libcatacomb_la_LIBADD += base/libbase.la
42
43## Mathematical infrastructure.
44SUBDIRS += math
45libcatacomb_la_LIBADD += math/libmath.la
46
47## Symmetric cryptography.
48SUBDIRS += symm
49libcatacomb_la_LIBADD += symm/libsymm.la
50
51## Key management.
52SUBDIRS += key
53libcatacomb_la_LIBADD += key/libkey.la
54
55## Miscellaneous cryptography.
56SUBDIRS += misc
57libcatacomb_la_LIBADD += misc/libmisc.la
58
59## Public-key cryptography.
60SUBDIRS += pub
61libcatacomb_la_LIBADD += pub/libpub.la
62
63## Random number generators and related functionality.
64SUBDIRS += rand
65libcatacomb_la_LIBADD += rand/librand.la
66
67## At this point, we should construct the library.
68SUBDIRS += .
69
70###--------------------------------------------------------------------------
71### Ancillary programs.
72
73SUBDIRS += progs
74
75###--------------------------------------------------------------------------
76### The pkg-config file.
77
78pkgconfigdir = $(libdir)/pkgconfig
79pkgconfig_DATA = catacomb.pc
80EXTRA_DIST += catacomb.pc.in
81CLEANFILES += catacomb.pc
82
83catacomb.pc: catacomb.pc.in Makefile
84 $(SUBST) $(srcdir)/catacomb.pc.in >$@.new $(SUBSTITUTIONS) && \
85 mv $@.new $@
86
87###--------------------------------------------------------------------------
88### Release tweaking.
89
90## Release number.
91dist-hook::
92 echo $(VERSION) >$(distdir)/RELEASE
93
94## Additional build tools.
95EXTRA_DIST += config/auto-version
96EXTRA_DIST += config/confsubst
97
98###--------------------------------------------------------------------------
99### Debian.
100
101## General stuff.
102EXTRA_DIST += debian/rules
103EXTRA_DIST += debian/control
104EXTRA_DIST += debian/changelog
105EXTRA_DIST += debian/copyright
106
107## catacomb-bin
108EXTRA_DIST += debian/catacomb-bin.prerm
109EXTRA_DIST += debian/catacomb-bin.postinst
110EXTRA_DIST += debian/catacomb-bin.config
111EXTRA_DIST += debian/catacomb-bin.templates
112
113###----- That's all, folks --------------------------------------------------