opnsense-src/sys/modules/tcp/Makefile
John Baldwin 1319a76179 Only build ipsec modules if the kernel includes IPSEC_SUPPORT.
Honoring the kernel-supplied opt_ipsec.h in r361632 causes builds of
ipsec modules to fail if the kernel doesn't include IPSEC_SUPPORT.
However, the module can never be loaded into such a kernel, so only
build the modules if the kernel includes IPSEC_SUPPORT.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D25059
2020-05-30 00:47:03 +00:00

24 lines
390 B
Makefile

#
# $FreeBSD$
#
.include <kmod.opts.mk>
SUBDIR= \
${_tcp_bbr} \
${_tcp_rack} \
${_tcpmd5} \
.if ${MK_EXTRA_TCP_STACKS} != "no" || defined(ALL_MODULES)
_tcp_bbr= bbr
_tcp_rack= rack
.endif
.if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
defined(ALL_MODULES)
.if ${KERN_OPTS:MIPSEC_SUPPORT}
_tcpmd5= tcpmd5
.endif
.endif
.include <bsd.subdir.mk>