]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - secure/usr.sbin/sshd/Makefile
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / secure / usr.sbin / sshd / Makefile
1 # $FreeBSD$
2 #
3
4 .include <bsd.own.mk>
5
6 PROG=   sshd
7 SRCS=   sshd.c auth-rhosts.c auth-passwd.c auth-rsa.c auth-rh-rsa.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 \
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         audit.c audit-bsm.c platform.c sftp-server.c sftp-common.c \
18         roaming_common.c roaming_serv.c
19
20 # gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile
21 SRCS+=  gss-genr.c
22
23 MAN=    sshd.8 sshd_config.5
24 CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
25
26 DPADD=  ${LIBSSH} ${LIBUTIL} ${LIBZ} ${LIBWRAP} ${LIBPAM}
27 LDADD=  -lssh -lutil -lz -lwrap ${MINUSLPAM}
28
29 .if ${MK_AUDIT} != "no"
30 CFLAGS+= -DUSE_BSM_AUDIT -DHAVE_GETAUDIT_ADDR
31 DPADD+=  ${LIBBSM}
32 LDADD+=  -lbsm
33 .endif
34
35 .if ${MK_KERBEROS_SUPPORT} != "no"
36 CFLAGS+= -DGSSAPI -DHAVE_GSSAPI_GSSAPI_H=1 -DHAVE_GSSAPI_GSSAPI_KRB5_H=1 -DKRB5 -DHEIMDAL
37 DPADD+=  ${LIBGSSAPI_KRB5} ${LIBGSSAPI} ${LIBKRB5} ${LIBASN1}
38 LDADD+=  -lgssapi_krb5 -lgssapi -lkrb5 -lasn1
39 .endif
40
41 .if defined(X11BASE)
42 # Recommended /etc/make.conf setting is X11BASE=${LOCALBASE} for x.org
43 # 7.x upgrade on <= 6.2, but LOCALBASE has moved out of scope of src/
44 # so we need to provide the default for users with old make.conf
45 # settings.
46 LOCALBASE?=     /usr/local
47
48 # Users may override either LOCALBASE or X11BASE to move the location
49 # of xauth
50 X11BASE?=       ${LOCALBASE}
51 CFLAGS+= -DXAUTH_PATH=\"${X11BASE}/bin/xauth\"
52 .endif
53
54 DPADD+= ${LIBCRYPTO} ${LIBCRYPT}
55 LDADD+= -lcrypto -lcrypt
56
57 .include <bsd.prog.mk>
58
59 .PATH:  ${SSHDIR}
60
61 ${OBJS} ${POBJS} ${SOBJS}: ssh_namespace.h