]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - secure/usr.sbin/sshd/Makefile
Merge bmake-20220204
[FreeBSD/FreeBSD.git] / secure / usr.sbin / sshd / Makefile
1 # $FreeBSD$
2
3 .include <src.opts.mk>
4 .include "${SRCTOP}/secure/ssh.mk"
5
6 CONFS=  moduli sshd_config
7 CONFSDIR=       /etc/ssh
8 PROG=   sshd
9 SRCS=   sshd.c auth-rhosts.c auth-passwd.c \
10         audit.c audit-bsm.c audit-linux.c platform.c \
11         sshpty.c sshlogin.c servconf.c serverloop.c \
12         auth.c auth2.c auth-options.c session.c \
13         auth2-chall.c groupaccess.c \
14         auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \
15         auth2-none.c auth2-passwd.c auth2-pubkey.c \
16         monitor.c monitor_wrap.c auth-krb5.c \
17         auth2-gss.c gss-serv.c gss-serv-krb5.c \
18         loginrec.c auth-pam.c auth-shadow.c auth-sia.c md5crypt.c \
19         srclimit.c sftp-server.c sftp-common.c \
20         sandbox-null.c sandbox-rlimit.c sandbox-systrace.c sandbox-darwin.c \
21         sandbox-seccomp-filter.c sandbox-capsicum.c sandbox-pledge.c \
22         sandbox-solaris.c uidswap.c
23 PACKAGE=        ssh
24
25 # gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile
26 SRCS+=  gss-genr.c
27
28 MAN=    sshd.8 sshd_config.5
29
30 # Don't rebuild based on moduli.c
31 moduli: .MADE
32
33 # pam should always happen before ssh here for static linking
34 LIBADD= pam ssh util
35
36 .if ${MK_LDNS} != "no"
37 CFLAGS+=        -DHAVE_LDNS=1
38 #DPADD+=        ${LIBLDNS}
39 #LDADD+=        -lldns
40 .endif
41
42 .if ${MK_AUDIT} != "no"
43 CFLAGS+= -DUSE_BSM_AUDIT=1 -DHAVE_GETAUDIT_ADDR=1
44 LIBADD+=        bsm
45 .endif
46
47 .if ${MK_BLACKLIST_SUPPORT} != "no"
48 CFLAGS+= -DUSE_BLACKLIST=1 -I${SRCTOP}/contrib/blacklist/include
49 SRCS+=  blacklist.c
50 LIBADD+= blacklist
51 LDFLAGS+=-L${LIBBLACKLISTDIR}
52 .endif
53
54 .if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no"
55 CFLAGS+= -include krb5_config.h
56 SRCS+=  krb5_config.h
57 LIBADD+=        gssapi_krb5 gssapi krb5
58 .endif
59
60 .if ${MK_TCP_WRAPPERS} != "no"
61 CFLAGS+=        -DLIBWRAP=1
62 LIBADD+=        wrap
63 .endif
64
65 LIBADD+=        crypto
66
67 .if defined(LOCALBASE)
68 CFLAGS+= -DXAUTH_PATH=\"${LOCALBASE}/bin/xauth\"
69 .endif
70
71 .include <bsd.prog.mk>
72
73 .PATH:  ${SSHDIR}