Revert "Add missing libraries to some program Makefiles"
[dragonfly.git] / secure / usr.sbin / sshd / Makefile
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 $
3 #
4
5 PROG=   sshd
6 SRCS=   sshd.c auth-rhosts.c auth-passwd.c auth-rsa.c auth-rh-rsa.c \
7         audit.c audit-bsm.c platform.c \
8         sshpty.c sshlogin.c servconf.c serverloop.c \
9         auth.c auth1.c auth2.c auth-options.c session.c \
10         auth-chall.c auth2-chall.c groupaccess.c \
11         auth-skey.c auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \
12         auth2-none.c auth2-passwd.c auth2-pubkey.c auth2-jpake.c \
13         monitor_mm.c monitor.c monitor_wrap.c kexdhs.c kexgexs.c kexecdhs.c \
14         auth-krb5.c \
15         auth2-gss.c gss-serv.c gss-serv-krb5.c \
16         loginrec.c auth-pam.c auth-shadow.c auth-sia.c md5crypt.c \
17         sftp-server.c sftp-common.c \
18         roaming_common.c roaming_serv.c \
19         sandbox-rlimit.c
20
21 WARNS?= 0
22
23 # Portability layer
24 SRCS+=  fmt_scaled.c xmmap.c
25 MAN=    sshd.8 sshd_config.5
26
27 # Passwd routine
28 SRCS+=  auth-passwd-freebsd.c
29 CFLAGS+=-DCUSTOM_SYS_AUTH_PASSWD
30
31 # Flags for PAM
32 CFLAGS+=-DUSE_PAM -DHAVE_SECURITY_PAM_APPL_H \
33         -DHAVE_PAM_GETENVLIST -DHAVE_PAM_PUTENV
34
35 LDADD+= -lopie
36 DPADD+= ${LIBOPIE}
37
38 .if defined(X11BASE)
39 CFLAGS+= -DXAUTH_PATH=\"${X11BASE}/bin/xauth\"
40 .endif
41
42 LDADD+= -lcrypt -lwrap ${MINUSLPAM}
43 DPADD+= ${LIBCRYPT} ${LIBWRAP} ${LIBPAM}
44
45 .include "../../Makefile.ssh.common"
46 .include <bsd.prog.mk>
47
48 .PATH: ${SSHDIR}/openbsd-compat
49