Merge commit 'origin/gallium-0.1' into gallium-0.2
[mesa.git] / src / mesa / sources
1 ### Lists of source files, included by Makefiles
2
3 MAIN_SOURCES = \
4 main/api_arrayelt.c \
5 main/api_exec.c \
6 main/api_loopback.c \
7 main/api_noop.c \
8 main/api_validate.c \
9 main/accum.c \
10 main/attrib.c \
11 main/arrayobj.c \
12 main/blend.c \
13 main/bufferobj.c \
14 main/buffers.c \
15 main/clear.c \
16 main/clip.c \
17 main/colortab.c \
18 main/context.c \
19 main/convolve.c \
20 main/debug.c \
21 main/depth.c \
22 main/depthstencil.c \
23 main/dlist.c \
24 main/drawpix.c \
25 main/enable.c \
26 main/enums.c \
27 main/eval.c \
28 main/execmem.c \
29 main/extensions.c \
30 main/fbobject.c \
31 main/feedback.c \
32 main/ffvertex_prog.c \
33 main/fog.c \
34 main/framebuffer.c \
35 main/get.c \
36 main/getstring.c \
37 main/hash.c \
38 main/hint.c \
39 main/histogram.c \
40 main/image.c \
41 main/imports.c \
42 main/light.c \
43 main/lines.c \
44 main/matrix.c \
45 main/mipmap.c \
46 main/mm.c \
47 main/multisample.c \
48 main/pixel.c \
49 main/pixelstore.c \
50 main/points.c \
51 main/polygon.c \
52 main/queryobj.c \
53 main/rastpos.c \
54 main/rbadaptors.c \
55 main/readpix.c \
56 main/renderbuffer.c \
57 main/scissor.c \
58 main/shaders.c \
59 main/state.c \
60 main/stencil.c \
61 main/texcompress.c \
62 main/texcompress_s3tc.c \
63 main/texcompress_fxt1.c \
64 main/texenv.c \
65 main/texenvprogram.c \
66 main/texformat.c \
67 main/texgen.c \
68 main/teximage.c \
69 main/texobj.c \
70 main/texparam.c \
71 main/texrender.c \
72 main/texstate.c \
73 main/texstore.c \
74 main/varray.c \
75 main/vtxfmt.c
76
77 GLAPI_SOURCES = \
78 main/dispatch.c \
79 glapi/glapi.c \
80 glapi/glapi_getproc.c \
81 glapi/glthread.c
82
83 MATH_SOURCES = \
84 math/m_debug_clip.c \
85 math/m_debug_norm.c \
86 math/m_debug_xform.c \
87 math/m_eval.c \
88 math/m_matrix.c \
89 math/m_translate.c \
90 math/m_vector.c \
91 math/m_xform.c
92
93 SWRAST_SOURCES = \
94 swrast/s_aaline.c \
95 swrast/s_aatriangle.c \
96 swrast/s_accum.c \
97 swrast/s_alpha.c \
98 swrast/s_atifragshader.c \
99 swrast/s_bitmap.c \
100 swrast/s_blend.c \
101 swrast/s_blit.c \
102 swrast/s_buffers.c \
103 swrast/s_copypix.c \
104 swrast/s_context.c \
105 swrast/s_depth.c \
106 swrast/s_drawpix.c \
107 swrast/s_feedback.c \
108 swrast/s_fog.c \
109 swrast/s_fragprog.c \
110 swrast/s_imaging.c \
111 swrast/s_lines.c \
112 swrast/s_logic.c \
113 swrast/s_masking.c \
114 swrast/s_points.c \
115 swrast/s_readpix.c \
116 swrast/s_span.c \
117 swrast/s_stencil.c \
118 swrast/s_texcombine.c \
119 swrast/s_texfilter.c \
120 swrast/s_texstore.c \
121 swrast/s_triangle.c \
122 swrast/s_zoom.c
123
124 SWRAST_SETUP_SOURCES = \
125 swrast_setup/ss_context.c \
126 swrast_setup/ss_triangle.c
127
128 TNL_SOURCES = \
129 tnl/t_context.c \
130 tnl/t_pipeline.c \
131 tnl/t_draw.c \
132 tnl/t_rasterpos.c \
133 tnl/t_vb_program.c \
134 tnl/t_vb_render.c \
135 tnl/t_vb_texgen.c \
136 tnl/t_vb_texmat.c \
137 tnl/t_vb_vertex.c \
138 tnl/t_vb_cull.c \
139 tnl/t_vb_fog.c \
140 tnl/t_vb_light.c \
141 tnl/t_vb_normals.c \
142 tnl/t_vb_points.c \
143 tnl/t_vp_build.c \
144 tnl/t_vertex.c \
145 tnl/t_vertex_sse.c \
146 tnl/t_vertex_generic.c
147
148 VBO_SOURCES = \
149 vbo/vbo_context.c \
150 vbo/vbo_exec.c \
151 vbo/vbo_exec_api.c \
152 vbo/vbo_exec_array.c \
153 vbo/vbo_exec_draw.c \
154 vbo/vbo_exec_eval.c \
155 vbo/vbo_rebase.c \
156 vbo/vbo_split.c \
157 vbo/vbo_split_copy.c \
158 vbo/vbo_split_inplace.c \
159 vbo/vbo_save.c \
160 vbo/vbo_save_api.c \
161 vbo/vbo_save_draw.c \
162 vbo/vbo_save_loopback.c
163
164
165 SHADER_SOURCES = \
166 shader/arbprogparse.c \
167 shader/arbprogram.c \
168 shader/atifragshader.c \
169 shader/grammar/grammar_mesa.c \
170 shader/nvfragparse.c \
171 shader/nvprogram.c \
172 shader/nvvertparse.c \
173 shader/program.c \
174 shader/prog_cache.c \
175 shader/prog_debug.c \
176 shader/prog_execute.c \
177 shader/prog_instruction.c \
178 shader/prog_parameter.c \
179 shader/prog_print.c \
180 shader/prog_statevars.c \
181 shader/prog_uniform.c \
182 shader/programopt.c \
183 shader/shader_api.c \
184
185 SLANG_SOURCES = \
186 shader/slang/slang_builtin.c \
187 shader/slang/slang_codegen.c \
188 shader/slang/slang_compile.c \
189 shader/slang/slang_compile_function.c \
190 shader/slang/slang_compile_operation.c \
191 shader/slang/slang_compile_struct.c \
192 shader/slang/slang_compile_variable.c \
193 shader/slang/slang_emit.c \
194 shader/slang/slang_ir.c \
195 shader/slang/slang_label.c \
196 shader/slang/slang_library_noise.c \
197 shader/slang/slang_link.c \
198 shader/slang/slang_log.c \
199 shader/slang/slang_mem.c \
200 shader/slang/slang_preprocess.c \
201 shader/slang/slang_print.c \
202 shader/slang/slang_simplify.c \
203 shader/slang/slang_storage.c \
204 shader/slang/slang_typeinfo.c \
205 shader/slang/slang_vartable.c \
206 shader/slang/slang_utility.c
207
208 ASM_C_SOURCES = \
209 x86/common_x86.c \
210 x86/x86.c \
211 x86/3dnow.c \
212 x86/sse.c \
213 x86/rtasm/x86sse.c \
214 sparc/sparc.c \
215 ppc/common_ppc.c \
216 x86-64/x86-64.c
217
218 X86_SOURCES = \
219 x86/common_x86_asm.S \
220 x86/x86_xform2.S \
221 x86/x86_xform3.S \
222 x86/x86_xform4.S \
223 x86/x86_cliptest.S \
224 x86/mmx_blend.S \
225 x86/3dnow_xform1.S \
226 x86/3dnow_xform2.S \
227 x86/3dnow_xform3.S \
228 x86/3dnow_xform4.S \
229 x86/3dnow_normal.S \
230 x86/sse_xform1.S \
231 x86/sse_xform2.S \
232 x86/sse_xform3.S \
233 x86/sse_xform4.S \
234 x86/sse_normal.S \
235 x86/read_rgba_span_x86.S
236
237 X86_API = \
238 x86/glapi_x86.S
239
240 X86-64_SOURCES = \
241 x86-64/xform4.S
242
243 X86-64_API = \
244 x86-64/glapi_x86-64.S
245
246 SPARC_SOURCES = \
247 sparc/clip.S \
248 sparc/norm.S \
249 sparc/xform.S
250
251 SPARC_API = \
252 sparc/glapi_sparc.S
253
254 COMMON_DRIVER_SOURCES = \
255 drivers/common/driverfuncs.c
256
257
258
259 ### All the core C sources
260
261 MESA_SOURCES = \
262 $(MAIN_SOURCES) \
263 $(MATH_SOURCES) \
264 $(VBO_SOURCES) \
265 $(TNL_SOURCES) \
266 $(SHADER_SOURCES) \
267 $(SWRAST_SOURCES) \
268 $(SWRAST_SETUP_SOURCES) \
269 $(COMMON_DRIVER_SOURCES) \
270 $(ASM_C_SOURCES) \
271 $(SLANG_SOURCES)
272
273 ALL_SOURCES = \
274 $(MESA_SOURCES) \
275 $(GLAPI_SOURCES) \
276 $(MESA_ASM_SOURCES) \
277 $(COMMON_DRIVER_SOURCES)
278
279
280 ### Object files
281
282 MESA_OBJECTS = \
283 $(MESA_SOURCES:.c=.o) \
284 $(MESA_ASM_SOURCES:.S=.o)
285
286 GLAPI_OBJECTS = \
287 $(GLAPI_SOURCES:.c=.o) \
288 $(GLAPI_ASM_SOURCES:.S=.o)
289
290
291 COMMON_DRIVER_OBJECTS = $(COMMON_DRIVER_SOURCES:.c=.o)
292
293
294
295 ### Include directories
296 ### XXX we should be able to trim this down to just -Iinclude/ and -Isrc/mesa/
297 ### since most #includes have been changed from #include "mtypes.h" to
298 ### #include "main/mtypes.h", etc.
299
300 INCLUDE_DIRS = \
301 -I$(TOP)/include \
302 -I$(TOP)/src/mesa