gcc50/libgcov: Fix whitespace in Makefile.
[dragonfly.git] / Makefile.ssh.common
blob57fa440a1ffe1e99d9fbcf4e9a9888793640ab47
1 # SSH common setup
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}/../../..
10 .else
11 .error "Cannot find source base"
12 .endif
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}
25 .endif
27 .PATH:  ${SSHDIR} ${SSHDIR}/openbsd-compat