Change Makefiles for OpenSSH to more closely match the distro.
[dragonfly.git] / secure / usr.sbin / sshd / Makefile
CommitLineData
984263bc 1# $FreeBSD: src/secure/usr.sbin/sshd/Makefile,v 1.5.2.9 2003/02/03 17:31:12 des Exp $
c8c467ee 2# $DragonFly: src/secure/usr.sbin/sshd/Makefile,v 1.15 2008/09/28 03:19:46 pavalos Exp $
984263bc
MD
3#
4
5PROG= sshd
53789510
PA
6SRCS= sshd.c auth-rhosts.c auth-passwd.c auth-rsa.c auth-rh-rsa.c \
7 sshpty.c sshlogin.c servconf.c serverloop.c \
8 auth.c auth1.c auth2.c auth-options.c session.c \
9 auth-chall.c auth2-chall.c groupaccess.c \
10 auth-skey.c auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \
11 auth2-none.c auth2-passwd.c auth2-pubkey.c auth2-jpake.c \
12 monitor_mm.c monitor.c monitor_wrap.c kexdhs.c kexgexs.c \
13 auth-krb5.c \
14 auth2-gss.c gss-serv.c gss-serv-krb5.c \
15 loginrec.c auth-pam.c auth-shadow.c auth-sia.c md5crypt.c \
16 audit.c audit-bsm.c platform.c sftp-server.c sftp-common.c \
c36bd813 17 roaming_common.c
7258d1e7 18
984263bc 19# Portability layer
53789510 20SRCS+= xmmap.c
984263bc 21MAN= sshd.8 sshd_config.5
9c45a0f5
SU
22
23# Passwd routine
24SRCS+= auth-passwd-freebsd.c
25CFLAGS+=-DCUSTOM_SYS_AUTH_PASSWD
26
16308d4d
JS
27# Flags for PAM
28CFLAGS+=-DUSE_PAM -DHAVE_SECURITY_PAM_APPL_H \
29 -DHAVE_PAM_GETENVLIST -DHAVE_PAM_PUTENV
30
984263bc
MD
31LDADD+= -lopie -lmd
32DPADD+= ${LIBOPIE} ${LIBMD}
33
34.if defined(X11BASE)
35CFLAGS+= -DXAUTH_PATH=\"${X11BASE}/bin/xauth\"
36.endif
37
9c45a0f5
SU
38LDADD+= -lcrypt -lutil -lz -lwrap ${MINUSLPAM}
39DPADD+= ${LIBCRYPT} ${LIBUTIL} ${LIBZ} ${LIBWRAP} ${LIBPAM}
984263bc 40
9c45a0f5 41.include "../../Makefile.ssh.common"
984263bc
MD
42.include <bsd.prog.mk>
43
9c45a0f5 44.PATH: ${SSHDIR}/openbsd-compat
7258d1e7 45