1c0e09200SDave Airlie# 2c0e09200SDave Airlie# Makefile for the drm device driver. This driver provides support for the 3c0e09200SDave Airlie# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher. 4c0e09200SDave Airlie 5c0e09200SDave Airlieccflags-y := -Iinclude/drm 6771fe6b9SJerome Glisse 750f15303SDave Airliehostprogs-y := mkregtable 869ad2ffeSFernando Luis Vázquez Caoclean-files := rn50_reg_safe.h r100_reg_safe.h r200_reg_safe.h rv515_reg_safe.h r300_reg_safe.h r420_reg_safe.h rs600_reg_safe.h r600_reg_safe.h evergreen_reg_safe.h cayman_reg_safe.h 950f15303SDave Airlie 1050f15303SDave Airliequiet_cmd_mkregtable = MKREGTABLE $@ 1150f15303SDave Airlie cmd_mkregtable = $(obj)/mkregtable $< > $@ 1250f15303SDave Airlie 13551ebd83SDave Airlie$(obj)/rn50_reg_safe.h: $(src)/reg_srcs/rn50 $(obj)/mkregtable 14551ebd83SDave Airlie $(call if_changed,mkregtable) 15551ebd83SDave Airlie 16551ebd83SDave Airlie$(obj)/r100_reg_safe.h: $(src)/reg_srcs/r100 $(obj)/mkregtable 17551ebd83SDave Airlie $(call if_changed,mkregtable) 18551ebd83SDave Airlie 19551ebd83SDave Airlie$(obj)/r200_reg_safe.h: $(src)/reg_srcs/r200 $(obj)/mkregtable 20551ebd83SDave Airlie $(call if_changed,mkregtable) 21551ebd83SDave Airlie 2250f15303SDave Airlie$(obj)/rv515_reg_safe.h: $(src)/reg_srcs/rv515 $(obj)/mkregtable 2350f15303SDave Airlie $(call if_changed,mkregtable) 2450f15303SDave Airlie 2550f15303SDave Airlie$(obj)/r300_reg_safe.h: $(src)/reg_srcs/r300 $(obj)/mkregtable 2650f15303SDave Airlie $(call if_changed,mkregtable) 2750f15303SDave Airlie 28804c7559SAlex Deucher$(obj)/r420_reg_safe.h: $(src)/reg_srcs/r420 $(obj)/mkregtable 29804c7559SAlex Deucher $(call if_changed,mkregtable) 30804c7559SAlex Deucher 313f7dc91aSDave Airlie$(obj)/rs600_reg_safe.h: $(src)/reg_srcs/rs600 $(obj)/mkregtable 323f7dc91aSDave Airlie $(call if_changed,mkregtable) 333f7dc91aSDave Airlie 34961fb597SJerome Glisse$(obj)/r600_reg_safe.h: $(src)/reg_srcs/r600 $(obj)/mkregtable 35961fb597SJerome Glisse $(call if_changed,mkregtable) 36961fb597SJerome Glisse 37cb5fcbd5SAlex Deucher$(obj)/evergreen_reg_safe.h: $(src)/reg_srcs/evergreen $(obj)/mkregtable 38cb5fcbd5SAlex Deucher $(call if_changed,mkregtable) 39cb5fcbd5SAlex Deucher 40c9895ed5SAlex Deucher$(obj)/cayman_reg_safe.h: $(src)/reg_srcs/cayman $(obj)/mkregtable 41c9895ed5SAlex Deucher $(call if_changed,mkregtable) 42c9895ed5SAlex Deucher 43551ebd83SDave Airlie$(obj)/r100.o: $(obj)/r100_reg_safe.h $(obj)/rn50_reg_safe.h 44551ebd83SDave Airlie 45551ebd83SDave Airlie$(obj)/r200.o: $(obj)/r200_reg_safe.h 46551ebd83SDave Airlie 4750f15303SDave Airlie$(obj)/rv515.o: $(obj)/rv515_reg_safe.h 4850f15303SDave Airlie 4950f15303SDave Airlie$(obj)/r300.o: $(obj)/r300_reg_safe.h 5050f15303SDave Airlie 51804c7559SAlex Deucher$(obj)/r420.o: $(obj)/r420_reg_safe.h 52804c7559SAlex Deucher 533f7dc91aSDave Airlie$(obj)/rs600.o: $(obj)/rs600_reg_safe.h 543f7dc91aSDave Airlie 55961fb597SJerome Glisse$(obj)/r600_cs.o: $(obj)/r600_reg_safe.h 56961fb597SJerome Glisse 57c175ca9aSAlex Deucher$(obj)/evergreen_cs.o: $(obj)/evergreen_reg_safe.h $(obj)/cayman_reg_safe.h 58cb5fcbd5SAlex Deucher 5914adc892SChristian Königradeon-y := radeon_drv.o 6014adc892SChristian König 6114adc892SChristian König# add UMS driver 6214adc892SChristian Königradeon-$(CONFIG_DRM_RADEON_UMS)+= radeon_cp.o radeon_state.o radeon_mem.o \ 6314adc892SChristian König radeon_irq.o r300_cmdbuf.o r600_cp.o r600_blit.o 6414adc892SChristian König 65a0cdc649SDave Airlie# add KMS driver 660a10c851SDaniel Vetterradeon-y += radeon_device.o radeon_asic.o radeon_kms.o \ 67771fe6b9SJerome Glisse radeon_atombios.o radeon_agp.o atombios_crtc.o radeon_combios.o \ 68771fe6b9SJerome Glisse atom.o radeon_fence.o radeon_ttm.o radeon_object.o radeon_gart.o \ 69771fe6b9SJerome Glisse radeon_legacy_crtc.o radeon_legacy_encoders.o radeon_connectors.o \ 70771fe6b9SJerome Glisse radeon_encoders.o radeon_display.o radeon_cursor.o radeon_i2c.o \ 71771fe6b9SJerome Glisse radeon_clocks.o radeon_fb.o radeon_gem.o radeon_ring.o radeon_irq_kms.o \ 72771fe6b9SJerome Glisse radeon_cs.o radeon_bios.o radeon_benchmark.o r100.o r300.o r420.o \ 733ce0a23dSJerome Glisse rs400.o rs600.o rs690.o rv515.o r520.o r600.o rv770.o radeon_test.o \ 7414adc892SChristian König r200.o radeon_legacy_tv.o r600_cs.o r600_blit_shaders.o \ 75bcc1c2a1SAlex Deucher r600_blit_kms.o radeon_pm.o atombios_dp.o r600_audio.o r600_hdmi.o \ 7699ee7facSDave Airlie evergreen.o evergreen_cs.o evergreen_blit_shaders.o evergreen_blit_kms.o \ 77e55d3e6cSRafał Miłecki evergreen_hdmi.o radeon_trace_points.o ni.o cayman_blit_shaders.o \ 78e55d3e6cSRafał Miłecki atombios_encoders.o radeon_semaphore.o radeon_sa.o atombios_i2c.o si.o \ 792e9d4c05SAlex Deucher si_blit_shaders.o radeon_prime.o radeon_uvd.o cik.o cik_blit_shaders.o \ 8066229b20SAlex Deucher r600_dpm.o rs780_dpm.o rv6xx_dpm.o rv770_dpm.o rv730_dpm.o rv740_dpm.o \ 81d70229f7SAlex Deucher rv770_smc.o cypress_dpm.o btc_dpm.o sumo_dpm.o sumo_smc.o trinity_dpm.o \ 82a9e61410SAlex Deucher trinity_smc.o ni_dpm.o si_smc.o si_dpm.o 83c0e09200SDave Airlie 84c0e09200SDave Airlieradeon-$(CONFIG_COMPAT) += radeon_ioc32.o 859b11fe5fSAlex Deucherradeon-$(CONFIG_VGA_SWITCHEROO) += radeon_atpx_handler.o 86d7a2952fSAlberto Miloneradeon-$(CONFIG_ACPI) += radeon_acpi.o 87c0e09200SDave Airlie 88c0e09200SDave Airlieobj-$(CONFIG_DRM_RADEON)+= radeon.o 8999ee7facSDave Airlie 9099ee7facSDave AirlieCFLAGS_radeon_trace_points.o := -I$(src) 91