Optimize andes_clear_page() and andes_copy_page() with prefetch
[linux-2.6/linux-mips.git] / net / Makefile
blob0ecbb1a9dce9a433a64034a2101f467bb4e17424
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 ipv6/netfilter
14 SUB_DIRS := core ethernet
15 MOD_LIST_NAME := NET_MISC_MODULES
18 ifeq ($(CONFIG_NET),y)
19 SUB_DIRS += 802 sched
20 endif
22 ifeq ($(CONFIG_INET),y)
23 SUB_DIRS += ipv4
24 ifeq ($(CONFIG_NETFILTER),y)
25 SUB_DIRS += ipv4/netfilter
26 MOD_SUB_DIRS += ipv4/netfilter
27 endif
28 endif
30 ifeq ($(CONFIG_UNIX),y)
31 SUB_DIRS += unix
32 else
33 ifeq ($(CONFIG_UNIX),m)
34 MOD_SUB_DIRS += unix
35 endif
36 endif
38 ifeq ($(CONFIG_IPV6),y)
39 SUB_DIRS += ipv6
40 ifeq ($(CONFIG_NETFILTER),y)
41 SUB_DIRS += ipv6/netfilter
42 MOD_SUB_DIRS += ipv6/netfilter
43 endif
44 else
45 ifeq ($(CONFIG_IPV6),m)
46 MOD_SUB_DIRS += ipv6
47 ifeq ($(CONFIG_NETFILTER),y)
48 MOD_SUB_DIRS += ipv6/netfilter
49 endif
50 endif
51 endif
53 ifeq ($(CONFIG_KHTTPD),y)
54 SUB_DIRS += khttpd
55 else
56 ifeq ($(CONFIG_KHTTPD),m)
57 MOD_SUB_DIRS += khttpd
58 endif
59 endif
61 ifeq ($(CONFIG_NETLINK),y)
62 SUB_DIRS += netlink
63 ifeq ($(CONFIG_NETLINK_DEV),m)
64 MOD_SUB_DIRS += netlink
65 endif
66 endif
68 ifeq ($(CONFIG_PACKET),y)
69 SUB_DIRS += packet
70 else
71 ifeq ($(CONFIG_PACKET),m)
72 MOD_SUB_DIRS += packet
73 endif
74 endif
76 ifeq ($(CONFIG_NET_SCHED),y)
77 MOD_SUB_DIRS += sched
78 endif
80 ifeq ($(CONFIG_BRIDGE),y)
81 SUB_DIRS += bridge
82 else
83 ifeq ($(CONFIG_BRIDGE),m)
84 MOD_SUB_DIRS += bridge
85 endif
86 endif
88 ifeq ($(CONFIG_IPX),y)
89 SUB_DIRS += ipx
90 # SPX can be still a module
91 MOD_SUB_DIRS += ipx
92 else
93 ifeq ($(CONFIG_IPX),m)
94 MOD_SUB_DIRS += ipx
95 endif
96 endif
98 ifeq ($(CONFIG_ATALK),y)
99 SUB_DIRS += appletalk
100 else
101 ifeq ($(CONFIG_ATALK),m)
102 MOD_SUB_DIRS += appletalk
103 endif
104 endif
106 ifeq ($(CONFIG_WAN_ROUTER),y)
107 SUB_DIRS += wanrouter
108 else
109 ifeq ($(CONFIG_WAN_ROUTER),m)
110 MOD_SUB_DIRS += wanrouter
111 endif
112 endif
114 ifeq ($(CONFIG_X25),y)
115 SUB_DIRS += x25
116 else
117 ifeq ($(CONFIG_X25),m)
118 MOD_SUB_DIRS += x25
119 endif
120 endif
122 ifeq ($(CONFIG_LAPB),y)
123 SUB_DIRS += lapb
124 else
125 ifeq ($(CONFIG_LAPB),m)
126 MOD_SUB_DIRS += lapb
127 endif
128 endif
130 ifeq ($(CONFIG_NETROM),y)
131 SUB_DIRS += netrom
132 else
133 ifeq ($(CONFIG_NETROM),m)
134 MOD_SUB_DIRS += netrom
135 endif
136 endif
138 ifeq ($(CONFIG_ROSE),y)
139 SUB_DIRS += rose
140 else
141 ifeq ($(CONFIG_ROSE),m)
142 MOD_SUB_DIRS += rose
143 endif
144 endif
146 ifeq ($(CONFIG_AX25),y)
147 SUB_DIRS += ax25
148 else
149 ifeq ($(CONFIG_AX25),m)
150 MOD_SUB_DIRS += ax25
151 endif
152 endif
154 ifeq ($(CONFIG_IRDA),y)
155 SUB_DIRS += irda
156 # There might be some irda features that are compiled as modules
157 MOD_IN_SUB_DIRS += irda
158 else
159 ifeq ($(CONFIG_IRDA),m)
160 MOD_SUB_DIRS += irda
161 endif
162 endif
164 ifeq ($(CONFIG_SUNRPC),y)
165 SUB_DIRS += sunrpc
166 else
167 ifeq ($(CONFIG_SUNRPC),m)
168 MOD_SUB_DIRS += sunrpc
169 endif
170 endif
172 ifeq ($(CONFIG_ATM),y)
173 SUB_DIRS += atm
174 ifeq ($(CONFIG_ATM_LANE),m)
175 MOD_ATM = atm
176 endif
177 ifeq ($(CONFIG_ATM_MPOA),m)
178 MOD_ATM = atm
179 endif
180 MOD_SUB_DIRS += $(MOD_ATM)
181 endif
183 ifeq ($(CONFIG_DECNET),y)
184 SUB_DIRS += decnet
185 else
186 ifeq ($(CONFIG_DECNET),m)
187 MOD_SUB_DIRS += decnet
188 endif
189 endif
191 ifeq ($(CONFIG_ECONET),y)
192 SUB_DIRS += econet
193 else
194 ifeq ($(CONFIG_ECONET),m)
195 MOD_SUB_DIRS += econet
196 endif
197 endif
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)
204 OX_OBJS := netsyms.o
205 endif
206 endif
208 O_TARGET := network.o
209 O_OBJS := socket.o protocols.o $(join $(SUB_DIRS), $(patsubst %,/%.o,$(notdir $(SUB_DIRS))))
211 M_OBJS :=
213 ifeq ($(CONFIG_SYSCTL),y)
214 ifeq ($(CONFIG_NET),y)
215 O_OBJS += sysctl_net.o
216 endif
217 endif
219 include $(TOPDIR)/Rules.make