Sync zoneinfo database with tzdata2018d from ftp://ftp.iana.org/tz/releases
[dragonfly.git] / Makefile.ssh.common
1 # SSH common setup
2 #
3
4 # Bad hack because .INCLUDEDFROMDIR does not work.
5 #
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
13
14 SSHDIR=         ${SSHC_SYSDIR}/crypto/openssh
15
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}
20
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
26
27 .PATH:  ${SSHDIR} ${SSHDIR}/openbsd-compat