diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2011-05-02 21:52:35 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2011-05-02 21:52:35 +0000 |
commit | 2ec5c293c59cc7dea97ae813d18d4d990df750a6 (patch) | |
tree | 5d74fbb9cf67e96bbb2e35ae28d4c4dc09f96830 /lib/libdrm/radeon/Makefile | |
parent | 8830588d7b8e457a085ffb7c0a7befd318cdf34d (diff) |
Add libdrm_radeon
needed for the r600 dri driver. Tested by myself and matthieu.
Diffstat (limited to 'lib/libdrm/radeon/Makefile')
-rw-r--r-- | lib/libdrm/radeon/Makefile | 45 |
1 files changed, 45 insertions, 0 deletions
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 <bsd.xconf.mk> + +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 <bsd.lib.mk> +.include <bsd.xorg.mk> |