1# Makefile for the Linux video drivers. 2# 5 Aug 1999, James Simmons, <mailto:jsimmons@edgeglobal.com> 3# Rewritten to use lists instead of if-statements. 4 5O_TARGET := video.o 6 7mod-subdirs := matrox sti 8 9# All of the (potential) objects that export symbols. 10# This list comes from 'grep -l EXPORT_SYMBOL *.[hc]'. 11 12export-objs := fbmem.o fbcmap.o fbcon.o fbmon.o modedb.o \ 13 fbcon-afb.o fbcon-ilbm.o \ 14 fbcon-vga.o fbcon-iplan2p2.o fbcon-iplan2p4.o \ 15 fbcon-iplan2p8.o fbcon-vga-planes.o fbcon-cfb16.o \ 16 fbcon-cfb2.o fbcon-cfb24.o fbcon-cfb32.o fbcon-cfb4.o \ 17 fbcon-cfb8.o fbcon-mac.o fbcon-mfb.o \ 18 cyber2000fb.o sa1100fb.o fbcon-hga.o fbgen.o 19 20# Each configuration option enables a list of files. 21 22obj-$(CONFIG_DUMMY_CONSOLE) += dummycon.o 23obj-$(CONFIG_SGI_NEWPORT_CONSOLE) += newport_con.o 24obj-$(CONFIG_PROM_CONSOLE) += promcon.o promcon_tbl.o 25obj-$(CONFIG_VGA_CONSOLE) += vgacon.o 26obj-$(CONFIG_MDA_CONSOLE) += mdacon.o 27 28obj-$(CONFIG_FONT_SUN8x16) += font_sun8x16.o 29obj-$(CONFIG_FONT_SUN12x22) += font_sun12x22.o 30obj-$(CONFIG_FONT_8x8) += font_8x8.o 31obj-$(CONFIG_FONT_8x16) += font_8x16.o 32obj-$(CONFIG_FONT_6x11) += font_6x11.o 33obj-$(CONFIG_FONT_PEARL_8x8) += font_pearl_8x8.o 34obj-$(CONFIG_FONT_ACORN_8x8) += font_acorn_8x8.o 35 36# Add fbmon.o back into obj-$(CONFIG_FB) in 2.5.x 37obj-$(CONFIG_FB) += fbmem.o fbcmap.o modedb.o fbcon.o fonts.o 38# Only include macmodes.o if we have FB support and are PPC 39ifeq ($(CONFIG_FB),y) 40obj-$(CONFIG_PPC) += macmodes.o 41endif 42 43obj-$(CONFIG_FB_ACORN) += acornfb.o 44obj-$(CONFIG_FB_AMIGA) += amifb.o 45obj-$(CONFIG_FB_PM2) += pm2fb.o fbgen.o 46obj-$(CONFIG_FB_PM3) += pm3fb.o fbgen.o 47obj-$(CONFIG_FB_APOLLO) += dnfb.o 48obj-$(CONFIG_FB_Q40) += q40fb.o 49obj-$(CONFIG_FB_ATARI) += atafb.o 50obj-$(CONFIG_FB_ATY128) += aty128fb.o 51obj-$(CONFIG_FB_RADEON) += radeonfb.o 52obj-$(CONFIG_FB_NEOMAGIC) += neofb.o 53obj-$(CONFIG_FB_IGA) += igafb.o 54obj-$(CONFIG_FB_CONTROL) += controlfb.o 55obj-$(CONFIG_FB_PLATINUM) += platinumfb.o 56obj-$(CONFIG_FB_VALKYRIE) += valkyriefb.o 57obj-$(CONFIG_FB_CT65550) += chipsfb.o 58obj-$(CONFIG_FB_CYBER) += cyberfb.o 59obj-$(CONFIG_FB_CYBER2000) += cyber2000fb.o 60obj-$(CONFIG_FB_SGIVW) += sgivwfb.o 61obj-$(CONFIG_FB_3DFX) += tdfxfb.o 62obj-$(CONFIG_FB_MAC) += macfb.o macmodes.o 63obj-$(CONFIG_FB_HP300) += hpfb.o 64obj-$(CONFIG_FB_OF) += offb.o 65obj-$(CONFIG_FB_IMSTT) += imsttfb.o 66obj-$(CONFIG_FB_RETINAZ3) += retz3fb.o 67obj-$(CONFIG_FB_CLGEN) += clgenfb.o fbgen.o 68obj-$(CONFIG_FB_TRIDENT) += tridentfb.o fbgen.o 69obj-$(CONFIG_FB_S3TRIO) += S3triofb.o 70obj-$(CONFIG_FB_TGA) += tgafb.o fbgen.o 71obj-$(CONFIG_FB_VESA) += vesafb.o 72obj-$(CONFIG_FB_VGA16) += vga16fb.o fbcon-vga-planes.o 73obj-$(CONFIG_FB_VIRGE) += virgefb.o 74obj-$(CONFIG_FB_G364) += g364fb.o 75obj-$(CONFIG_FB_FM2) += fm2fb.o 76obj-$(CONFIG_FB_CREATOR) += creatorfb.o sbusfb.o 77obj-$(CONFIG_FB_CGSIX) += cgsixfb.o sbusfb.o 78obj-$(CONFIG_FB_BWTWO) += bwtwofb.o sbusfb.o 79obj-$(CONFIG_FB_CGTHREE) += cgthreefb.o sbusfb.o 80obj-$(CONFIG_FB_TCX) += tcxfb.o sbusfb.o 81obj-$(CONFIG_FB_CGFOURTEEN) += cgfourteenfb.o sbusfb.o 82obj-$(CONFIG_FB_P9100) += p9100fb.o sbusfb.o 83obj-$(CONFIG_FB_LEO) += leofb.o sbusfb.o 84obj-$(CONFIG_FB_PMAG_AA) += pmag-aa-fb.o 85obj-$(CONFIG_FB_PMAG_BA) += pmag-ba-fb.o 86obj-$(CONFIG_FB_PMAGB_B) += pmagb-b-fb.o 87obj-$(CONFIG_FB_MAXINE) += maxinefb.o 88obj-$(CONFIG_FB_TX3912) += tx3912fb.o 89obj-$(CONFIG_FB_AU1100) += au1100fb.o fbgen.o 90obj-$(CONFIG_FB_IT8181) += it8181fb.o fbgen.o 91 92subdir-$(CONFIG_STI_CONSOLE) += sti 93ifeq ($(CONFIG_STI_CONSOLE),y) 94obj-y += sti/sti.o fonts.o 95endif 96 97subdir-$(CONFIG_FB_STI) += sti 98ifeq ($(CONFIG_FB_STI),y) 99obj-y += sti/sti.o fbgen.o 100endif 101 102subdir-$(CONFIG_FB_MATROX) += matrox 103ifeq ($(CONFIG_FB_MATROX),y) 104obj-y += matrox/matrox.o 105endif 106 107subdir-$(CONFIG_FB_INTEL) += intel 108ifeq ($(CONFIG_FB_INTEL),y) 109obj-y += intel/intelfb.o 110endif 111 112subdir-$(CONFIG_FB_RIVA) += riva 113ifeq ($(CONFIG_FB_RIVA),y) 114obj-y += riva/rivafb.o 115endif 116 117subdir-$(CONFIG_FB_SIS) += sis 118ifeq ($(CONFIG_FB_SIS),y) 119obj-y += sis/sisfb.o 120endif 121 122subdir-$(CONFIG_FB_ATY) += aty 123ifeq ($(CONFIG_FB_ATY),y) 124obj-y += aty/atyfb.o 125endif 126 127obj-$(CONFIG_FB_SUN3) += sun3fb.o 128obj-$(CONFIG_FB_BWTWO) += bwtwofb.o 129obj-$(CONFIG_FB_HGA) += hgafb.o 130obj-$(CONFIG_FB_SA1100) += sa1100fb.o 131obj-$(CONFIG_FB_VIRTUAL) += vfb.o 132obj-$(CONFIG_FB_HIT) += hitfb.o fbgen.o 133obj-$(CONFIG_FB_E1355) += epson1355fb.o fbgen.o 134obj-$(CONFIG_FB_E1356) += epson1356fb.o 135obj-$(CONFIG_FB_PVR2) += pvr2fb.o 136obj-$(CONFIG_FB_VOODOO1) += sstfb.o 137 138# Generic Low Level Drivers 139 140obj-$(CONFIG_FBCON_AFB) += fbcon-afb.o 141obj-$(CONFIG_FBCON_CFB2) += fbcon-cfb2.o 142obj-$(CONFIG_FBCON_CFB4) += fbcon-cfb4.o 143obj-$(CONFIG_FBCON_CFB8) += fbcon-cfb8.o 144obj-$(CONFIG_FBCON_CFB16) += fbcon-cfb16.o 145obj-$(CONFIG_FBCON_CFB24) += fbcon-cfb24.o 146obj-$(CONFIG_FBCON_CFB32) += fbcon-cfb32.o 147obj-$(CONFIG_FBCON_ILBM) += fbcon-ilbm.o 148obj-$(CONFIG_FBCON_IPLAN2P2) += fbcon-iplan2p2.o 149obj-$(CONFIG_FBCON_IPLAN2P4) += fbcon-iplan2p4.o 150obj-$(CONFIG_FBCON_IPLAN2P8) += fbcon-iplan2p8.o 151obj-$(CONFIG_FBCON_IPLAN2P16) += fbcon-iplan2p16.o 152obj-$(CONFIG_FBCON_MAC) += fbcon-mac.o 153obj-$(CONFIG_FBCON_MFB) += fbcon-mfb.o 154obj-$(CONFIG_FBCON_VGA) += fbcon-vga.o 155obj-$(CONFIG_FBCON_HGA) += fbcon-hga.o 156obj-$(CONFIG_FBCON_STI) += fbcon-sti.o 157 158include $(TOPDIR)/Rules.make 159 160clean: 161 rm -f core *.o *.a *.s 162 163../conmakehash: ../conmakehash.c 164 $(HOSTCC) $(HOSTCFLAGS) -o ../conmakehash ../conmakehash.c 165 166promcon_tbl.c: prom.uni ../char/conmakehash 167 ../char/conmakehash prom.uni | \ 168 sed -e '/#include <[^>]*>/p' -e 's/types/init/' \ 169 -e 's/dfont\(_uni.*\]\)/promfont\1 __initdata/' > promcon_tbl.c 170 171promcon_tbl.o: promcon_tbl.c $(TOPDIR)/include/linux/types.h 172 173