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 mux.c \ 14 roaming_common.c roaming_client.c 15 16# gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile 17SRCS+= gss-genr.c 18 19DPADD= ${LIBSSH} ${LIBUTIL} ${LIBZ} 20LDADD= -lssh -lutil -lz 21 22.if ${MK_KERBEROS_SUPPORT} != "no" 23CFLAGS+= -DGSSAPI -DHAVE_GSSAPI_GSSAPI_H=1 -DKRB5 -DHEIMDAL 24DPADD+= ${LIBGSSAPI} 25LDADD+= -lgssapi 26.endif 27 28.if ${MK_OPENSSH_NONE_CIPHER} != "no" 29CFLAGS+= -DNONE_CIPHER_ENABLED 30.endif 31 32DPADD+= ${LIBCRYPT} ${LIBCRYPTO} 33LDADD+= -lcrypt -lcrypto 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