Remove building with NOCRYPTO option
[minix.git] / external / mit / xorg / lib / dri7 / libmesa / Makefile
blobb4b6a4e7719f63bc432a49628c809dc5072333f0
1 # $NetBSD: Makefile,v 1.1 2015/01/05 03:45:31 mrg Exp $
3 .include <bsd.own.mk>
5 _LIB_PREFIX= lib
6 LIB= mesa_dri
7 LIBISMODULE= yes
8 LIBISCXX= yes
10 SHLIB_MAJOR= 0
12 MESA_SRC_MODULES= main math vbo tnl program swrast ss common
14 CPPFLAGS+= \
15 -I${X11SRCDIR.MesaLib7}/include \
16 -I${X11SRCDIR.MesaLib7}/src/glsl \
17 -I${X11SRCDIR.MesaLib7}/src/mesa \
18 -I${X11SRCDIR.MesaLib7}/src/mapi
20 .if !defined(__MINIX)
21 CPPFLAGS+= ${X11FLAGS.THREADLIB} \
22 -DPTHREADS -D_NETBSD_SOURCE -DUSE_EXTERNAL_DXTN_LIB=1 \
23 -DHAVE_ALIAS -DIN_DRI_DRIVER
24 #CPPFLAGS+= -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_POSIX_MEMALIGN
25 CFLAGS+= -pthread
26 .else
27 CPPFLAGS+= ${X11FLAGS.THREADLIB} \
28 -D_NETBSD_SOURCE -DUSE_EXTERNAL_DXTN_LIB=1 \
29 -DHAVE_ALIAS -DIN_DRI_DRIVER
30 .endif # !defined(__MINIX)
32 .include "../libmesa7.mk"
33 .include "../libglsl7.mk"
35 SRCS+= ${SRCS.glsl}
37 .include <bsd.x11.mk>
39 LIBDIR= ${X11USRLIBDIR}/modules/dri
41 #LIBDPLIBS+= GL ${.CURDIR}/../../libGL
43 CWARNFLAGS.clang+= -Wno-format -Wno-constant-conversion \
44 -Wno-tautological-compare
46 .include <bsd.lib.mk>