mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-11-24 19:53:24 +08:00
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
This commit is contained in:
parent
ce44c970f9
commit
ca71c36645
@ -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 <bsd.own.mk>
|
||||
.include <bsd.obj.mk>
|
||||
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user