48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
|
# $NetBSD: Makefile,v 1.11 2013/02/09 17:18:01 christos Exp $
|
||
|
|
||
|
.include <bsd.own.mk>
|
||
|
|
||
|
_LIB_PREFIX= lib
|
||
|
LIB= mesa_dri
|
||
|
LIBISMODULE= yes
|
||
|
|
||
|
SHLIB_MAJOR= 0
|
||
|
|
||
|
MESA_SRC_MODULES= glapi main math vbo tnl shader swrast slang ss common
|
||
|
|
||
|
CPPFLAGS+= -I${X11SRCDIR.MesaLib}/src/mesa/main \
|
||
|
-I${X11SRCDIR.MesaLib}/src/mesa/glapi \
|
||
|
-I${X11SRCDIR.MesaLib}/src/mesa/shader \
|
||
|
-I${X11SRCDIR.MesaLib}/src/mesa/drivers/dri/common \
|
||
|
-I${X11SRCDIR.MesaLib}/src/mesa \
|
||
|
-I${X11SRCDIR.MesaLib}/include \
|
||
|
-I${DESTDIR}${X11INCDIR}/X11
|
||
|
|
||
|
|
||
|
.if !defined(__MINIX)
|
||
|
CPPFLAGS+= ${X11FLAGS.THREADLIB} \
|
||
|
-DPTHREADS -D_NETBSD_SOURCE -DUSE_EXTERNAL_DXTN_LIB=1 \
|
||
|
-DHAVE_ALIAS -DIN_DRI_DRIVER
|
||
|
#CPPFLAGS+= -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_POSIX_MEMALIGN
|
||
|
CFLAGS+= -pthread
|
||
|
.else
|
||
|
CPPFLAGS+= ${X11FLAGS.THREADLIB} \
|
||
|
-D_NETBSD_SOURCE -DUSE_EXTERNAL_DXTN_LIB=1 \
|
||
|
-DHAVE_ALIAS -DIN_DRI_DRIVER
|
||
|
.endif # !defined(__MINIX)
|
||
|
|
||
|
.include "../../libOSMesa/libmesa.mk"
|
||
|
.include "../../../tools/glsl/Makefile.glslsrcs"
|
||
|
|
||
|
SRCS+= ${SRCS.pp} ${SRCS.cl}
|
||
|
|
||
|
.include <bsd.x11.mk>
|
||
|
|
||
|
LIBDIR= ${X11USRLIBDIR}/modules/dri
|
||
|
|
||
|
#LIBDPLIBS+= GL ${.CURDIR}/../../libGL
|
||
|
|
||
|
CWARNFLAGS.clang+= -Wno-format -Wno-constant-conversion
|
||
|
|
||
|
.include <bsd.lib.mk>
|