grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / libs / mesa / src / gallium / auxiliary / mmakefile.src
blob71e880e217ec169f94d5128eecdf14fdf9f3aea9
1 #   $Id$
3 #   Generate libgalliumauxiliary.a
6 include $(SRCDIR)/config/aros.cfg
8 #MM linklibs-galliumauxiliary : includes linklibs-galliumauxiliary-generated
10 GALLIUM_AUXILIARY_SOURCES = \
11         cso_cache/cso_cache \
12         cso_cache/cso_context \
13         cso_cache/cso_hash \
14         draw/draw_context \
15         draw/draw_fs \
16         draw/draw_gs \
17         draw/draw_pipe \
18         draw/draw_pipe_aaline \
19         draw/draw_pipe_aapoint \
20         draw/draw_pipe_clip \
21         draw/draw_pipe_cull \
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 \
28         draw/draw_pipe_util \
29         draw/draw_pipe_validate \
30         draw/draw_pipe_vbuf \
31         draw/draw_pipe_wide_line \
32         draw/draw_pipe_wide_point \
33         draw/draw_pt \
34         draw/draw_pt_emit \
35         draw/draw_pt_fetch \
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 \
41         draw/draw_pt_util \
42         draw/draw_pt_vsplit \
43         draw/draw_vertex \
44         draw/draw_vs \
45         draw/draw_vs_aos \
46         draw/draw_vs_aos_io \
47         draw/draw_vs_aos_machine \
48         draw/draw_vs_exec \
49         draw/draw_vs_ppc \
50         draw/draw_vs_sse \
51         draw/draw_vs_variant \
52         os/os_misc \
53         os/os_stream \
54         os/os_stream_log \
55         os/os_stream_null \
56         os/os_stream_stdc \
57         os/os_stream_str \
58         os/os_time \
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 \
70         rbug/rbug_context \
71         rbug/rbug_core \
72         rbug/rbug_demarshal \
73         rbug/rbug_texture \
74         rbug/rbug_shader \
75         rtasm/rtasm_cpu \
76         rtasm/rtasm_execmem \
77         rtasm/rtasm_ppc \
78         rtasm/rtasm_ppc_spe \
79         rtasm/rtasm_x86sse \
80         tgsi/tgsi_build \
81         tgsi/tgsi_dump \
82         tgsi/tgsi_exec \
83         tgsi/tgsi_info \
84         tgsi/tgsi_iterate \
85         tgsi/tgsi_parse \
86         tgsi/tgsi_ppc \
87         tgsi/tgsi_sanity \
88         tgsi/tgsi_scan \
89         tgsi/tgsi_sse2 \
90         tgsi/tgsi_text \
91         tgsi/tgsi_transform \
92         tgsi/tgsi_ureg \
93         tgsi/tgsi_util \
94         translate/translate \
95         translate/translate_cache \
96         translate/translate_generic \
97         translate/translate_sse \
98         util/u_debug \
99         util/u_debug_describe \
100         util/u_debug_refcnt \
101         util/u_debug_stack \
102         util/u_debug_symbol \
103         util/u_dump_defines \
104         util/u_dump_state \
105         util/u_bitmask \
106         util/u_blit \
107         util/u_blitter \
108         util/u_cache \
109         util/u_caps \
110         util/u_cpu_detect \
111         util/u_dl \
112         util/u_draw \
113         util/u_draw_quad \
114         util/u_format \
115         util/u_format_other \
116         util/u_format_latc \
117         util/u_format_s3tc \
118         util/u_format_rgtc \
119         util/u_format_tests \
120         util/u_format_yuv \
121         util/u_format_zs \
122         util/u_framebuffer \
123         util/u_gen_mipmap \
124         util/u_handle_table \
125         util/u_hash \
126         util/u_hash_table \
127         util/u_index_modify \
128         util/u_keymap \
129         util/u_linear \
130         util/u_linkage \
131         util/u_network \
132         util/u_math \
133         util/u_mm \
134         util/u_pstipple \
135         util/u_rect \
136         util/u_ringbuffer \
137         util/u_sampler \
138         util/u_simple_shaders \
139         util/u_slab \
140         util/u_snprintf \
141         util/u_staging \
142         util/u_surface \
143         util/u_surfaces \
144         util/u_texture \
145         util/u_tile \
146         util/u_transfer \
147         util/u_resource \
148         util/u_upload_mgr \
149         util/u_vbuf_mgr
151 GALLIVM_SOURCES = \
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 \
177         draw/draw_llvm \
178         draw/draw_llvm_sample \
179         draw/draw_llvm_translate \
180         draw/draw_vs_llvm \
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 \
190 USER_INCLUDES := \
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
238 %common