Makefile 6.29 KB
Newer Older
Linus Torvalds's avatar
Linus Torvalds committed
1
# Makefile for the Linux video drivers.
James Simmons's avatar
James Simmons committed
2
# 5 Aug 1999, James Simmons, <mailto:jsimmons@users.sf.net>
Linus Torvalds's avatar
Linus Torvalds committed
3 4 5 6 7 8 9
# Rewritten to use lists instead of if-statements.

mod-subdirs	:= matrox

# All of the (potential) objects that export symbols.
# This list comes from 'grep -l EXPORT_SYMBOL *.[hc]'.

10 11 12 13 14 15 16
export-objs    	:= fbmem.o fbcmap.o fbcon.o fbmon.o modedb.o \
		   fbcon-afb.o fbcon-ilbm.o fbcon-accel.o \
		   fbcon-vga.o fbcon-iplan2p2.o fbcon-iplan2p4.o \
		   fbcon-iplan2p8.o fbcon-vga-planes.o fbcon-cfb16.o \
		   fbcon-cfb2.o fbcon-cfb24.o fbcon-cfb32.o fbcon-cfb4.o \
		   fbcon-cfb8.o fbcon-mac.o fbcon-mfb.o \
		   cyber2000fb.o sa1100fb.o fbcon-hga.o fbgen.o
Linus Torvalds's avatar
Linus Torvalds committed
17 18 19 20 21 22

# Each configuration option enables a list of files.

obj-$(CONFIG_DUMMY_CONSOLE)       += dummycon.o
obj-$(CONFIG_SGI_NEWPORT_CONSOLE) += newport_con.o
obj-$(CONFIG_PROM_CONSOLE)        += promcon.o promcon_tbl.o
Linus Torvalds's avatar
Linus Torvalds committed
23
obj-$(CONFIG_STI_CONSOLE)         += sticon.o sticon-bmode.o sticore.o
Linus Torvalds's avatar
Linus Torvalds committed
24 25 26 27 28 29 30 31 32 33 34 35
obj-$(CONFIG_VGA_CONSOLE)         += vgacon.o
obj-$(CONFIG_MDA_CONSOLE)         += mdacon.o

obj-$(CONFIG_FONT_SUN8x16)        += font_sun8x16.o
obj-$(CONFIG_FONT_SUN12x22)       += font_sun12x22.o
obj-$(CONFIG_FONT_8x8)            += font_8x8.o
obj-$(CONFIG_FONT_8x16)           += font_8x16.o
obj-$(CONFIG_FONT_6x11)           += font_6x11.o
obj-$(CONFIG_FONT_PEARL_8x8)      += font_pearl_8x8.o
obj-$(CONFIG_FONT_ACORN_8x8)      += font_acorn_8x8.o

# Add fbmon.o back into obj-$(CONFIG_FB) in 2.5.x
36
obj-$(CONFIG_FB)                  += fbmem.o fbcmap.o modedb.o fbcon.o fonts.o fbgen.o
Linus Torvalds's avatar
Linus Torvalds committed
37 38 39 40 41 42 43
# Only include macmodes.o if we have FB support and are PPC
ifeq ($(CONFIG_FB),y)
obj-$(CONFIG_PPC)                 += macmodes.o
endif

obj-$(CONFIG_FB_ACORN)            += acornfb.o
obj-$(CONFIG_FB_AMIGA)            += amifb.o
44
obj-$(CONFIG_FB_PM2)              += pm2fb.o
45
obj-$(CONFIG_FB_PM3)		  += pm3fb.o
46
obj-$(CONFIG_FB_APOLLO)           += dnfb.o cfbfillrect.o cfbimgblt.o
James Simmons's avatar
James Simmons committed
47
obj-$(CONFIG_FB_Q40)              += q40fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o
Linus Torvalds's avatar
Linus Torvalds committed
48 49
obj-$(CONFIG_FB_ATARI)            += atafb.o
obj-$(CONFIG_FB_ATY128)           += aty128fb.o
Linus Torvalds's avatar
Linus Torvalds committed
50
obj-$(CONFIG_FB_RADEON)		  += radeonfb.o
51
obj-$(CONFIG_FB_NEOMAGIC)         += neofb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o
Linus Torvalds's avatar
Linus Torvalds committed
52 53 54 55 56
obj-$(CONFIG_FB_IGA)              += igafb.o
obj-$(CONFIG_FB_CONTROL)          += controlfb.o
obj-$(CONFIG_FB_PLATINUM)         += platinumfb.o
obj-$(CONFIG_FB_VALKYRIE)         += valkyriefb.o
obj-$(CONFIG_FB_CT65550)          += chipsfb.o
57
obj-$(CONFIG_FB_ANAKIN)           += anakinfb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o
58
obj-$(CONFIG_FB_CLPS711X)         += clps711xfb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o
Linus Torvalds's avatar
Linus Torvalds committed
59 60 61 62 63
obj-$(CONFIG_FB_CYBER)            += cyberfb.o
obj-$(CONFIG_FB_CYBER2000)        += cyber2000fb.o
obj-$(CONFIG_FB_SGIVW)            += sgivwfb.o
obj-$(CONFIG_FB_3DFX)             += tdfxfb.o
obj-$(CONFIG_FB_MAC)              += macfb.o macmodes.o
64
obj-$(CONFIG_FB_HP300)            += hpfb.o cfbfillrect.o cfbimgblt.o
Linus Torvalds's avatar
Linus Torvalds committed
65 66 67
obj-$(CONFIG_FB_OF)               += offb.o
obj-$(CONFIG_FB_IMSTT)            += imsttfb.o
obj-$(CONFIG_FB_RETINAZ3)         += retz3fb.o
68
obj-$(CONFIG_FB_CLGEN)            += clgenfb.o
69
obj-$(CONFIG_FB_TRIDENT)	  += tridentfb.o
Linus Torvalds's avatar
Linus Torvalds committed
70
obj-$(CONFIG_FB_S3TRIO)           += S3triofb.o
71
obj-$(CONFIG_FB_TGA)              += tgafb.o
72
obj-$(CONFIG_FB_VESA)             += vesafb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o 
Linus Torvalds's avatar
Linus Torvalds committed
73 74
obj-$(CONFIG_FB_VGA16)            += vga16fb.o fbcon-vga-planes.o
obj-$(CONFIG_FB_VIRGE)            += virgefb.o
75
obj-$(CONFIG_FB_G364)             += g364fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o
James Simmons's avatar
James Simmons committed
76
obj-$(CONFIG_FB_FM2)              += fm2fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o
Linus Torvalds's avatar
Linus Torvalds committed
77 78 79 80 81 82 83 84
obj-$(CONFIG_FB_CREATOR)          += creatorfb.o sbusfb.o
obj-$(CONFIG_FB_CGSIX)            += cgsixfb.o sbusfb.o
obj-$(CONFIG_FB_BWTWO)            += bwtwofb.o sbusfb.o
obj-$(CONFIG_FB_CGTHREE)          += cgthreefb.o sbusfb.o
obj-$(CONFIG_FB_TCX)              += tcxfb.o sbusfb.o
obj-$(CONFIG_FB_CGFOURTEEN)       += cgfourteenfb.o sbusfb.o
obj-$(CONFIG_FB_P9100)            += p9100fb.o sbusfb.o
obj-$(CONFIG_FB_LEO)              += leofb.o sbusfb.o
85
obj-$(CONFIG_FB_STI)	          += stifb.o sticore.o
86 87
obj-$(CONFIG_FB_PMAG_BA)          += pmag-ba-fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o
obj-$(CONFIG_FB_PMAGB_B)          += pmagb-b-fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o
88
obj-$(CONFIG_FB_MAXINE)           += maxinefb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o
89
obj-$(CONFIG_FB_TX3912)           += tx3912fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o
Linus Torvalds's avatar
Linus Torvalds committed
90

91 92 93 94
obj-$(CONFIG_FB_MATROX)		  += matrox/
obj-$(CONFIG_FB_RIVA)		  += riva/
obj-$(CONFIG_FB_SIS)		  += sis/
obj-$(CONFIG_FB_ATY)		  += aty/
Linus Torvalds's avatar
Linus Torvalds committed
95

Linus Torvalds's avatar
Linus Torvalds committed
96 97 98 99
obj-$(CONFIG_FB_SUN3)             += sun3fb.o
obj-$(CONFIG_FB_BWTWO)            += bwtwofb.o
obj-$(CONFIG_FB_HGA)              += hgafb.o  
obj-$(CONFIG_FB_SA1100)           += sa1100fb.o
100
obj-$(CONFIG_FB_VIRTUAL)          += vfb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o 
James Simmons's avatar
James Simmons committed
101
obj-$(CONFIG_FB_HIT)              += hitfb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o
102
obj-$(CONFIG_FB_E1355)            += epson1355fb.o
Linus Torvalds's avatar
Linus Torvalds committed
103
obj-$(CONFIG_FB_PVR2)             += pvr2fb.o
Linus Torvalds's avatar
Linus Torvalds committed
104
obj-$(CONFIG_FB_VOODOO1)          += sstfb.o
Linus Torvalds's avatar
Linus Torvalds committed
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123

# Generic Low Level Drivers

obj-$(CONFIG_FBCON_AFB)           += fbcon-afb.o
obj-$(CONFIG_FBCON_CFB2)          += fbcon-cfb2.o
obj-$(CONFIG_FBCON_CFB4)          += fbcon-cfb4.o
obj-$(CONFIG_FBCON_CFB8)          += fbcon-cfb8.o
obj-$(CONFIG_FBCON_CFB16)         += fbcon-cfb16.o
obj-$(CONFIG_FBCON_CFB24)         += fbcon-cfb24.o
obj-$(CONFIG_FBCON_CFB32)         += fbcon-cfb32.o
obj-$(CONFIG_FBCON_ILBM)          += fbcon-ilbm.o
obj-$(CONFIG_FBCON_IPLAN2P2)      += fbcon-iplan2p2.o
obj-$(CONFIG_FBCON_IPLAN2P4)      += fbcon-iplan2p4.o
obj-$(CONFIG_FBCON_IPLAN2P8)      += fbcon-iplan2p8.o
obj-$(CONFIG_FBCON_IPLAN2P16)     += fbcon-iplan2p16.o
obj-$(CONFIG_FBCON_MAC)           += fbcon-mac.o
obj-$(CONFIG_FBCON_MFB)           += fbcon-mfb.o
obj-$(CONFIG_FBCON_VGA)           += fbcon-vga.o
obj-$(CONFIG_FBCON_HGA)           += fbcon-hga.o
Linus Torvalds's avatar
Linus Torvalds committed
124
obj-$(CONFIG_FBCON_STI)           += fbcon-sti.o
125
obj-$(CONFIG_FBCON_ACCEL)	  += fbcon-accel.o
Linus Torvalds's avatar
Linus Torvalds committed
126

127 128
host-progs := ../conmakehash

Linus Torvalds's avatar
Linus Torvalds committed
129 130 131 132 133 134 135 136 137 138 139
include $(TOPDIR)/Rules.make

clean:
	rm -f core *.o *.a *.s

promcon_tbl.c: prom.uni ../char/conmakehash
	../char/conmakehash prom.uni | \
	sed -e '/#include <[^>]*>/p' -e 's/types/init/' \
	    -e 's/dfont\(_uni.*\]\)/promfont\1 __initdata/' > promcon_tbl.c

promcon_tbl.o: promcon_tbl.c $(TOPDIR)/include/linux/types.h
Linus Torvalds's avatar
Linus Torvalds committed
140