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 uidswap.c platform-listen.c $(SKSRCS) 17PACKAGE= ssh 18 19# gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile 20SRCS+= gss-genr.c 21 22MAN= 23 24# pam should always happen before ssh here for static linking 25LIBADD= pam ssh util 26 27.if ${MK_AUDIT} != "no" 28CFLAGS+= -DUSE_BSM_AUDIT=1 -DHAVE_GETAUDIT_ADDR=1 29LIBADD+= bsm 30.endif 31 32.if ${MK_BLACKLIST_SUPPORT} != "no" 33CFLAGS+= -DUSE_BLACKLIST=1 -I${SRCTOP}/contrib/blocklist/include 34SRCS+= blacklist.c 35LIBADD+= blacklist 36LDFLAGS+=-L${LIBBLACKLISTDIR} 37.endif 38 39.if ${MK_KERBEROS_SUPPORT} != "no" 40.if ${MK_MITKRB5} != "no" 41LIBADD+= gssapi_krb5 krb5 42.include "../../krb5/Makefile.inc" 43CFLAGS+= -I${KRB5_DIR}/include \ 44 -I${KRB5_SRCTOP}/include \ 45 -I${KRB5_OBJTOP}/lib 46.else 47LIBADD+= gssapi_krb5 gssapi krb5 48.endif 49.endif 50 51.if ${MK_TCP_WRAPPERS} != "no" 52CFLAGS+= -DLIBWRAP=1 53LIBADD+= wrap 54.endif 55 56LIBADD+= crypto 57 58.include <bsd.prog.mk> 59 60.PATH: ${SSHDIR} 61