1# $NetBSD: Makefile,v 1.2 2019/03/10 02:29:54 mrg Exp $ 2 3XMODULEDIR= ${X11USRLIBDIR}/modules/extensions 4XMODULEDIRANDSTATIC= # defined 5 6.include "../../../Makefile.serverlib" 7.include "../../../Makefile.servermod" 8 9LIB= dri2 10 11.PATH: ${X11SRCDIR.xorg-server}/hw/xfree86/${LIB} 12SRCS= dri2.c dri2ext.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}/xfixes \ 20 -I${X11SRCDIR.xorg-server}/glx \ 21 -I${X11SRCDIR.xorg-server}/GL/include \ 22 -I${X11SRCDIR.xorg-server}/modes \ 23 -I${X11SRCDIR.xorg-server}/ddc \ 24 -I${X11SRCDIR.xorg-server}/i2c \ 25 -I${X11SRCDIR.xorg-server}/parser \ 26 -I${X11SRCDIR.xorg-server}/ramdac \ 27 -I${X11SRCDIR.xorg-server}/Xext \ 28 -I${X11SRCDIR.Mesa}/include \ 29 -I${DESTDIR}${X11INCDIR}/X11 \ 30 -I${DESTDIR}${X11INCDIR}/X11/dri \ 31 -I${DESTDIR}${X11INCDIR}/libdrm \ 32 -I${DESTDIR}${X11INCDIR}/pixman-1 \ 33 -I${DESTDIR}${X11INCDIR}/xorg \ 34 -I${X11SRCDIR.xorg-server}/../include 35 36CPPFLAGS+= -DXF86DRI \ 37 -DCOMPOSITE \ 38 ${X11FLAGS.DIX} 39 40LIBDPLIBS= drm ${.CURDIR}/../../../../../lib/libdrm 41 42COPTS.dri2ext.c+= -Wno-error 43 44.include <bsd.x11.mk> 45LIBDIR= ${XMODULEDIR} 46.include <bsd.lib.mk> 47