xref: /freebsd/secure/usr.bin/ssh/Makefile (revision e1542a40580eb6faa6e18263fbc5081734765a84)
1c23e256eSMark Murray# $FreeBSD$
2c23e256eSMark Murray#
3c23e256eSMark Murray
4c23e256eSMark MurrayPROG=	ssh
5f0b56c5cSDag-Erling SmørgravCFLAGS+=-I${SSHDIR}
6c23e256eSMark MurrayLINKS=	${BINDIR}/ssh ${BINDIR}/slogin
716c52d15SDag-Erling SmørgravMAN=	ssh.1 ssh_config.5
816c52d15SDag-Erling SmørgravMLINKS=	ssh.1 slogin.1
9c23e256eSMark Murray
109f80be8eSDag-Erling SmørgravSRCS=	ssh.c readconf.c clientloop.c sshtty.c \
11d350064eSBrian Feldman	sshconnect.c sshconnect1.c sshconnect2.c
12c23e256eSMark Murray
13e1542a40SRuslan ErmilovDPADD=	${LIBSSH} ${LIBUTIL} ${LIBZ}
14e1542a40SRuslan ErmilovLDADD=	-lssh -lutil -lz
15e1542a40SRuslan Ermilov
16dbf104e6SMark Murray.if !defined(NO_KERBEROS)
179f80be8eSDag-Erling SmørgravCFLAGS+= -DGSSAPI -DKRB5 -DHEIMDAL
189f80be8eSDag-Erling SmørgravDPADD+=	 ${LIBGSSAPI} ${LIBKRB5} ${LIBASN1} ${LIBCOM_ERR} ${LIBMD} ${LIBROKEN}
199f80be8eSDag-Erling SmørgravLDADD+=	 -lgssapi -lkrb5 -lasn1 -lcom_err -lmd -lroken
206bde859fSRuslan Ermilov.endif
21c23e256eSMark Murray
224d858ef4SKris Kennaway.if defined(X11BASE)
230305cfceSAndrey A. ChernovCFLAGS+= -DXAUTH_PATH=\"${X11BASE}/bin/xauth\"
244d858ef4SKris Kennaway.endif
254d858ef4SKris Kennaway
26e1542a40SRuslan ErmilovDPADD+=	${LIBCRYPT} ${LIBCRYPTO}
27e1542a40SRuslan ErmilovLDADD+=	-lcrypt -lcrypto
282f538dadSKris Kennaway
292f538dadSKris Kennaway.include <bsd.prog.mk>
30b8cba406SRuslan Ermilov
31b8cba406SRuslan Ermilov.PATH:	${SSHDIR}
32