1 # $NetBSD: dri.mk,v 1.1 2015/01/05 03:45:31 mrg Exp $
12 -I
${X11SRCDIR.MesaLib7
}/src
/mesa
/drivers
/dri
/common \
13 -I
${X11SRCDIR.MesaLib7
}/src
/mesa
/drivers
/dri
/${MODULE}/server \
14 -I
${X11SRCDIR.MesaLib7
}/include \
15 -I
${X11SRCDIR.MesaLib7
}/src
/mapi \
16 -I
${X11SRCDIR.MesaLib7
}/src
/mesa \
17 -I
${DESTDIR}${X11INCDIR}/libdrm
20 CPPFLAGS
+= -D_NETBSD_SOURCE
-DPTHREADS
-DUSE_EXTERNAL_DXTN_LIB
=1 \
21 -DIN_DRI_DRIVER
-DGLX_DIRECT_RENDERING \
22 -DGLX_INDIRECT_RENDERING
-DHAVE_ALIAS
-DHAVE_POSIX_MEMALIGN
24 CPPFLAGS
+= -D_NETBSD_SOURCE
-DUSE_EXTERNAL_DXTN_LIB
=1 \
25 -DIN_DRI_DRIVER
-DGLX_DIRECT_RENDERING \
26 -DGLX_INDIRECT_RENDERING
-DHAVE_ALIAS
-DHAVE_POSIX_MEMALIGN
27 .
endif # !defined(__MINIX)
29 CPPFLAGS
+= -Wno-stack-protector
31 .PATH
: ${X11SRCDIR.MesaLib7
}/src
/mesa
/drivers
/dri
/${MODULE} ${DRI_EXTRA_PATHS}
34 .PATH
: ${X11SRCDIR.MesaLib7
}/src
/mesa
/drivers
/dri
/common \
35 ${X11SRCDIR.MesaLib7
}/src
/mesa
/drivers
/common
36 .if
(${MODULE} == "swrast")
37 SRCS
+= drisw_util.c driverfuncs.c utils.c
39 SRCS
+= dri_util.c drirenderbuffer.c driverfuncs.c texmem.c
40 SRCS
+= utils.c vblank.c xmlconfig.c
46 LIBDIR
= ${X11USRLIBDIR}/modules
/dri
48 LIBDPLIBS
+= drm
${.CURDIR
}/..
/..
/libdrm
49 LIBDPLIBS
+= expat
${NETBSDSRCDIR}/external
/mit
/expat
/lib
/libexpat
50 LIBDPLIBS
+= m
${NETBSDSRCDIR}/lib
/libm
51 LIBDPLIBS
+= mesa_dri
${.CURDIR
}/..
/libmesa
53 LDFLAGS
+= -Wl
,-rpath
,${LIBDIR}