1# $OpenBSD: Makefile,v 1.69 2009/05/28 16:50:16 andreas Exp $ 2 3.PATH: ${.CURDIR}/.. 4 5PROG= sshd 6BINOWN= root 7BINMODE=555 8BINDIR= /usr/sbin 9MAN= sshd.8 sshd_config.5 10 11SRCS= sshd.c auth-rhosts.c auth-passwd.c auth-rsa.c auth-rh-rsa.c \ 12 sshpty.c sshlogin.c servconf.c serverloop.c \ 13 auth.c auth1.c auth2.c auth-options.c session.c \ 14 auth-chall.c auth2-chall.c groupaccess.c \ 15 auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \ 16 auth2-none.c auth2-passwd.c auth2-pubkey.c \ 17 monitor_mm.c monitor.c monitor_wrap.c \ 18 kexdhs.c kexgexs.c sftp-server.c sftp-common.c auth2-jpake.c \ 19 roaming_common.c 20 21.include <bsd.own.mk> # for KERBEROS and AFS 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 -lkafs 32DPADD+= ${LIBGSSAPI} ${LIBKRB5} 33.endif 34 35DPADD+= ${LIBCRYPTO} ${LIBUTIL} ${LIBZ} ${LIBDES} 36LDADD+= -lcrypto -lutil -lz -ldes 37 38.if (${TCP_WRAPPERS:L} == "yes") 39CFLAGS+= -DLIBWRAP 40DPADD+= ${LIBWRAP} 41LDADD+= -lwrap 42.endif 43