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