1# $FreeBSD$ 2# 3 4PROG= ssh 5CFLAGS+=-I${SSHDIR} 6LINKS= ${BINDIR}/ssh ${BINDIR}/slogin 7MAN= ssh.1 ssh_config.5 8MLINKS= ssh.1 slogin.1 9 10SRCS= ssh.c authfd.c hostfile.c msg.c readconf.c clientloop.c sshtty.c \ 11 sshconnect.c sshconnect1.c sshconnect2.c 12 13.if defined(MAKE_KERBEROS4) 14DISTRIBUTION=krb4 15CFLAGS+= -DKRB4 16LDADD+= -lkrb -lcom_err 17DPADD+= ${LIBKRB} ${LIBCOM_ERR} 18.endif 19 20.if defined(MAKE_KERBEROS5) 21DISTRIBUTION=krb5 22CFLAGS+= -DKRB5 -DHEIMDAL 23LDADD+= -lkrb5 -lasn1 -lcom_err -lmd -L${.OBJDIR}/../../../kerberos5/lib/libroken -lroken -lcrypt 24DPADD+= ${LIBKRB5} ${LIBCOM_ERR} ${LIBASN1} ${LIBMD} ${LIBCRYPT} 25.endif 26 27.if defined(X11BASE) 28CFLAGS+= -DXAUTH_PATH=\"${X11BASE}/bin/xauth\" 29.endif 30 31LDADD+= -lssh -lcrypto -lutil -lz 32DPADD+= ${LIBSSH} ${LIBCRYPTO} ${LIBUTIL} ${LIBZ} 33 34.include <bsd.prog.mk> 35 36.PATH: ${SSHDIR} 37