1.include <src.opts.mk> 2.include "${SRCTOP}/secure/ssh.mk" 3 4PROG= sshd-session 5SRCS= sshd-session.c auth-rhosts.c auth-passwd.c \ 6 audit.c audit-bsm.c audit-linux.c platform.c \ 7 sshpty.c sshlogin.c servconf.c serverloop.c \ 8 auth.c auth2.c auth2-methods.c auth-options.c session.c \ 9 auth2-chall.c groupaccess.c \ 10 auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \ 11 auth2-none.c auth2-passwd.c auth2-pubkey.c auth2-pubkeyfile.c \ 12 monitor.c monitor_wrap.c auth-krb5.c \ 13 auth2-gss.c gss-serv.c gss-serv-krb5.c \ 14 loginrec.c auth-pam.c auth-shadow.c auth-sia.c \ 15 sftp-server.c sftp-common.c \ 16 sandbox-null.c sandbox-rlimit.c sandbox-systrace.c sandbox-darwin.c \ 17 sandbox-seccomp-filter.c sandbox-capsicum.c sandbox-pledge.c \ 18 sandbox-solaris.c uidswap.c 19PACKAGE= ssh 20 21# gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile 22SRCS+= gss-genr.c 23 24MAN= 25 26# pam should always happen before ssh here for static linking 27LIBADD= pam ssh util 28 29.if ${MK_LDNS} != "no" 30CFLAGS+= -DHAVE_LDNS=1 31#DPADD+= ${LIBLDNS} 32#LDADD+= -lldns 33.endif 34 35.if ${MK_AUDIT} != "no" 36CFLAGS+= -DUSE_BSM_AUDIT=1 -DHAVE_GETAUDIT_ADDR=1 37LIBADD+= bsm 38.endif 39 40.if ${MK_BLACKLIST_SUPPORT} != "no" 41CFLAGS+= -DUSE_BLACKLIST=1 -I${SRCTOP}/contrib/blocklist/include 42SRCS+= blacklist.c 43LIBADD+= blacklist 44LDFLAGS+=-L${LIBBLACKLISTDIR} 45.endif 46 47.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no" 48CFLAGS+= -include krb5_config.h 49SRCS+= krb5_config.h 50LIBADD+= gssapi_krb5 gssapi krb5 51.endif 52 53.if ${MK_TCP_WRAPPERS} != "no" 54CFLAGS+= -DLIBWRAP=1 55LIBADD+= wrap 56.endif 57 58LIBADD+= crypto 59 60.include <bsd.prog.mk> 61 62.PATH: ${SSHDIR} 63