minix/external/mit/xorg/lib/dri/libmesa/Makefile
Lionel Sambuc 971bb1a587 Importing external/mit/xorg support rules
Change-Id: Ib11d8659485a444797bf3a2118182a1d4e316b50
2014-11-10 14:43:29 +01:00

47 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>