1# $OpenBSD: Makefile,v 1.105 2021/01/09 12:10:02 dtucker Exp $ 2 3.PATH: ${.CURDIR}/.. 4 5SRCS= sshd.c auth-rhosts.c auth-passwd.c sshpty.c sshlogin.c servconf.c \ 6 serverloop.c auth.c auth2.c auth-options.c session.c auth2-chall.c \ 7 groupaccess.c auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \ 8 auth2-none.c auth2-passwd.c auth2-pubkey.c monitor.c monitor_wrap.c \ 9 sftp-server.c sftp-common.c sftp-realpath.c sandbox-pledge.c srclimit.c 10SRCS+= authfd.c compat.c dns.c fatal.c hostfile.c readpass.c utf8.c uidswap.c 11SRCS+= ${SRCS_BASE} ${SRCS_KEX} ${SRCS_KEXS} ${SRCS_KEY} ${SRCS_KEYP} \ 12 ${SRCS_KRL} ${SRCS_PROT} ${SRCS_PKT} ${SRCS_UTL} ${SRCS_PKCS11} \ 13 ${SRCS_SK_CLIENT} 14 15PROG= sshd 16BINDIR= /usr/sbin 17MAN= sshd.8 sshd_config.5 18 19.include <bsd.own.mk> # for KERBEROS and AFS 20 21KERBEROS5=no 22 23.if (${KERBEROS5:L} == "yes") 24CFLAGS+=-DKRB5 -I${DESTDIR}/usr/include/kerberosV -DGSSAPI 25SRCS+= auth-krb5.c auth2-gss.c gss-serv.c gss-serv-krb5.c 26.endif 27 28.include <bsd.prog.mk> 29 30.if (${KERBEROS5:L} == "yes") 31LDADD+= -lgssapi -lkrb5 -lasn1 32LDADD+= -lwind -lroken -lcom_err -lpthread -lheimbase -lkafs 33DPADD+= ${LIBGSSAPI} ${LIBKRB5} 34.endif 35 36.if (${OPENSSL:L} == "yes") 37LDADD+= -lcrypto 38DPADD+= ${LIBCRYPTO} 39.endif 40 41LDADD+= -lutil 42DPADD+= ${LIBUTIL} 43 44.if (${ZLIB:L} == "yes") 45LDADD+= -lz 46DPADD+= ${LIBZ} 47.endif 48