Makefile.am 919 Bytes
Newer Older
1
CFLAGS = -I$(top_srcdir) @CFLAGS@
2
CPPFLAGS = @CPPFLAGS@
Niels Möller's avatar
Niels Möller committed
3

4
TS_PROGS = aes-test arcfour-test blowfish-test cast128-test \
5
	   des-test des3-test des-compat-test \
6
	   md5-test md5-compat-test sha1-test sha256-test \
7
	   serpent-test twofish-test \
Niels Möller's avatar
Niels Möller committed
8
	   cbc-test bignum-test yarrow-test
Niels Möller's avatar
Niels Möller committed
9

10
11
M4_FILES = aes-test.m4 arcfour-test.m4 blowfish-test.m4 cast128-test.m4 \
	   des-test.m4 des3-test.m4 \
12
	   md5-test.m4 md5-compat-test.m4 sha1-test.m4 sha256-test.m4 \
13
	   serpent-test.m4 twofish-test.m4 \
Niels Möller's avatar
Niels Möller committed
14
	   cbc-test.m4 bignum-test.m4
15

Niels Möller's avatar
Niels Möller committed
16
17
18
noinst_PROGRAMS = $(TS_PROGS)

LDADD = testutils.o ../libnettle.a
19
20
EXTRA_DIST = $(M4_FILES) macros.m4 testutils.c testutils.h \
	     run-tests rfc1750.txt
21

Niels Möller's avatar
Niels Möller committed
22
23
# M4FLAGS = -P -s
M4FLAGS = -P
24
$(M4_FILES:.m4=.c): %.c: macros.m4 %.m4
Niels Möller's avatar
Niels Möller committed
25
26
27
	$(M4) $(M4FLAGS) $^ > $@T
	test -s $@T && mv -f $@T $@

28
.PHONY: check run-tests
Niels Möller's avatar
Niels Möller committed
29
30
31
32

check: run-tests

run-tests: $(TS_PROGS)
33
	srcdir="$(srcdir)" "$(srcdir)"/run-tests $^
Niels Möller's avatar
Niels Möller committed
34