summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2016-07-18 15:43:25 +1000
committerDarren Tucker <dtucker@zip.com.au>2016-07-18 15:43:25 +1000
commitc71ba790c304545464bb494de974cdf0f4b5cf1e (patch)
tree8648648c6108ae57b2d16fd08974f1849e7c057b
parent8199d0311aea3e6fd0284c9025e7a83f4ece79e8 (diff)
Add dependency on libs for unit tests.
Makes "./configure && make tests" work again. ok djm@
-rw-r--r--Makefile.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile.in b/Makefile.in
index 9a1c2877..e324f653 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -427,19 +427,21 @@ regress-prep:
[ -f `pwd`/regress/Makefile ] || \
ln -s `cd $(srcdir) && pwd`/regress/Makefile `pwd`/regress/Makefile
-regress/modpipe$(EXEEXT): $(srcdir)/regress/modpipe.c
+REGRESSLIBS=libssh.a $(LIBCOMPAT)
+
+regress/modpipe$(EXEEXT): $(srcdir)/regress/modpipe.c $(REGRESSLIBS)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $? \
$(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS)
-regress/setuid-allowed$(EXEEXT): $(srcdir)/regress/setuid-allowed.c
+regress/setuid-allowed$(EXEEXT): $(srcdir)/regress/setuid-allowed.c $(REGRESSLIBS)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $? \
$(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS)
-regress/netcat$(EXEEXT): $(srcdir)/regress/netcat.c
+regress/netcat$(EXEEXT): $(srcdir)/regress/netcat.c $(REGRESSLIBS)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $? \
$(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS)
-regress/check-perm$(EXEEXT): $(srcdir)/regress/check-perm.c
+regress/check-perm$(EXEEXT): $(srcdir)/regress/check-perm.c $(REGRESSLIBS)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $? \
$(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS)