From ca71c36645fc26fcd739a8cfdc702cec85607761 Mon Sep 17 00:00:00 2001 From: "bluhm@openbsd.org" Date: Wed, 28 Sep 2016 20:09:52 +0000 Subject: [PATCH] upstream commit Add a makefile rule to create the ssh library when regress needs it. This allows to run the ssh regression tests without doing a "make build" before. Discussed with dtucker@ and djm@; OK djm@ Upstream-Regress-ID: ce489bd53afcd471225a125b4b94565d4717c025 --- regress/unittests/Makefile.inc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/regress/unittests/Makefile.inc b/regress/unittests/Makefile.inc index 7385e2ba3..20d32a7bf 100644 --- a/regress/unittests/Makefile.inc +++ b/regress/unittests/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.6 2015/07/01 23:11:18 djm Exp $ +# $OpenBSD: Makefile.inc,v 1.7 2016/09/28 20:09:52 bluhm Exp $ .include .include @@ -49,11 +49,15 @@ DPADD+=${.CURDIR}/../test_helper/libtest_helper.a .if exists(${.CURDIR}/${SSHREL}/lib/${__objdir}) LDADD+=-L${.CURDIR}/${SSHREL}/lib/${__objdir} -lssh -DPADD+=${.CURDIR}/${SSHREL}/lib/${__objdir}/libssh.a +LIBSSH=${.CURDIR}/${SSHREL}/lib/${__objdir}/libssh.a .else LDADD+=-L${.CURDIR}/${SSHREL}/lib -lssh -DPADD+=${.CURDIR}/${SSHREL}/lib/libssh.a +LIBSSH=${.CURDIR}/${SSHREL}/lib/libssh.a .endif +DPADD+=${LIBSSH} +${PROG}: ${LIBSSH} +${LIBSSH}: + cd ${.CURDIR}/${SSHREL} && ${MAKE} lib LDADD+= -lcrypto DPADD+= ${LIBCRYPTO}