3 # Build Mesa3DGL private libmesautil.a
6 include $(SRCDIR)/config/aros.cfg
8 CUR_MESADIR := src/util
9 include $(SRCDIR)/$(CURDIR)/../mesa.cfg
10 include $(top_srcdir)/$(CUR_MESADIR)/Makefile.sources
12 #MM- mesa3dgl-linklibs : mesa3d-linklib-mesautil
15 -I$(top_srcdir)/$(CUR_MESADIR) \
16 -iquote $(top_builddir)/$(CUR_MESADIR) \
17 -iquote $(top_srcdir)/src/mesa \
18 -iquote $(top_srcdir)/src/mapi \
19 -iquote $(top_srcdir)/src/gallium/include \
20 -iquote $(top_srcdir)/src/gallium/auxiliary
22 USER_CFLAGS += $(MESA_NOWARNFLAGS)
23 USER_CXXFLAGS += $(MESA_NOWARNFLAGS)
25 $(top_builddir)/$(CUR_MESADIR)/format_srgb.c: $(top_srcdir)/$(CUR_MESADIR)/format_srgb.py
26 %mkdir_q dir="$(dir $@)"
27 $(Q)$(ECHO) "Generating $(if $(filter /%,$@),$(if $(filter $(SRCDIR)/%,$(abspath $@)),$(patsubst $(SRCDIR)/%,%,$(abspath $@)),$(patsubst $(TOP)/%,%,$(abspath $@))),$(patsubst $(SRCDIR)/%,%,$(abspath $(SRCDIR)/$(CURDIR)/$@)))"
30 MESA_UTIL_C_FILES := $(filter %.c, $(MESA_UTIL_FILES))
31 MESA_UTIL_CXX_FILES := $(filter %.cpp, $(MESA_UTIL_FILES))
33 MESA_UTIL_GENERATED_C_SOURCES := \
34 $(addprefix $(top_builddir)/$(CUR_MESADIR)/, $(MESA_UTIL_GENERATED_FILES))
36 MESA3DGL_MESAUTIL_C_SOURCES := \
37 $(wildcard $(addprefix $(top_srcdir)/$(CUR_MESADIR)/, $(MESA_UTIL_C_FILES))) \
38 $(MESA_UTIL_GENERATED_C_SOURCES)
40 MESA3DGL_MESAUTIL_CXX_SOURCES := $(addprefix $(top_srcdir)/$(CUR_MESADIR)/, $(MESA_UTIL_CXX_FILES))
42 MESA3DGL_MESAUTIL_SOURCES_C := $(MESA3DGL_MESAUTIL_C_SOURCES:.c=)
44 MESA3DGL_MESAUTIL_SOURCES_CXX := $(MESA3DGL_MESAUTIL_CXX_SOURCES:.cpp=)
47 mesa3d-linklib-mesautil-generated : $(MESA3DGL_MESAUTIL_GENERATED_C_SOURCES)
49 #MM mesa3d-linklib-mesautil : mesa3d-linklib-mesautil-generated
51 %build_linklib mmake=mesa3d-linklib-mesautil libname=mesautil libdir=$(top_libdir) objdir=$(top_builddir)/$(CUR_MESADIR) files="$(MESA3DGL_MESAUTIL_SOURCES_C)" cxxfiles="$(MESA3DGL_MESAUTIL_SOURCES_CXX)"