1 # $NetBSD: libmesa7.mk,v 1.1 2015/01/05 03:45:31 mrg Exp $
3 # This copy for old MesaLib 7.x drivers only.
6 # Consumer of this Makefile should set MESA_SRC_MODULES.
8 INCLUDES.
all= mapi mesa mesa
/main
10 # The source file lists derived from src/mesa/sources.mak and
11 # src/mapi/glapi/sources.mak. Please keep the organization in line
111 transformfeedback.c \
119 ff_fragment_shader.
cpp
121 # XXX avoid source name clashes with glx
122 .PATH
: ${X11SRCDIR.MesaLib7
}/src
/mesa
/main
123 BUILDSYMLINKS
= ${X11SRCDIR.MesaLib7
}/src
/mesa
/main
/pixel.c MESApixel.c \
124 ${X11SRCDIR.MesaLib7
}/src
/mesa
/main
/pixelstore.c MESApixelstore.c \
125 ${X11SRCDIR.MesaLib7
}/src
/mesa
/main
/eval.c MESAeval.c
128 PATHS.math
= mesa
/math
141 # Software raster sources
142 PATHS.swrast
= mesa
/swrast
174 PATHS.ss
= mesa
/swrast_setup
212 vbo_split_inplace.c \
221 PATHS.program
= mesa
/program
229 program_parse.tab.c \
230 program_parse_extra.c \
237 prog_parameter_layout.c \
242 register_allocate.c \
249 # Unused parts of mesa/sources.mak.
262 x86
/common_x86_asm.S \
278 x86
/read_rgba_span_x86.S
289 # Common driver sources
290 PATHS.common
= mesa
/drivers
/common
295 # OSMesa driver sources
296 PATHS.osmesa
= mesa
/drivers
/osmesa
301 PATHS.glapi
= mapi
/glapi
311 # Unused parts of mapi/glapi/sources.mak.
323 .for _mod_ in
${MESA_SRC_MODULES}
325 SRCS
+= ${SRCS.
${_mod_}}
327 . for _path_ in
${PATHS.
${_mod_}}
328 .PATH
: ${X11SRCDIR.MesaLib7
}/src
/${_path_}
331 . for _path_ in
${INCLUDES.
${_mod_}}
332 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib7
}/src
/${_path_}
337 .for _path_ in
${INCLUDES.
all}
338 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib7
}/src
/${_path_}
341 LIBDPLIBS
= m
${NETBSDSRCDIR}/lib
/libm
343 # build the shader headers
344 .
include "../libglsl7.mk"
347 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib7
}/include
351 -@if
[ -d library
]; then rmdir library
; fi