Drop main() prototype. Syncs with NetBSD-8
[minix.git] / external / mit / xorg / server / drivers / xf86-video-radeon-kms / Makefile
blob9245e46b21c0da3e80865fc531cc610ed7432a6d
1 # $NetBSD: Makefile,v 1.2 2015/09/19 23:00:44 wiz Exp $
3 .include <bsd.own.mk>
5 DRIVER= xf86-video-ati-kms
6 DRIVER_NAME= radeon_drv
8 .PATH: ${X11SRCDIR.${DRIVER}}/src/AtomBios
9 SRCS.ATOMBIOS= \
10 CD_Operations.c \
11 Decoder.c \
12 hwserv_drv.c
14 .if ${X11DRI} != "no"
15 SRCS.DRI= radeon_dri.c
16 CPPFLAGS+= ${X11FLAGS.DRI}
17 .endif
19 .if ${X11DRI} != "no"
20 # XXX
21 . if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
22 SRCS.KMS= radeon_dri2.c radeon_kms.c drmmode_display.c radeon_vbo.c
23 CPPFLAGS+= -DXF86DRM_MODE
24 LIBDPLIBS+= drm_radeon ${.CURDIR}/../../../lib/libdrm_radeon
25 . endif
26 .endif
28 SRCS.EXA= radeon_exa.c r600_exa.c r6xx_accel.c \
29 r600_textured_videofuncs.c r600_shader.c radeon_exa_shared.c \
30 evergreen_exa.c evergreen_accel.c evergreen_shader.c \
31 evergreen_textured_videofuncs.c cayman_accel.c cayman_shader.c
32 SRCS.KMS= radeon_dri2.c radeon_kms.c drmmode_display.c radeon_vbo.c \
33 radeon_bo_helper.c
34 # XXX not yet
35 SRCS.GLAMOR= radeon_glamor.c
37 SRCS= radeon_accel.c radeon_video.c \
38 radeon_misc.c radeon_probe.c \
39 radeon_textured_video.c radeon_xvmc.c \
40 $(SRCS.EXA) \
41 $(SRCS.KMS)
43 MAN= radeon.4
44 MANSUBDIR= /x86
46 CPPFLAGS+= -DHAVE_CONFIG_H
47 CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11 \
48 -I${DESTDIR}${X11INCDIR}/X11/dri \
49 -I${DESTDIR}${X11INCDIR}/libdrm \
50 -I${DESTDIR}${X11INCDIR}/pixman-1 \
51 -I${X11SRCDIR.${DRIVER}}/../include
53 # XXX
54 COPTS+= -Wno-error
56 .include "../Makefile.xf86-driver"