xref: /freebsd/secure/usr.bin/ssh/Makefile (revision 0509dca0c3687d52cef8e5ffab8a2f7d52be672a)
1c23e256eSMark Murray# $FreeBSD$
2c23e256eSMark Murray#
3c23e256eSMark Murray
4c23e256eSMark MurrayPROG=	ssh
5087815f8SBrian Feldman.if defined(ENABLE_SUID_SSH)
6c23e256eSMark MurrayBINMODE=4555
7087815f8SBrian Feldman.endif
8c23e256eSMark MurrayLINKS=	${BINDIR}/ssh ${BINDIR}/slogin
9c23e256eSMark MurrayMLINKS=	ssh.1 slogin.1
10c23e256eSMark Murray
11d350064eSBrian FeldmanSRCS=	ssh.c readconf.c clientloop.c sshtty.c \
12d350064eSBrian Feldman	sshconnect.c sshconnect1.c sshconnect2.c
13c23e256eSMark Murray
14c23e256eSMark Murray.if defined(MAKE_KERBEROS4) && \
15c23e256eSMark Murray	((${MAKE_KERBEROS4} == "yes") || (${MAKE_KERBEROS4} == "YES"))
16e1eaf14cSMark MurrayDISTRIBUTION=krb4
17c23e256eSMark MurrayCFLAGS+= -DKRB4
18c23e256eSMark MurrayLDADD+=	 -lkrb -lcom_err
19c23e256eSMark MurrayDPADD+=	 ${LIBKRB} ${LIBCOM_ERR}
20c23e256eSMark Murray.endif # MAKE_KERBEROS4
21c23e256eSMark Murray
22c23e256eSMark Murray.if defined(MAKE_KERBEROS5) && \
23c23e256eSMark Murray	((${MAKE_KERBEROS5} == "yes") || (${MAKE_KERBEROS5} == "YES"))
24e1eaf14cSMark MurrayDISTRIBUTION=krb5
25c23e256eSMark MurrayCFLAGS+= -DKRB5
26aa77fdaaSJohn HayLDADD+=	 -lkrb5 -lasn1 -lcom_err -lmd -L${.OBJDIR}/../../../kerberos5/lib/libroken -lroken -lcrypt
27aa77fdaaSJohn HayDPADD+=	 ${LIBKRB5} ${LIBCOM_ERR} ${LIBASN1} ${LIBMD} ${LIBCRYPT}
28c23e256eSMark Murray.endif # MAKE_KERBEROS5
29c23e256eSMark Murray
304d858ef4SKris Kennaway.if defined(X11BASE)
310305cfceSAndrey A. ChernovCFLAGS+= -DXAUTH_PATH=\"${X11BASE}/bin/xauth\"
324d858ef4SKris Kennaway.endif
334d858ef4SKris Kennaway
340509dca0SRuslan ErmilovLDADD+=	-lssh -lcrypto -lutil -lz
35b8cba406SRuslan ErmilovDPADD+=	${LIBSSH} ${LIBCRYPTO} ${LIBUTIL} ${LIBZ}
362f538dadSKris Kennaway
372f538dadSKris Kennaway.include <bsd.prog.mk>
38b8cba406SRuslan Ermilov
39b8cba406SRuslan Ermilov.PATH:	${SSHDIR}
40