blob: 6fb842962490e66eb689dc125162260dc4094cf3 [file] [log] [blame]
Dave Airliec0e09202008-05-29 10:09:59 +10001#
2# Makefile for the drm device driver. This driver provides support for the
3# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
4
5ccflags-y := -Iinclude/drm
Jerome Glisse771fe6b2009-06-05 14:42:42 +02006radeon-y := radeon_drv.o radeon_cp.o radeon_state.o radeon_mem.o \
7 radeon_irq.o r300_cmdbuf.o r600_cp.o
8
Dave Airlie50f15302009-08-21 13:21:01 +10009hostprogs-y := mkregtable
10
11quiet_cmd_mkregtable = MKREGTABLE $@
12 cmd_mkregtable = $(obj)/mkregtable $< > $@
13
Dave Airlie551ebd82009-09-01 15:25:57 +100014$(obj)/rn50_reg_safe.h: $(src)/reg_srcs/rn50 $(obj)/mkregtable
15 $(call if_changed,mkregtable)
16
17$(obj)/r100_reg_safe.h: $(src)/reg_srcs/r100 $(obj)/mkregtable
18 $(call if_changed,mkregtable)
19
20$(obj)/r200_reg_safe.h: $(src)/reg_srcs/r200 $(obj)/mkregtable
21 $(call if_changed,mkregtable)
22
Dave Airlie50f15302009-08-21 13:21:01 +100023$(obj)/rv515_reg_safe.h: $(src)/reg_srcs/rv515 $(obj)/mkregtable
24 $(call if_changed,mkregtable)
25
26$(obj)/r300_reg_safe.h: $(src)/reg_srcs/r300 $(obj)/mkregtable
27 $(call if_changed,mkregtable)
28
Dave Airlie3f7dc91a2009-08-27 11:10:15 +100029$(obj)/rs600_reg_safe.h: $(src)/reg_srcs/rs600 $(obj)/mkregtable
30 $(call if_changed,mkregtable)
31
Dave Airlie551ebd82009-09-01 15:25:57 +100032$(obj)/r100.o: $(obj)/r100_reg_safe.h $(obj)/rn50_reg_safe.h
33
34$(obj)/r200.o: $(obj)/r200_reg_safe.h
35
Dave Airlie50f15302009-08-21 13:21:01 +100036$(obj)/rv515.o: $(obj)/rv515_reg_safe.h
37
38$(obj)/r300.o: $(obj)/r300_reg_safe.h
39
Dave Airlie3f7dc91a2009-08-27 11:10:15 +100040$(obj)/rs600.o: $(obj)/rs600_reg_safe.h
41
Jerome Glisse771fe6b2009-06-05 14:42:42 +020042radeon-$(CONFIG_DRM_RADEON_KMS) += radeon_device.o radeon_kms.o \
43 radeon_atombios.o radeon_agp.o atombios_crtc.o radeon_combios.o \
44 atom.o radeon_fence.o radeon_ttm.o radeon_object.o radeon_gart.o \
45 radeon_legacy_crtc.o radeon_legacy_encoders.o radeon_connectors.o \
46 radeon_encoders.o radeon_display.o radeon_cursor.o radeon_i2c.o \
47 radeon_clocks.o radeon_fb.o radeon_gem.o radeon_ring.o radeon_irq_kms.o \
48 radeon_cs.o radeon_bios.o radeon_benchmark.o r100.o r300.o r420.o \
Michel Dänzerecc0b322009-07-21 11:23:57 +020049 rs400.o rs600.o rs690.o rv515.o r520.o r600.o rs780.o rv770.o \
Dave Airlie551ebd82009-09-01 15:25:57 +100050 radeon_test.o r200.o
Dave Airliec0e09202008-05-29 10:09:59 +100051
52radeon-$(CONFIG_COMPAT) += radeon_ioc32.o
53
54obj-$(CONFIG_DRM_RADEON)+= radeon.o