1# $NetBSD: Makefile,v 1.14 2019/03/10 02:29:53 mrg Exp $ 2 3XMODULEDIR= ${X11USRLIBDIR}/modules/extensions 4XMODULEDIRANDSTATIC= # define 5 6.include "../../../Makefile.serverlib" 7.include "../../../Makefile.servermod" 8 9LIB= dri 10 11.PATH: ${X11SRCDIR.xorg-server}/hw/xfree86/${LIB} 12SRCS= dri.c xf86dri.c 13 14CPPFLAGS+= -I${X11SRCDIR.xorg-server}/hw/xfree86/${LIB} \ 15 -I${X11SRCDIR.xorg-server}/include \ 16 -I${X11SRCDIR.xorg-server}/hw/xfree86/common \ 17 -I${X11SRCDIR.xorg-server}/hw/xfree86/os-support \ 18 -I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/bus \ 19 -I${X11SRCDIR.xorg-server}/glx \ 20 -I${X11SRCDIR.xorg-server}/GL/include \ 21 -I${X11SRCDIR.xorg-server}/modes \ 22 -I${X11SRCDIR.xorg-server}/ddc \ 23 -I${X11SRCDIR.xorg-server}/i2c \ 24 -I${X11SRCDIR.xorg-server}/parser \ 25 -I${X11SRCDIR.xorg-server}/ramdac \ 26 -I${X11SRCDIR.xorg-server}/Xext \ 27 -I${X11SRCDIR.Mesa}/include \ 28 -I${DESTDIR}${X11INCDIR}/X11 \ 29 -I${DESTDIR}${X11INCDIR}/X11/dri \ 30 -I${DESTDIR}${X11INCDIR}/libdrm \ 31 -I${DESTDIR}${X11INCDIR}/pixman-1 \ 32 -I${DESTDIR}${X11INCDIR}/xorg \ 33 -I${X11SRCDIR.xorg-server}/../include 34 35CPPFLAGS+= -DXF86DRI \ 36 ${X11FLAGS.DIX} 37 38CPPFLAGS.dri.c= #-Wno-error 39CPPFLAGS.xf86dri.c= #-Wno-error # XXX xf86dristr.h 40 41LIBDPLIBS= drm ${.CURDIR}/../../../../../lib/libdrm 42 43.include <bsd.x11.mk> 44LIBDIR= ${XMODULEDIR} 45.include <bsd.lib.mk> 46