1c23e256eSMark Murray# $FreeBSD$ 2c23e256eSMark Murray# 3c23e256eSMark Murray 4c23e256eSMark MurraySSHSRC= ${.CURDIR}/../../../crypto/openssh 5c23e256eSMark Murray 6c23e256eSMark MurrayPROG= ssh 7c23e256eSMark MurrayBINOWN= root 8087815f8SBrian Feldman.if defined(ENABLE_SUID_SSH) 9c23e256eSMark MurrayBINMODE=4555 10087815f8SBrian Feldman.endif 11c23e256eSMark MurrayMAN1= ssh.1 12c23e256eSMark MurrayLINKS= ${BINDIR}/ssh ${BINDIR}/slogin 13c23e256eSMark MurrayMLINKS= ssh.1 slogin.1 14c23e256eSMark Murray 154fc93544SKris KennawaySRCS= ssh.c log-client.c readconf.c clientloop.c sshconnect.c \ 164fc93544SKris Kennaway sshconnect1.c sshconnect2.c 17c23e256eSMark Murray 18c23e256eSMark Murray.include <bsd.own.mk> 19c23e256eSMark Murray 20c23e256eSMark Murray.PATH: ${SSHSRC} 21c23e256eSMark Murray.PATH: ${SSHSRC}/lib 22c23e256eSMark Murray 23c23e256eSMark Murray.if defined(MAKE_KERBEROS4) && \ 24c23e256eSMark Murray ((${MAKE_KERBEROS4} == "yes") || (${MAKE_KERBEROS4} == "YES")) 25e1eaf14cSMark MurrayDISTRIBUTION=krb4 26c23e256eSMark MurrayCFLAGS+= -DKRB4 27c23e256eSMark MurrayLDADD+= -lkrb -lcom_err 28c23e256eSMark MurrayDPADD+= ${LIBKRB} ${LIBCOM_ERR} 29c23e256eSMark Murray.endif # MAKE_KERBEROS4 30c23e256eSMark Murray 31c23e256eSMark Murray.if defined(MAKE_KERBEROS5) && \ 32c23e256eSMark Murray ((${MAKE_KERBEROS5} == "yes") || (${MAKE_KERBEROS5} == "YES")) 33e1eaf14cSMark MurrayDISTRIBUTION=krb5 34c23e256eSMark MurrayCFLAGS+= -DKRB5 35aa77fdaaSJohn HayLDADD+= -lkrb5 -lasn1 -lcom_err -lmd -L${.OBJDIR}/../../../kerberos5/lib/libroken -lroken -lcrypt 36aa77fdaaSJohn HayDPADD+= ${LIBKRB5} ${LIBCOM_ERR} ${LIBASN1} ${LIBMD} ${LIBCRYPT} 37c23e256eSMark Murray.endif # MAKE_KERBEROS5 38c23e256eSMark Murray 394d858ef4SKris Kennaway.if defined(X11BASE) 400305cfceSAndrey A. ChernovCFLAGS+= -DXAUTH_PATH=\"${X11BASE}/bin/xauth\" 414d858ef4SKris Kennaway.endif 424d858ef4SKris Kennaway 43c23e256eSMark MurrayLDADD+= -L${.OBJDIR}/../../lib/libssh -lssh -lcrypto -lutil -lz 44c23e256eSMark MurrayDPADD+= ${LIBCRYPTO} ${LIBUTIL} ${LIBZ} 452f538dadSKris Kennaway 462f538dadSKris Kennaway.include <bsd.prog.mk> 47