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