1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PROG= sshd 6SRCS= sshd.c auth-rhosts.c auth-passwd.c auth-rsa.c auth-rh-rsa.c \ 7 audit.c audit-bsm.c audit-linux.c platform.c \ 8 sshpty.c sshlogin.c servconf.c serverloop.c \ 9 auth.c auth1.c auth2.c auth-options.c session.c \ 10 auth-chall.c auth2-chall.c groupaccess.c \ 11 auth-skey.c auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \ 12 auth2-none.c auth2-passwd.c auth2-pubkey.c \ 13 monitor_mm.c monitor.c monitor_wrap.c auth-krb5.c \ 14 auth2-gss.c gss-serv.c gss-serv-krb5.c \ 15 loginrec.c auth-pam.c auth-shadow.c auth-sia.c md5crypt.c \ 16 sftp-server.c sftp-common.c \ 17 roaming_common.c roaming_serv.c \ 18 sandbox-null.c sandbox-rlimit.c sandbox-systrace.c sandbox-darwin.c \ 19 sandbox-seccomp-filter.c sandbox-capsicum.c 20 21# gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile 22SRCS+= gss-genr.c 23 24MAN= sshd.8 sshd_config.5 25CFLAGS+=-I${SSHDIR} -include ssh_namespace.h 26SRCS+= ssh_namespace.h 27 28# pam should always happen before ssh here for static linking 29LIBADD= pam ssh util wrap 30 31.if ${MK_LDNS} != "no" 32CFLAGS+= -DHAVE_LDNS=1 33#DPADD+= ${LIBLDNS} 34#LDADD+= -lldns 35.endif 36 37.if ${MK_AUDIT} != "no" 38CFLAGS+= -DUSE_BSM_AUDIT -DHAVE_GETAUDIT_ADDR 39LIBADD+= bsm 40.endif 41 42.if ${MK_KERBEROS_SUPPORT} != "no" 43CFLAGS+= -include krb5_config.h 44SRCS+= krb5_config.h 45LIBADD+= gssapi_krb5 gssapi krb5 46.endif 47 48LIBADD+= crypto 49 50.if defined(LOCALBASE) 51CFLAGS+= -DXAUTH_PATH=\"${LOCALBASE}/bin/xauth\" 52.endif 53 54.include <bsd.prog.mk> 55 56.PATH: ${SSHDIR} 57