No empty .Rs/.Re
[netbsd-mini2440.git] / external / mit / xorg / lib / dri / dri.mk
blobbd797d477836380238c098a9c20189a1ef6ba947
1 # $NetBSD: dri.mk,v 1.7 2009/08/27 04:36:13 mrg Exp $
3 # XXX DRI_LIB_DEPS
5 LIBISMODULE= yes
7 .include <bsd.own.mk>
9 SHLIB_MAJOR= 0
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}
29 # Common sources
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
34 .else
35 SRCS+= dri_util.c drirenderbuffer.c driverfuncs.c texmem.c
36 SRCS+= utils.c vblank.c xmlconfig.c
37 .endif
39 .include <bsd.x11.mk>
41 LIB= ${MODULE}_dri
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
48 # to find mesa_dri.so
49 LDFLAGS+= -Wl,-rpath,${LIBDIR}
51 .include <bsd.lib.mk>