Makefile 3.44 KB
Newer Older
Linus Torvalds's avatar
Linus Torvalds committed
1 2 3 4 5 6 7 8 9
#
# Makefile for the kernel character device drivers.
#

#
# This file contains the font map for the default (hardware) font
#
FONTMAPFILE = cp437.uni

10
obj-y	 += mem.o random.o tty_io.o n_tty.o tty_ioctl.o pty.o misc.o
Linus Torvalds's avatar
Linus Torvalds committed
11

12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
obj-$(CONFIG_VT)		+= vt_ioctl.o vc_screen.o consolemap.o \
				   consolemap_deftbl.o selection.o keyboard.o
obj-$(CONFIG_HW_CONSOLE)	+= vt.o defkeymap.o
obj-$(CONFIG_MAGIC_SYSRQ)	+= sysrq.o
obj-$(CONFIG_ESPSERIAL)		+= esp.o
obj-$(CONFIG_MVME147_SCC)	+= generic_serial.o vme_scc.o
obj-$(CONFIG_MVME162_SCC)	+= generic_serial.o vme_scc.o
obj-$(CONFIG_BVME6000_SCC)	+= generic_serial.o vme_scc.o
obj-$(CONFIG_SERIAL_TX3912)	+= generic_serial.o serial_tx3912.o
obj-$(CONFIG_ROCKETPORT)	+= rocket.o
obj-$(CONFIG_SERIAL167)		+= serial167.o
obj-$(CONFIG_CYCLADES)		+= cyclades.o
obj-$(CONFIG_STALLION)		+= stallion.o
obj-$(CONFIG_ISTALLION)		+= istallion.o
obj-$(CONFIG_DIGI)		+= pcxx.o
obj-$(CONFIG_DIGIEPCA)		+= epca.o
obj-$(CONFIG_SPECIALIX)		+= specialix.o
obj-$(CONFIG_MOXA_INTELLIO)	+= moxa.o
obj-$(CONFIG_A2232)		+= ser_a2232.o generic_serial.o
obj-$(CONFIG_ATARI_DSP56K)	+= dsp56k.o
obj-$(CONFIG_MOXA_SMARTIO)	+= mxser.o
obj-$(CONFIG_COMPUTONE)		+= ip2.o ip2main.o
obj-$(CONFIG_RISCOM8)		+= riscom8.o
obj-$(CONFIG_ISI)		+= isicom.o
obj-$(CONFIG_SYNCLINK)		+= synclink.o
obj-$(CONFIG_SYNCLINKMP)	+= synclinkmp.o
obj-$(CONFIG_N_HDLC)		+= n_hdlc.o
Linus Torvalds's avatar
Linus Torvalds committed
39
obj-$(CONFIG_AMIGA_BUILTIN_SERIAL) += amiserial.o
40 41 42 43
obj-$(CONFIG_SX)		+= sx.o generic_serial.o
obj-$(CONFIG_RIO)		+= rio/ generic_serial.o
obj-$(CONFIG_HVC_CONSOLE)	+= hvc_console.o
obj-$(CONFIG_RAW_DRIVER)	+= raw.o
Andrew Morton's avatar
Andrew Morton committed
44
obj-$(CONFIG_SGI_L1_SERIAL)	+= sn_serial.o
45
obj-$(CONFIG_VIOCONS) += viocons.o
46
obj-$(CONFIG_VIOTAPE)		+= viotape.o
Linus Torvalds's avatar
Linus Torvalds committed
47 48

obj-$(CONFIG_PRINTER) += lp.o
49
obj-$(CONFIG_TIPAR) += tipar.o
Linus Torvalds's avatar
Linus Torvalds committed
50 51 52 53

obj-$(CONFIG_DTLK) += dtlk.o
obj-$(CONFIG_R3964) += n_r3964.o
obj-$(CONFIG_APPLICOM) += applicom.o
Linus Torvalds's avatar
Linus Torvalds committed
54
obj-$(CONFIG_SONYPI) += sonypi.o
Linus Torvalds's avatar
Linus Torvalds committed
55
obj-$(CONFIG_RTC) += rtc.o
Robert Picco's avatar
Robert Picco committed
56
obj-$(CONFIG_HPET) += hpet.o
57
obj-$(CONFIG_GEN_RTC) += genrtc.o
Linus Torvalds's avatar
Linus Torvalds committed
58
obj-$(CONFIG_EFI_RTC) += efirtc.o
Ralf Bächle's avatar
Ralf Bächle committed
59
obj-$(CONFIG_SGI_DS1286) += ds1286.o
Ralf Bächle's avatar
Ralf Bächle committed
60
obj-$(CONFIG_SGI_IP27_RTC) += ip27-rtc.o
61 62 63
ifeq ($(CONFIG_GENERIC_NVRAM),y)
  obj-$(CONFIG_NVRAM) += generic_nvram.o
else
Linus Torvalds's avatar
Linus Torvalds committed
64 65 66
  obj-$(CONFIG_NVRAM) += nvram.o
endif
obj-$(CONFIG_TOSHIBA) += toshiba.o
Linus Torvalds's avatar
Linus Torvalds committed
67
obj-$(CONFIG_I8K) += i8k.o
Linus Torvalds's avatar
Linus Torvalds committed
68
obj-$(CONFIG_DS1620) += ds1620.o
69
obj-$(CONFIG_HW_RANDOM) += hw_random.o
Linus Torvalds's avatar
Linus Torvalds committed
70
obj-$(CONFIG_QIC02_TAPE) += tpqic02.o
71
obj-$(CONFIG_FTAPE) += ftape/
72
obj-$(CONFIG_COBALT_LCD) += lcd.o
Linus Torvalds's avatar
Linus Torvalds committed
73 74 75
obj-$(CONFIG_PPDEV) += ppdev.o
obj-$(CONFIG_NWBUTTON) += nwbutton.o
obj-$(CONFIG_NWFLASH) += nwflash.o
76
obj-$(CONFIG_SCx200_GPIO) += scx200_gpio.o
Linus Torvalds's avatar
Linus Torvalds committed
77

Dave Jones's avatar
Dave Jones committed
78
obj-$(CONFIG_WATCHDOG)	+= watchdog/
79
obj-$(CONFIG_MWAVE) += mwave/
80 81 82
obj-$(CONFIG_AGP) += agp/
obj-$(CONFIG_DRM) += drm/
obj-$(CONFIG_PCMCIA) += pcmcia/
83
obj-$(CONFIG_IPMI_HANDLER) += ipmi/
84

Andrew Morton's avatar
Andrew Morton committed
85
obj-$(CONFIG_HANGCHECK_TIMER) += hangcheck-timer.o
86

87 88 89
# Files generated that shall be removed upon make clean
clean-files := consolemap_deftbl.c defkeymap.c qtronixmap.c

90 91 92
quiet_cmd_conmk = CONMK   $@
      cmd_conmk = scripts/conmakehash $< > $@

93
$(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE)
94
	$(call cmd,conmk)
Linus Torvalds's avatar
Linus Torvalds committed
95

96 97 98 99
$(obj)/defkeymap.o:  $(obj)/defkeymap.c

$(obj)/qtronixmap.o: $(obj)/qtronixmap.c

100 101 102 103
# Uncomment if you're changing the keymap and have an appropriate
# loadkeys version for the map. By default, we'll use the shipped
# versions.
# GENERATE_KEYMAP := 1
Linus Torvalds's avatar
Linus Torvalds committed
104

105 106 107
ifdef GENERATE_KEYMAP

$(obj)/defkeymap.c $(obj)/qtronixmap.c: $(obj)/%.c: $(src)/%.map
108
	loadkeys --mktable $< > $@.tmp
109 110 111
	sed -e 's/^static *//' $@.tmp > $@
	rm $@.tmp

112
endif