From 2ec5c293c59cc7dea97ae813d18d4d990df750a6 Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Mon, 2 May 2011 21:52:35 +0000 Subject: Add libdrm_radeon needed for the r600 dri driver. Tested by myself and matthieu. --- lib/libdrm/radeon/Makefile | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 lib/libdrm/radeon/Makefile (limited to 'lib/libdrm/radeon/Makefile') diff --git a/lib/libdrm/radeon/Makefile b/lib/libdrm/radeon/Makefile new file mode 100644 index 000000000..b5d9a9048 --- /dev/null +++ b/lib/libdrm/radeon/Makefile @@ -0,0 +1,45 @@ +# $OpenBSD: Makefile,v 1.1 2011/05/02 21:52:34 oga Exp $ +.include + +LIB= drm_radeon + +INCSDIR= ${X11BASE}/include/ + +CPPFLAGS+= -I${.CURDIR} \ + -I${.CURDIR}/.. \ + -I${X11BASE}/include \ + -I/usr/include/dev/pci/drm + +INCS= radeon_bo.h \ + radeon_cs.h \ + radeon_bo_gem.h \ + radeon_cs_gem.h \ + radeon_bo_int.h \ + radeon_cs_int.h + +SRCS= radeon_bo_gem.c \ + radeon_cs_gem.c \ + radeon_cs_space.c \ + radeon_bo.c \ + radeon_cs.c \ + bof.c + + +PKGCONFIG= libdrm_radeon.pc + +LDADD+= -L${X11BASE}/lib -lX11 + +includes: + cd ${.CURDIR}; for i in ${INCS}; do \ + j="cmp -s $$i ${DESTDIR}${INCSDIR}/$$i || \ + ${INSTALL_DATA} $$i ${DESTDIR}${INCSDIR}/"; \ + echo "\tinstalling $$i"; \ + eval "$$j"; \ + done + +NOPROFILE = + +obj: _xenocara_obj + +.include +.include -- cgit v1.2.3