summaryrefslogtreecommitdiffstats
path: root/sha1/Makefile.am
blob: dd561e69a0bdd3cfda58416709d618cd567c751a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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