xref: /linux/net/Makefile (revision ab52c59103002b49f2455371e4b9c56ba3ef1781)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the linux networking.
4#
5# 2 Sep 2000, Christoph Hellwig <hch@infradead.org>
6# Rewritten to use lists instead of if-statements.
7#
8
9obj-y				:= devres.o socket.o core/
10
11obj-$(CONFIG_COMPAT)		+= compat.o
12
13# LLC has to be linked before the files in net/802/
14obj-$(CONFIG_LLC)		+= llc/
15obj-y				+= ethernet/ 802/ sched/ netlink/ bpf/ ethtool/
16obj-$(CONFIG_NETFILTER)		+= netfilter/
17obj-$(CONFIG_INET)		+= ipv4/
18obj-$(CONFIG_TLS)		+= tls/
19obj-$(CONFIG_XFRM)		+= xfrm/
20obj-$(CONFIG_UNIX)		+= unix/
21obj-y				+= ipv6/
22obj-$(CONFIG_PACKET)		+= packet/
23obj-$(CONFIG_NET_KEY)		+= key/
24obj-$(CONFIG_BRIDGE)		+= bridge/
25obj-$(CONFIG_NET_DEVLINK)	+= devlink/
26obj-y				+= dsa/
27obj-$(CONFIG_ATALK)		+= appletalk/
28obj-$(CONFIG_X25)		+= x25/
29obj-$(CONFIG_LAPB)		+= lapb/
30obj-$(CONFIG_NETROM)		+= netrom/
31obj-$(CONFIG_ROSE)		+= rose/
32obj-$(CONFIG_AX25)		+= ax25/
33obj-$(CONFIG_CAN)		+= can/
34obj-$(CONFIG_BT)		+= bluetooth/
35obj-$(CONFIG_SUNRPC)		+= sunrpc/
36obj-$(CONFIG_AF_RXRPC)		+= rxrpc/
37obj-$(CONFIG_AF_KCM)		+= kcm/
38obj-$(CONFIG_STREAM_PARSER)	+= strparser/
39obj-$(CONFIG_ATM)		+= atm/
40obj-$(CONFIG_L2TP)		+= l2tp/
41obj-$(CONFIG_PHONET)		+= phonet/
42ifneq ($(CONFIG_VLAN_8021Q),)
43obj-y				+= 8021q/
44endif
45obj-$(CONFIG_IP_DCCP)		+= dccp/
46obj-$(CONFIG_IP_SCTP)		+= sctp/
47obj-$(CONFIG_RDS)		+= rds/
48obj-$(CONFIG_WIRELESS)		+= wireless/
49obj-$(CONFIG_MAC80211)		+= mac80211/
50obj-$(CONFIG_TIPC)		+= tipc/
51obj-$(CONFIG_NETLABEL)		+= netlabel/
52obj-$(CONFIG_IUCV)		+= iucv/
53obj-$(CONFIG_SMC)		+= smc/
54obj-$(CONFIG_RFKILL)		+= rfkill/
55obj-$(CONFIG_NET_9P)		+= 9p/
56obj-$(CONFIG_CAIF)		+= caif/
57obj-$(CONFIG_DCB)		+= dcb/
58obj-$(CONFIG_6LOWPAN)		+= 6lowpan/
59obj-$(CONFIG_IEEE802154)	+= ieee802154/
60obj-$(CONFIG_MAC802154)		+= mac802154/
61
62obj-$(CONFIG_SYSCTL)		+= sysctl_net.o
63obj-$(CONFIG_DNS_RESOLVER)	+= dns_resolver/
64obj-$(CONFIG_CEPH_LIB)		+= ceph/
65obj-$(CONFIG_BATMAN_ADV)	+= batman-adv/
66obj-$(CONFIG_NFC)		+= nfc/
67obj-$(CONFIG_PSAMPLE)		+= psample/
68obj-$(CONFIG_NET_IFE)		+= ife/
69obj-$(CONFIG_OPENVSWITCH)	+= openvswitch/
70obj-$(CONFIG_VSOCKETS)	+= vmw_vsock/
71obj-$(CONFIG_MPLS)		+= mpls/
72obj-$(CONFIG_NET_NSH)		+= nsh/
73obj-$(CONFIG_HSR)		+= hsr/
74obj-$(CONFIG_NET_SWITCHDEV)	+= switchdev/
75obj-$(CONFIG_NET_L3_MASTER_DEV)	+= l3mdev/
76obj-$(CONFIG_QRTR)		+= qrtr/
77obj-$(CONFIG_NET_NCSI)		+= ncsi/
78obj-$(CONFIG_XDP_SOCKETS)	+= xdp/
79obj-$(CONFIG_MPTCP)		+= mptcp/
80obj-$(CONFIG_MCTP)		+= mctp/
81obj-$(CONFIG_NET_HANDSHAKE)	+= handshake/
82