1 # $NetBSD: libmesa.mk,v 1.1 2014/12/18 06:24:28 mrg Exp $
3 # Consumer of this Makefile should set MESA_SRC_MODULES.
5 INCLUDES.
all= mapi mesa mesa
/main
7 # The source file lists derived from src/mesa/Makefile.sources.
8 # Please keep the organization in line with those files.
48 ff_fragment_shader.
cpp \
74 performance_monitor.c \
117 transformfeedback.c \
128 .PATH
: ${X11SRCDIR.MesaLib
}/..
/src
/mesa
/main
133 # XXX avoid source name clashes with glx
134 .PATH
: ${X11SRCDIR.MesaLib
}/src
/mesa
/main
135 BUILDSYMLINKS
+= ${X11SRCDIR.MesaLib
}/src
/mesa
/main
/pixel.c MESApixel.c \
136 ${X11SRCDIR.MesaLib
}/src
/mesa
/main
/pixelstore.c MESApixelstore.c \
137 ${X11SRCDIR.MesaLib
}/src
/mesa
/main
/eval.c MESAeval.c
140 PATHS.math
= mesa
/math
150 PATHS.math_xform
= mesa
/math
157 INCLUDES.vbo
= gallium
/auxiliary
166 vbo_primitive_restart.c \
170 vbo_split_inplace.c \
198 # Software raster sources
199 PATHS.swrast
= mesa
/swrast
233 PATHS.ss
= mesa
/swrast_setup
239 # Common driver sources
240 PATHS.common
= mesa
/drivers
/common
245 meta_generate_mipmap.c \
249 # ASM C driver sources
250 PATHS.asm_c
= mesa
/x86 mesa
/x86
/rtasm mesa
/sparc mesa
/x86-64
261 # ASM assembler driver sources
262 PATHS.asm_s
= mesa
/x86 mesa
/x86
/rtasm mesa
/sparc mesa
/x86-64
263 .if
${MACHINE} == "amd64"
266 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib
}/..
/src
/arch
/x86_64
267 .elif
${MACHINE} == "sparc" ||
${MACHINE} == "sparc64"
272 .elif
${MACHINE} == "i386"
291 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib
}/..
/src
/arch
/i386
295 # State tracker sources
296 PATHS.state_tracker
= mesa
/state_tracker
297 INCLUDES.state_tracker
= glsl
298 SRCS.state_tracker
= \
305 st_atom_framebuffer.c \
307 st_atom_pixeltransfer.c \
311 st_atom_rasterizer.c \
317 st_cb_bufferobjects.c \
334 st_cb_texturebarrier.c \
344 st_glsl_to_tgsi.
cpp \
353 PATHS.program
= mesa
/program
354 INCLUDES.program
= glsl
360 program_parse_extra.c \
366 prog_opt_constant_fold.c \
368 prog_parameter_layout.c \
372 register_allocate.c \
374 string_to_uint_map.
cpp \
379 .PATH
: ${X11SRCDIR.MesaLib
}/..
/src
/mesa
/program
384 # Run throught all the modules and setup the SRCS and CPPFLAGS etc.
385 .for _mod_ in
${MESA_SRC_MODULES}
387 SRCS
+= ${SRCS.
${_mod_}}
389 . for _path_ in
${PATHS.
${_mod_}}
390 .PATH
: ${X11SRCDIR.MesaLib
}/src
/${_path_}
393 . for _path_ in
${INCLUDES.
${_mod_}}
394 . for _s in
${SRCS.
${_mod_}}
395 CPPFLAGS.
${_s}+= -I
${X11SRCDIR.MesaLib
}/src
/${_path_}
401 .for _path_ in
${INCLUDES.
all}
402 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib
}/src
/${_path_}
405 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib
}/include
406 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib
}/src
407 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib
}/src
/mesa
408 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib
}/src
/mesa
/main
409 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib
}/src
/mapi
410 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib
}/src
/gallium
/include
411 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib
}/..
/src
/mapi
/glapi
412 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib
}/..
/src
/mesa
413 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib
}/..
/src
/mesa
/main
414 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib
}/src
/mesa
/drivers
/dri
/common
417 -DPACKAGE_NAME
=\"Mesa
\" \
418 -DPACKAGE_TARNAME
=\"mesa
\" \
419 -DPACKAGE_VERSION
=\"10.3.5\" \
420 -DPACKAGE_STRING
=\"Mesa\
10.3.5\" \
421 -DPACKAGE_BUGREPORT
=\"https
://bugs.freedesktop.org
/enter_bug.cgi
\?product
=Mesa
\" \
426 #__MINIX: No Pthreads: -DHAVE_PTHREAD=1
428 -DSTDC_HEADERS
=1 -DHAVE_SYS_TYPES_H
=1 -DHAVE_SYS_STAT_H
=1 \
429 -DHAVE_STDLIB_H
=1 -DHAVE_STRING_H
=1 -DHAVE_MEMORY_H
=1 \
430 -DHAVE_STRINGS_H
=1 -DHAVE_INTTYPES_H
=1 -DHAVE_STDINT_H
=1 \
431 -DHAVE_UNISTD_H
=1 -DHAVE_DLFCN_H
=1 -DHAVE___BUILTIN_BSWAP32
=1 \
432 -DHAVE___BUILTIN_BSWAP64
=1 -DHAVE_DLADDR
=1 -DHAVE_CLOCK_GETTIME
=1 \
433 -DHAVE_POSIX_MEMALIGN
-DHAVE_DLOPEN
438 -DHAVE_LIBDRM
-DGLX_USE_DRM
-DGLX_INDIRECT_RENDERING
-DGLX_DIRECT_RENDERING
-DHAVE_ALIAS
-DMESA_EGL_NO_X11_HEADERS
441 -DUSE_EXTERNAL_DXTN_LIB
=1 \
444 CFLAGS
+= -fvisibility
=hidden
-fno-strict-aliasing
-fno-builtin-memcmp