d9898ee8 |
1 | # |
2 | # Copyright 2001-2005 Double Precision, Inc. |
3 | # See COPYING for distribution information. |
4 | # |
5 | # $Id: Makefile.am,v 1.7 2005/06/19 13:15:29 mrsam Exp $ |
6 | |
7 | AUTOMAKE = srcdir=${srcdir} @SHELL@ ${srcdir}/../automake.fix @AUTOMAKE@ |
8 | |
9 | if HMACC |
10 | HMAC=hmac.c |
11 | else |
12 | HMAC= |
13 | endif |
14 | |
15 | noinst_LTLIBRARIES=libsha1.la |
16 | |
17 | libsha1_la_SOURCES=sha1.c sha1.h sha1_hash.c sha256.c sha256_hash.c $(HMAC) |
18 | |
19 | noinst_PROGRAMS=testsuite |
20 | |
21 | testsuite_SOURCES=testsuite.c |
22 | testsuite_DEPENDENCIES=libsha1.la |
23 | testsuite_LDADD=$(testsuite_DEPENDENCIES) |
24 | testsuite_LDFLAGS=-static |
25 | |
26 | EXTRA_DIST=testsuite.txt hmac.c |
27 | |
28 | check-am: |
29 | ./testsuite | cmp -s - $(srcdir)/testsuite.txt |