1#	$NetBSD: Makefile,v 1.20 2023/12/20 17:15:20 christos Exp $
2
3.include <bsd.own.mk>
4
5BINDIR = /usr/bin
6
7PROG=	ssh
8SRCS=	channels.c ssh.c readconf.c clientloop.c sshtty.c \
9	sshconnect.c sshconnect2.c mux.c auth.c auth-options.c
10
11COPTS.auth.c=		-DHOST_ONLY
12COPTS.mux.c=		-Wno-pointer-sign
13COPTS.sshconnect2.c=	-Wno-pointer-sign
14
15LINKS=	${BINDIR}/ssh ${BINDIR}/slogin
16MAN=	ssh.1 ssh_config.5
17MLINKS=	ssh.1 slogin.1
18
19.if (${USE_KERBEROS} != "no")
20# this is not entirely true, libgssapi might be independent of krb5
21SRCS +=	gss-genr.c
22LDADD+=	-lgssapi -lheimntlm ${LIBKRB5_LDADD}
23DPADD+=	${LIBGSSAPI} ${LIBHEIMNTLM} ${LIBKRB5_DPADD}
24.endif
25
26COPTS.sshconnect.c+=	${CC_WNO_FORMAT_TRUNCATION}
27
28.include <bsd.prog.mk>
29