add place-holder directory for the a3000 wd533c93 scsi controller implementation.
[AROS.git] / workbench / libs / mesa / libgalliumaux / mmakefile.src
blob1128c5e5425ac4884e51f60555cc2c784ac1c62e
1 #   $Id: mmakefile.src 48628 2013-12-25 15:14:46Z deadwood $
3 #   Generate libgalliumauxiliary.a
6 include $(SRCDIR)/config/aros.cfg
8 CUR_MESADIR := src/gallium/auxiliary
9 include $(SRCDIR)/$(CURDIR)/../mesa.cfg
10 include $(top_srcdir)/$(CUR_MESADIR)/Makefile.sources
12 #MM- mesa3dgl-linklibs : mesa3d-linklib-galliumauxiliary
13 #MM mesa3d-linklib-galliumauxiliary : workbench-libs-dxtn-includes mesa3d-linklib-compiler mesa3d-linklib-galliumauxiliary-genobs
14 #MM mesa3d-linklib-galliumauxiliary-quick : mesa3d-linklib-galliumauxiliary-genobs
15 #MM- mesa3d-linklib-galliumauxiliary-genobs : mesa3d-linklib-galliumauxiliary-generated
17 MESA3DGL_GALLIUM_AUXILIARY_C_SOURCES := $(filter %.c, $(C_SOURCES) $(NIR_SOURCES))
19 GALLIUM_AUXILIARY_GENERATED_SOURCES := $(filter %.c, $(GENERATED_SOURCES))
21 MESA3DGL_GALLIUM_AUXILIARY_SOURCES_C := \
22             $(addprefix $(top_srcdir)/$(CUR_MESADIR)/,$(MESA3DGL_GALLIUM_AUXILIARY_C_SOURCES:.c=))
24 USER_INCLUDES += \
25             -iquote $(top_srcdir)/src/gallium/include \
26             -iquote $(top_srcdir)/$(CUR_MESADIR) \
27             -iquote $(top_srcdir)/$(CUR_MESADIR)/util \
28             -iquote $(top_srcdir)/$(CUR_MESADIR)/indices \
29             -iquote $(top_builddir)/src/compiler/nir
31 # disable necessary warnings
32 NOWARN_FLAGS := \
33     $(MESA_NOWARNFLAGS) \
34     $(NOWARN_STRICT_ALIASING)\
35     $(NOWARN_UNUSED_VARIABLE) \
36     $(NOWARN_UNUSED_VALUE) \
37     $(NOWARN_RETURN_TYPE) \
38     $(NOWARN_MAYBE_UNINITIALIZED)
39 USER_CFLAGS += $(NOWARN_FLAGS)
40 USER_CXXFLAGS += $(NOWARN_FLAGS)
41 ##USER_CPPFLAGS += -DHAVE_LLVM=0x0209
43 ifeq ($(MESA_DEBUG),)
44 # We dont want to build galliumaux with debug .. but we do want the debug functions
45 # available  - so we need to add the additional DEBUG define just for the u_debug* files
46 GALLAUXDEBUGOFILES := $(addprefix $(top_builddir)/$(CUR_MESADIR)/,$(patsubst %.c,%.o,$(filter util/u_debug%,$(MESA3DGL_GALLIUM_AUXILIARY_C_SOURCES))))
47 GALLAUXDEBUGDFILES := $(patsubst %.o,%.d,$(GALLAUXDEBUGOFILES))
48 $(GALLAUXDEBUGOFILES) $(GALLAUXDEBUGDFILES): mesa3d-linklib-galliumauxiliary_MC_EXTRA_CPPFLAGS:=-DDEBUG
49 endif
51 $(top_builddir)/$(CUR_MESADIR)/util/u_format_table.c: $(top_srcdir)/$(CUR_MESADIR)/util/u_format_table.py
52         %mkdir_q dir="$(dir $@)"
53         $(Q)$(ECHO) "Generating $(if $(filter /%,$@),$(if $(filter $(SRCDIR)/%,$(abspath $@)),$(patsubst $(SRCDIR)/%,%,$(abspath $@)),$(patsubst $(TOP)/%,%,$(abspath $@))),$(patsubst $(SRCDIR)/%,%,$(abspath $(SRCDIR)/$(CURDIR)/$@)))"
54         $(Q)$(PYTHON) $(PYTHON_FLAGS) $(top_srcdir)/$(CUR_MESADIR)/util/u_format_table.py $(top_srcdir)/$(CUR_MESADIR)/util/u_format.csv > $@
56 $(top_builddir)/$(CUR_MESADIR)/indices/u_indices_gen.c: $(top_srcdir)/$(CUR_MESADIR)/indices/u_indices_gen.py
57         %mkdir_q dir="$(dir $@)"
58         $(Q)$(ECHO) "Generating $(if $(filter /%,$@),$(if $(filter $(SRCDIR)/%,$(abspath $@)),$(patsubst $(SRCDIR)/%,%,$(abspath $@)),$(patsubst $(TOP)/%,%,$(abspath $@))),$(patsubst $(SRCDIR)/%,%,$(abspath $(SRCDIR)/$(CURDIR)/$@)))"
59         $(Q)$(PYTHON) $(PYTHON_FLAGS) $(top_srcdir)/$(CUR_MESADIR)/indices/u_indices_gen.py > $@
61 $(top_builddir)/$(CUR_MESADIR)/indices/u_unfilled_gen.c: $(top_srcdir)/$(CUR_MESADIR)/indices/u_unfilled_gen.py
62         %mkdir_q dir="$(dir $@)"
63         $(Q)$(ECHO) "Generating $(if $(filter /%,$@),$(if $(filter $(SRCDIR)/%,$(abspath $@)),$(patsubst $(SRCDIR)/%,%,$(abspath $@)),$(patsubst $(TOP)/%,%,$(abspath $@))),$(patsubst $(SRCDIR)/%,%,$(abspath $(SRCDIR)/$(CURDIR)/$@)))"
64         $(Q)$(PYTHON) $(PYTHON_FLAGS) $(top_srcdir)/$(CUR_MESADIR)/indices/u_unfilled_gen.py > $@
66 #MM
67 mesa3d-linklib-galliumauxiliary-generated : $(addprefix $(top_builddir)/$(CUR_MESADIR)/,$(GALLIUM_AUXILIARY_GENERATED_SOURCES))
69 # We want to build galliumaux using the source tree layout since there are files
70 # with the same name...
71 mesa3d-linklib-galliumauxiliary_C_FILES := $(MESA3DGL_GALLIUM_AUXILIARY_SOURCES_C)
72 %build_linklib mmake=mesa3d-linklib-galliumauxiliary libname=galliumauxiliary \
73     libdir=$(top_libdir) objdir=$(top_builddir)/$(CUR_MESADIR) srcdir=$(top_srcdir)/$(CUR_MESADIR) \
74     files="$(MESA3DGL_GALLIUM_AUXILIARY_C_SOURCES:.c=)" objs="$(addprefix $(top_builddir)/$(CUR_MESADIR)/,$(GALLIUM_AUXILIARY_GENERATED_SOURCES:.c=.o))" usetree=yes
76 %rule_compile_multi mmake=mesa3d-linklib-galliumauxiliary-genobs \
77     basenames="$(addprefix $(top_builddir)/$(CUR_MESADIR)/,$(GALLIUM_AUXILIARY_GENERATED_SOURCES:.c=))" targetdir="$(top_builddir)/$(CUR_MESADIR)" \
78     cppflags=$(mesa3d-linklib-galliumauxiliary_CPPFLAGS) cflags=$(mesa3d-linklib-galliumauxiliary_CFLAGS) dflags=$(mesa3d-linklib-galliumauxiliary_DFLAGS) \
79     compiler=target srcdir="$(top_builddir)/$(CUR_MESADIR)" usetree=yes
81 %common