1# 2# Makefile for the linux networking. 3# 4# 2 Sep 2000, Christoph Hellwig <hch@infradead.org> 5# Rewritten to use lists instead of if-statements. 6# 7 8O_TARGET := network.o 9 10mod-subdirs := ipv4/netfilter ipv6/netfilter ipx irda bluetooth atm netlink sched core sctp 802 11export-objs := netsyms.o 12 13subdir-y := core ethernet 14subdir-m := ipv4 # hum? 15 16 17subdir-$(CONFIG_NET) += 802 sched netlink 18subdir-$(CONFIG_IPV6) += ipv6 19subdir-$(CONFIG_INET) += ipv4 20subdir-$(CONFIG_NETFILTER) += ipv4/netfilter 21subdir-$(CONFIG_UNIX) += unix 22subdir-$(CONFIG_IP_SCTP) += sctp 23 24ifneq ($(CONFIG_IPV6),n) 25ifneq ($(CONFIG_IPV6),) 26subdir-$(CONFIG_NETFILTER) += ipv6/netfilter 27endif 28endif 29 30subdir-$(CONFIG_KHTTPD) += khttpd 31subdir-$(CONFIG_PACKET) += packet 32subdir-$(CONFIG_NET_SCHED) += sched 33subdir-$(CONFIG_BRIDGE) += bridge 34subdir-$(CONFIG_IPX) += ipx 35subdir-$(CONFIG_ATALK) += appletalk 36subdir-$(CONFIG_WAN_ROUTER) += wanrouter 37subdir-$(CONFIG_X25) += x25 38subdir-$(CONFIG_LAPB) += lapb 39subdir-$(CONFIG_NETROM) += netrom 40subdir-$(CONFIG_ROSE) += rose 41subdir-$(CONFIG_AX25) += ax25 42subdir-$(CONFIG_IRDA) += irda 43subdir-$(CONFIG_BLUEZ) += bluetooth 44subdir-$(CONFIG_SUNRPC) += sunrpc 45subdir-$(CONFIG_ATM) += atm 46subdir-$(CONFIG_DECNET) += decnet 47subdir-$(CONFIG_ECONET) += econet 48subdir-$(CONFIG_VLAN_8021Q) += 8021q 49 50ifeq ($(CONFIG_NETFILTER),y) 51 mod-subdirs += ipv4/ipvs 52 subdir-$(CONFIG_IP_VS) += ipv4/ipvs 53endif 54 55obj-y := socket.o $(join $(subdir-y), $(patsubst %,/%.o,$(notdir $(subdir-y)))) 56ifeq ($(CONFIG_NET),y) 57obj-$(CONFIG_MODULES) += netsyms.o 58obj-$(CONFIG_SYSCTL) += sysctl_net.o 59endif 60 61include $(TOPDIR)/Rules.make 62