Import 2.3.52pre1
[davej-history.git] / drivers / ide / Makefile
blob699c48b8240776b3014522e32f23333c5412015a
2 # Makefile for the kernel ata, atapi, and ide 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)
21 L_TARGET := ide.a
22 L_OBJS := ide-geometry.o
23 M_OBJS :=
24 MOD_LIST_NAME := IDE_MODULES
25 LX_OBJS :=
26 MX_OBJS :=
28 ifeq ($(CONFIG_BLK_DEV_AEC6210),y)
29 IDE_OBJS += aec6210.o
30 endif
32 ifeq ($(CONFIG_BLK_DEV_ALI14XX),y)
33 IDE_OBJS += ali14xx.o
34 endif
36 ifeq ($(CONFIG_BLK_DEV_ALI15X3),y)
37 IDE_OBJS += alim15x3.o
38 endif
40 ifeq ($(CONFIG_BLK_DEV_AMD7409),y)
41 IDE_OBJS += amd7409.o
42 endif
44 ifeq ($(CONFIG_BLK_DEV_BUDDHA),y)
45 IDE_OBJS += buddha.o
46 endif
48 ifeq ($(CONFIG_BLK_DEV_CMD640),y)
49 IDE_OBJS += cmd640.o
50 endif
52 ifeq ($(CONFIG_BLK_DEV_CMD64X),y)
53 IDE_OBJS += cmd64x.o
54 endif
56 ifeq ($(CONFIG_BLK_DEV_CS5530),y)
57 IDE_OBJS += cs5530.o
58 endif
60 ifeq ($(CONFIG_BLK_DEV_CY82C693),y)
61 IDE_OBJS += cy82c693.o
62 endif
64 ifeq ($(CONFIG_BLK_DEV_DTC2278),y)
65 IDE_OBJS += dtc2278.o
66 endif
68 ifeq ($(CONFIG_BLK_DEV_FALCON_IDE),y)
69 IDE_OBJS += falconide.o
70 endif
72 ifeq ($(CONFIG_BLK_DEV_GAYLE),y)
73 IDE_OBJS += gayle.o
74 endif
76 ifeq ($(CONFIG_BLK_DEV_Q40IDE),y)
77 IDE_OBJS += q40ide.o
78 endif
80 ifeq ($(CONFIG_BLK_DEV_HD),y)
81 L_OBJS += hd.o
82 endif
84 ifeq ($(CONFIG_BLK_DEV_HPT34X),y)
85 IDE_OBJS += hpt34x.o
86 endif
88 ifeq ($(CONFIG_BLK_DEV_HPT366),y)
89 IDE_OBJS += hpt366.o
90 endif
92 ifeq ($(CONFIG_BLK_DEV_HT6560B),y)
93 IDE_OBJS += ht6560b.o
94 endif
96 ifeq ($(CONFIG_BLK_DEV_IDE_ICSIDE),y)
97 IDE_OBJS += icside.o
98 endif
100 ifeq ($(CONFIG_BLK_DEV_IDEDMA),y)
101 IDE_OBJS += ide-dma.o
102 endif
104 ifeq ($(CONFIG_BLK_DEV_IDEPCI),y)
105 IDE_OBJS += ide-pci.o
106 endif
108 ifeq ($(CONFIG_BLK_DEV_ISAPNP),y)
109 IDE_OBJS += ide-pnp.o
110 endif
112 ifeq ($(CONFIG_BLK_DEV_IDE_PMAC),y)
113 IDE_OBJS += ide-pmac.o
114 endif
116 ifeq ($(CONFIG_BLK_DEV_MAC_IDE),y)
117 IDE_OBJS += macide.o
118 endif
120 ifeq ($(CONFIG_BLK_DEV_NS87415),y)
121 IDE_OBJS += ns87415.o
122 endif
124 ifeq ($(CONFIG_BLK_DEV_OPTI621),y)
125 IDE_OBJS += opti621.o
126 endif
128 ifeq ($(CONFIG_BLK_DEV_PDC202XX),y)
129 IDE_OBJS += pdc202xx.o
130 endif
132 ifeq ($(CONFIG_BLK_DEV_PDC4030),y)
133 IDE_OBJS += pdc4030.o
134 endif
136 ifeq ($(CONFIG_BLK_DEV_PIIX),y)
137 IDE_OBJS += piix.o
138 endif
140 ifeq ($(CONFIG_BLK_DEV_QD6580),y)
141 IDE_OBJS += qd6580.o
142 endif
144 ifeq ($(CONFIG_BLK_DEV_IDE_RAPIDE),y)
145 IDE_OBJS += rapide.o
146 endif
148 ifeq ($(CONFIG_BLK_DEV_RZ1000),y)
149 IDE_OBJS += rz1000.o
150 endif
152 ifeq ($(CONFIG_BLK_DEV_SIS5513),y)
153 IDE_OBJS += sis5513.o
154 endif
156 ifeq ($(CONFIG_BLK_DEV_SL82C105),y)
157 IDE_OBJS += sl82c105.o
158 endif
160 ifeq ($(CONFIG_BLK_DEV_TRM290),y)
161 IDE_OBJS += trm290.o
162 endif
164 ifeq ($(CONFIG_BLK_DEV_UMC8672),y)
165 IDE_OBJS += umc8672.o
166 endif
168 ifeq ($(CONFIG_BLK_DEV_VIA82CXXX),y)
169 IDE_OBJS += via82cxxx.o
170 endif
172 ### if CONFIG_BLK_DEV_IDE is n, IDE_OBJS will be ignored
174 ifeq ($(CONFIG_PROC_FS),y)
175 IDE_OBJS += ide-proc.o
176 endif
178 ###Collect
180 ifeq ($(CONFIG_BLK_DEV_IDE),y)
181 LX_OBJS += ide.o ide-features.o
182 L_OBJS += ide-probe.o $(IDE_OBJS)
183 else
184 ifeq ($(CONFIG_BLK_DEV_IDE),m)
185 MIX_OBJS += ide.o ide-features.o $(IDE_OBJS)
186 M_OBJS += ide-mod.o ide-probe-mod.o
187 endif
188 endif
190 ############
192 ifeq ($(CONFIG_BLK_DEV_IDECS),y)
193 L_OBJS += ide-cs.o
194 else
195 ifeq ($(CONFIG_BLK_DEV_IDECS),m)
196 M_OBJS += ide-cs.o
197 endif
198 endif
200 ifeq ($(CONFIG_BLK_DEV_IDEDISK),y)
201 L_OBJS += ide-disk.o
202 else
203 ifeq ($(CONFIG_BLK_DEV_IDEDISK),m)
204 M_OBJS += ide-disk.o
205 endif
206 endif
208 ifeq ($(CONFIG_BLK_DEV_IDECD),y)
209 L_OBJS += ide-cd.o
210 else
211 ifeq ($(CONFIG_BLK_DEV_IDECD),m)
212 M_OBJS += ide-cd.o
213 endif
214 endif
216 ifeq ($(CONFIG_BLK_DEV_IDETAPE),y)
217 L_OBJS += ide-tape.o
218 else
219 ifeq ($(CONFIG_BLK_DEV_IDETAPE),m)
220 M_OBJS += ide-tape.o
221 endif
222 endif
224 ifeq ($(CONFIG_BLK_DEV_IDEFLOPPY),y)
225 L_OBJS += ide-floppy.o
226 else
227 ifeq ($(CONFIG_BLK_DEV_IDEFLOPPY),m)
228 M_OBJS += ide-floppy.o
229 endif
230 endif
232 include $(TOPDIR)/Rules.make
234 ide-mod.o: ide.o ide-features.o $(IDE_OBJS)
235 $(LD) $(LD_RFLAG) -r -o $@ ide.o ide-features.o $(IDE_OBJS)
237 ide-probe-mod.o: ide-probe.o ide-geometry.o
238 $(LD) $(LD_RFLAG) -r -o $@ ide-probe.o ide-geometry.o