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