1 # $NetBSD: libmesa.mk,v 1.3 2009/06/11 01:47:08 mrg Exp $
3 # Consumer of this Makefile should set MESA_SRC_MODULES.
5 INCLUDES.
all= . glapi main
97 # Software raster sources
98 PATHS.swrast
= swrast swrast_setup
99 INCLUDES.swrast
= shader
132 .PATH
: ${X11SRCDIR.MesaLib
}/src
/mesa
/swrast_setup
172 vbo_split_inplace.c \
178 COPTS.vbo_save_draw.c
= -Wno-error
181 PATHS.shader
= shader shader
/grammar
182 INCLUDES.shader
= shader
/slang shader
/grammar
204 # Shader language sources
205 PATHS.slang
= shader
/slang
206 INCLUDES.slang
= shader shader
/grammar
211 slang_compile_function.c \
212 slang_compile_operation.c \
213 slang_compile_struct.c \
214 slang_compile_variable.c \
230 PATHS.glapi
= glapi main
237 # Common driver sources
238 PATHS.common
= drivers
/common
239 INCLUDES.common
= shader
244 # OSMesa driver sources
245 PATHS.osmesa
= drivers
/osmesa
246 INCLUDES.osmesa
= shader
250 .for _mod_ in
${MESA_SRC_MODULES}
252 SRCS
+= ${SRCS.
${_mod_}}
254 . for _path_ in
${PATHS.
${_mod_}}
255 .PATH
: ${X11SRCDIR.MesaLib
}/src
/mesa
/${_path_}
258 . for _path_ in
${INCLUDES.
${_mod_}}
259 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib
}/src
/mesa
/${_path_}
264 .for _path_ in
${INCLUDES.
all}
265 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib
}/src
/mesa
/${_path_}
268 LIBDPLIBS
= m
${NETBSDSRCDIR}/lib
/libm