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

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

noinst_PROGRAMS = $(TS_PROGS)

LDADD = testutils.o ../libnettle.a
13
EXTRA_DIST = $(SOURCES:.c=.m4) testutils.c testutils.h run-tests
Niels Möller's avatar
Niels Möller committed
14

15
16
# M4FLAGS = -P -s
M4FLAGS = -P
Niels Möller's avatar
Niels Möller committed
17
18
19
20
21
22
23
24
25
%.c: macros.m4 %.m4
	$(M4) $(M4FLAGS) $^ > $@T
	test -s $@T && mv -f $@T $@

.PNONY: check run-tests

check: run-tests

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