xref: /dflybsd-src/libexec/sshd-session/Makefile (revision ba1276acd1c8c22d225b1bcf370a14c878644f44)
1PROG=	sshd-session
2SRCS=	sshd-session.c
3
4.PATH: ${.CURDIR}/../../crypto/openssh
5SRCS+=  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
19
20SRCS+=	auth-passwd-custom.c
21CFLAGS+= -DCUSTOM_SYS_AUTH_PASSWD
22CFLAGS+= -DWTMPX_FILE=_PATH_WTMPX -DUTMPX_FILE=_PATH_UTMPX
23CFLAGS+= -DUTXDB_LASTLOGIN=UTX_DB_LASTLOGX
24
25WARNS?=	3
26
27MAN=	sshd.8 sshd_config.5
28
29CFLAGS+= -DUSE_PAM
30#CFLAGS+= -DHAVE_SECURITY_PAM_APPL_H -DHAVE_PAM_GETENVLIST -DHAVE_PAM_PUTENV
31
32.if defined(XAUTH_PATH)
33CFLAGS+= -DXAUTH_PATH=\"${XAUTH_PATH}\"
34.endif
35
36LDADD+=	-lcrypt ${MINUSLPAM}
37DPADD+=	${LIBCRYPT} ${LIBPAM}
38
39CFLAGS+=	-I${.CURDIR}/../../lib/libssh -I${.CURDIR}/../../crypto/openssh
40CFLAGS+=	-I${.CURDIR}/../../crypto/libressl/include
41DPADD+=		${LIBSSH} ${LIBCRYPTO} ${LIBUTIL} ${LIBZ}
42LDADD+=		-lprivate_ssh -lprivate_crypto -lutil -lz
43LDFLAGS+=	-rpath /usr/lib/priv ${PRIVATELIB_LDFLAGS}
44
45.include <bsd.prog.mk>
46