1 # $FreeBSD: src/secure/usr.sbin/sshd/Makefile,v 1.5.2.9 2003/02/03 17:31:12 des Exp $
2 # $DragonFly: src/secure/usr.sbin/sshd/Makefile,v 1.15 2008/09/28 03:19:46 pavalos Exp $
6 SRCS
= sshd.c addrmatch.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 \
8 auth.c auth1.c auth2.c auth-options.c session.c packet.c \
9 auth-chall.c auth2-chall.c groupaccess.c auth-skey.c \
10 auth-bsdauth.c auth2-hostbased.c sftp-server.c sftp-common.c \
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 \
13 kexdhs.c kexgexs.c misc.c dh.c kex.c channels.c platform.c
16 SRCS
+= bsd-arc4random.c loginrec.c xmmap.c
17 MAN
= sshd
.8 sshd_config
.5
20 SRCS
+= auth-passwd-freebsd.c
21 CFLAGS
+=-DCUSTOM_SYS_AUTH_PASSWD
24 CFLAGS
+=-DUSE_PAM
-DHAVE_SECURITY_PAM_APPL_H \
25 -DHAVE_PAM_GETENVLIST
-DHAVE_PAM_PUTENV
27 .if defined
(WANT_KERBEROS
)
29 CFLAGS
+= -DKRB5
-DHEIMDAL
31 LDADD
+= -lkrb5
-lasn1
-lcom_err
-lmd
-L
${.OBJDIR
}/..
/..
/..
/kerberos5
/lib
/libroken
-lroken
32 DPADD
+= ${LIBKRB5} ${LIBCOM_ERR} ${LIBASN1} ${LIBMD}
36 DPADD
+= ${LIBOPIE} ${LIBMD}
39 CFLAGS
+= -DXAUTH_PATH
=\"${X11BASE}/bin
/xauth
\"
42 LDADD
+= -lcrypt
-lutil
-lz
-lwrap
${MINUSLPAM}
43 DPADD
+= ${LIBCRYPT} ${LIBUTIL} ${LIBZ} ${LIBWRAP} ${LIBPAM}
45 .
include "../../Makefile.ssh.common"
46 .
include <bsd.prog.mk
>
48 .PATH
: ${SSHDIR}/openbsd-compat