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
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
23 L_OBJS
:= tty_io.o n_tty.o tty_ioctl.o mem.o random.o
27 L_OBJS
+= vt.o vc_screen.o consolemap.o consolemap_deftbl.o
28 LX_OBJS
+= console.o selection.o
34 ifeq ($(CONFIG_SERIAL
),y
)
35 ifndef CONFIG_SUN_SERIAL
39 ifeq ($(CONFIG_SERIAL
),m
)
44 ifndef CONFIG_SUN_KEYBOARD
49 L_OBJS
+= pc_keyb.o defkeymap.o
51 ifdef CONFIG_MAGIC_SYSRQ
56 ifeq ($(CONFIG_ATARI_DSP56K
),y
)
60 ifeq ($(CONFIG_ATARI_DSP56K
),m
)
66 ifeq ($(CONFIG_ROCKETPORT
),y
)
69 ifeq ($(CONFIG_ROCKETPORT
),m
)
74 ifeq ($(CONFIG_DIGI
),y
)
77 ifeq ($(CONFIG_DIGI
),m
)
82 ifeq ($(CONFIG_DIGIEPCA
),y
)
85 ifeq ($(CONFIG_DIGIEPCA
),m
)
90 ifeq ($(CONFIG_CYCLADES
),y
)
93 ifeq ($(CONFIG_CYCLADES
),m
)
98 ifeq ($(CONFIG_STALLION
),y
)
101 ifeq ($(CONFIG_STALLION
),m
)
106 ifeq ($(CONFIG_ISTALLION
),y
)
107 L_OBJS
+= istallion.o
109 ifeq ($(CONFIG_ISTALLION
),m
)
110 M_OBJS
+= istallion.o
114 ifeq ($(CONFIG_RISCOM8
),y
)
117 ifeq ($(CONFIG_RISCOM8
),m
)
122 ifeq ($(CONFIG_ESPSERIAL
),y
)
125 ifeq ($(CONFIG_ESPSERIAL
),m
)
130 ifeq ($(CONFIG_SPECIALIX
),y
)
131 L_OBJS
+= specialix.o
133 ifeq ($(CONFIG_SPECIALIX
),m
)
134 M_OBJS
+= specialix.o
138 ifeq ($(CONFIG_ATIXL_BUSMOUSE
),y
)
140 L_OBJS
+= atixlmouse.o
142 ifeq ($(CONFIG_ATIXL_BUSMOUSE
),m
)
143 M_OBJS
+= atixlmouse.o
148 ifeq ($(CONFIG_BUSMOUSE
),y
)
152 ifeq ($(CONFIG_BUSMOUSE
),m
)
158 ifeq ($(CONFIG_PRINTER
),y
)
161 ifeq ($(CONFIG_PRINTER
),m
)
166 ifeq ($(CONFIG_JOYSTICK
),y
)
169 ifeq ($(CONFIG_JOYSTICK
),m
)
174 ifeq ($(CONFIG_MS_BUSMOUSE
),y
)
176 L_OBJS
+= msbusmouse.o
178 ifeq ($(CONFIG_MS_BUSMOUSE
),m
)
179 M_OBJS
+= msbusmouse.o
184 ifeq ($(CONFIG_PSMOUSE
),y
)
188 ifeq ($(CONFIG_PSMOUSE
),m
)
194 ifeq ($(CONFIG_UMISC
),y
)
195 # To support third-party modules, misc.c must reside in the kernel
199 ifeq ($(CONFIG_SOFT_WATCHDOG
),y
)
203 ifeq ($(CONFIG_SOFT_WATCHDOG
),m
)
209 ifeq ($(CONFIG_PCWATCHDOG
),y
)
213 ifeq ($(CONFIG_PCWATCHDOG
),m
)
219 ifeq ($(CONFIG_ACQUIRE_WDT
),y
)
221 L_OBJS
+= acquirewdt.o
223 ifeq ($(CONFIG_ACQUIRE_WDT
),m
)
224 M_OBJS
+= acquirewdt.o
229 ifeq ($(CONFIG_AMIGAMOUSE
),y
)
231 L_OBJS
+= amigamouse.o
233 ifeq ($(CONFIG_AMIGAMOUSE
),m
)
234 M_OBJS
+= amigamouse.o
239 ifeq ($(CONFIG_ATARIMOUSE
),y
)
241 L_OBJS
+= atarimouse.o
243 ifeq ($(CONFIG_ATARIMOUSE
),m
)
244 M_OBJS
+= atarimouse.o
249 ifeq ($(CONFIG_MACMOUSE
),y
)
253 ifeq ($(CONFIG_MACMOUSE
),m
)
259 ifdef CONFIG_SUN_MOUSE
263 ifeq ($(CONFIG_PC110_PAD
),y
)
267 ifeq ($(CONFIG_PC110_PAD
),m
)
273 ifeq ($(CONFIG_SUN_OPENPROMIO
),y
)
276 ifeq ($(CONFIG_SUN_OPENPROMIO
),m
)
281 ifeq ($(CONFIG_WDT
),y
)
285 ifeq ($(CONFIG_WDT
),m
)
291 ifeq ($(CONFIG_RTC
),y
)
296 ifeq ($(CONFIG_NVRAM
),y
)
298 ifeq ($(CONFIG_PMAC
)$(CONFIG_CHRP
),)
302 ifeq ($(CONFIG_NVRAM
),m
)
304 ifeq ($(CONFIG_PMAC
)$(CONFIG_CHRP
),)
310 ifeq ($(CONFIG_VIDEO_DEV
),y
)
311 LX_OBJS
+= videodev.o
313 ifeq ($(CONFIG_VIDEO_DEV
),m
)
314 MX_OBJS
+= videodev.o
318 ifeq ($(CONFIG_BUS_I2C
),y
)
321 ifeq ($(CONFIG_BUS_I2C
),m
)
326 ifeq ($(CONFIG_VIDEO_BT848
),y
)
327 L_OBJS
+= bttv.o msp3400.o tuner.o
330 ifeq ($(CONFIG_VIDEO_BT848
),m
)
331 M_OBJS
+= bttv.o msp3400.o tuner.o
336 ifeq ($(CONFIG_VIDEO_SAA5249
),y
)
340 ifeq ($(CONFIG_VIDEO_SAA5249
),m
)
346 ifeq ($(CONFIG_VIDEO_BWQCAM
),y
)
349 ifeq ($(CONFIG_VIDEO_BWQCAM
),m
)
354 ifeq ($(CONFIG_VIDEO_CQCAM
),y
)
357 ifeq ($(CONFIG_VIDEO_CQCAM
),m
)
362 ifeq ($(CONFIG_VIDEO_PMS
),y
)
365 ifeq ($(CONFIG_VIDEO_PMS
),m
)
370 ifeq ($(CONFIG_RADIO_AZTECH
),y
)
371 L_OBJS
+= radio-aztech.o
373 ifeq ($(CONFIG_RADIO_AZTECH
),m
)
374 M_OBJS
+= radio-aztech.o
378 ifeq ($(CONFIG_RADIO_SF16FMI
),y
)
379 L_OBJS
+= radio-sf16fmi.o
381 ifeq ($(CONFIG_RADIO_SF16FMI
),m
)
382 M_OBJS
+= radio-sf16fmi.o
386 ifeq ($(CONFIG_RADIO_RTRACK
),y
)
387 L_OBJS
+= radio-aimslab.o
389 ifeq ($(CONFIG_RADIO_RTRACK
),m
)
390 M_OBJS
+= radio-aimslab.o
394 ifeq ($(CONFIG_RADIO_RTRACK2
),y
)
395 L_OBJS
+= radio-rtrack2.o
397 ifeq ($(CONFIG_RADIO_RTRACK2
),m
)
398 M_OBJS
+= radio-rtrack2.o
402 ifeq ($(CONFIG_RADIO_ZOLTRIX
),y
)
403 L_OBJS
+= radio-zoltrix.o
405 ifeq ($(CONFIG_RADIO_ZOLTRIX
),m
)
406 M_OBJS
+= radio-zoltrix.o
410 ifeq ($(CONFIG_RADIO_MIROPCM20
),y
)
411 L_OBJS
+= radio-miropcm20.o
413 ifeq ($(CONFIG_RADIO_MIROPCM20
),m
)
414 M_OBJS
+= radio-miropcm20.o
418 ifeq ($(CONFIG_QIC02_TAPE
),y
)
421 ifeq ($(CONFIG_QIC02_TAPE
),m
)
426 ifeq ($(CONFIG_FTAPE
),y
)
427 L_OBJS
+= ftape
/ftape.o
429 ifneq ($(CONFIG_ZFTAPE
),n
)
430 MOD_SUB_DIRS
+= ftape
433 ifeq ($(CONFIG_FTAPE
),m
)
434 MOD_SUB_DIRS
+= ftape
439 LX_OBJS
+= apm_bios.o
465 ifeq ($(CONFIG_HFMODEM
),y
)
466 ALL_SUB_DIRS
+= hfmodem
468 L_OBJS
+= hfmodem
/hfmodem.o
470 ifeq ($(CONFIG_HFMODEM
),m
)
471 ALL_SUB_DIRS
+= hfmodem
472 MOD_SUB_DIRS
+= hfmodem
476 include $(TOPDIR
)/Rules.make
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