head	1.4;
access;
symbols
	netbsd-11-0-RC4:1.4
	netbsd-11-0-RC3:1.4
	netbsd-11-0-RC2:1.4
	netbsd-11-0-RC1:1.4
	perseant-exfatfs-base-20250801:1.4
	netbsd-11:1.4.0.6
	netbsd-11-base:1.4
	netbsd-10-1-RELEASE:1.4
	perseant-exfatfs-base-20240630:1.4
	perseant-exfatfs:1.4.0.4
	perseant-exfatfs-base:1.4
	netbsd-8-3-RELEASE:1.1
	netbsd-9-4-RELEASE:1.1
	netbsd-10-0-RELEASE:1.4
	netbsd-10-0-RC6:1.4
	netbsd-10-0-RC5:1.4
	netbsd-10-0-RC4:1.4
	netbsd-10-0-RC3:1.4
	netbsd-10-0-RC2:1.4
	netbsd-10-0-RC1:1.4
	netbsd-10:1.4.0.2
	netbsd-10-base:1.4
	netbsd-9-3-RELEASE:1.1
	cjep_sun2x-base1:1.3
	cjep_sun2x:1.3.0.2
	cjep_sun2x-base:1.3
	cjep_staticlib_x-base1:1.2
	netbsd-9-2-RELEASE:1.1
	cjep_staticlib_x:1.1.0.22
	cjep_staticlib_x-base:1.1
	netbsd-9-1-RELEASE:1.1
	phil-wifi-20200421:1.1
	phil-wifi-20200411:1.1
	is-mlppp:1.1.0.20
	is-mlppp-base:1.1
	phil-wifi-20200406:1.1
	netbsd-8-2-RELEASE:1.1
	netbsd-9-0-RELEASE:1.1
	netbsd-9-0-RC2:1.1
	netbsd-9-0-RC1:1.1
	phil-wifi-20191119:1.1
	netbsd-9:1.1.0.18
	netbsd-9-base:1.1
	phil-wifi-20190609:1.1
	netbsd-8-1-RELEASE:1.1
	netbsd-8-1-RC1:1.1
	pgoyette-compat-merge-20190127:1.1
	pgoyette-compat-20190127:1.1
	pgoyette-compat-20190118:1.1
	pgoyette-compat-1226:1.1
	pgoyette-compat-1126:1.1
	pgoyette-compat-1020:1.1
	pgoyette-compat-0930:1.1
	pgoyette-compat-0906:1.1
	pgoyette-compat-0728:1.1
	netbsd-8-0-RELEASE:1.1
	phil-wifi:1.1.0.16
	phil-wifi-base:1.1
	pgoyette-compat-0625:1.1
	netbsd-8-0-RC2:1.1
	pgoyette-compat-0521:1.1
	pgoyette-compat-0502:1.1
	pgoyette-compat-0422:1.1
	netbsd-8-0-RC1:1.1
	pgoyette-compat-0415:1.1
	pgoyette-compat-0407:1.1
	pgoyette-compat-0330:1.1
	pgoyette-compat-0322:1.1
	pgoyette-compat-0315:1.1
	pgoyette-compat:1.1.0.14
	pgoyette-compat-base:1.1
	matt-nb8-mediatek:1.1.0.12
	matt-nb8-mediatek-base:1.1
	perseant-stdc-iso10646:1.1.0.10
	perseant-stdc-iso10646-base:1.1
	netbsd-8:1.1.0.8
	netbsd-8-base:1.1
	prg-localcount2-base3:1.1
	prg-localcount2-base2:1.1
	prg-localcount2-base1:1.1
	prg-localcount2:1.1.0.6
	prg-localcount2-base:1.1
	pgoyette-localcount-20170426:1.1
	bouyer-socketcan-base1:1.1
	pgoyette-localcount-20170320:1.1
	bouyer-socketcan:1.1.0.4
	bouyer-socketcan-base:1.1
	pgoyette-localcount-20170107:1.1
	pgoyette-localcount-20161104:1.1
	pgoyette-localcount:1.1.0.2
	localcount-20160914:1.1;
locks; strict;
comment	@# @;


1.4
date	2021.08.19.04.34.57;	author mrg;	state Exp;
branches;
next	1.3;
commitid	IcM7hg9SJQL9mx5D;

1.3
date	2021.05.31.21.45.41;	author joerg;	state Exp;
branches;
next	1.2;
commitid	pxDil1GyOuScDlVC;

1.2
date	2021.05.30.22.24.35;	author joerg;	state Exp;
branches;
next	1.1;
commitid	5rMv1CbSRO3wSdVC;

1.1
date	2016.08.18.07.49.09;	author mrg;	state Exp;
branches
	1.1.2.1
	1.1.22.1;
next	;
commitid	vzaqJHo6H5sQ9Liz;

1.1.2.1
date	2016.08.18.07.49.09;	author pgoyette;	state dead;
branches;
next	1.1.2.2;
commitid	0FvUzdNwg07UHcmz;

1.1.2.2
date	2016.09.14.03.04.16;	author pgoyette;	state Exp;
branches;
next	;
commitid	0FvUzdNwg07UHcmz;

1.1.22.1
date	2021.05.31.22.15.04;	author cjep;	state Exp;
branches;
next	;
commitid	eWz9SBW0XqKjJlVC;


desc
@@


1.4
log
@link in glamor and gbm.
@
text
@#	$NetBSD: Makefile,v 1.3 2021/05/31 21:45:41 joerg 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"
@


1.3
log
@Stop using -fcommon, xsrc should be fixed.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2021/05/30 22:24:35 joerg Exp $
d27 2
@


1.2
log
@Various X drivers still need -fcommon, so add it.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2016/08/18 07:49:09 mrg Exp $
a28 1
COPTS+=		-fcommon
@


1.1
log
@build glue for xf86-video-amdgpu
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2016/08/17 00:10:19 mrg Exp $
d28 2
a29 1
COPTS+=	-Wno-error
@


1.1.22.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2021/05/30 22:24:35 joerg Exp $
d28 1
a28 2
COPTS+=		-Wno-error
COPTS+=		-fcommon
@


1.1.2.1
log
@file Makefile was added on branch pgoyette-localcount on 2016-09-14 03:04:16 +0000
@
text
@d1 30
@


1.1.2.2
log
@Sync with HEAD
@
text
@a0 30
#	$NetBSD: Makefile,v 1.1 2016/08/18 07:49:09 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

# XXX
COPTS+=	-Wno-error

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


