Makefile.am 1.32 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
9
noinst_PROGRAMS = aes-test arcfour-test arctwo-test \
	   blowfish-test cast128-test \
10
           base16-test base64-test \
11
	   des-test des3-test des-compat-test \
12
13
	   md2-test md4-test md5-test md5-compat-test \
	   sha1-test sha256-test \
14
	   serpent-test twofish-test \
Niels Möller's avatar
Niels Möller committed
15
16
	   buffer-test sexp-test sexp-format-test \
	   rsa2sexp-test sexp2rsa-test \
17
18
	   knuth-lfib-test \
	   cbc-test hmac-test bignum-test \
19
	   pkcs1-test \
20
	   rsa-test rsa-encrypt-test rsa-keygen-test \
21
	   dsa-test dsa-keygen-test \
Niels Möller's avatar
Niels Möller committed
22
	   yarrow-test
23

24
TS_PROGS = $(noinst_PROGRAMS)
25
TS_SH = sexp-conv-test symbols-test
Niels Möller's avatar
Niels Möller committed
26
27
28

TS_ALL = $(TS_PROGS) $(TS_SH)

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

32
33
34
35
# 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
36
EXTRA_DIST = $(TS_SH) testutils.h \
37
	     run-tests rfc1750.txt
38

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

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