Dave Airlie | c0e0920 | 2008-05-29 10:09:59 +1000 | [diff] [blame] | 1 | # |
| 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 | |
| 5 | ccflags-y := -Iinclude/drm |
Jerome Glisse | 771fe6b | 2009-06-05 14:42:42 +0200 | [diff] [blame] | 6 | radeon-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 Airlie | 50f1530 | 2009-08-21 13:21:01 +1000 | [diff] [blame] | 9 | hostprogs-y := mkregtable |
| 10 | |
| 11 | quiet_cmd_mkregtable = MKREGTABLE $@ |
| 12 | cmd_mkregtable = $(obj)/mkregtable $< > $@ |
| 13 | |
Dave Airlie | 551ebd8 | 2009-09-01 15:25:57 +1000 | [diff] [blame^] | 14 | $(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 Airlie | 50f1530 | 2009-08-21 13:21:01 +1000 | [diff] [blame] | 23 | $(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 Airlie | 3f7dc91a | 2009-08-27 11:10:15 +1000 | [diff] [blame] | 29 | $(obj)/rs600_reg_safe.h: $(src)/reg_srcs/rs600 $(obj)/mkregtable |
| 30 | $(call if_changed,mkregtable) |
| 31 | |
Dave Airlie | 551ebd8 | 2009-09-01 15:25:57 +1000 | [diff] [blame^] | 32 | $(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 Airlie | 50f1530 | 2009-08-21 13:21:01 +1000 | [diff] [blame] | 36 | $(obj)/rv515.o: $(obj)/rv515_reg_safe.h |
| 37 | |
| 38 | $(obj)/r300.o: $(obj)/r300_reg_safe.h |
| 39 | |
Dave Airlie | 3f7dc91a | 2009-08-27 11:10:15 +1000 | [diff] [blame] | 40 | $(obj)/rs600.o: $(obj)/rs600_reg_safe.h |
| 41 | |
Jerome Glisse | 771fe6b | 2009-06-05 14:42:42 +0200 | [diff] [blame] | 42 | radeon-$(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änzer | ecc0b32 | 2009-07-21 11:23:57 +0200 | [diff] [blame] | 49 | rs400.o rs600.o rs690.o rv515.o r520.o r600.o rs780.o rv770.o \ |
Dave Airlie | 551ebd8 | 2009-09-01 15:25:57 +1000 | [diff] [blame^] | 50 | radeon_test.o r200.o |
Dave Airlie | c0e0920 | 2008-05-29 10:09:59 +1000 | [diff] [blame] | 51 | |
| 52 | radeon-$(CONFIG_COMPAT) += radeon_ioc32.o |
| 53 | |
| 54 | obj-$(CONFIG_DRM_RADEON)+= radeon.o |