Makefile revision 294332
159290Sjlemon# $FreeBSD: head/secure/usr.sbin/sshd/Makefile 294332 2016-01-19 18:28:23Z des $
272969Sjlemon
359290Sjlemon.include <src.opts.mk>
459290Sjlemon
559290SjlemonPROG=	sshd
659290SjlemonSRCS=	sshd.c auth-rhosts.c auth-passwd.c auth-rsa.c auth-rh-rsa.c \
759290Sjlemon	audit.c audit-bsm.c audit-linux.c platform.c \
859290Sjlemon	sshpty.c sshlogin.c servconf.c serverloop.c \
959290Sjlemon	auth.c auth1.c auth2.c auth-options.c session.c \
1059290Sjlemon	auth-chall.c auth2-chall.c groupaccess.c \
1159290Sjlemon	auth-skey.c auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \
1259290Sjlemon	auth2-none.c auth2-passwd.c auth2-pubkey.c \
1359290Sjlemon	monitor_mm.c monitor.c monitor_wrap.c auth-krb5.c \
1459290Sjlemon	auth2-gss.c gss-serv.c gss-serv-krb5.c \
1559290Sjlemon	loginrec.c auth-pam.c auth-shadow.c auth-sia.c md5crypt.c \
1659290Sjlemon	sftp-server.c sftp-common.c \
1759290Sjlemon	roaming_common.c roaming_serv.c \
1859290Sjlemon	sandbox-null.c sandbox-rlimit.c sandbox-systrace.c sandbox-darwin.c \
1959290Sjlemon	sandbox-seccomp-filter.c sandbox-capsicum.c
2059290Sjlemon
2159290Sjlemon# gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile
2259290SjlemonSRCS+=	gss-genr.c
2359290Sjlemon
2459290SjlemonMAN=	sshd.8 sshd_config.5
2559290SjlemonCFLAGS+=-I${SSHDIR} -include ssh_namespace.h
2663452SjlemonSRCS+=	ssh_namespace.h
2759290Sjlemon
2859290Sjlemon# pam should always happen before ssh here for static linking
2959290SjlemonLIBADD=	pam ssh util wrap
3059290Sjlemon
3159290Sjlemon.if ${MK_LDNS} != "no"
3276166SmarkmCFLAGS+=	-DHAVE_LDNS=1
3376166Smarkm#DPADD+=	${LIBLDNS}
3459290Sjlemon#LDADD+=	-lldns
3559290Sjlemon.endif
3659290Sjlemon
3759290Sjlemon.if ${MK_AUDIT} != "no"
3859290SjlemonCFLAGS+= -DUSE_BSM_AUDIT -DHAVE_GETAUDIT_ADDR
3970834SwollmanLIBADD+=	bsm
4059290Sjlemon.endif
4159290Sjlemon
4259290Sjlemon.if ${MK_KERBEROS_SUPPORT} != "no"
4359290SjlemonCFLAGS+= -include krb5_config.h
4459290SjlemonSRCS+=	krb5_config.h
4559290SjlemonLIBADD+=	gssapi_krb5 gssapi krb5
4659290Sjlemon.endif
4759290Sjlemon
4884138SjlemonLIBADD+=	crypto
4959290Sjlemon
5059290Sjlemon.if defined(LOCALBASE)
5159290SjlemonCFLAGS+= -DXAUTH_PATH=\"${LOCALBASE}/bin/xauth\"
5292751Sjeff.endif
5359290Sjlemon
5484138Sjlemon.include <bsd.prog.mk>
5584138Sjlemon
5659290Sjlemon.PATH:	${SSHDIR}
5763977Speter