Drop main() prototype. Syncs with NetBSD-8
[minix.git] / external / mit / xorg / server / drivers / xf86-video-radeon / Makefile
blobfe4c3176b1843a65a5d5e1e2a96e33ad2eb34f02
1 # $NetBSD: Makefile,v 1.19 2015/05/28 14:36:45 rjs Exp $
3 .include <bsd.own.mk>
5 DRIVER= xf86-video-ati
6 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
7 DRIVER_NAME= radeon_drv_old
8 .else
9 DRIVER_NAME= radeon_drv
10 .endif
12 .PATH: ${X11SRCDIR.${DRIVER}}/src/AtomBios
13 SRCS.ATOMBIOS= \
14 CD_Operations.c \
15 Decoder.c \
16 hwserv_drv.c
18 .if ${X11DRI} != "no"
19 SRCS.DRI= radeon_dri.c
20 CPPFLAGS+= ${X11FLAGS.DRI}
21 .endif
23 .if ${X11DRI} != "no"
24 # XXX
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
29 . endif
30 .endif
32 SRCS.EXA= radeon_exa.c r600_exa.c r6xx_accel.c \
33 r600_textured_videofuncs.c r600_shader.c \
34 radeon_exa_shared.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 \
47 $(SRCS.KMS)
48 MAN= radeon.4
50 CPPFLAGS+= -DDISABLE_EASF -DENABLE_ALL_SERVICE_FUNCTIONS \
51 -DATOM_BIOS -DATOM_BIOS_PARSER -DDRIVER_PARSER \
52 -DHAVE_CONFIG_H
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
59 # XXX
60 COPTS+= -Wno-error
62 .include "../Makefile.xf86-driver"