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 146bde859fSRuslan Ermilov.if defined(MAKE_KERBEROS4) 15e1eaf14cSMark MurrayDISTRIBUTION=krb4 16c23e256eSMark MurrayCFLAGS+= -DKRB4 17c23e256eSMark MurrayLDADD+= -lkrb -lcom_err 18c23e256eSMark MurrayDPADD+= ${LIBKRB} ${LIBCOM_ERR} 196bde859fSRuslan Ermilov.endif 20c23e256eSMark Murray 216bde859fSRuslan Ermilov.if defined(MAKE_KERBEROS5) 22e1eaf14cSMark MurrayDISTRIBUTION=krb5 23c23e256eSMark MurrayCFLAGS+= -DKRB5 24aa77fdaaSJohn HayLDADD+= -lkrb5 -lasn1 -lcom_err -lmd -L${.OBJDIR}/../../../kerberos5/lib/libroken -lroken -lcrypt 25aa77fdaaSJohn HayDPADD+= ${LIBKRB5} ${LIBCOM_ERR} ${LIBASN1} ${LIBMD} ${LIBCRYPT} 266bde859fSRuslan Ermilov.endif 27c23e256eSMark Murray 284d858ef4SKris Kennaway.if defined(X11BASE) 290305cfceSAndrey A. ChernovCFLAGS+= -DXAUTH_PATH=\"${X11BASE}/bin/xauth\" 304d858ef4SKris Kennaway.endif 314d858ef4SKris Kennaway 320509dca0SRuslan ErmilovLDADD+= -lssh -lcrypto -lutil -lz 33b8cba406SRuslan ErmilovDPADD+= ${LIBSSH} ${LIBCRYPTO} ${LIBUTIL} ${LIBZ} 342f538dadSKris Kennaway 352f538dadSKris Kennaway.include <bsd.prog.mk> 36b8cba406SRuslan Ermilov 37b8cba406SRuslan Ermilov.PATH: ${SSHDIR} 38