1# $NetBSD: Makefile,v 1.11 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/dri2/pci_ids \ 18 -I${X11SRCDIR.xorg-server}/hw/xfree86/os-support \ 19 -I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/bus \ 20 -I${X11SRCDIR.xorg-server}/xfixes \ 21 -I${X11SRCDIR.xorg-server}/glx \ 22 -I${X11SRCDIR.xorg-server}/GL/include \ 23 -I${X11SRCDIR.xorg-server}/modes \ 24 -I${X11SRCDIR.xorg-server}/ddc \ 25 -I${X11SRCDIR.xorg-server}/i2c \ 26 -I${X11SRCDIR.xorg-server}/parser \ 27 -I${X11SRCDIR.xorg-server}/ramdac \ 28 -I${X11SRCDIR.xorg-server}/Xext \ 29 -I${X11SRCDIR.xorg-server}/Xi \ 30 -I${X11SRCDIR.Mesa}/include \ 31 -I${DESTDIR}${X11INCDIR}/X11 \ 32 -I${DESTDIR}${X11INCDIR}/X11/dri \ 33 -I${DESTDIR}${X11INCDIR}/libdrm \ 34 -I${DESTDIR}${X11INCDIR}/pixman-1 \ 35 -I${DESTDIR}${X11INCDIR}/xorg \ 36 -I${X11SRCDIR.xorg-server}/../include 37 38CPPFLAGS+= -DXF86DRI \ 39 -DCOMPOSITE \ 40 ${X11FLAGS.DIX} 41 42LIBDPLIBS= drm ${.CURDIR}/../../../../../lib/libdrm 43 44COPTS.dri2ext.c+= -Wno-error 45 46.include <bsd.x11.mk> 47LIBDIR= ${XMODULEDIR} 48.include <bsd.lib.mk> 49