xref: /freebsd/secure/libexec/sshd-session/Makefile (revision f8ed8382daf4b9a97056b1dba4fe4e5cb4f7485c)
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
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.endif
44
45.if ${MK_TCP_WRAPPERS} != "no"
46CFLAGS+=	-DLIBWRAP=1
47LIBADD+=	wrap
48.endif
49
50LIBADD+=	crypto
51
52.include <bsd.prog.mk>
53
54.PATH:	${SSHDIR}
55