xref: /linux/net/dccp/Makefile (revision 6647852abc1fd74e9c5e0dcf404ea4cb9c929630)
1# SPDX-License-Identifier: GPL-2.0
2obj-$(CONFIG_IP_DCCP) += dccp.o dccp_ipv4.o
3
4dccp-y := ccid.o feat.o input.o minisocks.o options.o output.o proto.o timer.o \
5	  qpolicy.o
6#
7# CCID algorithms to be used by dccp.ko
8#
9# CCID-2 is default (RFC 4340, p. 77) and has Ack Vectors as dependency
10dccp-y += ccids/ccid2.o ackvec.o
11dccp-$(CONFIG_IP_DCCP_CCID3)	+= ccids/ccid3.o
12dccp-$(CONFIG_IP_DCCP_TFRC_LIB) += ccids/lib/tfrc.o		\
13				   ccids/lib/tfrc_equation.o	\
14				   ccids/lib/packet_history.o	\
15				   ccids/lib/loss_interval.o
16
17dccp_ipv4-y := ipv4.o
18
19# build dccp_ipv6 as module whenever either IPv6 or DCCP is a module
20obj-$(subst y,$(CONFIG_IP_DCCP),$(CONFIG_IPV6)) += dccp_ipv6.o
21dccp_ipv6-y := ipv6.o
22
23obj-$(CONFIG_INET_DCCP_DIAG) += dccp_diag.o
24obj-$(CONFIG_NET_DCCPPROBE) += dccp_probe.o
25
26dccp-$(CONFIG_SYSCTL) += sysctl.o
27
28dccp_diag-y := diag.o
29dccp_probe-y := probe.o
30