1### Lists of source files, included by Makefiles 2 3# This file is among different build systems. SRCDIR must be defined with 4# a trailing slash because the Android build system leaves it undefined. 5 6# this is part of MAIN_FILES 7MAIN_ES_FILES = \ 8 $(BUILDDIR)main/api_exec_es1.c \ 9 $(SRCDIR)main/es1_conversion.c 10 11MAIN_FILES = \ 12 $(SRCDIR)main/api_arrayelt.c \ 13 $(SRCDIR)main/api_exec.c \ 14 $(SRCDIR)main/api_loopback.c \ 15 $(SRCDIR)main/api_validate.c \ 16 $(SRCDIR)main/accum.c \ 17 $(SRCDIR)main/arbprogram.c \ 18 $(SRCDIR)main/atifragshader.c \ 19 $(SRCDIR)main/attrib.c \ 20 $(SRCDIR)main/arrayobj.c \ 21 $(SRCDIR)main/blend.c \ 22 $(SRCDIR)main/bufferobj.c \ 23 $(SRCDIR)main/buffers.c \ 24 $(SRCDIR)main/clear.c \ 25 $(SRCDIR)main/clip.c \ 26 $(SRCDIR)main/colortab.c \ 27 $(SRCDIR)main/condrender.c \ 28 $(SRCDIR)main/context.c \ 29 $(SRCDIR)main/convolve.c \ 30 $(SRCDIR)main/cpuinfo.c \ 31 $(SRCDIR)main/debug.c \ 32 $(SRCDIR)main/depth.c \ 33 $(SRCDIR)main/dlist.c \ 34 $(SRCDIR)main/drawpix.c \ 35 $(SRCDIR)main/drawtex.c \ 36 $(SRCDIR)main/enable.c \ 37 $(SRCDIR)main/errors.c \ 38 $(SRCDIR)main/eval.c \ 39 $(SRCDIR)main/execmem.c \ 40 $(SRCDIR)main/extensions.c \ 41 $(SRCDIR)main/fbobject.c \ 42 $(SRCDIR)main/feedback.c \ 43 $(SRCDIR)main/ffvertex_prog.c \ 44 $(SRCDIR)main/fog.c \ 45 $(SRCDIR)main/formats.c \ 46 $(SRCDIR)main/format_pack.c \ 47 $(SRCDIR)main/format_unpack.c \ 48 $(SRCDIR)main/framebuffer.c \ 49 $(SRCDIR)main/get.c \ 50 $(SRCDIR)main/getstring.c \ 51 $(SRCDIR)main/glformats.c \ 52 $(SRCDIR)main/hash.c \ 53 $(SRCDIR)main/hint.c \ 54 $(SRCDIR)main/histogram.c \ 55 $(SRCDIR)main/image.c \ 56 $(SRCDIR)main/imports.c \ 57 $(SRCDIR)main/light.c \ 58 $(SRCDIR)main/lines.c \ 59 $(SRCDIR)main/matrix.c \ 60 $(SRCDIR)main/mipmap.c \ 61 $(SRCDIR)main/mm.c \ 62 $(SRCDIR)main/multisample.c \ 63 $(SRCDIR)main/nvprogram.c \ 64 $(SRCDIR)main/pack.c \ 65 $(SRCDIR)main/pbo.c \ 66 $(SRCDIR)main/pixel.c \ 67 $(SRCDIR)main/pixelstore.c \ 68 $(SRCDIR)main/pixeltransfer.c \ 69 $(SRCDIR)main/points.c \ 70 $(SRCDIR)main/polygon.c \ 71 $(SRCDIR)main/queryobj.c \ 72 $(SRCDIR)main/querymatrix.c \ 73 $(SRCDIR)main/rastpos.c \ 74 $(SRCDIR)main/readpix.c \ 75 $(SRCDIR)main/remap.c \ 76 $(SRCDIR)main/renderbuffer.c \ 77 $(SRCDIR)main/samplerobj.c \ 78 $(SRCDIR)main/scissor.c \ 79 $(SRCDIR)main/shaderapi.c \ 80 $(SRCDIR)main/shaderobj.c \ 81 $(SRCDIR)main/shared.c \ 82 $(SRCDIR)main/state.c \ 83 $(SRCDIR)main/stencil.c \ 84 $(SRCDIR)main/syncobj.c \ 85 $(SRCDIR)main/texcompress.c \ 86 $(SRCDIR)main/texcompress_cpal.c \ 87 $(SRCDIR)main/texcompress_rgtc.c \ 88 $(SRCDIR)main/texcompress_s3tc.c \ 89 $(SRCDIR)main/texcompress_fxt1.c \ 90 $(SRCDIR)main/texcompress_etc.c \ 91 $(SRCDIR)main/texenv.c \ 92 $(SRCDIR)main/texformat.c \ 93 $(SRCDIR)main/texgen.c \ 94 $(SRCDIR)main/texgetimage.c \ 95 $(SRCDIR)main/teximage.c \ 96 $(SRCDIR)main/texobj.c \ 97 $(SRCDIR)main/texparam.c \ 98 $(SRCDIR)main/texstate.c \ 99 $(SRCDIR)main/texstorage.c \ 100 $(SRCDIR)main/texstore.c \ 101 $(SRCDIR)main/texturebarrier.c \ 102 $(SRCDIR)main/transformfeedback.c \ 103 $(SRCDIR)main/uniforms.c \ 104 $(SRCDIR)main/varray.c \ 105 $(SRCDIR)main/version.c \ 106 $(SRCDIR)main/viewport.c \ 107 $(SRCDIR)main/vtxfmt.c \ 108 $(BUILDDIR)main/enums.c \ 109 $(MAIN_ES_FILES) 110 111MAIN_CXX_FILES = \ 112 $(SRCDIR)main/ff_fragment_shader.cpp \ 113 $(SRCDIR)main/shader_query.cpp \ 114 $(SRCDIR)main/uniform_query.cpp 115 116MATH_FILES = \ 117 $(SRCDIR)math/m_debug_clip.c \ 118 $(SRCDIR)math/m_debug_norm.c \ 119 $(SRCDIR)math/m_debug_xform.c \ 120 $(SRCDIR)math/m_eval.c \ 121 $(SRCDIR)math/m_matrix.c \ 122 $(SRCDIR)math/m_translate.c \ 123 $(SRCDIR)math/m_vector.c 124 125MATH_XFORM_FILES = \ 126 $(SRCDIR)math/m_xform.c 127 128SWRAST_FILES = \ 129 $(SRCDIR)swrast/s_aaline.c \ 130 $(SRCDIR)swrast/s_aatriangle.c \ 131 $(SRCDIR)swrast/s_alpha.c \ 132 $(SRCDIR)swrast/s_atifragshader.c \ 133 $(SRCDIR)swrast/s_bitmap.c \ 134 $(SRCDIR)swrast/s_blend.c \ 135 $(SRCDIR)swrast/s_blit.c \ 136 $(SRCDIR)swrast/s_clear.c \ 137 $(SRCDIR)swrast/s_copypix.c \ 138 $(SRCDIR)swrast/s_context.c \ 139 $(SRCDIR)swrast/s_depth.c \ 140 $(SRCDIR)swrast/s_drawpix.c \ 141 $(SRCDIR)swrast/s_feedback.c \ 142 $(SRCDIR)swrast/s_fog.c \ 143 $(SRCDIR)swrast/s_fragprog.c \ 144 $(SRCDIR)swrast/s_lines.c \ 145 $(SRCDIR)swrast/s_logic.c \ 146 $(SRCDIR)swrast/s_masking.c \ 147 $(SRCDIR)swrast/s_points.c \ 148 $(SRCDIR)swrast/s_renderbuffer.c \ 149 $(SRCDIR)swrast/s_span.c \ 150 $(SRCDIR)swrast/s_stencil.c \ 151 $(SRCDIR)swrast/s_texcombine.c \ 152 $(SRCDIR)swrast/s_texfetch.c \ 153 $(SRCDIR)swrast/s_texfilter.c \ 154 $(SRCDIR)swrast/s_texrender.c \ 155 $(SRCDIR)swrast/s_texture.c \ 156 $(SRCDIR)swrast/s_triangle.c \ 157 $(SRCDIR)swrast/s_zoom.c 158 159SWRAST_SETUP_FILES = \ 160 $(SRCDIR)swrast_setup/ss_context.c \ 161 $(SRCDIR)swrast_setup/ss_triangle.c 162 163TNL_FILES = \ 164 $(SRCDIR)tnl/t_context.c \ 165 $(SRCDIR)tnl/t_pipeline.c \ 166 $(SRCDIR)tnl/t_draw.c \ 167 $(SRCDIR)tnl/t_rasterpos.c \ 168 $(SRCDIR)tnl/t_vb_program.c \ 169 $(SRCDIR)tnl/t_vb_render.c \ 170 $(SRCDIR)tnl/t_vb_texgen.c \ 171 $(SRCDIR)tnl/t_vb_texmat.c \ 172 $(SRCDIR)tnl/t_vb_vertex.c \ 173 $(SRCDIR)tnl/t_vb_fog.c \ 174 $(SRCDIR)tnl/t_vb_light.c \ 175 $(SRCDIR)tnl/t_vb_normals.c \ 176 $(SRCDIR)tnl/t_vb_points.c \ 177 $(SRCDIR)tnl/t_vp_build.c \ 178 $(SRCDIR)tnl/t_vertex.c \ 179 $(SRCDIR)tnl/t_vertex_sse.c \ 180 $(SRCDIR)tnl/t_vertex_generic.c 181 182VBO_FILES = \ 183 $(SRCDIR)vbo/vbo_context.c \ 184 $(SRCDIR)vbo/vbo_exec.c \ 185 $(SRCDIR)vbo/vbo_exec_api.c \ 186 $(SRCDIR)vbo/vbo_exec_array.c \ 187 $(SRCDIR)vbo/vbo_exec_draw.c \ 188 $(SRCDIR)vbo/vbo_exec_eval.c \ 189 $(SRCDIR)vbo/vbo_noop.c \ 190 $(SRCDIR)vbo/vbo_primitive_restart.c \ 191 $(SRCDIR)vbo/vbo_rebase.c \ 192 $(SRCDIR)vbo/vbo_split.c \ 193 $(SRCDIR)vbo/vbo_split_copy.c \ 194 $(SRCDIR)vbo/vbo_split_inplace.c \ 195 $(SRCDIR)vbo/vbo_save.c \ 196 $(SRCDIR)vbo/vbo_save_api.c \ 197 $(SRCDIR)vbo/vbo_save_draw.c \ 198 $(SRCDIR)vbo/vbo_save_loopback.c 199 200STATETRACKER_FILES = \ 201 $(SRCDIR)state_tracker/st_atom.c \ 202 $(SRCDIR)state_tracker/st_atom_array.c \ 203 $(SRCDIR)state_tracker/st_atom_blend.c \ 204 $(SRCDIR)state_tracker/st_atom_clip.c \ 205 $(SRCDIR)state_tracker/st_atom_constbuf.c \ 206 $(SRCDIR)state_tracker/st_atom_depth.c \ 207 $(SRCDIR)state_tracker/st_atom_framebuffer.c \ 208 $(SRCDIR)state_tracker/st_atom_msaa.c \ 209 $(SRCDIR)state_tracker/st_atom_pixeltransfer.c \ 210 $(SRCDIR)state_tracker/st_atom_sampler.c \ 211 $(SRCDIR)state_tracker/st_atom_scissor.c \ 212 $(SRCDIR)state_tracker/st_atom_shader.c \ 213 $(SRCDIR)state_tracker/st_atom_rasterizer.c \ 214 $(SRCDIR)state_tracker/st_atom_stipple.c \ 215 $(SRCDIR)state_tracker/st_atom_texture.c \ 216 $(SRCDIR)state_tracker/st_atom_viewport.c \ 217 $(SRCDIR)state_tracker/st_cb_bitmap.c \ 218 $(SRCDIR)state_tracker/st_cb_blit.c \ 219 $(SRCDIR)state_tracker/st_cb_bufferobjects.c \ 220 $(SRCDIR)state_tracker/st_cb_clear.c \ 221 $(SRCDIR)state_tracker/st_cb_condrender.c \ 222 $(SRCDIR)state_tracker/st_cb_flush.c \ 223 $(SRCDIR)state_tracker/st_cb_drawpixels.c \ 224 $(SRCDIR)state_tracker/st_cb_drawtex.c \ 225 $(SRCDIR)state_tracker/st_cb_eglimage.c \ 226 $(SRCDIR)state_tracker/st_cb_fbo.c \ 227 $(SRCDIR)state_tracker/st_cb_feedback.c \ 228 $(SRCDIR)state_tracker/st_cb_program.c \ 229 $(SRCDIR)state_tracker/st_cb_queryobj.c \ 230 $(SRCDIR)state_tracker/st_cb_rasterpos.c \ 231 $(SRCDIR)state_tracker/st_cb_readpixels.c \ 232 $(SRCDIR)state_tracker/st_cb_syncobj.c \ 233 $(SRCDIR)state_tracker/st_cb_strings.c \ 234 $(SRCDIR)state_tracker/st_cb_texture.c \ 235 $(SRCDIR)state_tracker/st_cb_texturebarrier.c \ 236 $(SRCDIR)state_tracker/st_cb_viewport.c \ 237 $(SRCDIR)state_tracker/st_cb_xformfb.c \ 238 $(SRCDIR)state_tracker/st_context.c \ 239 $(SRCDIR)state_tracker/st_debug.c \ 240 $(SRCDIR)state_tracker/st_draw.c \ 241 $(SRCDIR)state_tracker/st_draw_feedback.c \ 242 $(SRCDIR)state_tracker/st_extensions.c \ 243 $(SRCDIR)state_tracker/st_format.c \ 244 $(SRCDIR)state_tracker/st_gen_mipmap.c \ 245 $(SRCDIR)state_tracker/st_manager.c \ 246 $(SRCDIR)state_tracker/st_mesa_to_tgsi.c \ 247 $(SRCDIR)state_tracker/st_program.c \ 248 $(SRCDIR)state_tracker/st_texture.c 249 250PROGRAM_FILES = \ 251 $(SRCDIR)program/arbprogparse.c \ 252 $(SRCDIR)program/hash_table.c \ 253 $(SRCDIR)program/nvfragparse.c \ 254 $(SRCDIR)program/nvvertparse.c \ 255 $(SRCDIR)program/program.c \ 256 $(SRCDIR)program/program_parse_extra.c \ 257 $(SRCDIR)program/prog_cache.c \ 258 $(SRCDIR)program/prog_execute.c \ 259 $(SRCDIR)program/prog_instruction.c \ 260 $(SRCDIR)program/prog_noise.c \ 261 $(SRCDIR)program/prog_optimize.c \ 262 $(SRCDIR)program/prog_opt_constant_fold.c \ 263 $(SRCDIR)program/prog_parameter.c \ 264 $(SRCDIR)program/prog_parameter_layout.c \ 265 $(SRCDIR)program/prog_print.c \ 266 $(SRCDIR)program/prog_statevars.c \ 267 $(SRCDIR)program/programopt.c \ 268 $(SRCDIR)program/register_allocate.c \ 269 $(SRCDIR)program/symbol_table.c \ 270 $(BUILDDIR)program/lex.yy.c \ 271 $(BUILDDIR)program/program_parse.tab.c 272 273 274SHADER_CXX_FILES = \ 275 $(SRCDIR)program/ir_to_mesa.cpp \ 276 $(SRCDIR)program/sampler.cpp \ 277 $(SRCDIR)program/string_to_uint_map.cpp 278 279ASM_C_FILES = \ 280 $(SRCDIR)x86/common_x86.c \ 281 $(SRCDIR)x86/x86_xform.c \ 282 $(SRCDIR)x86/3dnow.c \ 283 $(SRCDIR)x86/sse.c \ 284 $(SRCDIR)x86/rtasm/x86sse.c \ 285 $(SRCDIR)sparc/sparc.c \ 286 $(SRCDIR)x86-64/x86-64.c 287 288X86_FILES = \ 289 $(SRCDIR)x86/common_x86_asm.S \ 290 $(SRCDIR)x86/x86_xform2.S \ 291 $(SRCDIR)x86/x86_xform3.S \ 292 $(SRCDIR)x86/x86_xform4.S \ 293 $(SRCDIR)x86/x86_cliptest.S \ 294 $(SRCDIR)x86/mmx_blend.S \ 295 $(SRCDIR)x86/3dnow_xform1.S \ 296 $(SRCDIR)x86/3dnow_xform2.S \ 297 $(SRCDIR)x86/3dnow_xform3.S \ 298 $(SRCDIR)x86/3dnow_xform4.S \ 299 $(SRCDIR)x86/3dnow_normal.S \ 300 $(SRCDIR)x86/sse_xform1.S \ 301 $(SRCDIR)x86/sse_xform2.S \ 302 $(SRCDIR)x86/sse_xform3.S \ 303 $(SRCDIR)x86/sse_xform4.S \ 304 $(SRCDIR)x86/sse_normal.S \ 305 $(SRCDIR)x86/read_rgba_span_x86.S 306 307X86_64_FILES = \ 308 $(SRCDIR)x86-64/xform4.S 309 310SPARC_FILES = \ 311 $(SRCDIR)sparc/sparc_clip.S \ 312 $(SRCDIR)sparc/norm.S \ 313 $(SRCDIR)sparc/xform.S 314 315COMMON_DRIVER_FILES = \ 316 $(SRCDIR)drivers/common/driverfuncs.c \ 317 $(SRCDIR)drivers/common/meta.c 318 319 320# Sources for building non-Gallium drivers 321MESA_FILES = \ 322 $(MAIN_FILES) \ 323 $(MATH_FILES) \ 324 $(MATH_XFORM_FILES) \ 325 $(VBO_FILES) \ 326 $(TNL_FILES) \ 327 $(PROGRAM_FILES) \ 328 $(SWRAST_FILES) \ 329 $(SWRAST_SETUP_FILES) \ 330 $(COMMON_DRIVER_FILES)\ 331 $(ASM_C_FILES) 332 333MESA_CXX_FILES = \ 334 $(MAIN_CXX_FILES) \ 335 $(SHADER_CXX_FILES) 336 337# Sources for building Gallium drivers 338MESA_GALLIUM_FILES = \ 339 $(MAIN_FILES) \ 340 $(MATH_FILES) \ 341 $(VBO_FILES) \ 342 $(STATETRACKER_FILES) \ 343 $(PROGRAM_FILES) \ 344 $(SRCDIR)x86/common_x86.c 345 346MESA_GALLIUM_CXX_FILES = \ 347 $(MESA_CXX_FILES) \ 348 $(SRCDIR)state_tracker/st_glsl_to_tgsi.cpp 349 350# All the core C sources, for dependency checking 351ALL_FILES = \ 352 $(MESA_FILES) \ 353 $(MESA_GALLIUM_CXX_FILES) \ 354 $(MESA_ASM_FILES) \ 355 $(STATETRACKER_FILES) 356 357 358### Object files 359 360MESA_OBJECTS = \ 361 $(MESA_FILES:.c=.o) \ 362 $(MESA_CXX_FILES:.cpp=.o) \ 363 $(MESA_ASM_FILES:.S=.o) 364 365MESA_GALLIUM_OBJECTS = \ 366 $(MESA_GALLIUM_FILES:.c=.o) \ 367 $(MESA_GALLIUM_CXX_FILES:.cpp=.o) \ 368 $(MESA_ASM_FILES:.S=.o) 369 370 371COMMON_DRIVER_OBJECTS = $(COMMON_DRIVER_FILES:.c=.o) 372 373 374### Include directories 375 376INCLUDE_DIRS = \ 377 -I$(top_srcdir)/include \ 378 -I$(top_srcdir)/src/glsl \ 379 -I$(top_builddir)/src/glsl \ 380 -I$(top_srcdir)/src/glsl/glcpp \ 381 -I$(top_srcdir)/src/mesa \ 382 -I$(top_builddir)/src/mesa \ 383 -I$(top_srcdir)/src/mesa/main \ 384 -I$(top_builddir)/src/mesa/main \ 385 -I$(top_srcdir)/src/mapi \ 386 -I$(top_builddir)/src/mapi \ 387 -I$(top_srcdir)/src/gallium/include \ 388 -I$(top_srcdir)/src/gallium/auxiliary 389