Rearrange the file tree.
[u/mdw/catacomb] / misc / Makefile.am
diff --git a/misc/Makefile.am b/misc/Makefile.am
new file mode 100644 (file)
index 0000000..f5f380a
--- /dev/null
@@ -0,0 +1,51 @@
+### -*-makefile-*-
+###
+### Build script for miscellaneous cryptography
+###
+### (c) 2013 Straylight/Edgeware
+###
+
+###----- Licensing notice ---------------------------------------------------
+###
+### This file is part of Catacomb.
+###
+### Catacomb is free software; you can redistribute it and/or modify
+### it under the terms of the GNU Library General Public License as
+### published by the Free Software Foundation; either version 2 of the
+### License, or (at your option) any later version.
+###
+### Catacomb is distributed in the hope that it will be useful,
+### but WITHOUT ANY WARRANTY; without even the implied warranty of
+### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+### GNU Library General Public License for more details.
+###
+### You should have received a copy of the GNU Library General Public
+### License along with Catacomb; if not, write to the Free
+### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+### MA 02111-1307, USA.
+
+include $(top_srcdir)/vars.am
+
+noinst_LTLIBRARIES      = libmisc.la
+libmisc_la_SOURCES      =
+
+###--------------------------------------------------------------------------
+### Secret sharing.
+
+## Efficient sharing over GF(2^8).
+pkginclude_HEADERS     += gfshare.h
+libmisc_la_SOURCES     += gfshare.c
+gfshare.lo: gfshare-tab.h
+CLEANFILES             += gfshare-tab.h
+noinst_PROGRAMS                += gfshare-mktab
+gfshare-tab.h: gfshare-mktab$e
+       $(AM_V_GEN)./gfshare-mktab >gfshare-tab.h.new && \
+               mv gfshare-tab.h.new gfshare-tab.h
+TESTS                  += gfshare.$t
+
+## Number-theoretic sharing over GF(p).
+pkginclude_HEADERS     += share.h
+libmisc_la_SOURCES     += share.c
+TESTS                  += share.$t
+
+###----- That's all, folks --------------------------------------------------