xref: /openbsd-src/usr.bin/ssh/ssh/Makefile (revision 62af228467135ddff4a44e5f7a48ca2a03bc8ba3)
1#	$OpenBSD: Makefile,v 1.81 2020/01/25 23:02:14 djm Exp $
2
3.PATH:		${.CURDIR}/..
4
5SRCS=	ssh.c readconf.c clientloop.c sshtty.c sshconnect.c sshconnect2.c mux.c
6SRCS+=	authfd.c compat.c dns.c fatal.c hostfile.c readpass.c utf8.c
7SRCS+=	${SRCS_BASE} ${SRCS_KEX} ${SRCS_KEXC} ${SRCS_KEY} ${SRCS_KEYP} \
8	${SRCS_KRL} ${SRCS_PROT} ${SRCS_PKT} ${SRCS_UTL} ${SRCS_PKCS11} \
9	${SRCS_SK_CLIENT}
10
11PROG=	ssh
12
13BINDIR=	/usr/bin
14MAN=	ssh.1 ssh_config.5
15
16.include <bsd.own.mk>
17
18KERBEROS5=no
19
20.if (${KERBEROS5:L} == "yes")
21CFLAGS+= -DKRB5 -I${DESTDIR}/usr/include/kerberosV -DGSSAPI
22.endif # KERBEROS5
23
24.include <bsd.prog.mk>
25
26.if (${KERBEROS5:L} == "yes")
27DPADD+=  ${LIBGSSAPI} ${LIBKRB5}
28LDADD+=  -lgssapi -lkrb5 -lasn1
29LDADD+=  -lwind -lroken -lcom_err -lpthread -lheimbase
30.endif # KERBEROS5
31
32.if (${OPENSSL:L} == "yes")
33LDADD+=	-lcrypto
34DPADD+=	${LIBCRYPTO}
35.endif
36
37LDADD+=	-lutil
38DPADD+=	${LIBUTIL}
39
40.if (${ZLIB:L} == "yes")
41LDADD+=	-lz
42DPADD+=	${LIBZ}
43.endif
44