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