forked from DragonFlyBSD/DragonFlyBSD
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.ssh.common
More file actions
27 lines (22 loc) · 748 Bytes
/
Copy pathMakefile.ssh.common
File metadata and controls
27 lines (22 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# SSH common setup
#
# Bad hack because .INCLUDEDFROMDIR does not work.
#
.if exists(${.CURDIR}/../../Makefile.inc1)
SSHC_SYSDIR=${.CURDIR}/../..
.elif exists(${.CURDIR}/../../../Makefile.inc1)
SSHC_SYSDIR=${.CURDIR}/../../..
.else
.error "Cannot find source base"
.endif
SSHDIR= ${SSHC_SYSDIR}/crypto/openssh
XAUTH_PATH?= /usr/local/bin/xauth
CFLAGS+= -DXAUTH_PATH=\"${XAUTH_PATH}\"
CFLAGS+= -I${SSHC_SYSDIR}/crypto/libressl/include
CFLAGS+= -I${SSHC_SYSDIR}/lib/libssh -I${SSHDIR}
.if ${.CURDIR:T} != "libssh"
DPADD+= ${LIBSSH} ${LIBRECRYPTO} ${LIBUTIL} ${LIBZ} ${LIBPTHREAD}
LDADD+= -lprivate_ssh -lprivate_crypto -lutil -lz -lpthread
LDFLAGS+= -rpath /usr/lib/priv ${PRIVATELIB_LDFLAGS}
.endif
.PATH: ${SSHDIR} ${SSHDIR}/openbsd-compat