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
14 SUB_DIRS
:= core ethernet sched
15 MOD_LIST_NAME
:= NET_MISC_MODULES
17 ifeq ($(CONFIG_NET
),y
)
21 ifeq ($(CONFIG_INET
),y
)
25 ifeq ($(CONFIG_UNIX
),y
)
28 ifeq ($(CONFIG_UNIX
),m
)
33 ifeq ($(CONFIG_IPV6
),y
)
36 ifeq ($(CONFIG_IPV6
),m
)
41 ifeq ($(CONFIG_KHTTPD
),y
)
44 ifeq ($(CONFIG_KHTTPD
),m
)
45 MOD_SUB_DIRS
+= khttpd
49 ifeq ($(CONFIG_NETLINK
),y
)
51 ifeq ($(CONFIG_NETLINK_DEV
),m
)
52 MOD_SUB_DIRS
+= netlink
56 ifeq ($(CONFIG_PACKET
),y
)
59 ifeq ($(CONFIG_PACKET
),m
)
60 MOD_SUB_DIRS
+= packet
64 ifeq ($(CONFIG_NET_SCHED
),y
)
68 ifeq ($(CONFIG_BRIDGE
),y
)
72 ifeq ($(CONFIG_IPX
),y
)
74 # SPX can be still a module
77 ifeq ($(CONFIG_IPX
),m
)
82 ifeq ($(CONFIG_ATALK
),y
)
85 ifeq ($(CONFIG_ATALK
),m
)
86 MOD_SUB_DIRS
+= appletalk
90 ifeq ($(CONFIG_WAN_ROUTER
),y
)
93 ifeq ($(CONFIG_WAN_ROUTER
),m
)
94 MOD_SUB_DIRS
+= wanrouter
98 ifeq ($(CONFIG_X25
),y
)
101 ifeq ($(CONFIG_X25
),m
)
106 ifeq ($(CONFIG_LAPB
),y
)
109 ifeq ($(CONFIG_LAPB
),m
)
114 ifeq ($(CONFIG_NETROM
),y
)
117 ifeq ($(CONFIG_NETROM
),m
)
118 MOD_SUB_DIRS
+= netrom
122 ifeq ($(CONFIG_ROSE
),y
)
125 ifeq ($(CONFIG_ROSE
),m
)
130 ifeq ($(CONFIG_AX25
),y
)
133 ifeq ($(CONFIG_AX25
),m
)
138 ifeq ($(CONFIG_IRDA
),y
)
140 # There might be some irda features that are compiled as modules
141 MOD_IN_SUB_DIRS
+= irda
143 ifeq ($(CONFIG_IRDA
),m
)
148 ifeq ($(CONFIG_SUNRPC
),y
)
151 ifeq ($(CONFIG_SUNRPC
),m
)
152 MOD_SUB_DIRS
+= sunrpc
156 ifeq ($(CONFIG_ATM
),y
)
158 ifeq ($(CONFIG_ATM_LANE
),m
)
161 ifeq ($(CONFIG_ATM_MPOA
),m
)
164 MOD_SUB_DIRS
+= $(MOD_ATM
)
167 ifeq ($(CONFIG_DECNET
),y
)
170 ifeq ($(CONFIG_DECNET
),m
)
171 MOD_SUB_DIRS
+= decnet
175 ifeq ($(CONFIG_ECONET
),y
)
178 ifeq ($(CONFIG_ECONET
),m
)
179 MOD_SUB_DIRS
+= econet
183 # We must attach netsyms.o to socket.o, as otherwise there is nothing
184 # to pull the object file from the archive.
187 ifeq ($(CONFIG_NET
),y
)
188 ifeq ($(CONFIG_MODULES
),y
)
189 O_TARGET
:= sock_n_syms.o
196 L_TARGET
:= network.a
197 L_OBJS
:= $(SOCK
) protocols.o
$(join $(SUB_DIRS
),$(SUB_DIRS
:%=/%.o
))
201 ifeq ($(CONFIG_SYSCTL
),y
)
202 ifeq ($(CONFIG_NET
),y
)
203 L_OBJS
+= sysctl_net.o
207 include $(TOPDIR
)/Rules.make