Inline Makefile.ssh.common
[dragonfly.git] / usr.bin / ssh / Makefile
1 # $FreeBSD: src/secure/usr.bin/ssh/Makefile,v 1.4.2.8 2003/02/03 17:31:12 des Exp $
2 .PATH: ${.CURDIR}/../../crypto/openssh
3
4 PROG=   ssh
5 LINKS=  ${BINDIR}/ssh ${BINDIR}/slogin
6 MAN=    ssh.1 ssh_config.5
7 MLINKS= ssh.1 slogin.1
8 WARNS?= 2
9
10 SRCS=   ssh.c
11 SRCS+=  clientloop.c mux.c readconf.c \
12         sshconnect.c sshconnect2.c sshtty.c
13
14 .if defined(XAUTH_PATH)
15 CFLAGS+= -DXAUTH_PATH=\"${XAUTH_PATH}\"
16 .endif
17
18 CFLAGS+=        -I${.CURDIR}/../../lib/libssh -I${.CURDIR}/../../crypto/openssh
19 CFLAGS+=        -I${.CURDIR}/../../crypto/libressl/include
20 DPADD=          ${LIBSSH} ${LIBCRYPTO} ${LIBUTIL} ${LIBZ}
21 LDADD=          -lprivate_ssh -lprivate_crypto -lutil -lz
22 LDFLAGS+=       -rpath /usr/lib/priv ${PRIVATELIB_LDFLAGS}
23
24 .include <bsd.prog.mk>