turns printfs back on
[freebsd-src/fkvm-freebsd.git] / secure / usr.bin / ssh / Makefile
blob11ab8633f64520c5dbc3cafa5e9d28a473d1b7a2
1 # $FreeBSD$
4 .include <bsd.own.mk>
6 PROG= ssh
7 CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
8 LINKS= ${BINDIR}/ssh ${BINDIR}/slogin
9 MAN= ssh.1 ssh_config.5
10 MLINKS= ssh.1 slogin.1
12 SRCS= ssh.c readconf.c clientloop.c sshtty.c \
13 sshconnect.c sshconnect1.c sshconnect2.c mux.c \
14 gss-genr.c
16 DPADD= ${LIBSSH} ${LIBUTIL} ${LIBZ}
17 LDADD= -lssh -lutil -lz
19 .if ${MK_KERBEROS_SUPPORT} != "no"
20 CFLAGS+= -DGSSAPI -DHAVE_GSSAPI_GSSAPI_H=1 -DKRB5 -DHEIMDAL
21 DPADD+= ${LIBGSSAPI}
22 LDADD+= -lgssapi
23 .endif
25 .if defined(X11BASE) || defined(LOCALBASE)
26 # Recommended /etc/make.conf setting is X11BASE=${LOCALBASE} for x.org
27 # 7.x upgrade on <= 6.2, but LOCALBASE has moved out of scope of src/
28 # so we need to provide the default for users with old make.conf
29 # settings.
30 LOCALBASE?= /usr/local
32 # Users may override either LOCALBASE or X11BASE to move the location
33 # of xauth
34 X11BASE?= ${LOCALBASE}
35 CFLAGS+= -DXAUTH_PATH=\"${X11BASE}/bin/xauth\"
36 .endif
38 DPADD+= ${LIBCRYPT} ${LIBCRYPTO}
39 LDADD+= -lcrypt -lcrypto
41 .include <bsd.prog.mk>
43 .PATH: ${SSHDIR}
45 ${OBJS} ${POBJS} ${SOBJS}: ssh_namespace.h