Import 2.3.9pre5
[davej-history.git] / drivers / block / Makefile
blob7d553f9b2b7293a9ddc44f697c0be5fe3b8cea1a
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
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_ATARI_ACSI),y)
58 LX_OBJS += acsi.o
59 else
60 ifeq ($(CONFIG_ATARI_ACSI),m)
61 MX_OBJS += acsi.o
62 endif
63 endif
65 ifeq ($(CONFIG_ATARI_SLM),y)
66 L_OBJS += acsi_slm.o
67 else
68 ifeq ($(CONFIG_ATARI_SLM),m)
69 M_OBJS += acsi_slm.o
70 endif
71 endif
73 ifeq ($(CONFIG_AMIGA_Z2RAM),y)
74 L_OBJS += z2ram.o
75 else
76 ifeq ($(CONFIG_AMIGA_Z2RAM),m)
77 M_OBJS += z2ram.o
78 endif
79 endif
81 ifeq ($(CONFIG_BLK_DEV_RAM),y)
82 L_OBJS += rd.o
83 else
84 ifeq ($(CONFIG_BLK_DEV_RAM),m)
85 M_OBJS += rd.o
86 endif
87 endif
89 ifeq ($(CONFIG_BLK_DEV_LOOP),y)
90 LX_OBJS += loop.o
91 else
92 ifeq ($(CONFIG_BLK_DEV_LOOP),m)
93 MX_OBJS += loop.o
94 endif
95 endif
97 ifeq ($(CONFIG_BLK_DEV_HD),y)
98 L_OBJS += hd.o
99 endif
101 ifeq ($(CONFIG_BLK_DEV_RZ1000),y)
102 IDE_OBJS += rz1000.o
103 endif
105 ifeq ($(CONFIG_BLK_DEV_CMD640),y)
106 IDE_OBJS += cmd640.o
107 endif
109 ifeq ($(CONFIG_BLK_DEV_IDE_PMAC),y)
110 IDE_OBJS += ide-pmac.o
111 endif
113 ifeq ($(CONFIG_BLK_DEV_IDEPCI),y)
114 IDE_OBJS += ide-pci.o
115 endif
117 ifeq ($(CONFIG_BLK_DEV_IDEDMA),y)
118 IDE_OBJS += ide-dma.o
119 endif
121 ifeq ($(CONFIG_BLK_DEV_DTC2278),y)
122 IDE_OBJS += dtc2278.o
123 endif
125 ifeq ($(CONFIG_BLK_DEV_HT6560B),y)
126 IDE_OBJS += ht6560b.o
127 endif
129 ifeq ($(CONFIG_BLK_DEV_QD6580),y)
130 IDE_OBJS += qd6580.o
131 endif
133 ifeq ($(CONFIG_BLK_DEV_UMC8672),y)
134 IDE_OBJS += umc8672.o
135 endif
137 ifeq ($(CONFIG_BLK_DEV_ALI14XX),y)
138 IDE_OBJS += ali14xx.o
139 endif
141 ifeq ($(CONFIG_BLK_DEV_PDC4030),y)
142 IDE_OBJS += pdc4030.o
143 endif
145 ifeq ($(CONFIG_BLK_DEV_TRM290),y)
146 IDE_OBJS += trm290.o
147 endif
149 ifeq ($(CONFIG_BLK_DEV_OPTI621),y)
150 IDE_OBJS += opti621.o
151 endif
153 ifeq ($(CONFIG_BLK_DEV_NS87415),y)
154 IDE_OBJS += ns87415.o
155 endif
157 ifeq ($(CONFIG_BLK_DEV_VIA82C586),y)
158 IDE_OBJS += via82c586.o
159 endif
161 ifeq ($(CONFIG_BLK_DEV_GAYLE),y)
162 IDE_OBJS += gayle.o
163 endif
165 ifeq ($(CONFIG_BLK_DEV_FALCON_IDE),y)
166 IDE_OBJS += falconide.o
167 endif
169 ifeq ($(CONFIG_BLK_DEV_MAC_IDE),y)
170 IDE_OBJS += macide.o
171 endif
173 ifeq ($(CONFIG_BLK_DEV_BUDDHA),y)
174 IDE_OBJS += buddha.o
175 endif
177 ifeq ($(CONFIG_BLK_DEV_CMD646),y)
178 IDE_OBJS += cmd646.o
179 endif
181 ifeq ($(CONFIG_BLK_DEV_SL82C105),y)
182 IDE_OBJS += sl82c105.o
183 endif
185 ifeq ($(CONFIG_BLK_DEV_ALI15X3),y)
186 IDE_OBJS += alim15x3.o
187 endif
189 ifeq ($(CONFIG_BLK_DEV_CY82C693),y)
190 IDE_OBJS += cy82c693.o
191 endif
193 ifeq ($(CONFIG_BLK_DEV_PIIX),y)
194 IDE_OBJS += piix.o
195 endif
197 ifeq ($(CONFIG_BLK_DEV_PDC202XX),y)
198 IDE_OBJS += pdc202xx.o
199 endif
201 ifeq ($(CONFIG_BLK_DEV_AEC6210),y)
202 IDE_OBJS += aec6210.o
203 endif
205 ifeq ($(CONFIG_BLK_DEV_HPT343),y)
206 IDE_OBJS += hpt343.o
207 endif
209 ### if CONFIG_BLK_DEV_IDE is n, IDE_OBJS will be ignored
211 ifeq ($(CONFIG_PROC_FS),y)
212 IDE_OBJS += ide-proc.o
213 endif
215 ###Collect
217 ifeq ($(CONFIG_BLK_DEV_IDE),y)
218 LX_OBJS += ide.o
219 L_OBJS += ide-probe.o $(IDE_OBJS)
220 else
221 ifeq ($(CONFIG_BLK_DEV_IDE),m)
222 MIX_OBJS += ide.o $(IDE_OBJS)
223 M_OBJS += ide-mod.o ide-probe.o
224 endif
225 endif
227 ############
229 ifeq ($(CONFIG_BLK_DEV_IDEDISK),y)
230 L_OBJS += ide-disk.o
231 else
232 ifeq ($(CONFIG_BLK_DEV_IDEDISK),m)
233 M_OBJS += ide-disk.o
234 endif
235 endif
237 ifeq ($(CONFIG_BLK_DEV_IDECD),y)
238 L_OBJS += ide-cd.o
239 else
240 ifeq ($(CONFIG_BLK_DEV_IDECD),m)
241 M_OBJS += ide-cd.o
242 endif
243 endif
245 ifeq ($(CONFIG_BLK_DEV_IDETAPE),y)
246 L_OBJS += ide-tape.o
247 else
248 ifeq ($(CONFIG_BLK_DEV_IDETAPE),m)
249 M_OBJS += ide-tape.o
250 endif
251 endif
253 ifeq ($(CONFIG_BLK_DEV_IDEFLOPPY),y)
254 L_OBJS += ide-floppy.o
255 else
256 ifeq ($(CONFIG_BLK_DEV_IDEFLOPPY),m)
257 M_OBJS += ide-floppy.o
258 endif
259 endif
261 ifeq ($(CONFIG_BLK_DEV_PS2),y)
262 L_OBJS += ps2esdi.o
263 else
264 ifeq ($(CONFIG_BLK_DEV_PS2),m)
265 M_OBJS += ps2esdi.o
266 endif
267 endif
269 ifeq ($(CONFIG_BLK_DEV_XD),y)
270 L_OBJS += xd.o
271 else
272 ifeq ($(CONFIG_BLK_DEV_XD),m)
273 M_OBJS += xd.o
274 endif
275 endif
277 ifeq ($(CONFIG_BLK_DEV_MD),y)
278 LX_OBJS += md.o
280 ifeq ($(CONFIG_MD_LINEAR),y)
281 L_OBJS += linear.o
282 else
283 ifeq ($(CONFIG_MD_LINEAR),m)
284 M_OBJS += linear.o
285 endif
286 endif
288 ifeq ($(CONFIG_MD_STRIPED),y)
289 L_OBJS += raid0.o
290 else
291 ifeq ($(CONFIG_MD_STRIPED),m)
292 M_OBJS += raid0.o
293 endif
294 endif
296 ifeq ($(CONFIG_MD_MIRRORING),y)
297 L_OBJS += raid1.o
298 else
299 ifeq ($(CONFIG_MD_MIRRORING),m)
300 M_OBJS += raid1.o
301 endif
302 endif
304 ifeq ($(CONFIG_MD_RAID5),y)
305 L_OBJS += raid5.o
306 else
307 ifeq ($(CONFIG_MD_RAID5),m)
308 M_OBJS += raid5.o
309 endif
310 endif
312 endif
314 ifeq ($(CONFIG_BLK_DEV_NBD),y)
315 L_OBJS += nbd.o
316 else
317 ifeq ($(CONFIG_BLK_DEV_NBD),m)
318 M_OBJS += nbd.o
319 endif
320 endif
322 ifeq ($(CONFIG_PARIDE),y)
323 SUB_DIRS += paride
324 MOD_IN_SUB_DIRS += paride
325 else
326 ifeq ($(CONFIG_PARIDE),m)
327 MOD_IN_SUB_DIRS += paride
328 endif
329 endif
331 include $(TOPDIR)/Rules.make
333 ide-mod.o: ide.o $(IDE_OBJS)
334 $(LD) $(LD_RFLAG) -r -o $@ ide.o $(IDE_OBJS)