]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - secure/usr.sbin/sshd/Makefile
MFH (r237568, r255422, r255460, r255766, r255767, r255774, r255829,
[FreeBSD/stable/9.git] / secure / usr.sbin / sshd / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 PROG=   sshd
6 SRCS=   sshd.c auth-rhosts.c auth-passwd.c auth-rsa.c auth-rh-rsa.c \
7         audit.c audit-bsm.c audit-linux.c platform.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 \
13         monitor_mm.c monitor.c monitor_wrap.c kexdhs.c kexgexs.c kexecdhs.c \
14         kexc25519s.c 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         sftp-server.c sftp-common.c \
18         roaming_common.c roaming_serv.c \
19         sandbox-null.c sandbox-rlimit.c sandbox-systrace.c sandbox-darwin.c \
20         sandbox-seccomp-filter.c sandbox-capsicum.c
21
22 # gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile
23 SRCS+=  gss-genr.c
24
25 MAN=    sshd.8 sshd_config.5
26 CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
27
28 DPADD=  ${LIBSSH} ${LIBUTIL} ${LIBWRAP} ${LIBPAM}
29 LDADD=  -lssh -lutil -lwrap ${MINUSLPAM}
30 USEPRIVATELIB= ssh
31
32 .if ${MK_AUDIT} != "no"
33 CFLAGS+= -DUSE_BSM_AUDIT -DHAVE_GETAUDIT_ADDR
34 DPADD+=  ${LIBBSM}
35 LDADD+=  -lbsm
36 .endif
37
38 .if ${MK_KERBEROS_SUPPORT} != "no"
39 CFLAGS+= -include krb5_config.h
40 DPADD+=  ${LIBGSSAPI_KRB5} ${LIBGSSAPI} ${LIBKRB5} ${LIBHX509} ${LIBASN1} \
41         ${LIBCOM_ERR} ${LIBROKEN}
42 LDADD+=  -lgssapi_krb5 -lgssapi -lkrb5 -lhx509 -lasn1 \
43         -lcom_err -lroken
44 .endif
45
46 .if ${MK_OPENSSH_NONE_CIPHER} != "no"
47 CFLAGS+= -DNONE_CIPHER_ENABLED
48 .endif
49
50 DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
51 LDADD+= -lcrypt -lcrypto -lz
52
53 .if defined(LOCALBASE)
54 CFLAGS+= -DXAUTH_PATH=\"${LOCALBASE}/bin/xauth\"
55 .endif
56
57 .include <bsd.prog.mk>
58
59 .PATH:  ${SSHDIR}
60
61 ${OBJS} ${POBJS} ${SOBJS}: ssh_namespace.h
62 .if ${MK_KERBEROS_SUPPORT} != "no"
63 ${OBJS} ${POBJS} ${SOBJS}: krb5_config.h
64 .endif