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