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 \
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_NETLINK
),y
)
43 ifeq ($(CONFIG_NETLINK_DEV
),m
)
44 MOD_SUB_DIRS
+= netlink
48 ifeq ($(CONFIG_PACKET
),y
)
51 ifeq ($(CONFIG_PACKET
),m
)
52 MOD_SUB_DIRS
+= packet
56 ifeq ($(CONFIG_NET_SCHED
),y
)
60 ifeq ($(CONFIG_BRIDGE
),y
)
64 ifeq ($(CONFIG_IPX
),y
)
66 # SPX can be still a module
69 ifeq ($(CONFIG_IPX
),m
)
74 ifeq ($(CONFIG_ATALK
),y
)
77 ifeq ($(CONFIG_ATALK
),m
)
78 MOD_SUB_DIRS
+= appletalk
82 ifeq ($(CONFIG_WAN_ROUTER
),y
)
85 ifeq ($(CONFIG_WAN_ROUTER
),m
)
86 MOD_SUB_DIRS
+= wanrouter
90 ifeq ($(CONFIG_X25
),y
)
93 ifeq ($(CONFIG_X25
),m
)
98 ifeq ($(CONFIG_LAPB
),y
)
101 ifeq ($(CONFIG_LAPB
),m
)
106 ifeq ($(CONFIG_NETROM
),y
)
109 ifeq ($(CONFIG_NETROM
),m
)
110 MOD_SUB_DIRS
+= netrom
114 ifeq ($(CONFIG_ROSE
),y
)
117 ifeq ($(CONFIG_ROSE
),m
)
122 ifeq ($(CONFIG_AX25
),y
)
125 ifeq ($(CONFIG_AX25
),m
)
130 ifeq ($(CONFIG_IRDA
),y
)
132 # There might be some irda features that are compiled as modules
133 MOD_IN_SUB_DIRS
+= irda
135 ifeq ($(CONFIG_IRDA
),m
)
140 ifeq ($(CONFIG_SUNRPC
),y
)
143 ifeq ($(CONFIG_SUNRPC
),m
)
144 MOD_SUB_DIRS
+= sunrpc
148 ifeq ($(CONFIG_DECNET
),y
)
151 ifeq ($(CONFIG_DECNET
),m
)
152 MOD_SUB_DIRS
+= decnet
156 ifeq ($(CONFIG_ECONET
),y
)
159 ifeq ($(CONFIG_ECONET
),m
)
160 MOD_SUB_DIRS
+= econet
164 # We must attach netsyms.o to socket.o, as otherwise there is nothing
165 # to pull the object file from the archive.
168 ifeq ($(CONFIG_NET
),y
)
169 ifeq ($(CONFIG_MODULES
),y
)
170 O_TARGET
:= sock_n_syms.o
177 L_TARGET
:= network.a
178 L_OBJS
:= $(SOCK
) protocols.o
$(join $(SUB_DIRS
),$(SUB_DIRS
:%=/%.o
))
182 ifeq ($(CONFIG_SYSCTL
),y
)
183 ifeq ($(CONFIG_NET
),y
)
184 L_OBJS
+= sysctl_net.o
188 include $(TOPDIR
)/Rules.make