1 # SPDX-License-Identifier: GPL-2.0 << 2 # 1 # 3 # Makefile for the linux networking. 2 # Makefile for the linux networking. 4 # 3 # 5 # 2 Sep 2000, Christoph Hellwig <hch@infradead. 4 # 2 Sep 2000, Christoph Hellwig <hch@infradead.org> 6 # Rewritten to use lists instead of if-stateme 5 # Rewritten to use lists instead of if-statements. 7 # 6 # 8 7 9 obj-y := devres.o so !! 8 O_TARGET := network.o 10 9 11 obj-$(CONFIG_COMPAT) += compat.o !! 10 mod-subdirs := ipv4/netfilter ipv6/netfilter ipx irda bluetooth atm netlink sched core sctp 802 >> 11 export-objs := netsyms.o 12 12 13 # LLC has to be linked before the files in net !! 13 subdir-y := core ethernet 14 obj-$(CONFIG_LLC) += llc/ !! 14 subdir-m := ipv4 # hum? 15 obj-y += ethernet/ 8 !! 15 16 obj-$(CONFIG_NETFILTER) += netfilter/ !! 16 17 obj-$(CONFIG_INET) += ipv4/ !! 17 subdir-$(CONFIG_NET) += 802 sched netlink 18 obj-$(CONFIG_TLS) += tls/ !! 18 subdir-$(CONFIG_IPV6) += ipv6 19 obj-$(CONFIG_XFRM) += xfrm/ !! 19 subdir-$(CONFIG_INET) += ipv4 20 obj-$(CONFIG_UNIX) += unix/ !! 20 subdir-$(CONFIG_NETFILTER) += ipv4/netfilter 21 obj-y += ipv6/ !! 21 subdir-$(CONFIG_UNIX) += unix 22 obj-$(CONFIG_PACKET) += packet/ !! 22 subdir-$(CONFIG_IP_SCTP) += sctp 23 obj-$(CONFIG_NET_KEY) += key/ !! 23 24 obj-$(CONFIG_BRIDGE) += bridge/ !! 24 ifneq ($(CONFIG_IPV6),n) 25 obj-$(CONFIG_NET_DEVLINK) += devlink/ !! 25 ifneq ($(CONFIG_IPV6),) 26 obj-y += dsa/ !! 26 subdir-$(CONFIG_NETFILTER) += ipv6/netfilter 27 obj-$(CONFIG_ATALK) += appletalk/ << 28 obj-$(CONFIG_X25) += x25/ << 29 obj-$(CONFIG_LAPB) += lapb/ << 30 obj-$(CONFIG_NETROM) += netrom/ << 31 obj-$(CONFIG_ROSE) += rose/ << 32 obj-$(CONFIG_AX25) += ax25/ << 33 obj-$(CONFIG_CAN) += can/ << 34 obj-$(CONFIG_BT) += bluetooth/ << 35 obj-$(CONFIG_SUNRPC) += sunrpc/ << 36 obj-$(CONFIG_AF_RXRPC) += rxrpc/ << 37 obj-$(CONFIG_AF_KCM) += kcm/ << 38 obj-$(CONFIG_STREAM_PARSER) += strparser/ << 39 obj-$(CONFIG_ATM) += atm/ << 40 obj-$(CONFIG_L2TP) += l2tp/ << 41 obj-$(CONFIG_PHONET) += phonet/ << 42 ifneq ($(CONFIG_VLAN_8021Q),) << 43 obj-y += 8021q/ << 44 endif 27 endif 45 obj-$(CONFIG_IP_DCCP) += dccp/ !! 28 endif 46 obj-$(CONFIG_IP_SCTP) += sctp/ !! 29 47 obj-$(CONFIG_RDS) += rds/ !! 30 subdir-$(CONFIG_KHTTPD) += khttpd 48 obj-$(CONFIG_WIRELESS) += wireless/ !! 31 subdir-$(CONFIG_PACKET) += packet 49 obj-$(CONFIG_MAC80211) += mac80211/ !! 32 subdir-$(CONFIG_NET_SCHED) += sched 50 obj-$(CONFIG_TIPC) += tipc/ !! 33 subdir-$(CONFIG_BRIDGE) += bridge 51 obj-$(CONFIG_NETLABEL) += netlabel/ !! 34 subdir-$(CONFIG_IPX) += ipx 52 obj-$(CONFIG_IUCV) += iucv/ !! 35 subdir-$(CONFIG_ATALK) += appletalk 53 obj-$(CONFIG_SMC) += smc/ !! 36 subdir-$(CONFIG_WAN_ROUTER) += wanrouter 54 obj-$(CONFIG_RFKILL) += rfkill/ !! 37 subdir-$(CONFIG_X25) += x25 55 obj-$(CONFIG_NET_9P) += 9p/ !! 38 subdir-$(CONFIG_LAPB) += lapb 56 obj-$(CONFIG_CAIF) += caif/ !! 39 subdir-$(CONFIG_NETROM) += netrom 57 obj-$(CONFIG_DCB) += dcb/ !! 40 subdir-$(CONFIG_ROSE) += rose 58 obj-$(CONFIG_6LOWPAN) += 6lowpan/ !! 41 subdir-$(CONFIG_AX25) += ax25 59 obj-$(CONFIG_IEEE802154) += ieee802154/ !! 42 subdir-$(CONFIG_IRDA) += irda 60 obj-$(CONFIG_MAC802154) += mac802154/ !! 43 subdir-$(CONFIG_BLUEZ) += bluetooth >> 44 subdir-$(CONFIG_SUNRPC) += sunrpc >> 45 subdir-$(CONFIG_ATM) += atm >> 46 subdir-$(CONFIG_DECNET) += decnet >> 47 subdir-$(CONFIG_ECONET) += econet >> 48 subdir-$(CONFIG_VLAN_8021Q) += 8021q 61 49 >> 50 ifeq ($(CONFIG_NETFILTER),y) >> 51 mod-subdirs += ipv4/ipvs >> 52 subdir-$(CONFIG_IP_VS) += ipv4/ipvs >> 53 endif >> 54 >> 55 obj-y := socket.o $(join $(subdir-y), $(patsubst %,/%.o,$(notdir $(subdir-y)))) >> 56 ifeq ($(CONFIG_NET),y) >> 57 obj-$(CONFIG_MODULES) += netsyms.o 62 obj-$(CONFIG_SYSCTL) += sysctl_net. 58 obj-$(CONFIG_SYSCTL) += sysctl_net.o 63 obj-$(CONFIG_DNS_RESOLVER) += dns_resolve !! 59 endif 64 obj-$(CONFIG_CEPH_LIB) += ceph/ !! 60 65 obj-$(CONFIG_BATMAN_ADV) += batman-adv/ !! 61 include $(TOPDIR)/Rules.make 66 obj-$(CONFIG_NFC) += nfc/ << 67 obj-$(CONFIG_PSAMPLE) += psample/ << 68 obj-$(CONFIG_NET_IFE) += ife/ << 69 obj-$(CONFIG_OPENVSWITCH) += openvswitch << 70 obj-$(CONFIG_VSOCKETS) += vmw_vsock/ << 71 obj-$(CONFIG_MPLS) += mpls/ << 72 obj-$(CONFIG_NET_NSH) += nsh/ << 73 obj-$(CONFIG_HSR) += hsr/ << 74 obj-$(CONFIG_NET_SWITCHDEV) += switchdev/ << 75 obj-$(CONFIG_NET_L3_MASTER_DEV) += l3mdev/ << 76 obj-$(CONFIG_QRTR) += qrtr/ << 77 obj-$(CONFIG_NET_NCSI) += ncsi/ << 78 obj-$(CONFIG_XDP_SOCKETS) += xdp/ << 79 obj-$(CONFIG_MPTCP) += mptcp/ << 80 obj-$(CONFIG_MCTP) += mctp/ << 81 obj-$(CONFIG_NET_HANDSHAKE) += handshake/ <<
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.