diff options
author | bluhm@openbsd.org <bluhm@openbsd.org> | 2016-09-28 20:09:52 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2016-10-01 06:44:43 +1000 |
commit | ca71c36645fc26fcd739a8cfdc702cec85607761 (patch) | |
tree | 1edba5834df193bea745935180ca5f763ec59ca3 /regress | |
parent | ce44c970f913d2a047903dba8670554ac42fc479 (diff) |
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
Diffstat (limited to 'regress')
-rw-r--r-- | regress/unittests/Makefile.inc | 10 |
1 files 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 @@ | |||
1 | # $OpenBSD: Makefile.inc,v 1.6 2015/07/01 23:11:18 djm Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.7 2016/09/28 20:09:52 bluhm Exp $ |
2 | 2 | ||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
4 | .include <bsd.obj.mk> | 4 | .include <bsd.obj.mk> |
@@ -49,11 +49,15 @@ DPADD+=${.CURDIR}/../test_helper/libtest_helper.a | |||
49 | 49 | ||
50 | .if exists(${.CURDIR}/${SSHREL}/lib/${__objdir}) | 50 | .if exists(${.CURDIR}/${SSHREL}/lib/${__objdir}) |
51 | LDADD+=-L${.CURDIR}/${SSHREL}/lib/${__objdir} -lssh | 51 | LDADD+=-L${.CURDIR}/${SSHREL}/lib/${__objdir} -lssh |
52 | DPADD+=${.CURDIR}/${SSHREL}/lib/${__objdir}/libssh.a | 52 | LIBSSH=${.CURDIR}/${SSHREL}/lib/${__objdir}/libssh.a |
53 | .else | 53 | .else |
54 | LDADD+=-L${.CURDIR}/${SSHREL}/lib -lssh | 54 | LDADD+=-L${.CURDIR}/${SSHREL}/lib -lssh |
55 | DPADD+=${.CURDIR}/${SSHREL}/lib/libssh.a | 55 | LIBSSH=${.CURDIR}/${SSHREL}/lib/libssh.a |
56 | .endif | 56 | .endif |
57 | DPADD+=${LIBSSH} | ||
58 | ${PROG}: ${LIBSSH} | ||
59 | ${LIBSSH}: | ||
60 | cd ${.CURDIR}/${SSHREL} && ${MAKE} lib | ||
57 | 61 | ||
58 | LDADD+= -lcrypto | 62 | LDADD+= -lcrypto |
59 | DPADD+= ${LIBCRYPTO} | 63 | DPADD+= ${LIBCRYPTO} |