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 defined(X11BASE) || defined(LOCALBASE) 29# Recommended /etc/make.conf setting is X11BASE=${LOCALBASE} for x.org 30# 7.x upgrade on <= 6.2, but LOCALBASE has moved out of scope of src/ 31# so we need to provide the default for users with old make.conf 32# settings. 33LOCALBASE?= /usr/local 34 35# Users may override either LOCALBASE or X11BASE to move the location 36# of xauth 37X11BASE?= ${LOCALBASE} 38CFLAGS+= -DXAUTH_PATH=\"${X11BASE}/bin/xauth\" 39.endif 40 41DPADD+= ${LIBCRYPT} ${LIBCRYPTO} 42LDADD+= -lcrypt -lcrypto 43 44.include <bsd.prog.mk> 45 46.PATH: ${SSHDIR} 47 48${OBJS} ${POBJS} ${SOBJS}: ssh_namespace.h 49