2013-09-05 09:11:54 -06:00
|
|
|
# $OpenBSD: Makefile,v 1.18 2013/09/05 15:11:56 jsg Exp $
|
2013-06-13 04:39:28 -06:00
|
|
|
.include <bsd.xconf.mk>
|
2009-01-28 09:10:44 -07:00
|
|
|
|
2013-09-05 09:11:54 -06:00
|
|
|
.if ${XENOCARA_BUILD_GALLIUM} == "llvm"
|
|
|
|
SUBDIR+=swrastg radeonsi
|
|
|
|
.else
|
2008-11-02 08:01:32 -07:00
|
|
|
SUBDIR= swrast
|
2013-09-05 09:11:54 -06:00
|
|
|
.endif
|
2008-11-02 08:01:32 -07:00
|
|
|
|
|
|
|
.if ${MACHINE} == i386 || ${MACHINE} == amd64
|
2013-09-05 09:11:54 -06:00
|
|
|
SUBDIR+= i915 i965 radeon r200
|
2013-08-11 22:16:52 -06:00
|
|
|
.elif ${MACHINE} == macppc || ${MACHINE} == sparc64
|
|
|
|
SUBDIR+= radeon r200
|
2008-11-02 08:01:32 -07:00
|
|
|
.endif
|
2007-12-04 15:00:27 -07:00
|
|
|
|
2013-08-11 22:16:52 -06:00
|
|
|
.if ${XENOCARA_BUILD_GALLIUM:L} == "yes" || ${XENOCARA_BUILD_GALLIUM} == "llvm"
|
2013-09-05 09:11:54 -06:00
|
|
|
.if ${MACHINE} == i386 || ${MACHINE} == amd64
|
2013-06-17 17:30:25 -06:00
|
|
|
SUBDIR+= r300g r600g
|
2013-06-13 04:39:28 -06:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2008-02-02 10:24:30 -07:00
|
|
|
build depend all install clean cleandir: _SUBDIRUSE
|
2008-01-06 11:34:38 -07:00
|
|
|
|
2008-11-02 08:01:32 -07:00
|
|
|
MESA_INCLUDE= ${.CURDIR}/../../../dist/Mesa/include
|
|
|
|
|
|
|
|
INCS = \
|
2009-05-17 14:20:23 -06:00
|
|
|
dri_interface.h
|
2008-11-02 08:01:32 -07:00
|
|
|
|
|
|
|
includes:
|
|
|
|
cd ${MESA_INCLUDE}/GL/internal; for i in ${INCS}; do \
|
|
|
|
j="cmp -s $$i ${DESTDIR}${INCSDIR}/GL/internal/$$i || \
|
2010-05-08 08:15:29 -06:00
|
|
|
${INSTALL_DATA} $$i ${DESTDIR}${INCSDIR}/GL/internal"; \
|
2008-11-02 08:01:32 -07:00
|
|
|
echo "\tinstalling $$i"; \
|
|
|
|
eval "$$j"; \
|
|
|
|
done
|
|
|
|
|
2008-01-06 11:34:38 -07:00
|
|
|
.include <bsd.xorg.mk>
|