1254885Sdumbbell# $FreeBSD: releng/11.0/sys/modules/drm2/radeonkms/Makefile 280183 2015-03-17 18:50:33Z dumbbell $
2254885Sdumbbell
3254885Sdumbbell.PATH:	${.CURDIR}/../../../dev/drm2/radeon
4254885Sdumbbell
5254885SdumbbellKMOD	= radeonkms
6254885SdumbbellSRCS	=								\
7254885Sdumbbell	rn50_reg_safe.h							\
8254885Sdumbbell	r100_reg_safe.h							\
9254885Sdumbbell	r200_reg_safe.h							\
10254885Sdumbbell	rv515_reg_safe.h						\
11254885Sdumbbell	r300_reg_safe.h							\
12254885Sdumbbell	r420_reg_safe.h							\
13254885Sdumbbell	rs600_reg_safe.h						\
14254885Sdumbbell	r600_reg_safe.h							\
15254885Sdumbbell	evergreen_reg_safe.h						\
16254885Sdumbbell	cayman_reg_safe.h
17254885SdumbbellSRCS	+=								\
18280183Sdumbbell	${radeon_acpi}							\
19254885Sdumbbell	radeon_agp.c							\
20254885Sdumbbell	radeon_asic.c							\
21254885Sdumbbell	radeon_atombios.c						\
22280183Sdumbbell	${radeon_atpx_handler}						\
23254885Sdumbbell	radeon_benchmark.c						\
24254885Sdumbbell	radeon_bios.c							\
25254885Sdumbbell	radeon_clocks.c							\
26254885Sdumbbell	radeon_combios.c						\
27254885Sdumbbell	radeon_connectors.c						\
28254885Sdumbbell	radeon_cp.c							\
29254885Sdumbbell	radeon_cs.c							\
30254885Sdumbbell	radeon_cursor.c							\
31254885Sdumbbell	radeon_device.c							\
32254885Sdumbbell	radeon_display.c						\
33254885Sdumbbell	radeon_drv.c							\
34254885Sdumbbell	radeon_encoders.c						\
35254885Sdumbbell	radeon_fb.c							\
36254885Sdumbbell	radeon_fence.c							\
37254885Sdumbbell	radeon_gart.c							\
38254885Sdumbbell	radeon_gem.c							\
39254885Sdumbbell	radeon_i2c.c							\
40280183Sdumbbell	${radeon_ioc32}							\
41254885Sdumbbell	radeon_irq.c							\
42254885Sdumbbell	radeon_irq_kms.c						\
43254885Sdumbbell	radeon_kms.c							\
44254885Sdumbbell	radeon_legacy_crtc.c						\
45254885Sdumbbell	radeon_legacy_encoders.c					\
46254885Sdumbbell	radeon_legacy_tv.c						\
47254885Sdumbbell	radeon_mem.c							\
48254885Sdumbbell	radeon_object.c							\
49254885Sdumbbell	radeon_pm.c							\
50254885Sdumbbell	radeon_ring.c							\
51254885Sdumbbell	radeon_sa.c							\
52254885Sdumbbell	radeon_semaphore.c						\
53254885Sdumbbell	radeon_state.c							\
54254885Sdumbbell	radeon_test.c							\
55254885Sdumbbell	radeon_ttm.c							\
56254885Sdumbbell	atom.c								\
57254885Sdumbbell	atombios_crtc.c							\
58254885Sdumbbell	atombios_dp.c							\
59254885Sdumbbell	atombios_encoders.c						\
60254885Sdumbbell	atombios_i2c.c							\
61254885Sdumbbell	r100.c								\
62254885Sdumbbell	r200.c								\
63254885Sdumbbell	r300.c								\
64254885Sdumbbell	r300_cmdbuf.c							\
65254885Sdumbbell	r420.c								\
66254885Sdumbbell	rs400.c								\
67254885Sdumbbell	rs600.c								\
68254885Sdumbbell	rs690.c								\
69254885Sdumbbell	rv515.c								\
70254885Sdumbbell	r520.c								\
71254885Sdumbbell	r600.c								\
72254885Sdumbbell	r600_audio.c							\
73254885Sdumbbell	r600_blit.c							\
74254885Sdumbbell	r600_blit_kms.c							\
75254885Sdumbbell	r600_blit_shaders.c						\
76254885Sdumbbell	r600_cp.c							\
77254885Sdumbbell	r600_cs.c							\
78254885Sdumbbell	r600_hdmi.c							\
79254885Sdumbbell	rv770.c								\
80254885Sdumbbell	evergreen.c							\
81254885Sdumbbell	evergreen_blit_kms.c						\
82254885Sdumbbell	evergreen_blit_shaders.c					\
83254885Sdumbbell	evergreen_cs.c							\
84254885Sdumbbell	evergreen_hdmi.c						\
85254885Sdumbbell	cayman_blit_shaders.c						\
86254885Sdumbbell	ni.c								\
87254885Sdumbbell	si.c								\
88254885Sdumbbell	si_blit_shaders.c
89254885Sdumbbell
90280183Sdumbbell.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
91280183Sdumbbellradeon_acpi=		radeon_acpi.c
92280183Sdumbbell#radeon_atpx_handler=	radeon_atpx_handler.c
93265262Sdumbbell.endif
94265262Sdumbbell
95280183Sdumbbell.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_ARCH} == "powerpc64"
96280183Sdumbbellradeon_ioc32=		radeon_ioc32.c
97280183Sdumbbell.endif
98280183Sdumbbell
99254885Sdumbbell#radeon_prime.c
100254885Sdumbbell#--radeon_trace_points.c
101254885Sdumbbell
102254885SdumbbellSRCS	+=								\
103254885Sdumbbell	opt_acpi.h							\
104254885Sdumbbell	opt_compat.h							\
105254885Sdumbbell	opt_drm.h							\
106259179Sray	opt_syscons.h							\
107254885Sdumbbell	acpi_if.h							\
108254885Sdumbbell	bus_if.h							\
109259016Sray	fb_if.h								\
110254885Sdumbbell	device_if.h							\
111254885Sdumbbell	iicbb_if.h							\
112254885Sdumbbell	iicbus_if.h							\
113254885Sdumbbell	pci_if.h
114254885Sdumbbell
115280183Sdumbbell.include <bsd.kmod.mk>
116254885Sdumbbell
117280183SdumbbellCFLAGS+=			-I${.CURDIR}/../../../dev/drm2/radeon
118280183Sdumbbell
119280183SdumbbellCWARNFLAGS.radeon_cp.c=		-Wno-unused-value
120280183SdumbbellCWARNFLAGS.r600_cp.c=		-Wno-unused-value
121280183SdumbbellCWARNFLAGS+=			${CWARNFLAGS.${.IMPSRC:T}}
122