r300g: share the source list
authorChia-I Wu <olv@lunarg.com>
Mon, 22 Aug 2011 02:53:10 +0000 (10:53 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Sat, 27 Aug 2011 09:28:31 +0000 (17:28 +0800)
commit1025f11327cc5fb91a2dbd286ee0d7c00daaa8b3
tree1f15d03fc10c14b52c53fef96306fd8e3a8e0f51
parenta558bf69cb2ec21ad40d9d1f829036ee8b817def
r300g: share the source list

Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile
and SConscript share it.

Note that

  $(TOP)/src/glsl/ralloc.c and
  $(TOP)/src/mesa/program/register_allocate.c

are removed from C_SOURCES in Makefile.sources and added back in
Makefile and SConscript.  The idea is that they are not part of r300g.
But having them in libr300.a makes build non-GL targets such as the
compiler tests or g3dvl much easier.  Also, for practical reason, TOP
would be an undefined variable in Makefile.sources.
src/gallium/drivers/r300/Makefile
src/gallium/drivers/r300/Makefile.sources [new file with mode: 0644]
src/gallium/drivers/r300/SConscript