Makefile.am 1.25 KB
Newer Older
1
AM_CPPFLAGS = -I$(top_srcdir)
2

3
4
5
6
7
# We need .. to be searched before standard places, in order to pick
# up the newly built libnettle.a/libnettle.so, rather than any
# installed version.
AM_LDFLAGS = -L..

8
TS_PROGS = aes-test arcfour-test blowfish-test cast128-test \
9
           base16-test base64-test \
10
	   des-test des3-test des-compat-test \
11
	   md5-test md5-compat-test sha1-test sha256-test \
12
	   serpent-test twofish-test \
Niels Möller's avatar
Niels Möller committed
13
14
	   buffer-test sexp-test sexp-format-test \
	   rsa2sexp-test sexp2rsa-test \
15
16
	   knuth-lfib-test \
	   cbc-test hmac-test bignum-test \
17
	   pkcs1-test \
Niels Möller's avatar
Niels Möller committed
18
	   rsa-test rsa-keygen-test \
19
	   dsa-test dsa-keygen-test \
Niels Möller's avatar
Niels Möller committed
20
	   yarrow-test
21

22
TS_SH = sexp-conv-test symbols-test
Niels Möller's avatar
Niels Möller committed
23
24
25

TS_ALL = $(TS_PROGS) $(TS_SH)

Niels Möller's avatar
Niels Möller committed
26
27
noinst_PROGRAMS = $(TS_PROGS)

28
29
30
# Workaround to get automake to keep dependencies for testutils.o
EXTRA_PROGRAMS = testutils

31
32
33
34
# libnettle.a is added at the end to make sure all programs depend on it.
# It seems there's no DEPENDENCIES variable that affects all programs.

LDADD = testutils.o -lnettle ../libnettle.a
35
EXTRA_DIST = $(TS_SH) testutils.h \
36
	     run-tests rfc1750.txt
37

38
39
CLEANFILES = test.in test1.out test2.out

40
.PHONY: check 
41
check: $(TS_ALL) $(srcdir)/run-tests
42
	LD_LIBRARY_PATH=../.lib srcdir="$(srcdir)" \
43
	  $(srcdir)/run-tests $(TS_ALL)