Remove building with NOCRYPTO option
[minix.git] / external / mit / xorg / lib / dri7 / dri.mk
blob495959ea20a68c04cdbad701f7a2117e951c07f2
1 # $NetBSD: dri.mk,v 1.1 2015/01/05 03:45:31 mrg Exp $
3 # XXX DRI_LIB_DEPS
5 LIBISMODULE= yes
7 .include <bsd.own.mk>
9 SHLIB_MAJOR= 0
11 CPPFLAGS+= \
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
19 .if !defined(__MINIX)
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
23 .else
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}
33 # Common sources
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
38 .else
39 SRCS+= dri_util.c drirenderbuffer.c driverfuncs.c texmem.c
40 SRCS+= utils.c vblank.c xmlconfig.c
41 .endif
43 .include <bsd.x11.mk>
45 LIB= ${MODULE}_dri
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
52 # to find mesa_dri.so
53 LDFLAGS+= -Wl,-rpath,${LIBDIR}
55 .include <bsd.lib.mk>