Makefile.am 937 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
11
# There's no program "io", it's just a trick to get automake to keep track
# of dependencies for io.o.
12
EXTRA_PROGRAMS = rsa-keygen rsa-sign rsa-verify rsa-encrypt rsa-decrypt io
13
noinst_PROGRAMS = nettle-benchmark @RSA_EXAMPLES@
14

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

17
18
19
20
21
# libnettle.a for the dependency
LDADD = io.o -lnettle ../libnettle.a

nettle_benchmark_LDADD = -lnettle ../libnettle.a $(OPENSSL_LIBFLAGS)

22
TS_PROGS = rsa-sign-test rsa-verify-test
23
EXTRA_DIST = io.h rsa-session.h run-tests setup-env teardown-env $(TS_PROGS)
24
25
26

.PHONY: run-tests
run-tests: $(TS_PROGS)
27
28
	LD_LIBRARY_PATH=../.lib srcdir="$(srcdir)" \
	  "$(srcdir)"/run-tests $(TS_PROGS)
29
30

check: run-tests