4 # Bad hack because .INCLUDEDFROMDIR does not work.
6 .if exists(${.CURDIR}/../../Makefile.inc1)
7 SSHC_SYSDIR=${.CURDIR}/../..
8 .elif exists(${.CURDIR}/../../../Makefile.inc1)
9 SSHC_SYSDIR=${.CURDIR}/../../..
11 .error "Cannot find source base"
14 SSHDIR= ${SSHC_SYSDIR}/crypto/openssh
16 XAUTH_PATH?= /usr/local/bin/xauth
17 CFLAGS+= -DXAUTH_PATH=\"${XAUTH_PATH}\"
18 CFLAGS+= -I${SSHC_SYSDIR}/crypto/libressl/include
19 CFLAGS+= -I${SSHC_SYSDIR}/lib/libssh -I${SSHDIR}
21 .if ${.CURDIR:T} != "libssh"
22 DPADD+= ${LIBSSH} ${LIBRECRYPTO} ${LIBUTIL} ${LIBZ} ${LIBPTHREAD}
23 LDADD+= -lprivate_ssh -lprivate_crypto -lutil -lz -lpthread
24 LDFLAGS+= -rpath /usr/lib/priv ${PRIVATELIB_LDFLAGS}
27 .PATH: ${SSHDIR} ${SSHDIR}/openbsd-compat