1 # $NetBSD: Makefile,v 1.19 2015/05/28 14:36:45 rjs Exp $
6 .if
${MACHINE_ARCH} == "i386" ||
${MACHINE_ARCH} == "x86_64"
7 DRIVER_NAME
= radeon_drv_old
9 DRIVER_NAME
= radeon_drv
12 .PATH
: ${X11SRCDIR.
${DRIVER}}/src
/AtomBios
19 SRCS.DRI
= radeon_dri.c
20 CPPFLAGS
+= ${X11FLAGS.DRI
}
25 . if
${MACHINE_ARCH} == "i386" ||
${MACHINE_ARCH} == "x86_64"
26 SRCS.KMS
= radeon_dri2.c radeon_kms.c drmmode_display.c radeon_vbo.c
27 CPPFLAGS
+= -DXF86DRM_MODE
28 LIBDPLIBS
+= drm_radeon
${.CURDIR
}/..
/..
/..
/lib
/libdrm_radeon
32 SRCS.EXA
= radeon_exa.c r600_exa.c r6xx_accel.c \
33 r600_textured_videofuncs.c r600_shader.c \
35 evergreen_exa.c evergreen_accel.c evergreen_shader.c \
36 evergreen_textured_videofuncs.c \
37 cayman_accel.c cayman_shader.c
39 SRCS
= radeon_accel.c radeon_cursor.c \
40 radeon_driver.c radeon_video.c radeon_bios.c \
41 radeon_mm_i2c.c radeon_vip.c radeon_misc.c radeon_probe.c \
42 legacy_crtc.c legacy_output.c radeon_textured_video.c \
43 radeon_crtc.c radeon_output.c radeon_modes.c radeon_tv.c \
44 radeon_legacy_memory.c radeon_pm.c radeon_xvmc.c \
45 $(SRCS.ATOMBIOS
) radeon_atombios.c radeon_atomwrapper.c \
46 $(SRCS.DRI
) $(SRCS.EXA
) atombios_output.c atombios_crtc.c \
50 CPPFLAGS
+= -DDISABLE_EASF
-DENABLE_ALL_SERVICE_FUNCTIONS \
51 -DATOM_BIOS
-DATOM_BIOS_PARSER
-DDRIVER_PARSER \
53 CPPFLAGS
+= -I
${X11SRCDIR.
${DRIVER}}/src
/AtomBios
/includes \
54 -I
${DESTDIR}${X11INCDIR}/X11 \
55 -I
${DESTDIR}${X11INCDIR}/X11
/dri \
56 -I
${DESTDIR}${X11INCDIR}/libdrm \
57 -I
${X11SRCDIR.
${DRIVER}}/..
/include
62 .
include "../Makefile.xf86-driver"