DEVFS - More GPT fixes. Fix serial number aliases for slice 0.
[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 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
14
15 # Portability layer
16 SRCS+=  bsd-arc4random.c loginrec.c xmmap.c
17 MAN=    sshd.8 sshd_config.5
18
19 # Passwd routine
20 SRCS+=  auth-passwd-freebsd.c
21 CFLAGS+=-DCUSTOM_SYS_AUTH_PASSWD
22
23 # Flags for PAM
24 CFLAGS+=-DUSE_PAM -DHAVE_SECURITY_PAM_APPL_H \
25         -DHAVE_PAM_GETENVLIST -DHAVE_PAM_PUTENV
26
27 .if defined(WANT_KERBEROS)
28 CFLAGS+= -DKRB5 -DHEIMDAL
29 SRCS+=  auth-krb5.c
30 LDADD+=  -lkrb5 -lasn1 -lcom_err -lmd -L${.OBJDIR}/../../../kerberos5/lib/libroken -lroken
31 DPADD+=  ${LIBKRB5} ${LIBCOM_ERR} ${LIBASN1} ${LIBMD}
32 .endif
33
34 LDADD+= -lopie -lmd
35 DPADD+= ${LIBOPIE} ${LIBMD}
36
37 .if defined(X11BASE)
38 CFLAGS+= -DXAUTH_PATH=\"${X11BASE}/bin/xauth\"
39 .endif
40
41 LDADD+= -lcrypt -lutil -lz -lwrap ${MINUSLPAM}
42 DPADD+= ${LIBCRYPT} ${LIBUTIL} ${LIBZ} ${LIBWRAP} ${LIBPAM}
43
44 .include "../../Makefile.ssh.common"
45 .include <bsd.prog.mk>
46
47 .PATH: ${SSHDIR}/openbsd-compat
48