i386 removal, part 70/x: Remove some i386 specific bits in the kernel.
[dragonfly.git] / Makefile.ssh.common
CommitLineData
0fe46dc6
MD
1# SSH common setup
2#
3
4# Bad hack because .INCLUDEDFROMDIR does not work.
5#
6.if exists(${.CURDIR}/../../Makefile.inc1)
7SSHC_SYSDIR=${.CURDIR}/../..
8.elif exists(${.CURDIR}/../../../Makefile.inc1)
9SSHC_SYSDIR=${.CURDIR}/../../..
10.else
3b5eca52 11.error "Cannot find source base"
0fe46dc6
MD
12.endif
13
14SSHDIR= ${SSHC_SYSDIR}/crypto/openssh
15
16XAUTH_PATH?= /usr/local/bin/xauth
17CFLAGS+= -DXAUTH_PATH=\"${XAUTH_PATH}\"
18CFLAGS+= -I${SSHC_SYSDIR}/crypto/libressl/include
19CFLAGS+= -I${SSHC_SYSDIR}/lib/libssh -I${SSHDIR}
20
21.if ${.CURDIR:T} != "libssh"
117e566d 22DPADD+= ${LIBSSH} ${LIBCRYPTO} ${LIBUTIL} ${LIBZ} ${LIBPTHREAD}
0fe46dc6 23LDADD+= -lprivate_ssh -lprivate_crypto -lutil -lz -lpthread
38b720cd 24LDFLAGS+= -rpath /usr/lib/priv ${PRIVATELIB_LDFLAGS}
0fe46dc6
MD
25.endif
26
27.PATH: ${SSHDIR} ${SSHDIR}/openbsd-compat