Commit | Line | Data |
---|---|---|
0f00dc4c MW |
1 | ### -*-makefile-*- |
2 | ### | |
3 | ### Build script for miscellaneous cryptography | |
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 | ||
29 | noinst_LTLIBRARIES = libmisc.la | |
30 | libmisc_la_SOURCES = | |
31 | ||
e5b61a8d MW |
32 | TEST_LIBS = libmisc.la |
33 | ||
0f00dc4c MW |
34 | ###-------------------------------------------------------------------------- |
35 | ### Secret sharing. | |
36 | ||
37 | ## Efficient sharing over GF(2^8). | |
38 | pkginclude_HEADERS += gfshare.h | |
39 | libmisc_la_SOURCES += gfshare.c | |
e5b61a8d MW |
40 | libmisc_la_SOURCES += $(precomp)/gfshare-tab.c |
41 | PRECOMPS += $(precomp)/gfshare-tab.c | |
42 | PRECOMP_PROGS += gfshare-mktab | |
43 | if !CROSS_COMPILING | |
44 | $(precomp)/gfshare-tab.c: | |
45 | $(AM_V_at)$(MKDIR_P) $(precomp) | |
46 | $(AM_V_at)$(MAKE) gfshare-mktab$e | |
47 | $(AM_V_GEN)./gfshare-mktab >$(precomp)/gfshare-tab.c.new && \ | |
48 | mv $(precomp)/gfshare-tab.c.new $(precomp)/gfshare-tab.c | |
49 | endif | |
0f00dc4c MW |
50 | TESTS += gfshare.$t |
51 | ||
52 | ## Number-theoretic sharing over GF(p). | |
53 | pkginclude_HEADERS += share.h | |
54 | libmisc_la_SOURCES += share.c | |
55 | TESTS += share.$t | |
56 | ||
57 | ###----- That's all, folks -------------------------------------------------- |