1 # $NetBSD: dri.mk,v 1.7 2009/08/27 04:36:13 mrg Exp $
11 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib
}/src
/mesa
/main \
12 -I
${X11SRCDIR.MesaLib
}/src
/mesa
/glapi \
13 -I
${X11SRCDIR.MesaLib
}/src
/mesa
/shader \
14 -I
${X11SRCDIR.MesaLib
}/src
/mesa
/drivers
/dri
/common \
15 -I
${X11SRCDIR.MesaLib
}/src
/mesa
/drivers
/dri
/${MODULE}/server \
16 -I
${X11SRCDIR.MesaLib
}/src
/mesa \
17 -I
${X11SRCDIR.MesaLib
}/include \
18 -I
${DESTDIR}${X11INCDIR}/drm \
19 -I
${DESTDIR}${X11INCDIR}/X11
21 CPPFLAGS
+= -D_NETBSD_SOURCE
-DPTHREADS
-DUSE_EXTERNAL_DXTN_LIB
=1 \
22 -DIN_DRI_DRIVER
-DGLX_DIRECT_RENDERING \
23 -DGLX_INDIRECT_RENDERING
-DHAVE_ALIAS
-DHAVE_POSIX_MEMALIGN
25 CPPFLAGS
+= -Wno-stack-protector
27 .PATH
: ${X11SRCDIR.MesaLib
}/src
/mesa
/drivers
/dri
/${MODULE} ${DRI_EXTRA_PATHS}
30 .PATH
: ${X11SRCDIR.MesaLib
}/src
/mesa
/drivers
/dri
/common \
31 ${X11SRCDIR.MesaLib
}/src
/mesa
/drivers
/common
32 .if
(${MODULE} == "swrast")
33 SRCS
+= driverfuncs.c utils.c
35 SRCS
+= dri_util.c drirenderbuffer.c driverfuncs.c texmem.c
36 SRCS
+= utils.c vblank.c xmlconfig.c
42 LIBDIR
= ${X11USRLIBDIR}/modules
/dri
44 LIBDPLIBS
+= drm
${.CURDIR
}/..
/..
/libdrm
45 LIBDPLIBS
+= expat
${.CURDIR
}/..
/..
/expat
46 LIBDPLIBS
+= m
${NETBSDSRCDIR}/lib
/libm
47 LIBDPLIBS
+= mesa_dri
${.CURDIR
}/..
/libmesa
49 LDFLAGS
+= -Wl
,-rpath
,${LIBDIR}