2 # Makefile for the linux networking.
4 # Note! Dependencies are done automagically by 'make dep', which also
5 # removes any old dependencies. DON'T put your own dependencies here
6 # unless it's something special (ie not a .c file).
8 # Note 2! The CFLAGS definition is now in the main makefile...
11 ALL_SUB_DIRS
:= 802 ax25 bridge core ethernet ipv4 ipv6 ipx unix appletalk \
12 netrom rose lapb x25 wanrouter netlink sched packet sunrpc \
13 econet irda decnet atm khttpd ipv4
/netfilter ipv6
/netfilter
14 SUB_DIRS
:= core ethernet
15 MOD_LIST_NAME
:= NET_MISC_MODULES
18 ifeq ($(CONFIG_NET
),y
)
22 ifeq ($(CONFIG_INET
),y
)
24 ifeq ($(CONFIG_NETFILTER
),y
)
25 SUB_DIRS
+= ipv4
/netfilter
26 MOD_SUB_DIRS
+= ipv4
/netfilter
30 ifeq ($(CONFIG_UNIX
),y
)
33 ifeq ($(CONFIG_UNIX
),m
)
38 ifeq ($(CONFIG_IPV6
),y
)
40 ifeq ($(CONFIG_NETFILTER
),y
)
41 SUB_DIRS
+= ipv6
/netfilter
42 MOD_SUB_DIRS
+= ipv6
/netfilter
45 ifeq ($(CONFIG_IPV6
),m
)
47 ifeq ($(CONFIG_NETFILTER
),y
)
48 MOD_SUB_DIRS
+= ipv6
/netfilter
53 ifeq ($(CONFIG_KHTTPD
),y
)
56 ifeq ($(CONFIG_KHTTPD
),m
)
57 MOD_SUB_DIRS
+= khttpd
61 ifeq ($(CONFIG_NETLINK
),y
)
63 ifeq ($(CONFIG_NETLINK_DEV
),m
)
64 MOD_SUB_DIRS
+= netlink
68 ifeq ($(CONFIG_PACKET
),y
)
71 ifeq ($(CONFIG_PACKET
),m
)
72 MOD_SUB_DIRS
+= packet
76 ifeq ($(CONFIG_NET_SCHED
),y
)
80 ifeq ($(CONFIG_BRIDGE
),y
)
83 ifeq ($(CONFIG_BRIDGE
),m
)
84 MOD_SUB_DIRS
+= bridge
88 ifeq ($(CONFIG_IPX
),y
)
90 # SPX can be still a module
93 ifeq ($(CONFIG_IPX
),m
)
98 ifeq ($(CONFIG_ATALK
),y
)
101 ifeq ($(CONFIG_ATALK
),m
)
102 MOD_SUB_DIRS
+= appletalk
106 ifeq ($(CONFIG_WAN_ROUTER
),y
)
107 SUB_DIRS
+= wanrouter
109 ifeq ($(CONFIG_WAN_ROUTER
),m
)
110 MOD_SUB_DIRS
+= wanrouter
114 ifeq ($(CONFIG_X25
),y
)
117 ifeq ($(CONFIG_X25
),m
)
122 ifeq ($(CONFIG_LAPB
),y
)
125 ifeq ($(CONFIG_LAPB
),m
)
130 ifeq ($(CONFIG_NETROM
),y
)
133 ifeq ($(CONFIG_NETROM
),m
)
134 MOD_SUB_DIRS
+= netrom
138 ifeq ($(CONFIG_ROSE
),y
)
141 ifeq ($(CONFIG_ROSE
),m
)
146 ifeq ($(CONFIG_AX25
),y
)
149 ifeq ($(CONFIG_AX25
),m
)
154 ifeq ($(CONFIG_IRDA
),y
)
156 # There might be some irda features that are compiled as modules
157 MOD_IN_SUB_DIRS
+= irda
159 ifeq ($(CONFIG_IRDA
),m
)
164 ifeq ($(CONFIG_SUNRPC
),y
)
167 ifeq ($(CONFIG_SUNRPC
),m
)
168 MOD_SUB_DIRS
+= sunrpc
172 ifeq ($(CONFIG_ATM
),y
)
174 ifeq ($(CONFIG_ATM_LANE
),m
)
177 ifeq ($(CONFIG_ATM_MPOA
),m
)
180 MOD_SUB_DIRS
+= $(MOD_ATM
)
183 ifeq ($(CONFIG_DECNET
),y
)
186 ifeq ($(CONFIG_DECNET
),m
)
187 MOD_SUB_DIRS
+= decnet
191 ifeq ($(CONFIG_ECONET
),y
)
194 ifeq ($(CONFIG_ECONET
),m
)
195 MOD_SUB_DIRS
+= econet
199 # We must attach netsyms.o to socket.o, as otherwise there is nothing
200 # to pull the object file from the archive.
202 ifeq ($(CONFIG_NET
),y
)
203 ifeq ($(CONFIG_MODULES
),y
)
208 O_TARGET
:= network.o
209 O_OBJS
:= socket.o protocols.o
$(join $(SUB_DIRS
), $(patsubst %,/%.o
,$(notdir $(SUB_DIRS
))))
213 ifeq ($(CONFIG_SYSCTL
),y
)
214 ifeq ($(CONFIG_NET
),y
)
215 O_OBJS
+= sysctl_net.o
219 include $(TOPDIR
)/Rules.make