Import 2.1.118
[davej-history.git] / drivers / char / Makefile
blobe8424737f1628446985b75254ec70b368112f98e
2 # Makefile for the kernel character 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 definitions are now inherited from the
9 # parent makes..
12 SUB_DIRS :=
13 MOD_SUB_DIRS := $(SUB_DIRS)
14 ALL_SUB_DIRS := $(SUB_DIRS) ftape
17 # This file contains the font map for the default (hardware) font
19 FONTMAPFILE = cp437.uni
21 L_TARGET := char.a
22 M_OBJS :=
23 L_OBJS := tty_io.o n_tty.o tty_ioctl.o mem.o random.o
24 LX_OBJS := pty.o
26 ifdef CONFIG_VT
27 L_OBJS += vt.o vc_screen.o consolemap.o consolemap_deftbl.o
28 LX_OBJS += console.o selection.o
29 endif
30 ifdef CONFIG_FB
31 LX_OBJS += fbmem.o
32 endif
34 ifeq ($(CONFIG_SERIAL),y)
35 ifndef CONFIG_SUN_SERIAL
36 LX_OBJS += serial.o
37 endif
38 else
39 ifeq ($(CONFIG_SERIAL),m)
40 MX_OBJS += serial.o
41 endif
42 endif
44 ifndef CONFIG_SUN_KEYBOARD
45 ifdef CONFIG_VT
46 L_OBJS += keyboard.o
47 endif
48 ifneq ($(ARCH),m68k)
49 L_OBJS += pc_keyb.o defkeymap.o
50 endif
51 ifdef CONFIG_MAGIC_SYSRQ
52 L_OBJS += sysrq.o
53 endif
54 endif
56 ifeq ($(CONFIG_ATARI_DSP56K),y)
57 L_OBJS += dsp56k.o
58 S = y
59 else
60 ifeq ($(CONFIG_ATARI_DSP56K),m)
61 M_OBJS += dsp56k.o
62 SM = y
63 endif
64 endif
66 ifeq ($(CONFIG_ROCKETPORT),y)
67 L_OBJS += rocket.o
68 else
69 ifeq ($(CONFIG_ROCKETPORT),m)
70 M_OBJS += rocket.o
71 endif
72 endif
74 ifeq ($(CONFIG_DIGI),y)
75 L_OBJS += pcxx.o
76 else
77 ifeq ($(CONFIG_DIGI),m)
78 M_OBJS += pcxx.o
79 endif
80 endif
82 ifeq ($(CONFIG_DIGIEPCA),y)
83 L_OBJS += epca.o
84 else
85 ifeq ($(CONFIG_DIGIEPCA),m)
86 M_OBJS += epca.o
87 endif
88 endif
90 ifeq ($(CONFIG_CYCLADES),y)
91 L_OBJS += cyclades.o
92 else
93 ifeq ($(CONFIG_CYCLADES),m)
94 M_OBJS += cyclades.o
95 endif
96 endif
98 ifeq ($(CONFIG_STALLION),y)
99 L_OBJS += stallion.o
100 else
101 ifeq ($(CONFIG_STALLION),m)
102 M_OBJS += stallion.o
103 endif
104 endif
106 ifeq ($(CONFIG_ISTALLION),y)
107 L_OBJS += istallion.o
108 else
109 ifeq ($(CONFIG_ISTALLION),m)
110 M_OBJS += istallion.o
111 endif
112 endif
114 ifeq ($(CONFIG_RISCOM8),y)
115 L_OBJS += riscom8.o
116 else
117 ifeq ($(CONFIG_RISCOM8),m)
118 M_OBJS += riscom8.o
119 endif
120 endif
122 ifeq ($(CONFIG_ESPSERIAL),y)
123 L_OBJS += esp.o
124 else
125 ifeq ($(CONFIG_ESPSERIAL),m)
126 M_OBJS += esp.o
127 endif
128 endif
130 ifeq ($(CONFIG_SPECIALIX),y)
131 L_OBJS += specialix.o
132 else
133 ifeq ($(CONFIG_SPECIALIX),m)
134 M_OBJS += specialix.o
135 endif
136 endif
138 ifeq ($(CONFIG_ATIXL_BUSMOUSE),y)
139 M = y
140 L_OBJS += atixlmouse.o
141 else
142 ifeq ($(CONFIG_ATIXL_BUSMOUSE),m)
143 M_OBJS += atixlmouse.o
144 MM = m
145 endif
146 endif
148 ifeq ($(CONFIG_BUSMOUSE),y)
149 M = y
150 L_OBJS += busmouse.o
151 else
152 ifeq ($(CONFIG_BUSMOUSE),m)
153 M_OBJS += busmouse.o
154 MM = m
155 endif
156 endif
158 ifeq ($(CONFIG_PRINTER),y)
159 L_OBJS += lp.o
160 else
161 ifeq ($(CONFIG_PRINTER),m)
162 M_OBJS += lp.o
163 endif
164 endif
166 ifeq ($(CONFIG_JOYSTICK),y)
167 L_OBJS += joystick.o
168 else
169 ifeq ($(CONFIG_JOYSTICK),m)
170 M_OBJS += joystick.o
171 endif
172 endif
174 ifeq ($(CONFIG_MS_BUSMOUSE),y)
175 M = y
176 L_OBJS += msbusmouse.o
177 else
178 ifeq ($(CONFIG_MS_BUSMOUSE),m)
179 M_OBJS += msbusmouse.o
180 MM = m
181 endif
182 endif
184 ifeq ($(CONFIG_PSMOUSE),y)
185 M = y
186 L_OBJS += psaux.o
187 else
188 ifeq ($(CONFIG_PSMOUSE),m)
189 M_OBJS += psaux.o
190 MM = m
191 endif
192 endif
194 ifeq ($(CONFIG_UMISC),y)
195 # To support third-party modules, misc.c must reside in the kernel
196 M = y
197 endif
199 ifeq ($(CONFIG_SOFT_WATCHDOG),y)
200 M = y
201 L_OBJS += softdog.o
202 else
203 ifeq ($(CONFIG_SOFT_WATCHDOG),m)
204 M_OBJS += softdog.o
205 MM = m
206 endif
207 endif
209 ifeq ($(CONFIG_PCWATCHDOG),y)
210 M = y
211 L_OBJS += pcwd.o
212 else
213 ifeq ($(CONFIG_PCWATCHDOG),m)
214 M_OBJS += pcwd.o
215 MM = m
216 endif
217 endif
219 ifeq ($(CONFIG_ACQUIRE_WDT),y)
220 M = y
221 L_OBJS += acquirewdt.o
222 else
223 ifeq ($(CONFIG_ACQUIRE_WDT),m)
224 M_OBJS += acquirewdt.o
225 MM = m
226 endif
227 endif
229 ifeq ($(CONFIG_AMIGAMOUSE),y)
230 M = y
231 L_OBJS += amigamouse.o
232 else
233 ifeq ($(CONFIG_AMIGAMOUSE),m)
234 M_OBJS += amigamouse.o
235 MM = m
236 endif
237 endif
239 ifeq ($(CONFIG_ATARIMOUSE),y)
240 M = y
241 L_OBJS += atarimouse.o
242 else
243 ifeq ($(CONFIG_ATARIMOUSE),m)
244 M_OBJS += atarimouse.o
245 MM = m
246 endif
247 endif
249 ifeq ($(CONFIG_MACMOUSE),y)
250 M = y
251 L_OBJS += macmouse.o
252 else
253 ifeq ($(CONFIG_MACMOUSE),m)
254 M_OBJS += macmouse.o
255 MM = m
256 endif
257 endif
259 ifdef CONFIG_SUN_MOUSE
260 M = y
261 endif
263 ifeq ($(CONFIG_PC110_PAD),y)
264 M = y
265 L_OBJS += pc110pad.o
266 else
267 ifeq ($(CONFIG_PC110_PAD),m)
268 M_OBJS += pc110pad.o
269 MM = m
270 endif
271 endif
273 ifeq ($(CONFIG_SUN_OPENPROMIO),y)
274 M = y
275 else
276 ifeq ($(CONFIG_SUN_OPENPROMIO),m)
277 MM = m
278 endif
279 endif
281 ifeq ($(CONFIG_WDT),y)
282 M = y
283 L_OBJS += wdt.o
284 else
285 ifeq ($(CONFIG_WDT),m)
286 M_OBJS += wdt.o
287 MM = m
288 endif
289 endif
291 ifeq ($(CONFIG_RTC),y)
292 M = y
293 L_OBJS += rtc.o
294 endif
296 ifeq ($(CONFIG_NVRAM),y)
297 M = y
298 ifeq ($(CONFIG_PMAC)$(CONFIG_CHRP),)
299 L_OBJS += nvram.o
300 endif
301 else
302 ifeq ($(CONFIG_NVRAM),m)
303 MM = m
304 ifeq ($(CONFIG_PMAC)$(CONFIG_CHRP),)
305 M_OBJS += nvram.o
306 endif
307 endif
308 endif
310 ifeq ($(CONFIG_VIDEO_DEV),y)
311 LX_OBJS += videodev.o
312 else
313 ifeq ($(CONFIG_VIDEO_DEV),m)
314 MX_OBJS += videodev.o
315 endif
316 endif
318 ifeq ($(CONFIG_BUS_I2C),y)
319 L_I2C=y
320 else
321 ifeq ($(CONFIG_BUS_I2C),m)
322 M_I2C=y
323 endif
324 endif
326 ifeq ($(CONFIG_VIDEO_BT848),y)
327 L_OBJS += bttv.o msp3400.o tuner.o
328 L_I2C=y
329 else
330 ifeq ($(CONFIG_VIDEO_BT848),m)
331 M_OBJS += bttv.o msp3400.o tuner.o
332 M_I2C=y
333 endif
334 endif
336 ifeq ($(CONFIG_VIDEO_SAA5249),y)
337 L_OBJS += saa5249.o
338 L_I2C=y
339 else
340 ifeq ($(CONFIG_VIDEO_SAA5249),m)
341 M_OBJS += saa5249.o
342 M_I2C=y
343 endif
344 endif
346 ifeq ($(CONFIG_VIDEO_BWQCAM),y)
347 L_OBJS += bw-qcam.o
348 else
349 ifeq ($(CONFIG_VIDEO_BWQCAM),m)
350 M_OBJS += bw-qcam.o
351 endif
352 endif
354 ifeq ($(CONFIG_VIDEO_CQCAM),y)
355 L_OBJS += c-qcam.o
356 else
357 ifeq ($(CONFIG_VIDEO_CQCAM),m)
358 M_OBJS += c-qcam.o
359 endif
360 endif
362 ifeq ($(CONFIG_VIDEO_PMS),y)
363 L_OBJS += pms.o
364 else
365 ifeq ($(CONFIG_VIDEO_PMS),m)
366 M_OBJS += pms.o
367 endif
368 endif
370 ifeq ($(CONFIG_RADIO_AZTECH),y)
371 L_OBJS += radio-aztech.o
372 else
373 ifeq ($(CONFIG_RADIO_AZTECH),m)
374 M_OBJS += radio-aztech.o
375 endif
376 endif
378 ifeq ($(CONFIG_RADIO_SF16FMI),y)
379 L_OBJS += radio-sf16fmi.o
380 else
381 ifeq ($(CONFIG_RADIO_SF16FMI),m)
382 M_OBJS += radio-sf16fmi.o
383 endif
384 endif
386 ifeq ($(CONFIG_RADIO_RTRACK),y)
387 L_OBJS += radio-aimslab.o
388 else
389 ifeq ($(CONFIG_RADIO_RTRACK),m)
390 M_OBJS += radio-aimslab.o
391 endif
392 endif
394 ifeq ($(CONFIG_RADIO_RTRACK2),y)
395 L_OBJS += radio-rtrack2.o
396 else
397 ifeq ($(CONFIG_RADIO_RTRACK2),m)
398 M_OBJS += radio-rtrack2.o
399 endif
400 endif
402 ifeq ($(CONFIG_RADIO_ZOLTRIX),y)
403 L_OBJS += radio-zoltrix.o
404 else
405 ifeq ($(CONFIG_RADIO_ZOLTRIX),m)
406 M_OBJS += radio-zoltrix.o
407 endif
408 endif
410 ifeq ($(CONFIG_RADIO_MIROPCM20),y)
411 L_OBJS += radio-miropcm20.o
412 else
413 ifeq ($(CONFIG_RADIO_MIROPCM20),m)
414 M_OBJS += radio-miropcm20.o
415 endif
416 endif
418 ifeq ($(CONFIG_QIC02_TAPE),y)
419 L_OBJS += tpqic02.o
420 else
421 ifeq ($(CONFIG_QIC02_TAPE),m)
422 M_OBJS += tpqic02.o
423 endif
424 endif
426 ifeq ($(CONFIG_FTAPE),y)
427 L_OBJS += ftape/ftape.o
428 SUB_DIRS += ftape
429 ifneq ($(CONFIG_ZFTAPE),n)
430 MOD_SUB_DIRS += ftape
431 endif
432 else
433 ifeq ($(CONFIG_FTAPE),m)
434 MOD_SUB_DIRS += ftape
435 endif
436 endif
438 ifdef CONFIG_APM
439 LX_OBJS += apm_bios.o
440 M = y
441 endif
443 ifdef CONFIG_H8
444 LX_OBJS += h8.o
445 M = y
446 endif
448 ifdef M
449 LX_OBJS += misc.o
450 else
451 ifdef MM
452 MX_OBJS += misc.o
453 endif
454 endif
456 ifeq ($(L_I2C),y)
457 LX_OBJS += i2c.o
458 else
459 ifeq ($(M_I2C),y)
460 MX_OBJS += i2c.o
461 endif
462 endif
465 ifeq ($(CONFIG_HFMODEM),y)
466 ALL_SUB_DIRS += hfmodem
467 SUB_DIRS += hfmodem
468 L_OBJS += hfmodem/hfmodem.o
469 else
470 ifeq ($(CONFIG_HFMODEM),m)
471 ALL_SUB_DIRS += hfmodem
472 MOD_SUB_DIRS += hfmodem
473 endif
474 endif
476 include $(TOPDIR)/Rules.make
478 fastdep:
480 conmakehash: conmakehash.c
481 $(HOSTCC) $(HOSTCFLAGS) -o conmakehash conmakehash.c
483 consolemap_deftbl.c: $(FONTMAPFILE) conmakehash
484 ./conmakehash $(FONTMAPFILE) > consolemap_deftbl.c
486 consolemap_deftbl.o: consolemap_deftbl.c $(TOPDIR)/include/linux/types.h
488 defkeymap.c: defkeymap.map
489 loadkeys --mktable defkeymap.map > defkeymap.c