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