Kill st_fstype member.
[linux-2.6/linux-mips.git] / net / Makefile
blob29f66733fae85ebaf99979213da2d18f84a82e7b
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
16 ifeq ($(CONFIG_NET),y)
17 SUB_DIRS += 802 sched
18 endif
20 ifeq ($(CONFIG_INET),y)
21 SUB_DIRS += ipv4
22 ifeq ($(CONFIG_NETFILTER),y)
23 SUB_DIRS += ipv4/netfilter
24 MOD_SUB_DIRS += ipv4/netfilter
25 endif
26 endif
28 ifeq ($(CONFIG_UNIX),y)
29 SUB_DIRS += unix
30 else
31 ifeq ($(CONFIG_UNIX),m)
32 MOD_SUB_DIRS += unix
33 endif
34 endif
36 ifeq ($(CONFIG_IPV6),y)
37 SUB_DIRS += ipv6
38 ifeq ($(CONFIG_NETFILTER),y)
39 SUB_DIRS += ipv6/netfilter
40 MOD_SUB_DIRS += ipv6/netfilter
41 endif
42 else
43 ifeq ($(CONFIG_IPV6),m)
44 MOD_SUB_DIRS += ipv6
45 ifeq ($(CONFIG_NETFILTER),y)
46 MOD_SUB_DIRS += ipv6/netfilter
47 endif
48 endif
49 endif
51 ifeq ($(CONFIG_KHTTPD),y)
52 SUB_DIRS += khttpd
53 else
54 ifeq ($(CONFIG_KHTTPD),m)
55 MOD_SUB_DIRS += khttpd
56 endif
57 endif
59 ifeq ($(CONFIG_NETLINK),y)
60 SUB_DIRS += netlink
61 ifeq ($(CONFIG_NETLINK_DEV),m)
62 MOD_SUB_DIRS += netlink
63 endif
64 endif
66 ifeq ($(CONFIG_PACKET),y)
67 SUB_DIRS += packet
68 else
69 ifeq ($(CONFIG_PACKET),m)
70 MOD_SUB_DIRS += packet
71 endif
72 endif
74 ifeq ($(CONFIG_NET_SCHED),y)
75 MOD_SUB_DIRS += sched
76 endif
78 ifeq ($(CONFIG_BRIDGE),y)
79 SUB_DIRS += bridge
80 else
81 ifeq ($(CONFIG_BRIDGE),m)
82 MOD_SUB_DIRS += bridge
83 endif
84 endif
86 ifeq ($(CONFIG_IPX),y)
87 SUB_DIRS += ipx
88 # SPX can be still a module
89 MOD_SUB_DIRS += ipx
90 else
91 ifeq ($(CONFIG_IPX),m)
92 MOD_SUB_DIRS += ipx
93 endif
94 endif
96 ifeq ($(CONFIG_ATALK),y)
97 SUB_DIRS += appletalk
98 else
99 ifeq ($(CONFIG_ATALK),m)
100 MOD_SUB_DIRS += appletalk
101 endif
102 endif
104 ifeq ($(CONFIG_WAN_ROUTER),y)
105 SUB_DIRS += wanrouter
106 else
107 ifeq ($(CONFIG_WAN_ROUTER),m)
108 MOD_SUB_DIRS += wanrouter
109 endif
110 endif
112 ifeq ($(CONFIG_X25),y)
113 SUB_DIRS += x25
114 else
115 ifeq ($(CONFIG_X25),m)
116 MOD_SUB_DIRS += x25
117 endif
118 endif
120 ifeq ($(CONFIG_LAPB),y)
121 SUB_DIRS += lapb
122 else
123 ifeq ($(CONFIG_LAPB),m)
124 MOD_SUB_DIRS += lapb
125 endif
126 endif
128 ifeq ($(CONFIG_NETROM),y)
129 SUB_DIRS += netrom
130 else
131 ifeq ($(CONFIG_NETROM),m)
132 MOD_SUB_DIRS += netrom
133 endif
134 endif
136 ifeq ($(CONFIG_ROSE),y)
137 SUB_DIRS += rose
138 else
139 ifeq ($(CONFIG_ROSE),m)
140 MOD_SUB_DIRS += rose
141 endif
142 endif
144 ifeq ($(CONFIG_AX25),y)
145 SUB_DIRS += ax25
146 else
147 ifeq ($(CONFIG_AX25),m)
148 MOD_SUB_DIRS += ax25
149 endif
150 endif
152 ifeq ($(CONFIG_IRDA),y)
153 SUB_DIRS += irda
154 # There might be some irda features that are compiled as modules
155 MOD_IN_SUB_DIRS += irda
156 else
157 ifeq ($(CONFIG_IRDA),m)
158 MOD_SUB_DIRS += irda
159 endif
160 endif
162 ifeq ($(CONFIG_SUNRPC),y)
163 SUB_DIRS += sunrpc
164 else
165 ifeq ($(CONFIG_SUNRPC),m)
166 MOD_SUB_DIRS += sunrpc
167 endif
168 endif
170 ifeq ($(CONFIG_ATM),y)
171 SUB_DIRS += atm
172 ifeq ($(CONFIG_ATM_LANE),m)
173 MOD_ATM = atm
174 endif
175 ifeq ($(CONFIG_ATM_MPOA),m)
176 MOD_ATM = atm
177 endif
178 MOD_SUB_DIRS += $(MOD_ATM)
179 endif
181 ifeq ($(CONFIG_DECNET),y)
182 SUB_DIRS += decnet
183 else
184 ifeq ($(CONFIG_DECNET),m)
185 MOD_SUB_DIRS += decnet
186 endif
187 endif
189 ifeq ($(CONFIG_ECONET),y)
190 SUB_DIRS += econet
191 else
192 ifeq ($(CONFIG_ECONET),m)
193 MOD_SUB_DIRS += econet
194 endif
195 endif
197 # We must attach netsyms.o to socket.o, as otherwise there is nothing
198 # to pull the object file from the archive.
200 ifeq ($(CONFIG_NET),y)
201 ifeq ($(CONFIG_MODULES),y)
202 OX_OBJS := netsyms.o
203 endif
204 endif
206 O_TARGET := network.o
207 O_OBJS := socket.o protocols.o $(join $(SUB_DIRS), $(patsubst %,/%.o,$(notdir $(SUB_DIRS))))
209 M_OBJS :=
211 ifeq ($(CONFIG_SYSCTL),y)
212 ifeq ($(CONFIG_NET),y)
213 O_OBJS += sysctl_net.o
214 endif
215 endif
217 include $(TOPDIR)/Rules.make