progs/perftest.c: Use from Glibc syscall numbers.
[catacomb] / Makefile.am
CommitLineData
7db733d4
MW
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
0f00dc4c 27include $(top_srcdir)/vars.am
1c3d4cf5 28ACLOCAL_AMFLAGS = -Im4
7db733d4
MW
29
30SUBDIRS =
31
7db733d4 32###--------------------------------------------------------------------------
f4ed788c 33### Top-level library.
7db733d4 34
0f00dc4c 35lib_LTLIBRARIES = libcatacomb.la
90db641c
MW
36libcatacomb_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO) \
37 -no-undefined
f4ed788c 38libcatacomb_la_SOURCES =
02fe0bac
MW
39libcatacomb_la_LIBADD = $(MATHLIBS) $(PIXIE_LIBS) $(CATACOMB_LIBS) \
40 $(mLib_LIBS)
f4ed788c
MW
41
42###--------------------------------------------------------------------------
43### Package-configuration file.
44
45pkgconfigdir = $(libdir)/pkgconfig
46pkgconfig_DATA = catacomb.pc
47EXTRA_DIST += catacomb.pc.in
48CLEANFILES += catacomb.pc
49
50catacomb.pc: catacomb.pc.in Makefile
51 $(SUBST) $(srcdir)/catacomb.pc.in >$@.new $(SUBSTITUTIONS) && \
52 mv $@.new $@
53
54###--------------------------------------------------------------------------
55### Subdirectories.
56###
57### Note: There are implicit dependencies between the subdirectories. Be
58### careful about reordering them.
7db733d4 59
0f00dc4c
MW
60## Basic utilities.
61SUBDIRS += base
62libcatacomb_la_LIBADD += base/libbase.la
7db733d4 63
0f00dc4c
MW
64## Mathematical infrastructure.
65SUBDIRS += math
66libcatacomb_la_LIBADD += math/libmath.la
7db733d4 67
0f00dc4c
MW
68## Symmetric cryptography.
69SUBDIRS += symm
70libcatacomb_la_LIBADD += symm/libsymm.la
7db733d4 71
0f00dc4c
MW
72## Key management.
73SUBDIRS += key
74libcatacomb_la_LIBADD += key/libkey.la
7db733d4 75
0f00dc4c
MW
76## Miscellaneous cryptography.
77SUBDIRS += misc
78libcatacomb_la_LIBADD += misc/libmisc.la
7db733d4 79
0f00dc4c
MW
80## Public-key cryptography.
81SUBDIRS += pub
82libcatacomb_la_LIBADD += pub/libpub.la
7db733d4 83
0f00dc4c
MW
84## Random number generators and related functionality.
85SUBDIRS += rand
86libcatacomb_la_LIBADD += rand/librand.la
7db733d4 87
0f00dc4c
MW
88## At this point, we should construct the library.
89SUBDIRS += .
7db733d4
MW
90
91###--------------------------------------------------------------------------
0f00dc4c 92### Ancillary programs.
7db733d4 93
0f00dc4c 94SUBDIRS += progs
7db733d4
MW
95
96###--------------------------------------------------------------------------
f4ed788c 97### Distribution.
7db733d4
MW
98
99## Release number.
100dist-hook::
101 echo $(VERSION) >$(distdir)/RELEASE
102
103## Additional build tools.
f23d8ad2 104EXTRA_DIST += build-setup
ba6e6b64 105EXTRA_DIST += config/auto-version
0f00dc4c 106EXTRA_DIST += config/confsubst
7db733d4 107
f23d8ad2
MW
108## Documentation files.
109EXTRA_DIST += README.cipher
110EXTRA_DIST += README.hash
111EXTRA_DIST += README.mp
112EXTRA_DIST += README.random
113
7db733d4
MW
114###--------------------------------------------------------------------------
115### Debian.
116
117## General stuff.
118EXTRA_DIST += debian/rules
119EXTRA_DIST += debian/control
120EXTRA_DIST += debian/changelog
121EXTRA_DIST += debian/copyright
6000faf9 122EXTRA_DIST += debian/compat
eea933cd 123EXTRA_DIST += debian/source/format
6000faf9
MW
124
125## catacomb2
126EXTRA_DIST += debian/catacomb2.install
0c222465 127EXTRA_DIST += debian/catacomb2.symbols
7db733d4
MW
128
129## catacomb-bin
6000faf9 130EXTRA_DIST += debian/catacomb-bin.install
7db733d4
MW
131EXTRA_DIST += debian/catacomb-bin.prerm
132EXTRA_DIST += debian/catacomb-bin.postinst
133EXTRA_DIST += debian/catacomb-bin.config
134EXTRA_DIST += debian/catacomb-bin.templates
135
1c934051
MW
136## catacomb-data
137EXTRA_DIST += debian/catacomb-data.install
138
6000faf9
MW
139## catacomb-dev
140EXTRA_DIST += debian/catacomb-dev.install
141
7db733d4 142###----- That's all, folks --------------------------------------------------