Makefile.am 855 Bytes
Newer Older
1
2
CFLAGS = -I$(top_srcdir) @CFLAGS@ -O0
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 \
8
	   cbc-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
14
15
	   serpent-test.m4 twofish-test.m4 \
	   cbc-test.m4

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

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

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

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

check: run-tests

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