progs/perftest.c: Use from Glibc syscall numbers.
[catacomb] / misc / Makefile.am
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 nodist_libmisc_la_SOURCES =
32
33 TEST_LIBS = libmisc.la
34
35 ###--------------------------------------------------------------------------
36 ### Secret sharing.
37
38 ## Efficient sharing over GF(2^8).
39 pkginclude_HEADERS += gfshare.h
40 libmisc_la_SOURCES += gfshare.c
41 nodist_libmisc_la_SOURCES += ../precomp/misc/gfshare-tab.c
42 PRECOMPS += $(precomp)/misc/gfshare-tab.c
43 PRECOMP_PROGS += gfshare-mktab
44 if !CROSS_COMPILING
45 $(precomp)/misc/gfshare-tab.c:
46 $(AM_V_at)$(MKDIR_P) $(precomp)/misc
47 $(AM_V_at)$(MAKE) gfshare-mktab$(EXEEXT)
48 $(AM_V_GEN)./gfshare-mktab >$(precomp)/misc/gfshare-tab.c.new && \
49 mv $(precomp)/misc/gfshare-tab.c.new \
50 $(precomp)/misc/gfshare-tab.c
51 endif
52 TESTS += gfshare.t$(EXEEXT)
53
54 ## Number-theoretic sharing over GF(p).
55 pkginclude_HEADERS += share.h
56 libmisc_la_SOURCES += share.c
57 TESTS += share.t$(EXEEXT)
58
59 ###----- That's all, folks --------------------------------------------------