18e28d849SEd Maste.include <src.opts.mk> 28e28d849SEd Maste.include "${SRCTOP}/secure/ssh.mk" 38e28d849SEd Maste 48e28d849SEd MastePROG= sshd-auth 58e28d849SEd MasteSRCS= sshd-auth.c \ 68e28d849SEd Maste auth2-methods.c \ 78e28d849SEd Maste auth-rhosts.c auth-passwd.c sshpty.c sshlogin.c servconf.c \ 88e28d849SEd Maste serverloop.c auth.c auth2.c auth-options.c session.c auth2-chall.c \ 98e28d849SEd Maste groupaccess.c auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \ 108e28d849SEd Maste auth2-none.c auth2-passwd.c auth2-pubkey.c auth2-pubkeyfile.c \ 118e28d849SEd Maste auth2-gss.c gss-serv.c gss-serv-krb5.c \ 128e28d849SEd Maste monitor_wrap.c auth-krb5.c \ 138e28d849SEd Maste audit.c audit-bsm.c audit-linux.c platform.c \ 148e28d849SEd Maste loginrec.c auth-pam.c auth-shadow.c auth-sia.c \ 158e28d849SEd Maste sandbox-null.c sandbox-rlimit.c sandbox-darwin.c \ 168e28d849SEd Maste sandbox-seccomp-filter.c sandbox-capsicum.c sandbox-solaris.c \ 178e28d849SEd Maste sftp-server.c sftp-common.c \ 188e28d849SEd Maste uidswap.c $(SKSRCS) 198e28d849SEd MastePACKAGE= ssh 208e28d849SEd Maste 218e28d849SEd Maste# gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile 228e28d849SEd MasteSRCS+= gss-genr.c 238e28d849SEd Maste 248e28d849SEd MasteMAN= 258e28d849SEd Maste 268e28d849SEd Maste# pam should always happen before ssh here for static linking 278e28d849SEd MasteLIBADD= pam ssh util 288e28d849SEd Maste 298e28d849SEd Maste.if ${MK_AUDIT} != "no" 308e28d849SEd MasteCFLAGS+= -DUSE_BSM_AUDIT=1 -DHAVE_GETAUDIT_ADDR=1 318e28d849SEd MasteLIBADD+= bsm 328e28d849SEd Maste.endif 338e28d849SEd Maste 348e28d849SEd Maste.if ${MK_BLACKLIST_SUPPORT} != "no" 358e28d849SEd MasteCFLAGS+= -DUSE_BLACKLIST=1 -I${SRCTOP}/contrib/blocklist/include 368e28d849SEd MasteSRCS+= blacklist.c 378e28d849SEd MasteLIBADD+= blacklist 388e28d849SEd MasteLDFLAGS+=-L${LIBBLACKLISTDIR} 398e28d849SEd Maste.endif 408e28d849SEd Maste 41*665bf6ffSEd Maste.if ${MK_KERBEROS_SUPPORT} != "no" 428e28d849SEd Maste.if ${MK_MITKRB5} != "no" 43*665bf6ffSEd MasteLIBADD+= gssapi_krb5 krb5 448e28d849SEd Maste.include "../../krb5/Makefile.inc" 458e28d849SEd MasteCFLAGS+= -I${KRB5_DIR}/include \ 468e28d849SEd Maste -I${KRB5_SRCTOP}/include \ 47*665bf6ffSEd Maste -I${KRB5_OBJTOP}/lib 48*665bf6ffSEd Maste.else 49*665bf6ffSEd MasteLIBADD+= gssapi_krb5 gssapi krb5 508e28d849SEd Maste.endif 518e28d849SEd Maste.endif 528e28d849SEd Maste 538e28d849SEd MasteLIBADD+= crypto 548e28d849SEd Maste 558e28d849SEd Maste.include <bsd.prog.mk> 568e28d849SEd Maste 578e28d849SEd Maste.PATH: ${SSHDIR} 58