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

noinst_PROGRAMS = $(TS_PROGS)

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

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