Remove kerberosIV from the build.
[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.3 2003/08/05 07:45:43 asmodai Exp $
3 #
4
5 PROG=   sshd
6 SRCS=   sshd.c auth-rhosts.c auth-passwd.c auth-rsa.c auth-rh-rsa.c \
7         sshpty.c sshlogin.c servconf.c serverloop.c uidswap.c \
8         auth.c auth1.c auth2.c auth-options.c session.c \
9         auth-chall.c auth2-chall.c groupaccess.c \
10         auth-skey.c auth-bsdauth.c monitor_mm.c monitor.c \
11         auth2-none.c auth2-passwd.c auth2-pubkey.c \
12         auth2-hostbased.c auth2-kbdint.c \
13         auth2-pam-freebsd.c monitor_wrap.c monitor_fdpass.c
14 # Portability layer
15 SRCS+=  loginrec.c
16 MAN=    sshd.8 sshd_config.5
17 CFLAGS+=-I${SSHDIR}
18
19 .if defined(MAKE_KERBEROS5)
20 DISTRIBUTION=krb5
21 CFLAGS+= -DKRB5 -DHEIMDAL
22 SRCS+=  auth-krb5.c
23 LDADD+=  -lkrb5 -lasn1 -lcom_err -lmd -L${.OBJDIR}/../../../kerberos5/lib/libroken -lroken
24 DPADD+=  ${LIBKRB5} ${LIBCOM_ERR} ${LIBASN1} ${LIBMD}
25 .endif
26
27 LDADD+= -lopie -lmd
28 DPADD+= ${LIBOPIE} ${LIBMD}
29
30 .if defined(X11BASE)
31 CFLAGS+= -DXAUTH_PATH=\"${X11BASE}/bin/xauth\"
32 .endif
33
34 LDADD+= -lssh -lcrypt -lcrypto -lutil -lz -lwrap ${MINUSLPAM}
35 DPADD+= ${LIBSSH} ${LIBCRYPT} ${LIBCRYPTO} ${LIBUTIL} ${LIBZ} ${LIBWRAP} ${LIBPAM}
36
37 .if defined(OPENSSH_USE_POSIX_THREADS) && !defined(NOLIBC_R)
38 CFLAGS+=-DUSE_POSIX_THREADS
39 LDADD+= -lc_r
40 DPADD+= ${LIBC_R}
41 .endif
42
43 .include <bsd.prog.mk>
44
45 .PATH:  ${SSHDIR}