* better
[mascara-docs.git] / i386 / linux-2.3.21 / drivers / block / Makefile
blob8519318d93f01469188b70c06b1f9e23118fee9e
2 # Makefile for the kernel block device drivers.
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 inherited from the
9 # parent makefile.
13 # Note : at this point, these files are compiled on all systems.
14 # In the future, some of these should be built conditionally.
17 SUB_DIRS :=
18 MOD_SUB_DIRS := $(SUB_DIRS)
19 ALL_SUB_DIRS := $(SUB_DIRS) paride
22 L_TARGET := block.a
23 L_OBJS := genhd.o ide-geometry.o
24 M_OBJS :=
25 MOD_LIST_NAME := BLOCK_MODULES
26 LX_OBJS := ll_rw_blk.o blkpg.o
27 MX_OBJS :=
29 ifeq ($(CONFIG_MAC_FLOPPY),y)
30 L_OBJS += swim3.o
31 endif
33 ifeq ($(CONFIG_BLK_DEV_FD),y)
34 L_OBJS += floppy.o
35 else
36 ifeq ($(CONFIG_BLK_DEV_FD),m)
37 M_OBJS += floppy.o
38 endif
39 endif
41 ifeq ($(CONFIG_AMIGA_FLOPPY),y)
42 L_OBJS += amiflop.o
43 else
44 ifeq ($(CONFIG_AMIGA_FLOPPY),m)
45 M_OBJS += amiflop.o
46 endif
47 endif
49 ifeq ($(CONFIG_ATARI_FLOPPY),y)
50 L_OBJS += ataflop.o
51 else
52 ifeq ($(CONFIG_ATARI_FLOPPY),m)
53 M_OBJS += ataflop.o
54 endif
55 endif
57 ifeq ($(CONFIG_BLK_DEV_SWIM_IOP),y)
58 L_OBJS += swim_iop.o
59 endif
61 ifeq ($(CONFIG_ATARI_ACSI),y)
62 LX_OBJS += acsi.o
63 else
64 ifeq ($(CONFIG_ATARI_ACSI),m)
65 MX_OBJS += acsi.o
66 endif
67 endif
69 ifeq ($(CONFIG_ATARI_SLM),y)
70 L_OBJS += acsi_slm.o
71 else
72 ifeq ($(CONFIG_ATARI_SLM),m)
73 M_OBJS += acsi_slm.o
74 endif
75 endif
77 ifeq ($(CONFIG_AMIGA_Z2RAM),y)
78 L_OBJS += z2ram.o
79 else
80 ifeq ($(CONFIG_AMIGA_Z2RAM),m)
81 M_OBJS += z2ram.o
82 endif
83 endif
85 ifeq ($(CONFIG_BLK_DEV_RAM),y)
86 L_OBJS += rd.o
87 else
88 ifeq ($(CONFIG_BLK_DEV_RAM),m)
89 M_OBJS += rd.o
90 endif
91 endif
93 ifeq ($(CONFIG_BLK_DEV_LOOP),y)
94 LX_OBJS += loop.o
95 else
96 ifeq ($(CONFIG_BLK_DEV_LOOP),m)
97 MX_OBJS += loop.o
98 endif
99 endif
102 # IDE-STUFF
105 ifeq ($(CONFIG_BLK_DEV_AEC6210),y)
106 IDE_OBJS += aec6210.o
107 endif
109 ifeq ($(CONFIG_BLK_DEV_ALI14XX),y)
110 IDE_OBJS += ali14xx.o
111 endif
113 ifeq ($(CONFIG_BLK_DEV_ALI15X3),y)
114 IDE_OBJS += alim15x3.o
115 endif
117 ifeq ($(CONFIG_BLK_DEV_BUDDHA),y)
118 IDE_OBJS += buddha.o
119 endif
121 ifeq ($(CONFIG_BLK_DEV_CMD640),y)
122 IDE_OBJS += cmd640.o
123 endif
125 ifeq ($(CONFIG_BLK_DEV_CMD646),y)
126 IDE_OBJS += cmd646.o
127 endif
129 ifeq ($(CONFIG_BLK_DEV_CY82C693),y)
130 IDE_OBJS += cy82c693.o
131 endif
133 ifeq ($(CONFIG_BLK_DEV_DTC2278),y)
134 IDE_OBJS += dtc2278.o
135 endif
137 ifeq ($(CONFIG_BLK_DEV_FALCON_IDE),y)
138 IDE_OBJS += falconide.o
139 endif
141 ifeq ($(CONFIG_BLK_DEV_GAYLE),y)
142 IDE_OBJS += gayle.o
143 endif
145 ifeq ($(CONFIG_BLK_DEV_Q40IDE),y)
146 IDE_OBJS += q40ide.o
147 endif
149 ifeq ($(CONFIG_BLK_DEV_HD),y)
150 L_OBJS += hd.o
151 endif
153 ifeq ($(CONFIG_BLK_DEV_HPT34X),y)
154 IDE_OBJS += hpt34x.o
155 endif
157 ifeq ($(CONFIG_BLK_DEV_HPT366),y)
158 IDE_OBJS += hpt366.o
159 endif
161 ifeq ($(CONFIG_BLK_DEV_HT6560B),y)
162 IDE_OBJS += ht6560b.o
163 endif
165 ifeq ($(CONFIG_BLK_DEV_IDE_ICSIDE),y)
166 IDE_OBJS += icside.o
167 endif
169 ifeq ($(CONFIG_BLK_DEV_IDEDMA),y)
170 IDE_OBJS += ide-dma.o
171 endif
173 ifeq ($(CONFIG_BLK_DEV_IDEPCI),y)
174 IDE_OBJS += ide-pci.o
175 endif
177 ifeq ($(CONFIG_BLK_DEV_IDE_PMAC),y)
178 IDE_OBJS += ide-pmac.o
179 endif
181 ifeq ($(CONFIG_BLK_DEV_MAC_IDE),y)
182 IDE_OBJS += macide.o
183 endif
185 ifeq ($(CONFIG_BLK_DEV_NS87415),y)
186 IDE_OBJS += ns87415.o
187 endif
189 ifeq ($(CONFIG_BLK_DEV_OPTI621),y)
190 IDE_OBJS += opti621.o
191 endif
193 ifeq ($(CONFIG_BLK_DEV_PDC202XX),y)
194 IDE_OBJS += pdc202xx.o
195 endif
197 ifeq ($(CONFIG_BLK_DEV_PDC4030),y)
198 IDE_OBJS += pdc4030.o
199 endif
201 ifeq ($(CONFIG_BLK_DEV_PIIX),y)
202 IDE_OBJS += piix.o
203 endif
205 ifeq ($(CONFIG_BLK_DEV_QD6580),y)
206 IDE_OBJS += qd6580.o
207 endif
209 ifeq ($(CONFIG_BLK_DEV_IDE_RAPIDE),y)
210 IDE_OBJS += rapide.o
211 endif
213 ifeq ($(CONFIG_BLK_DEV_RZ1000),y)
214 IDE_OBJS += rz1000.o
215 endif
217 ifeq ($(CONFIG_BLK_DEV_SIS5513),y)
218 IDE_OBJS += sis5513.o
219 endif
221 ifeq ($(CONFIG_BLK_DEV_SL82C105),y)
222 IDE_OBJS += sl82c105.o
223 endif
225 ifeq ($(CONFIG_BLK_DEV_TRM290),y)
226 IDE_OBJS += trm290.o
227 endif
229 ifeq ($(CONFIG_BLK_DEV_UMC8672),y)
230 IDE_OBJS += umc8672.o
231 endif
233 ifeq ($(CONFIG_BLK_DEV_VIA82C586),y)
234 IDE_OBJS += via82c586.o
235 endif
237 ### if CONFIG_BLK_DEV_IDE is n, IDE_OBJS will be ignored
239 ifeq ($(CONFIG_PROC_FS),y)
240 IDE_OBJS += ide-proc.o
241 endif
243 ###Collect
245 ifeq ($(CONFIG_BLK_DEV_IDE),y)
246 LX_OBJS += ide.o
247 L_OBJS += ide-probe.o $(IDE_OBJS)
248 else
249 ifeq ($(CONFIG_BLK_DEV_IDE),m)
250 MIX_OBJS += ide.o $(IDE_OBJS)
251 M_OBJS += ide-mod.o ide-probe-mod.o
252 endif
253 endif
255 ############
257 ifeq ($(CONFIG_BLK_DEV_IDEDISK),y)
258 L_OBJS += ide-disk.o
259 else
260 ifeq ($(CONFIG_BLK_DEV_IDEDISK),m)
261 M_OBJS += ide-disk.o
262 endif
263 endif
265 ifeq ($(CONFIG_BLK_DEV_IDECD),y)
266 L_OBJS += ide-cd.o
267 else
268 ifeq ($(CONFIG_BLK_DEV_IDECD),m)
269 M_OBJS += ide-cd.o
270 endif
271 endif
273 ifeq ($(CONFIG_BLK_DEV_IDETAPE),y)
274 L_OBJS += ide-tape.o
275 else
276 ifeq ($(CONFIG_BLK_DEV_IDETAPE),m)
277 M_OBJS += ide-tape.o
278 endif
279 endif
281 ifeq ($(CONFIG_BLK_DEV_IDEFLOPPY),y)
282 L_OBJS += ide-floppy.o
283 else
284 ifeq ($(CONFIG_BLK_DEV_IDEFLOPPY),m)
285 M_OBJS += ide-floppy.o
286 endif
287 endif
289 ifeq ($(CONFIG_BLK_DEV_PS2),y)
290 L_OBJS += ps2esdi.o
291 else
292 ifeq ($(CONFIG_BLK_DEV_PS2),m)
293 M_OBJS += ps2esdi.o
294 endif
295 endif
297 ifeq ($(CONFIG_BLK_DEV_XD),y)
298 L_OBJS += xd.o
299 else
300 ifeq ($(CONFIG_BLK_DEV_XD),m)
301 M_OBJS += xd.o
302 endif
303 endif
305 ifeq ($(CONFIG_BLK_CPQ_DA),y)
306 L_OBJS += cpqarray.o
307 else
308 ifeq ($(CONFIG_BLK_CPQ_DA),m)
309 M_OBJS += cpqarray.o
310 endif
311 endif
313 ifeq ($(CONFIG_BLK_DEV_DAC960),y)
314 LX_OBJS += DAC960.o
315 else
316 ifeq ($(CONFIG_BLK_DEV_DAC960),m)
317 MX_OBJS += DAC960.o
318 endif
319 endif
321 ifeq ($(CONFIG_BLK_DEV_MD),y)
322 LX_OBJS += md.o
324 ifeq ($(CONFIG_MD_LINEAR),y)
325 L_OBJS += linear.o
326 else
327 ifeq ($(CONFIG_MD_LINEAR),m)
328 M_OBJS += linear.o
329 endif
330 endif
332 ifeq ($(CONFIG_MD_STRIPED),y)
333 L_OBJS += raid0.o
334 else
335 ifeq ($(CONFIG_MD_STRIPED),m)
336 M_OBJS += raid0.o
337 endif
338 endif
340 ifeq ($(CONFIG_MD_MIRRORING),y)
341 L_OBJS += raid1.o
342 else
343 ifeq ($(CONFIG_MD_MIRRORING),m)
344 M_OBJS += raid1.o
345 endif
346 endif
348 ifeq ($(CONFIG_MD_RAID5),y)
349 L_OBJS += raid5.o
350 else
351 ifeq ($(CONFIG_MD_RAID5),m)
352 M_OBJS += raid5.o
353 endif
354 endif
356 endif
358 ifeq ($(CONFIG_BLK_DEV_NBD),y)
359 L_OBJS += nbd.o
360 else
361 ifeq ($(CONFIG_BLK_DEV_NBD),m)
362 M_OBJS += nbd.o
363 endif
364 endif
366 ifeq ($(CONFIG_PARIDE),y)
367 SUB_DIRS += paride
368 MOD_IN_SUB_DIRS += paride
369 else
370 ifeq ($(CONFIG_PARIDE),m)
371 MOD_IN_SUB_DIRS += paride
372 endif
373 endif
375 include $(TOPDIR)/Rules.make
377 ide-mod.o: ide.o $(IDE_OBJS)
378 $(LD) $(LD_RFLAG) -r -o $@ ide.o $(IDE_OBJS)
380 ide-probe-mod.o: ide-probe.o ide-geometry.o
381 $(LD) $(LD_RFLAG) -r -o $@ ide-probe.o ide-geometry.o