1 # Common configuration for mesa3d
6 aros_mesadir := workbench/libs/mesa
7 ##top_mesa3dgldir := $(SRCDIR)/$(aros_mesadir) # original AROS mesa
8 ##top_mesa3dgldir := $(SRCDIR)/local/vc4/mesa
9 top_mesa3dgldir=$(PORTSDIR)/mesa/$(ARCHBASE)
10 top_srcdir=$(top_mesa3dgldir)
13 #MESAVERSION=$(shell cat $(top_srcdir)/VERSION)
15 REPOSITORIES := ftp://ftp.freedesktop.org/pub/mesa/
16 ifeq ($(MESAGLREVERSION),)
17 ARCHBASE := mesa-$(MESAGLVERSION)
19 ARCHBASE := mesa-$(MESAGLVERSION)-$(MESAGLREVERSION)
21 PATCHSPEC := $(ARCHBASE)-aros.diff:$(ARCHBASE):-p1
24 top_builddir := $(GENDIR)/$(aros_mesadir)
25 top_libdir := $(GENDIR)/lib/mesa
27 glapi := $(top_srcdir)/src/mapi/glapi/gen
30 -iquote $(top_srcdir)/include \
31 -I$(top_srcdir)/include/GL \
35 -D__STDC_CONSTANT_MACROS \
36 -D__STDC_FORMAT_MACROS \
42 -DHAVE___BUILTIN_FFS \
43 -DHAVE___BUILTIN_FFSLL
45 MESA_COMPILEFLAGS := \
51 $(NOWARN_MISSING_FIELD_INITIALIZERS) \
52 $(NOWARN_FORMAT_TRUNCATION)
55 #MESA_DEBUG := -DDEBUG
57 USER_CPPFLAGS := $(MESA_COMPILEFLAGS) $(MESA_DEBUG)
58 USER_CFLAGS := $(CFLAGS_FAST_MATH) $(CFLAGS_NO_MATH_ERRNO) $(CFLAGS_NO_TRAPPING_MATH) $(CFLAGS_VISIBILITY_HIDDEN)
59 USER_CXXFLAGS := $(CFLAGS_FAST_MATH) $(CFLAGS_NO_MATH_ERRNO) $(CFLAGS_NO_TRAPPING_MATH) $(CFLAGS_VISIBILITY_HIDDEN)