Makefile.am 520 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 des-test \
5
	   md5-test md5-compat-test sha1-test \
6
	   serpent-test twofish-test
Niels Möller's avatar
Niels Möller committed
7
8
9
10

noinst_PROGRAMS = $(TS_PROGS)

LDADD = testutils.o ../libnettle.a
11
EXTRA_DIST = $(SOURCES:.c=.m4) testutils.c testutils.h run-tests
Niels Möller's avatar
Niels Möller committed
12
13
14
15
16
17
18
19
20
21
22

M4FLAGS = -P -s
%.c: macros.m4 %.m4
	$(M4) $(M4FLAGS) $^ > $@T
	test -s $@T && mv -f $@T $@

.PNONY: check run-tests

check: run-tests

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