1999-12-05 16:10:37 -07:00
|
|
|
#
|
2001-08-07 12:15:10 -06:00
|
|
|
# Makefile for the drm device driver. This driver provides support for the
|
|
|
|
# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
|
2003-04-17 12:44:38 -06:00
|
|
|
#
|
|
|
|
# Based on David Woodhouse's mtd build.
|
|
|
|
#
|
2003-09-12 14:00:59 -06:00
|
|
|
# $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/Makefile.kernel,v 1.18 2003/08/16 17:59:17 dawes Exp $
|
2003-04-17 12:44:38 -06:00
|
|
|
#
|
2001-08-07 12:15:10 -06:00
|
|
|
|
|
|
|
gamma-objs := gamma_drv.o gamma_dma.o
|
|
|
|
tdfx-objs := tdfx_drv.o
|
2003-04-17 12:44:38 -06:00
|
|
|
r128-objs := r128_drv.o r128_cce.o r128_state.o r128_irq.o
|
|
|
|
mga-objs := mga_drv.o mga_dma.o mga_state.o mga_warp.o mga_irq.o
|
2001-08-07 12:15:10 -06:00
|
|
|
i810-objs := i810_drv.o i810_dma.o
|
2003-03-25 04:36:43 -07:00
|
|
|
i830-objs := i830_drv.o i830_dma.o i830_irq.o
|
2003-04-17 12:44:38 -06:00
|
|
|
radeon-objs := radeon_drv.o radeon_cp.o radeon_state.o radeon_mem.o radeon_irq.o
|
|
|
|
sis-objs := sis_drv.o sis_ds.o sis_mm.o
|
2001-08-07 12:15:10 -06:00
|
|
|
ffb-objs := ffb_drv.o ffb_context.o
|
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
# Kernel version checks
|
|
|
|
|
|
|
|
BELOW25 := $(shell if [ $(PATCHLEVEL) -lt 5 ]; then echo y; fi)
|
|
|
|
|
|
|
|
# There were major build changes starting with 2.5.52
|
|
|
|
ifneq ($(BELOW25),y)
|
2003-08-07 04:13:50 -06:00
|
|
|
BELOW2552 := $(shell if [ $(PATCHLEVEL) -eq 5 -a $(SUBLEVEL) -lt 52 ]; then echo y; fi)
|
2003-04-17 12:44:38 -06:00
|
|
|
else
|
|
|
|
BELOW2552 := y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BELOW25),y)
|
|
|
|
O_TARGET := drm.o
|
|
|
|
list-multi := gamma.o tdfx.o r128.o mga.o i810.o i830.o ffb.o radeon.o
|
|
|
|
obj-m :=
|
|
|
|
obj-n :=
|
|
|
|
obj- :=
|
|
|
|
endif
|
|
|
|
|
2001-08-07 12:15:10 -06:00
|
|
|
obj-$(CONFIG_DRM_GAMMA) += gamma.o
|
|
|
|
obj-$(CONFIG_DRM_TDFX) += tdfx.o
|
|
|
|
obj-$(CONFIG_DRM_R128) += r128.o
|
|
|
|
obj-$(CONFIG_DRM_RADEON)+= radeon.o
|
|
|
|
obj-$(CONFIG_DRM_MGA) += mga.o
|
|
|
|
obj-$(CONFIG_DRM_I810) += i810.o
|
2002-01-27 13:05:42 -07:00
|
|
|
obj-$(CONFIG_DRM_I830) += i830.o
|
2003-04-17 12:44:38 -06:00
|
|
|
obj-$(CONFIG_DRM_SIS) += sis.o
|
2001-08-07 12:15:10 -06:00
|
|
|
obj-$(CONFIG_DRM_FFB) += ffb.o
|
2000-07-19 12:38:41 -06:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
ifeq ($(BELOW2552),y)
|
1999-12-05 16:10:37 -07:00
|
|
|
include $(TOPDIR)/Rules.make
|
2003-04-17 12:44:38 -06:00
|
|
|
endif
|
1999-12-05 16:10:37 -07:00
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
ifeq ($(BELOW25),y)
|
2001-01-04 11:41:41 -07:00
|
|
|
gamma.o: $(gamma-objs) $(lib)
|
|
|
|
$(LD) -r -o $@ $(gamma-objs) $(lib)
|
2000-02-22 08:43:59 -07:00
|
|
|
|
2001-01-04 11:41:41 -07:00
|
|
|
tdfx.o: $(tdfx-objs) $(lib)
|
|
|
|
$(LD) -r -o $@ $(tdfx-objs) $(lib)
|
2000-04-04 16:08:14 -06:00
|
|
|
|
2001-01-04 11:41:41 -07:00
|
|
|
mga.o: $(mga-objs) $(lib)
|
|
|
|
$(LD) -r -o $@ $(mga-objs) $(lib)
|
2000-04-04 16:08:14 -06:00
|
|
|
|
2001-01-04 11:41:41 -07:00
|
|
|
i810.o: $(i810-objs) $(lib)
|
|
|
|
$(LD) -r -o $@ $(i810-objs) $(lib)
|
2000-04-04 16:08:14 -06:00
|
|
|
|
2002-01-27 13:05:42 -07:00
|
|
|
i830.o: $(i830-objs) $(lib)
|
|
|
|
$(LD) -r -o $@ $(i830-objs) $(lib)
|
|
|
|
|
2001-01-04 11:41:41 -07:00
|
|
|
r128.o: $(r128-objs) $(lib)
|
|
|
|
$(LD) -r -o $@ $(r128-objs) $(lib)
|
2000-07-19 12:38:41 -06:00
|
|
|
|
2001-01-05 15:57:55 -07:00
|
|
|
radeon.o: $(radeon-objs) $(lib)
|
|
|
|
$(LD) -r -o $@ $(radeon-objs) $(lib)
|
|
|
|
|
2003-04-17 12:44:38 -06:00
|
|
|
sis.o: $(sis-objs) $(lib)
|
|
|
|
$(LD) -r -o $@ $(sis-objs) $(lib)
|
|
|
|
|
2001-01-04 11:41:41 -07:00
|
|
|
ffb.o: $(ffb-objs) $(lib)
|
|
|
|
$(LD) -r -o $@ $(ffb-objs) $(lib)
|
2003-04-17 12:44:38 -06:00
|
|
|
endif
|
|
|
|
|