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 $(SKSRCS) 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_AUDIT} != "no" 30CFLAGS+= -DUSE_BSM_AUDIT=1 -DHAVE_GETAUDIT_ADDR=1 31LIBADD+= bsm 32.endif 33 34.if ${MK_BLACKLIST_SUPPORT} != "no" 35CFLAGS+= -DUSE_BLACKLIST=1 -I${SRCTOP}/contrib/blocklist/include 36SRCS+= blacklist.c 37LIBADD+= blacklist 38LDFLAGS+=-L${LIBBLACKLISTDIR} 39.endif 40 41.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no" 42LIBADD+= gssapi_krb5 gssapi krb5 43.if ${MK_MITKRB5} != "no" 44.include "../../krb5/Makefile.inc" 45CFLAGS+= -I${KRB5_DIR}/include \ 46 -I${KRB5_SRCTOP}/include \ 47 -I${KRB5_OBJTOP}/lib \ 48 -I${KRB5_DIR}/lib/gssapi/generic \ 49 -I${KRB5_DIR}/lib/gssapi/krb5 \ 50 -I${KRB5_DIR}/lib/gssapi/mechglue 51.endif 52.endif 53 54.if ${MK_TCP_WRAPPERS} != "no" 55CFLAGS+= -DLIBWRAP=1 56LIBADD+= wrap 57.endif 58 59LIBADD+= crypto 60 61.include <bsd.prog.mk> 62 63.PATH: ${SSHDIR} 64