Remove the distribute, redistribute and distributeworld targets.
[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
c8c467ee 6SRCS= sshd.c addrmatch.c auth-rhosts.c auth-pam.c auth-passwd.c auth-rsa.c \
16308d4d 7 auth-rh-rsa.c sshpty.c sshlogin.c servconf.c serverloop.c uidswap.c \
40948e2d 8 auth.c auth1.c auth2.c auth-options.c session.c packet.c \
9c45a0f5 9 auth-chall.c auth2-chall.c groupaccess.c auth-skey.c \
40948e2d 10 auth-bsdauth.c auth2-hostbased.c sftp-server.c sftp-common.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 \
e979a2dd 13 kexdhs.c kexgexs.c misc.c dh.c kex.c channels.c platform.c
7258d1e7 14
984263bc 15# Portability layer
c8c467ee 16SRCS+= bsd-arc4random.c 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
cecff5c1 27.if defined(WANT_KERBEROS)
984263bc
MD
28CFLAGS+= -DKRB5 -DHEIMDAL
29SRCS+= auth-krb5.c
30LDADD+= -lkrb5 -lasn1 -lcom_err -lmd -L${.OBJDIR}/../../../kerberos5/lib/libroken -lroken
31DPADD+= ${LIBKRB5} ${LIBCOM_ERR} ${LIBASN1} ${LIBMD}
32.endif
33
34LDADD+= -lopie -lmd
35DPADD+= ${LIBOPIE} ${LIBMD}
36
37.if defined(X11BASE)
38CFLAGS+= -DXAUTH_PATH=\"${X11BASE}/bin/xauth\"
39.endif
40
9c45a0f5
SU
41LDADD+= -lcrypt -lutil -lz -lwrap ${MINUSLPAM}
42DPADD+= ${LIBCRYPT} ${LIBUTIL} ${LIBZ} ${LIBWRAP} ${LIBPAM}
984263bc 43
9c45a0f5 44.include "../../Makefile.ssh.common"
984263bc
MD
45.include <bsd.prog.mk>
46
9c45a0f5 47.PATH: ${SSHDIR}/openbsd-compat
7258d1e7 48