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-$(CONFIG_NET) := socket.o core/ 10 11tmp-$(CONFIG_COMPAT) := compat.o 12obj-$(CONFIG_NET) += $(tmp-y) 13 14# LLC has to be linked before the files in net/802/ 15obj-$(CONFIG_LLC) += llc/ 16obj-$(CONFIG_NET) += ethernet/ 802/ sched/ netlink/ bpf/ 17obj-$(CONFIG_NETFILTER) += netfilter/ 18obj-$(CONFIG_INET) += ipv4/ 19obj-$(CONFIG_TLS) += tls/ 20obj-$(CONFIG_XFRM) += xfrm/ 21obj-$(CONFIG_UNIX) += unix/ 22obj-$(CONFIG_NET) += ipv6/ 23ifneq ($(CC_CAN_LINK),y) 24$(warning CC cannot link executables. Skipping bpfilter.) 25else 26obj-$(CONFIG_BPFILTER) += bpfilter/ 27endif 28obj-$(CONFIG_PACKET) += packet/ 29obj-$(CONFIG_NET_KEY) += key/ 30obj-$(CONFIG_BRIDGE) += bridge/ 31obj-$(CONFIG_NET_DSA) += dsa/ 32obj-$(CONFIG_ATALK) += appletalk/ 33obj-$(CONFIG_X25) += x25/ 34obj-$(CONFIG_LAPB) += lapb/ 35obj-$(CONFIG_NETROM) += netrom/ 36obj-$(CONFIG_ROSE) += rose/ 37obj-$(CONFIG_AX25) += ax25/ 38obj-$(CONFIG_CAN) += can/ 39obj-$(CONFIG_BT) += bluetooth/ 40obj-$(CONFIG_SUNRPC) += sunrpc/ 41obj-$(CONFIG_AF_RXRPC) += rxrpc/ 42obj-$(CONFIG_AF_KCM) += kcm/ 43obj-$(CONFIG_STREAM_PARSER) += strparser/ 44obj-$(CONFIG_ATM) += atm/ 45obj-$(CONFIG_L2TP) += l2tp/ 46obj-$(CONFIG_DECNET) += decnet/ 47obj-$(CONFIG_PHONET) += phonet/ 48ifneq ($(CONFIG_VLAN_8021Q),) 49obj-y += 8021q/ 50endif 51obj-$(CONFIG_IP_DCCP) += dccp/ 52obj-$(CONFIG_IP_SCTP) += sctp/ 53obj-$(CONFIG_RDS) += rds/ 54obj-$(CONFIG_WIRELESS) += wireless/ 55obj-$(CONFIG_MAC80211) += mac80211/ 56obj-$(CONFIG_TIPC) += tipc/ 57obj-$(CONFIG_NETLABEL) += netlabel/ 58obj-$(CONFIG_IUCV) += iucv/ 59obj-$(CONFIG_SMC) += smc/ 60obj-$(CONFIG_RFKILL) += rfkill/ 61obj-$(CONFIG_NET_9P) += 9p/ 62obj-$(CONFIG_CAIF) += caif/ 63ifneq ($(CONFIG_DCB),) 64obj-y += dcb/ 65endif 66obj-$(CONFIG_6LOWPAN) += 6lowpan/ 67obj-$(CONFIG_IEEE802154) += ieee802154/ 68obj-$(CONFIG_MAC802154) += mac802154/ 69 70ifeq ($(CONFIG_NET),y) 71obj-$(CONFIG_SYSCTL) += sysctl_net.o 72endif 73obj-$(CONFIG_WIMAX) += wimax/ 74obj-$(CONFIG_DNS_RESOLVER) += dns_resolver/ 75obj-$(CONFIG_CEPH_LIB) += ceph/ 76obj-$(CONFIG_BATMAN_ADV) += batman-adv/ 77obj-$(CONFIG_NFC) += nfc/ 78obj-$(CONFIG_PSAMPLE) += psample/ 79obj-$(CONFIG_NET_IFE) += ife/ 80obj-$(CONFIG_OPENVSWITCH) += openvswitch/ 81obj-$(CONFIG_VSOCKETS) += vmw_vsock/ 82obj-$(CONFIG_MPLS) += mpls/ 83obj-$(CONFIG_NET_NSH) += nsh/ 84obj-$(CONFIG_HSR) += hsr/ 85ifneq ($(CONFIG_NET_SWITCHDEV),) 86obj-y += switchdev/ 87endif 88ifneq ($(CONFIG_NET_L3_MASTER_DEV),) 89obj-y += l3mdev/ 90endif 91obj-$(CONFIG_QRTR) += qrtr/ 92obj-$(CONFIG_NET_NCSI) += ncsi/ 93obj-$(CONFIG_XDP_SOCKETS) += xdp/ 94