Skip to content
Snippets Groups Projects
Commit 618cded4 authored by Niels Möller's avatar Niels Möller
Browse files

* examples/Makefile.am (LDADD): Use -lnettle, instead of an

explicit filename libnettle.a, so that we will use the shared
library, if it exists.
(AM_LDFLAGS): Added -L.., so we can find -lnettle.
(run-tests): Set LD_LIBRARY_PATH to ../.lib, when running the
testsuite.
* testsuite/Makefile.am: Similar changes.

Rev: src/nettle/examples/Makefile.am:1.10
Rev: src/nettle/testsuite/Makefile.am:1.28
parent 3ed7e424
No related branches found
No related tags found
No related merge requests found
CFLAGS = -I$(top_srcdir) @CFLAGS@
CPPFLAGS = @CPPFLAGS@
# 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..
EXTRA_PROGRAMS = rsa-keygen rsa-sign rsa-verify
noinst_PROGRAMS = nettle-benchmark sexp-conv @RSA_EXAMPLES@
LDADD = io.o ../libnettle.a
nettle_benchmark_LDADD = ../libnettle.a
LDADD = io.o -lnettle
nettle_benchmark_LDADD = -lnettle
TS_PROGS = rsa-sign-test rsa-verify-test sexp-conv-test
......@@ -13,6 +18,7 @@ EXTRA_DIST = io.c io.h run-tests setup-env teardown-env $(TS_PROGS)
.PHONY: run-tests
run-tests: $(TS_PROGS)
srcdir="$(srcdir)" "$(srcdir)"/run-tests $(TS_PROGS)
LD_LIBRARY_PATH=../.lib srcdir="$(srcdir)" \
"$(srcdir)"/run-tests $(TS_PROGS)
check: run-tests
CFLAGS = -I$(top_srcdir) @CFLAGS@
CPPFLAGS = @CPPFLAGS@
# 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..
TS_PROGS = aes-test arcfour-test blowfish-test cast128-test \
base16-test base64-test \
des-test des3-test des-compat-test \
......@@ -16,12 +21,13 @@ TS_PROGS = aes-test arcfour-test blowfish-test cast128-test \
noinst_PROGRAMS = $(TS_PROGS)
LDADD = testutils.o ../libnettle.a
LDADD = testutils.o -lnettle
EXTRA_DIST = testutils.c testutils.h \
run-tests rfc1750.txt
.PHONY: run-tests
run-tests: $(TS_PROGS)
srcdir="$(srcdir)" "$(srcdir)"/run-tests $(TS_PROGS)
LD_LIBRARY_PATH=../.lib srcdir="$(srcdir)" \
"$(srcdir)"/run-tests $(TS_PROGS)
check: run-tests
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment