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
14 SUB_DIRS
:= core ethernet sched
15 MOD_LIST_NAME
:= NET_MISC_MODULES
17 ifeq ($(CONFIG_NET
),y
)
21 ifeq ($(CONFIG_INET
),y
)
23 ifeq ($(CONFIG_NETFILTER
),y
)
24 SUB_DIRS
+= ipv4
/netfilter
25 MOD_SUB_DIRS
+= ipv4
/netfilter
29 ifeq ($(CONFIG_UNIX
),y
)
32 ifeq ($(CONFIG_UNIX
),m
)
37 ifeq ($(CONFIG_IPV6
),y
)
40 ifeq ($(CONFIG_IPV6
),m
)
45 ifeq ($(CONFIG_KHTTPD
),y
)
48 ifeq ($(CONFIG_KHTTPD
),m
)
49 MOD_SUB_DIRS
+= khttpd
53 ifeq ($(CONFIG_NETLINK
),y
)
55 ifeq ($(CONFIG_NETLINK_DEV
),m
)
56 MOD_SUB_DIRS
+= netlink
60 ifeq ($(CONFIG_PACKET
),y
)
63 ifeq ($(CONFIG_PACKET
),m
)
64 MOD_SUB_DIRS
+= packet
68 ifeq ($(CONFIG_NET_SCHED
),y
)
72 ifeq ($(CONFIG_BRIDGE
),y
)
75 ifeq ($(CONFIG_BRIDGE
),m
)
76 MOD_SUB_DIRS
+= bridge
80 ifeq ($(CONFIG_IPX
),y
)
82 # SPX can be still a module
85 ifeq ($(CONFIG_IPX
),m
)
90 ifeq ($(CONFIG_ATALK
),y
)
93 ifeq ($(CONFIG_ATALK
),m
)
94 MOD_SUB_DIRS
+= appletalk
98 ifeq ($(CONFIG_WAN_ROUTER
),y
)
101 ifeq ($(CONFIG_WAN_ROUTER
),m
)
102 MOD_SUB_DIRS
+= wanrouter
106 ifeq ($(CONFIG_X25
),y
)
109 ifeq ($(CONFIG_X25
),m
)
114 ifeq ($(CONFIG_LAPB
),y
)
117 ifeq ($(CONFIG_LAPB
),m
)
122 ifeq ($(CONFIG_NETROM
),y
)
125 ifeq ($(CONFIG_NETROM
),m
)
126 MOD_SUB_DIRS
+= netrom
130 ifeq ($(CONFIG_ROSE
),y
)
133 ifeq ($(CONFIG_ROSE
),m
)
138 ifeq ($(CONFIG_AX25
),y
)
141 ifeq ($(CONFIG_AX25
),m
)
146 ifeq ($(CONFIG_IRDA
),y
)
148 # There might be some irda features that are compiled as modules
149 MOD_IN_SUB_DIRS
+= irda
151 ifeq ($(CONFIG_IRDA
),m
)
156 ifeq ($(CONFIG_SUNRPC
),y
)
159 ifeq ($(CONFIG_SUNRPC
),m
)
160 MOD_SUB_DIRS
+= sunrpc
164 ifeq ($(CONFIG_ATM
),y
)
166 ifeq ($(CONFIG_ATM_LANE
),m
)
169 ifeq ($(CONFIG_ATM_MPOA
),m
)
172 MOD_SUB_DIRS
+= $(MOD_ATM
)
175 ifeq ($(CONFIG_DECNET
),y
)
178 ifeq ($(CONFIG_DECNET
),m
)
179 MOD_SUB_DIRS
+= decnet
183 ifeq ($(CONFIG_ECONET
),y
)
186 ifeq ($(CONFIG_ECONET
),m
)
187 MOD_SUB_DIRS
+= econet
191 # We must attach netsyms.o to socket.o, as otherwise there is nothing
192 # to pull the object file from the archive.
195 ifeq ($(CONFIG_NET
),y
)
196 ifeq ($(CONFIG_MODULES
),y
)
197 O_TARGET
:= sock_n_syms.o
204 L_TARGET
:= network.a
205 L_OBJS
:= $(SOCK
) protocols.o
$(join $(SUB_DIRS
), $(patsubst %,/%.o
,$(notdir $(SUB_DIRS
))))
209 ifeq ($(CONFIG_SYSCTL
),y
)
210 ifeq ($(CONFIG_NET
),y
)
211 L_OBJS
+= sysctl_net.o
215 include $(TOPDIR
)/Rules.make