Switch to auth-pam.c from OpenSSH to unbreak Kerberos 5 build.
[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 $
16308d4d 2# $DragonFly: src/secure/usr.sbin/sshd/Makefile,v 1.10 2005/07/14 18:29:48 joerg Exp $
984263bc
MD
3#
4
5PROG= sshd
16308d4d
JS
6SRCS= sshd.c auth-rhosts.c auth-pam.c auth-passwd.c auth-rsa.c \
7 auth-rh-rsa.c sshpty.c sshlogin.c servconf.c serverloop.c uidswap.c \
984263bc 8 auth.c auth1.c auth2.c auth-options.c session.c \
9c45a0f5 9 auth-chall.c auth2-chall.c groupaccess.c auth-skey.c \
16308d4d 10 auth-bsdauth.c auth2-hostbased.c \
9c45a0f5
SU
11 auth2-kbdint.c auth2-none.c auth2-passwd.c auth2-pubkey.c \
12 monitor_mm.c monitor.c monitor_wrap.c monitor_fdpass.c \
c85a9a72 13 kexdhs.c kexgexs.c misc.c dh.c kex.c channels.c
7258d1e7 14
984263bc 15# Portability layer
9c45a0f5 16SRCS+= loginrec.c xmmap.c
984263bc 17MAN= sshd.8 sshd_config.5
9c45a0f5
SU
18
19# Passwd routine
20SRCS+= auth-passwd-freebsd.c
21CFLAGS+=-DCUSTOM_SYS_AUTH_PASSWD
22
16308d4d
JS
23# Flags for PAM
24CFLAGS+=-DUSE_PAM -DHAVE_SECURITY_PAM_APPL_H \
25 -DHAVE_PAM_GETENVLIST -DHAVE_PAM_PUTENV
26
7258d1e7 27SRCS+= auth-skey.c.patch auth.h.patch auth2.c.patch \
16308d4d 28 loginrec.c.patch monitor.c.patch auth-pam.c.patch \
7258d1e7 29 myproposal.h.patch servconf.c.patch session.c.patch sshd.c.patch
9c45a0f5 30
db2efc88 31SRCS+= sshd.8.no_obj.patch sshd_config.5.no_obj.patch
984263bc 32
984263bc
MD
33.if defined(MAKE_KERBEROS5)
34DISTRIBUTION=krb5
35CFLAGS+= -DKRB5 -DHEIMDAL
36SRCS+= auth-krb5.c
37LDADD+= -lkrb5 -lasn1 -lcom_err -lmd -L${.OBJDIR}/../../../kerberos5/lib/libroken -lroken
38DPADD+= ${LIBKRB5} ${LIBCOM_ERR} ${LIBASN1} ${LIBMD}
39.endif
40
41LDADD+= -lopie -lmd
42DPADD+= ${LIBOPIE} ${LIBMD}
43
44.if defined(X11BASE)
45CFLAGS+= -DXAUTH_PATH=\"${X11BASE}/bin/xauth\"
46.endif
47
9c45a0f5
SU
48LDADD+= -lcrypt -lutil -lz -lwrap ${MINUSLPAM}
49DPADD+= ${LIBCRYPT} ${LIBUTIL} ${LIBZ} ${LIBWRAP} ${LIBPAM}
984263bc 50
9c45a0f5 51.include "../../Makefile.ssh.common"
984263bc
MD
52.include <bsd.prog.mk>
53
9c45a0f5 54.PATH: ${SSHDIR}/openbsd-compat
7258d1e7 55