1.include <src.opts.mk> 2.include "${SRCTOP}/secure/ssh.mk" 3 4PROG= sshd-auth 5SRCS= sshd-auth.c \ 6 auth2-methods.c \ 7 auth-rhosts.c auth-passwd.c sshpty.c sshlogin.c servconf.c \ 8 serverloop.c auth.c auth2.c auth-options.c session.c auth2-chall.c \ 9 groupaccess.c auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \ 10 auth2-none.c auth2-passwd.c auth2-pubkey.c auth2-pubkeyfile.c \ 11 auth2-gss.c gss-serv.c gss-serv-krb5.c \ 12 monitor_wrap.c auth-krb5.c \ 13 audit.c audit-bsm.c audit-linux.c platform.c \ 14 loginrec.c auth-pam.c auth-shadow.c auth-sia.c \ 15 sandbox-null.c sandbox-rlimit.c sandbox-darwin.c \ 16 sandbox-seccomp-filter.c sandbox-capsicum.c sandbox-solaris.c \ 17 sftp-server.c sftp-common.c \ 18 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_KERBEROS_SUPPORT} != "no" 42.if ${MK_MITKRB5} != "no" 43LIBADD+= gssapi_krb5 krb5 44.include "../../krb5/Makefile.inc" 45CFLAGS+= -I${KRB5_DIR}/include \ 46 -I${KRB5_SRCTOP}/include \ 47 -I${KRB5_OBJTOP}/lib 48.else 49LIBADD+= gssapi_krb5 gssapi krb5 50.endif 51.endif 52 53LIBADD+= crypto 54 55.include <bsd.prog.mk> 56 57.PATH: ${SSHDIR} 58