usr.sbin/makefs/hammer2: Sync with recent userspace ondisk.c changes
[dragonfly.git] / usr.sbin / sshd / Makefile
blob67ac1dcc66e09e0dafe55e0a6372c7f0d5e95a99
1 PROG= sshd
2 SRCS= sshd.c
4 .PATH: ${.CURDIR}/../../crypto/openssh
5 SRCS+= platform-listen.c \
6 servconf.c sshpty.c srclimit.c groupaccess.c auth2-methods.c \
7 dns.c fatal.c compat.c utf8.c authfd.c canohost.c
9 #SRCS+= auth.c auth-options.c auth-pam.c auth-passwd.c auth-rhosts.c \
10 # auth2.c auth2-chall.c auth2-hostbased.c auth2-kbdint.c auth2-none.c \
11 # auth2-passwd.c auth2-methods.c auth2-pubkey.c auth2-pubkeyfile.c \
12 # channels.c \
13 # groupaccess.c loginrec.c misc.c monitor.c monitor_wrap.c packet.c \
14 # platform.c \
15 # sandbox-rlimit.c servconf.c serverloop.c session.c \
16 # sftp-common.c sftp-realpath.c sftp-server.c sshbuf-misc.c sshlogin.c \
17 # sshpty.c sshkey.c uidswap.c \
19 # not needed:
20 # audit-bsm.c audit-linux.c audit.c auth-bsdauth.c auth-krb5.c auth-shadow.c auth-sia.c
21 # auth2-gss.c gss-serv-krb5.c gss-serv.c md5crypt.c
22 # sandbox-capsicum.c sandbox-darwin.c sandbox-null.c sandbox-pledge.c
23 # sandbox-seccomp-filter.c sandbox-solaris.c sandbox-systrace.c
25 # Custom password routine
26 #SRCS+= auth-passwd-custom.c
27 CFLAGS+= -DCUSTOM_SYS_AUTH_PASSWD
28 CFLAGS+= -DWTMPX_FILE=_PATH_WTMPX -DUTMPX_FILE=_PATH_UTMPX
29 CFLAGS+= -DUTXDB_LASTLOGIN=UTX_DB_LASTLOGX
31 WARNS?= 3
33 MAN= sshd.8 sshd_config.5
35 CFLAGS+= -DUSE_PAM
36 #CFLAGS+= -DHAVE_SECURITY_PAM_APPL_H -DHAVE_PAM_GETENVLIST -DHAVE_PAM_PUTENV
38 .if defined(XAUTH_PATH)
39 CFLAGS+= -DXAUTH_PATH=\"${XAUTH_PATH}\"
40 .endif
42 LDADD+= -lcrypt ${MINUSLPAM}
43 DPADD+= ${LIBCRYPT} ${LIBPAM}
45 CFLAGS+= -I${.CURDIR}/../../lib/libssh -I${.CURDIR}/../../crypto/openssh
46 CFLAGS+= -I${.CURDIR}/../../crypto/libressl/include
47 DPADD+= ${LIBSSH} ${LIBCRYPTO} ${LIBUTIL} ${LIBZ}
48 LDADD+= -lprivate_ssh -lprivate_crypto -lutil -lz
49 LDFLAGS+= -rpath /usr/lib/priv ${PRIVATELIB_LDFLAGS}
51 .include <bsd.prog.mk>