]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - secure/usr.sbin/sshd/Makefile
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.0.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         audit.c audit-bsm.c audit-linux.c platform.c \
9         sshpty.c sshlogin.c servconf.c serverloop.c \
10         auth.c auth1.c auth2.c auth-options.c session.c \
11         auth-chall.c auth2-chall.c groupaccess.c \
12         auth-skey.c auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \
13         auth2-none.c auth2-passwd.c auth2-pubkey.c auth2-jpake.c \
14         monitor_mm.c monitor.c monitor_wrap.c kexdhs.c kexgexs.c kexecdhs.c \
15         auth-krb5.c \
16         auth2-gss.c gss-serv.c gss-serv-krb5.c \
17         loginrec.c auth-pam.c auth-shadow.c auth-sia.c md5crypt.c \
18         sftp-server.c sftp-common.c \
19         roaming_common.c roaming_serv.c
20
21 # gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile
22 SRCS+=  gss-genr.c
23
24 MAN=    sshd.8 sshd_config.5
25 CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
26
27 DPADD=  ${LIBSSH} ${LIBUTIL} ${LIBZ} ${LIBWRAP} ${LIBPAM}
28 LDADD=  -lssh -lutil -lz -lwrap ${MINUSLPAM}
29
30 .if ${MK_AUDIT} != "no"
31 CFLAGS+= -DUSE_BSM_AUDIT -DHAVE_GETAUDIT_ADDR
32 DPADD+=  ${LIBBSM}
33 LDADD+=  -lbsm
34 .endif
35
36 .if ${MK_KERBEROS_SUPPORT} != "no"
37 CFLAGS+= -DGSSAPI -DHAVE_GSSAPI_GSSAPI_H=1 -DHAVE_GSSAPI_GSSAPI_KRB5_H=1 -DKRB5 -DHEIMDAL
38 DPADD+=  ${LIBGSSAPI_KRB5} ${LIBGSSAPI} ${LIBKRB5} ${LIBASN1}
39 LDADD+=  -lgssapi_krb5 -lgssapi -lkrb5 -lasn1
40 .endif
41
42 .if defined(X11BASE)
43 # Recommended /etc/make.conf setting is X11BASE=${LOCALBASE} for x.org
44 # 7.x upgrade on <= 6.2, but LOCALBASE has moved out of scope of src/
45 # so we need to provide the default for users with old make.conf
46 # settings.
47 LOCALBASE?=     /usr/local
48
49 # Users may override either LOCALBASE or X11BASE to move the location
50 # of xauth
51 X11BASE?=       ${LOCALBASE}
52 CFLAGS+= -DXAUTH_PATH=\"${X11BASE}/bin/xauth\"
53 .endif
54
55 DPADD+= ${LIBCRYPTO} ${LIBCRYPT}
56 LDADD+= -lcrypto -lcrypt
57
58 .include <bsd.prog.mk>
59
60 .PATH:  ${SSHDIR}
61
62 ${OBJS} ${POBJS} ${SOBJS}: ssh_namespace.h