SMP locking for IOC3 Ethernet driver. I've got more changes pending
[linux-2.6/linux-mips.git] / net / Makefile
blobafdfbb7129d2647d1a8df6da46e7917835e5a1f5
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...
10 MOD_SUB_DIRS := ipv4
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)
18 SUB_DIRS += 802
19 endif
21 ifeq ($(CONFIG_INET),y)
22 SUB_DIRS += ipv4
23 ifeq ($(CONFIG_NETFILTER),y)
24 SUB_DIRS += ipv4/netfilter
25 MOD_SUB_DIRS += ipv4/netfilter
26 endif
27 endif
29 ifeq ($(CONFIG_UNIX),y)
30 SUB_DIRS += unix
31 else
32 ifeq ($(CONFIG_UNIX),m)
33 MOD_SUB_DIRS += unix
34 endif
35 endif
37 ifeq ($(CONFIG_IPV6),y)
38 SUB_DIRS += ipv6
39 else
40 ifeq ($(CONFIG_IPV6),m)
41 MOD_SUB_DIRS += ipv6
42 endif
43 endif
45 ifeq ($(CONFIG_KHTTPD),y)
46 SUB_DIRS += khttpd
47 else
48 ifeq ($(CONFIG_KHTTPD),m)
49 MOD_SUB_DIRS += khttpd
50 endif
51 endif
53 ifeq ($(CONFIG_NETLINK),y)
54 SUB_DIRS += netlink
55 ifeq ($(CONFIG_NETLINK_DEV),m)
56 MOD_SUB_DIRS += netlink
57 endif
58 endif
60 ifeq ($(CONFIG_PACKET),y)
61 SUB_DIRS += packet
62 else
63 ifeq ($(CONFIG_PACKET),m)
64 MOD_SUB_DIRS += packet
65 endif
66 endif
68 ifeq ($(CONFIG_NET_SCHED),y)
69 MOD_SUB_DIRS += sched
70 endif
72 ifeq ($(CONFIG_BRIDGE),y)
73 SUB_DIRS += bridge
74 else
75 ifeq ($(CONFIG_BRIDGE),m)
76 MOD_SUB_DIRS += bridge
77 endif
78 endif
80 ifeq ($(CONFIG_IPX),y)
81 SUB_DIRS += ipx
82 # SPX can be still a module
83 MOD_SUB_DIRS += ipx
84 else
85 ifeq ($(CONFIG_IPX),m)
86 MOD_SUB_DIRS += ipx
87 endif
88 endif
90 ifeq ($(CONFIG_ATALK),y)
91 SUB_DIRS += appletalk
92 else
93 ifeq ($(CONFIG_ATALK),m)
94 MOD_SUB_DIRS += appletalk
95 endif
96 endif
98 ifeq ($(CONFIG_WAN_ROUTER),y)
99 SUB_DIRS += wanrouter
100 else
101 ifeq ($(CONFIG_WAN_ROUTER),m)
102 MOD_SUB_DIRS += wanrouter
103 endif
104 endif
106 ifeq ($(CONFIG_X25),y)
107 SUB_DIRS += x25
108 else
109 ifeq ($(CONFIG_X25),m)
110 MOD_SUB_DIRS += x25
111 endif
112 endif
114 ifeq ($(CONFIG_LAPB),y)
115 SUB_DIRS += lapb
116 else
117 ifeq ($(CONFIG_LAPB),m)
118 MOD_SUB_DIRS += lapb
119 endif
120 endif
122 ifeq ($(CONFIG_NETROM),y)
123 SUB_DIRS += netrom
124 else
125 ifeq ($(CONFIG_NETROM),m)
126 MOD_SUB_DIRS += netrom
127 endif
128 endif
130 ifeq ($(CONFIG_ROSE),y)
131 SUB_DIRS += rose
132 else
133 ifeq ($(CONFIG_ROSE),m)
134 MOD_SUB_DIRS += rose
135 endif
136 endif
138 ifeq ($(CONFIG_AX25),y)
139 SUB_DIRS += ax25
140 else
141 ifeq ($(CONFIG_AX25),m)
142 MOD_SUB_DIRS += ax25
143 endif
144 endif
146 ifeq ($(CONFIG_IRDA),y)
147 SUB_DIRS += irda
148 # There might be some irda features that are compiled as modules
149 MOD_IN_SUB_DIRS += irda
150 else
151 ifeq ($(CONFIG_IRDA),m)
152 MOD_SUB_DIRS += irda
153 endif
154 endif
156 ifeq ($(CONFIG_SUNRPC),y)
157 SUB_DIRS += sunrpc
158 else
159 ifeq ($(CONFIG_SUNRPC),m)
160 MOD_SUB_DIRS += sunrpc
161 endif
162 endif
164 ifeq ($(CONFIG_ATM),y)
165 SUB_DIRS += atm
166 ifeq ($(CONFIG_ATM_LANE),m)
167 MOD_ATM = atm
168 endif
169 ifeq ($(CONFIG_ATM_MPOA),m)
170 MOD_ATM = atm
171 endif
172 MOD_SUB_DIRS += $(MOD_ATM)
173 endif
175 ifeq ($(CONFIG_DECNET),y)
176 SUB_DIRS += decnet
177 else
178 ifeq ($(CONFIG_DECNET),m)
179 MOD_SUB_DIRS += decnet
180 endif
181 endif
183 ifeq ($(CONFIG_ECONET),y)
184 SUB_DIRS += econet
185 else
186 ifeq ($(CONFIG_ECONET),m)
187 MOD_SUB_DIRS += econet
188 endif
189 endif
191 # We must attach netsyms.o to socket.o, as otherwise there is nothing
192 # to pull the object file from the archive.
194 SOCK := socket.o
195 ifeq ($(CONFIG_NET),y)
196 ifeq ($(CONFIG_MODULES),y)
197 O_TARGET := sock_n_syms.o
198 O_OBJS := socket.o
199 OX_OBJS := netsyms.o
200 SOCK := $(O_TARGET)
201 endif
202 endif
204 L_TARGET := network.a
205 L_OBJS := $(SOCK) protocols.o $(join $(SUB_DIRS), $(patsubst %,/%.o,$(notdir $(SUB_DIRS))))
207 M_OBJS :=
209 ifeq ($(CONFIG_SYSCTL),y)
210 ifeq ($(CONFIG_NET),y)
211 L_OBJS += sysctl_net.o
212 endif
213 endif
215 include $(TOPDIR)/Rules.make