xref: /linux/drivers/video/console/Makefile (revision ed8c0e99f27451a9b980adf0de318d60e6de811f)
11da177e4SLinus Torvalds# Makefile for the Linux graphics to console drivers.
21da177e4SLinus Torvalds# 5 Aug 1999, James Simmons, <mailto:jsimmons@users.sf.net>
31da177e4SLinus Torvalds# Rewritten to use lists instead of if-statements.
41da177e4SLinus Torvalds
51da177e4SLinus Torvalds# Font handling
61da177e4SLinus Torvaldsfont-objs := fonts.o
71da177e4SLinus Torvalds
81da177e4SLinus Torvaldsfont-objs-$(CONFIG_FONT_SUN8x16)   += font_sun8x16.o
91da177e4SLinus Torvaldsfont-objs-$(CONFIG_FONT_SUN12x22)  += font_sun12x22.o
101da177e4SLinus Torvaldsfont-objs-$(CONFIG_FONT_8x8)       += font_8x8.o
111da177e4SLinus Torvaldsfont-objs-$(CONFIG_FONT_8x16)      += font_8x16.o
121da177e4SLinus Torvaldsfont-objs-$(CONFIG_FONT_6x11)      += font_6x11.o
13303b86d9SJurriaanfont-objs-$(CONFIG_FONT_7x14)      += font_7x14.o
14303b86d9SJurriaanfont-objs-$(CONFIG_FONT_10x18)     += font_10x18.o
151da177e4SLinus Torvaldsfont-objs-$(CONFIG_FONT_PEARL_8x8) += font_pearl_8x8.o
161da177e4SLinus Torvaldsfont-objs-$(CONFIG_FONT_ACORN_8x8) += font_acorn_8x8.o
171da177e4SLinus Torvaldsfont-objs-$(CONFIG_FONT_MINI_4x6)  += font_mini_4x6.o
18998e6d51SZach Smithfont-objs-$(CONFIG_FONT_RL)  += font_rl.o
191da177e4SLinus Torvalds
201da177e4SLinus Torvaldsfont-objs += $(font-objs-y)
211da177e4SLinus Torvalds
221da177e4SLinus Torvalds# Each configuration option enables a list of files.
231da177e4SLinus Torvalds
241da177e4SLinus Torvaldsobj-$(CONFIG_DUMMY_CONSOLE)       += dummycon.o
251da177e4SLinus Torvaldsobj-$(CONFIG_SGI_NEWPORT_CONSOLE) += newport_con.o font.o
261da177e4SLinus Torvaldsobj-$(CONFIG_PROM_CONSOLE)        += promcon.o promcon_tbl.o
271da177e4SLinus Torvaldsobj-$(CONFIG_STI_CONSOLE)         += sticon.o sticore.o font.o
281da177e4SLinus Torvaldsobj-$(CONFIG_VGA_CONSOLE)         += vgacon.o
291da177e4SLinus Torvaldsobj-$(CONFIG_MDA_CONSOLE)         += mdacon.o
30c465e05aSAntonino A. Daplasobj-$(CONFIG_FRAMEBUFFER_CONSOLE) += fbcon.o bitblit.o font.o softcursor.o
311da177e4SLinus Torvaldsifeq ($(CONFIG_FB_TILEBLITTING),y)
321da177e4SLinus Torvaldsobj-$(CONFIG_FRAMEBUFFER_CONSOLE)     += tileblit.o
331da177e4SLinus Torvaldsendif
346cc50e1cSAntonino A. Daplasifeq ($(CONFIG_FRAMEBUFFER_CONSOLE_ROTATION),y)
35*ed8c0e99SAntonino A. Daplasobj-$(CONFIG_FRAMEBUFFER_CONSOLE)     += fbcon_rotate.o fbcon_cw.o fbcon_ud.o \
36*ed8c0e99SAntonino A. Daplas                                         fbcon_ccw.o
376cc50e1cSAntonino A. Daplasendif
381da177e4SLinus Torvalds
391da177e4SLinus Torvaldsobj-$(CONFIG_FB_STI)              += sticore.o font.o
401da177e4SLinus Torvalds
411bbb4f20SThomas Winischhoferifeq ($(CONFIG_USB_SISUSBVGA_CON),y)
421bbb4f20SThomas Winischhoferobj-$(CONFIG_USB_SISUSBVGA)           += font.o
431bbb4f20SThomas Winischhoferendif
441bbb4f20SThomas Winischhofer
451da177e4SLinus Torvalds# Targets that kbuild needs to know about
461da177e4SLinus Torvaldstargets := promcon_tbl.c
471da177e4SLinus Torvalds
481da177e4SLinus Torvaldsquiet_cmd_conmakehash = CNMKHSH $@
491da177e4SLinus Torvalds      cmd_conmakehash = scripts/conmakehash $< | \
501da177e4SLinus Torvalds		sed -e '/\#include <[^>]*>/p' -e 's/types/init/' \
511da177e4SLinus Torvalds		-e 's/dfont\(_uni.*\]\)/promfont\1 __initdata/' > $@
521da177e4SLinus Torvalds
531da177e4SLinus Torvalds$(obj)/promcon_tbl.c: $(src)/prom.uni
541da177e4SLinus Torvalds	$(call cmd,conmakehash)
55