3b9dccbb9f4eb401c55e44408a544315ebf72d54
[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.2 2003/06/17 04:27:48 dillon 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_KERBEROS4)
20 DISTRIBUTION=krb4
21 CFLAGS+= -DKRB4
22 SRCS+=  auth-krb4.c
23 LDADD+=  -lkrb -lcom_err
24 DPADD+=  ${LIBKRB} ${LIBCOM_ERR}
25 .endif
26
27 .if defined(MAKE_KERBEROS5)
28 DISTRIBUTION=krb5
29 CFLAGS+= -DKRB5 -DHEIMDAL
30 SRCS+=  auth-krb5.c
31 LDADD+=  -lkrb5 -lasn1 -lcom_err -lmd -L${.OBJDIR}/../../../kerberos5/lib/libroken -lroken
32 DPADD+=  ${LIBKRB5} ${LIBCOM_ERR} ${LIBASN1} ${LIBMD}
33 .endif
34
35 LDADD+= -lopie -lmd
36 DPADD+= ${LIBOPIE} ${LIBMD}
37
38 .if defined(X11BASE)
39 CFLAGS+= -DXAUTH_PATH=\"${X11BASE}/bin/xauth\"
40 .endif
41
42 LDADD+= -lssh -lcrypt -lcrypto -lutil -lz -lwrap ${MINUSLPAM}
43 DPADD+= ${LIBSSH} ${LIBCRYPT} ${LIBCRYPTO} ${LIBUTIL} ${LIBZ} ${LIBWRAP} ${LIBPAM}
44
45 .if defined(OPENSSH_USE_POSIX_THREADS) && !defined(NOLIBC_R)
46 CFLAGS+=-DUSE_POSIX_THREADS
47 LDADD+= -lc_r
48 DPADD+= ${LIBC_R}
49 .endif
50
51 .include <bsd.prog.mk>
52
53 .PATH:  ${SSHDIR}