<sys/cdefs.h>: Remove some duplicate definitions.
[dragonfly.git] / Makefile.ssh.common
blobc3080d3fd121fe5335af43a2dc4a1454dec13ae7
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 soure 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 /lib/priv:/usr/lib/priv -L ${_SHLIBDIRPREFIX}/usr/lib/priv
25 .endif
27 .PATH:  ${SSHDIR} ${SSHDIR}/openbsd-compat