1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PROG= ssh 6LINKS= ${BINDIR}/ssh ${BINDIR}/slogin 7MAN= ssh.1 ssh_config.5 8MLINKS= ssh.1 slogin.1 9 10SRCS= ssh.c readconf.c clientloop.c sshtty.c \ 11 sshconnect.c sshconnect1.c sshconnect2.c mux.c 12 13# gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile 14SRCS+= gss-genr.c 15 16CFLAGS+=-I${SSHDIR} -include ssh_namespace.h 17SRCS+= ssh_namespace.h 18 19LIBADD= ssh 20 21.if ${MK_LDNS} != "no" 22CFLAGS+= -DHAVE_LDNS=1 23.endif 24 25.if ${MK_KERBEROS_SUPPORT} != "no" 26CFLAGS+= -include krb5_config.h 27SRCS+= krb5_config.h 28LIBADD+= gssapi 29.endif 30 31LIBADD+= crypto 32 33.if defined(LOCALBASE) 34CFLAGS+= -DXAUTH_PATH=\"${LOCALBASE}/bin/xauth\" 35.endif 36 37.include <bsd.prog.mk> 38 39.PATH: ${SSHDIR} 40