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