summaryrefslogtreecommitdiff
path: root/external/mit/xorg/server/drivers/xf86-video-amdgpu/Makefile
blob: f269a65cdce588aecdc84e473b54ffba7c6847cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#	$NetBSD: Makefile,v 1.4 2021/08/19 04:34:57 mrg Exp $

.include <bsd.own.mk>

DRIVER=		xf86-video-amdgpu
DRIVER_NAME=	amdgpu_drv

LIBDPLIBS+=	drm_amdgpu ${.CURDIR}/../../../lib/libdrm_amdgpu

SRCS.KMS=	amdgpu_bo_helper.c amdgpu_dri2.c amdgpu_dri3.c \
		amdgpu_drm_queue.c amdgpu_kms.c amdgpu_present.c \
		amdgpu_sync.c drmmode_display.c
SRCS.GLAMOR=	amdgpu_glamor.c amdgpu_glamor_wrappers.c amdgpu_pixmap.c

SRCS=		amdgpu_video.c amdgpu_misc.c amdgpu_probe.c \
		$(SRCS.KMS) $(SRCS.GLAMOR)

MAN=		amdgpu.4

CPPFLAGS+=	-DHAVE_CONFIG_H
CPPFLAGS+=	-I${DESTDIR}${X11INCDIR}/X11 \
		-I${DESTDIR}${X11INCDIR}/X11/dri \
		-I${DESTDIR}${X11INCDIR}/libdrm \
		-I${DESTDIR}${X11INCDIR}/pixman-1 \
		-I${X11SRCDIR.${DRIVER}}/../include

LDADD+=		${LDADD.glamor} -lgbm

# XXX
COPTS+=		-Wno-error

.include "../Makefile.xf86-driver"