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

noinst_PROGRAMS = $(TS_PROGS)

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

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)
22
	$(srcdir)/run-tests $^
Niels Möller's avatar
Niels Möller committed
23