1# $FreeBSD$ 2# 3 4.include <bsd.own.mk> 5 6PROG= ssh 7CFLAGS+=-I${SSHDIR} -include ssh_namespace.h 8LINKS= ${BINDIR}/ssh ${BINDIR}/slogin 9MAN= ssh.1 ssh_config.5 10MLINKS= ssh.1 slogin.1 11 12SRCS= ssh.c readconf.c clientloop.c sshtty.c \ 13 sshconnect.c sshconnect1.c sshconnect2.c \ 14 gss-genr.c 15 16DPADD= ${LIBSSH} ${LIBUTIL} ${LIBZ} 17LDADD= -lssh -lutil -lz 18 19.if ${MK_KERBEROS_SUPPORT} != "no" 20CFLAGS+= -DGSSAPI -DHAVE_GSSAPI_GSSAPI_H=1 -DKRB5 -DHEIMDAL 21DPADD+= ${LIBGSSAPI} 22LDADD+= -lgssapi 23.endif 24 25.if defined(X11BASE) 26CFLAGS+= -DXAUTH_PATH=\"${X11BASE}/bin/xauth\" 27.endif 28 29DPADD+= ${LIBCRYPT} ${LIBCRYPTO} 30LDADD+= -lcrypt -lcrypto 31 32.include <bsd.prog.mk> 33 34.PATH: ${SSHDIR} 35 36${OBJS} ${POBJS} ${SOBJS}: ssh_namespace.h 37