Makefile.am 734 Bytes
Newer Older
1
2

OPENSSL_LIBFLAGS = @OPENSSL_LIBFLAGS@
3
AM_CPPFLAGS = -I$(top_srcdir)
4

5
6
7
8
9
# We need .. to be searched before standard places, in order to pick
# up the newly built libnettle.a/libnettle.so, rather than any
# installed version.
AM_LDFLAGS = -L..

10
EXTRA_PROGRAMS = rsa-keygen rsa-sign rsa-verify
11
noinst_PROGRAMS = nettle-benchmark @RSA_EXAMPLES@
12

13
LDADD = io.o -lnettle
14
nettle_benchmark_LDADD = -lnettle $(OPENSSL_LIBFLAGS)
15

16
17
nettle_benchmark_SOURCES = nettle-benchmark.c nettle-openssl.c

18
TS_PROGS = rsa-sign-test rsa-verify-test
19
EXTRA_DIST = io.c io.h run-tests setup-env teardown-env $(TS_PROGS)
20
21
22

.PHONY: run-tests
run-tests: $(TS_PROGS)
23
24
	LD_LIBRARY_PATH=../.lib srcdir="$(srcdir)" \
	  "$(srcdir)"/run-tests $(TS_PROGS)
25
26

check: run-tests