10fdf8faeSEd Maste.include <src.opts.mk> 20fdf8faeSEd Maste.include "${SRCTOP}/secure/ssh.mk" 30fdf8faeSEd Maste 40fdf8faeSEd MastePROG= sshd-session 50fdf8faeSEd MasteSRCS= sshd-session.c auth-rhosts.c auth-passwd.c \ 60fdf8faeSEd Maste audit.c audit-bsm.c audit-linux.c platform.c \ 70fdf8faeSEd Maste sshpty.c sshlogin.c servconf.c serverloop.c \ 80fdf8faeSEd Maste auth.c auth2.c auth2-methods.c auth-options.c session.c \ 90fdf8faeSEd Maste auth2-chall.c groupaccess.c \ 100fdf8faeSEd Maste auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \ 110fdf8faeSEd Maste auth2-none.c auth2-passwd.c auth2-pubkey.c auth2-pubkeyfile.c \ 120fdf8faeSEd Maste monitor.c monitor_wrap.c auth-krb5.c \ 130fdf8faeSEd Maste auth2-gss.c gss-serv.c gss-serv-krb5.c \ 140fdf8faeSEd Maste loginrec.c auth-pam.c auth-shadow.c auth-sia.c \ 150fdf8faeSEd Maste sftp-server.c sftp-common.c \ 168e28d849SEd Maste uidswap.c platform-listen.c $(SKSRCS) 170fdf8faeSEd MastePACKAGE= ssh 180fdf8faeSEd Maste 190fdf8faeSEd Maste# gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile 200fdf8faeSEd MasteSRCS+= gss-genr.c 210fdf8faeSEd Maste 220fdf8faeSEd MasteMAN= 230fdf8faeSEd Maste 240fdf8faeSEd Maste# pam should always happen before ssh here for static linking 250fdf8faeSEd MasteLIBADD= pam ssh util 260fdf8faeSEd Maste 270fdf8faeSEd Maste.if ${MK_AUDIT} != "no" 280fdf8faeSEd MasteCFLAGS+= -DUSE_BSM_AUDIT=1 -DHAVE_GETAUDIT_ADDR=1 290fdf8faeSEd MasteLIBADD+= bsm 300fdf8faeSEd Maste.endif 310fdf8faeSEd Maste 32*72383174SJose Luis Duran.if ${MK_BLOCKLIST_SUPPORT} != "no" 33*72383174SJose Luis DuranCFLAGS+= -DUSE_BLOCKLIST=1 -I${SRCTOP}/contrib/blocklist/include 34*72383174SJose Luis DuranSRCS+= blocklist.c 35*72383174SJose Luis DuranLIBADD+= blocklist 36*72383174SJose Luis DuranLDFLAGS+=-L${LIBBLOCKLISTDIR} 370fdf8faeSEd Maste.endif 380fdf8faeSEd Maste 39dc5ba6b8SLexi Winter.if ${MK_KERBEROS_SUPPORT} != "no" 4070371c79SCy Schubert.if ${MK_MITKRB5} != "no" 41e26259f4SCy SchubertLIBADD+= gssapi_krb5 krb5 4270371c79SCy Schubert.include "../../krb5/Makefile.inc" 4370371c79SCy SchubertCFLAGS+= -I${KRB5_DIR}/include \ 4470371c79SCy Schubert -I${KRB5_SRCTOP}/include \ 45e26259f4SCy Schubert -I${KRB5_OBJTOP}/lib 46e26259f4SCy Schubert.else 47e26259f4SCy SchubertLIBADD+= gssapi_krb5 gssapi krb5 4870371c79SCy Schubert.endif 490fdf8faeSEd Maste.endif 500fdf8faeSEd Maste 510fdf8faeSEd Maste.if ${MK_TCP_WRAPPERS} != "no" 520fdf8faeSEd MasteCFLAGS+= -DLIBWRAP=1 530fdf8faeSEd MasteLIBADD+= wrap 540fdf8faeSEd Maste.endif 550fdf8faeSEd Maste 560fdf8faeSEd MasteLIBADD+= crypto 570fdf8faeSEd Maste 580fdf8faeSEd Maste.include <bsd.prog.mk> 590fdf8faeSEd Maste 600fdf8faeSEd Maste.PATH: ${SSHDIR} 61