3 # Generate libgalliumauxiliary.a
6 include $(SRCDIR)/config/aros.cfg
8 #MM linklibs-galliumauxiliary : includes linklibs-galliumauxiliary-generated
10 GALLIUM_AUXILIARY_SOURCES = \
12 cso_cache/cso_context \
18 draw/draw_pipe_aaline \
19 draw/draw_pipe_aapoint \
22 draw/draw_pipe_flatshade \
23 draw/draw_pipe_offset \
24 draw/draw_pipe_pstipple \
25 draw/draw_pipe_stipple \
26 draw/draw_pipe_twoside \
27 draw/draw_pipe_unfilled \
29 draw/draw_pipe_validate \
31 draw/draw_pipe_wide_line \
32 draw/draw_pipe_wide_point \
36 draw/draw_pt_fetch_emit \
37 draw/draw_pt_fetch_shade_emit \
38 draw/draw_pt_fetch_shade_pipeline \
39 draw/draw_pt_post_vs \
40 draw/draw_pt_so_emit \
47 draw/draw_vs_aos_machine \
51 draw/draw_vs_variant \
59 pipebuffer/pb_buffer_fenced \
60 pipebuffer/pb_buffer_malloc \
61 pipebuffer/pb_bufmgr_alt \
62 pipebuffer/pb_bufmgr_cache \
63 pipebuffer/pb_bufmgr_debug \
64 pipebuffer/pb_bufmgr_mm \
65 pipebuffer/pb_bufmgr_ondemand \
66 pipebuffer/pb_bufmgr_pool \
67 pipebuffer/pb_bufmgr_slab \
68 pipebuffer/pb_validate \
69 rbug/rbug_connection \
95 translate/translate_cache \
96 translate/translate_generic \
97 translate/translate_sse \
99 util/u_debug_describe \
100 util/u_debug_refcnt \
102 util/u_debug_symbol \
103 util/u_dump_defines \
115 util/u_format_other \
119 util/u_format_tests \
124 util/u_handle_table \
127 util/u_index_modify \
138 util/u_simple_shaders \
152 gallivm/lp_bld_arit \
153 gallivm/lp_bld_assert \
154 gallivm/lp_bld_bitarit \
155 gallivm/lp_bld_const \
156 gallivm/lp_bld_conv \
157 gallivm/lp_bld_flow \
158 gallivm/lp_bld_format_aos \
159 gallivm/lp_bld_format_soa \
160 gallivm/lp_bld_format_yuv \
161 gallivm/lp_bld_gather \
162 gallivm/lp_bld_init \
163 gallivm/lp_bld_intr \
164 gallivm/lp_bld_logic \
165 gallivm/lp_bld_pack \
166 gallivm/lp_bld_printf \
167 gallivm/lp_bld_quad \
168 gallivm/lp_bld_sample \
169 gallivm/lp_bld_sample_aos \
170 gallivm/lp_bld_sample_soa \
171 gallivm/lp_bld_struct \
172 gallivm/lp_bld_swizzle \
173 gallivm/lp_bld_tgsi_aos \
174 gallivm/lp_bld_tgsi_info \
175 gallivm/lp_bld_tgsi_soa \
176 gallivm/lp_bld_type \
178 draw/draw_llvm_sample \
179 draw/draw_llvm_translate \
181 draw/draw_pt_fetch_shade_pipeline_llvm
183 GALLIUM_AUXILIARY_GENERATED_SOURCES = \
184 $(GENDIR)/$(CURDIR)/indices/u_indices_gen \
185 $(GENDIR)/$(CURDIR)/indices/u_unfilled_gen \
186 $(GENDIR)/$(CURDIR)/util/u_format_srgb \
187 $(GENDIR)/$(CURDIR)/util/u_format_table \
188 $(GENDIR)/$(CURDIR)/util/u_half \
191 -I$(AROS_DEVELOPMENT)/include/gallium \
192 -I$(SRCDIR)/$(CURDIR)/util \
193 -I$(SRCDIR)/$(CURDIR)/indices \
195 USER_CFLAGS := -ffast-math
197 %build_linklib mmake=linklibs-galliumauxiliary libname=galliumauxiliary \
198 files="$(GALLIUM_AUXILIARY_SOURCES) $(GALLIUM_AUXILIARY_GENERATED_SOURCES)"
200 USER_CFLAGS := -ffast-math -DHAVE_LLVM=0x0209 -D__STDC_CONSTANT_MACROS
202 %build_linklib mmake=linklibs-galliumvm libname=galliumvm \
203 files="$(GALLIVM_SOURCES)" cxxfiles="gallivm/lp_bld_misc" objdir=$(OBJDIR)/galliumvm
206 linklibs-galliumauxiliary-generated : $(GENDIR)/$(CURDIR)/util/u_format_table.c $(GENDIR)/$(CURDIR)/util/u_format_srgb.c $(GENDIR)/$(CURDIR)/util/u_half.c $(GENDIR)/$(CURDIR)/indices/u_unfilled_gen.c $(GENDIR)/$(CURDIR)/indices/u_indices_gen.c
208 $(GENDIR)/$(CURDIR)/util/u_format_table.c :
209 @$(MKDIR) $(GENDIR)/$(CURDIR)/util/
210 cd $(GENDIR)/$(CURDIR)/util/
211 @$(PYTHON) $(SRCDIR)/$(CURDIR)/util/u_format_table.py $(SRCDIR)/$(CURDIR)/util/u_format.csv > $@
212 %compile_q from=$@ to=$(GENDIR)/$(CURDIR)/u_format_table.o
214 $(GENDIR)/$(CURDIR)/indices/u_indices_gen.c :
215 @$(MKDIR) $(GENDIR)/$(CURDIR)/indices/
216 cd $(GENDIR)/$(CURDIR)/indices/
217 @$(PYTHON) $(SRCDIR)/$(CURDIR)/indices/u_indices_gen.py > $@
218 %compile_q from=$@ to=$(GENDIR)/$(CURDIR)/u_indices_gen.o
220 $(GENDIR)/$(CURDIR)/indices/u_unfilled_gen.c :
221 @$(MKDIR) $(GENDIR)/$(CURDIR)/indices/
222 cd $(GENDIR)/$(CURDIR)/indices/
223 @$(PYTHON) $(SRCDIR)/$(CURDIR)/indices/u_unfilled_gen.py > $@
224 %compile_q from=$@ to=$(GENDIR)/$(CURDIR)/u_unfilled_gen.o
226 $(GENDIR)/$(CURDIR)/util/u_format_srgb.c :
227 @$(MKDIR) $(GENDIR)/$(CURDIR)/util/
228 cd $(GENDIR)/$(CURDIR)/util/
229 @$(PYTHON) $(SRCDIR)/$(CURDIR)/util/u_format_srgb.py > $@
230 %compile_q from=$@ to=$(GENDIR)/$(CURDIR)/u_format_srgb.o
232 $(GENDIR)/$(CURDIR)/util/u_half.c :
233 @$(MKDIR) $(GENDIR)/$(CURDIR)/util/
234 cd $(GENDIR)/$(CURDIR)/util/
235 @$(PYTHON) $(SRCDIR)/$(CURDIR)/util/u_half.py > $@
236 %compile_q from=$@ to=$(GENDIR)/$(CURDIR)/u_half.o