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