summaryrefslogtreecommitdiffstats
path: root/sha1/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'sha1/Makefile.am')
-rw-r--r--sha1/Makefile.am27
1 files changed, 27 insertions, 0 deletions
diff --git a/sha1/Makefile.am b/sha1/Makefile.am
new file mode 100644
index 0000000..dd561e6
--- /dev/null
+++ b/sha1/Makefile.am
@@ -0,0 +1,27 @@
+#
+# Copyright 2001-2008 Double Precision, Inc.
+# See COPYING for distribution information.
+#
+
+
+if HMACC
+HMAC=hmac.c
+else
+HMAC=
+endif
+
+noinst_LTLIBRARIES=libsha1.la
+
+libsha1_la_SOURCES=sha1.c sha1.h sha1_hash.c sha256.c sha256_hash.c sha512.c sha512_hash.c $(HMAC)
+
+noinst_PROGRAMS=testsuite
+
+testsuite_SOURCES=testsuite.c
+testsuite_DEPENDENCIES=libsha1.la
+testsuite_LDADD=$(testsuite_DEPENDENCIES)
+testsuite_LDFLAGS=-static
+
+EXTRA_DIST=testsuite.txt hmac.c
+
+check-am:
+ ./testsuite | cmp -s - $(srcdir)/testsuite.txt