[Mesa-dev] [PATCH 2/2] i915: Factor source lists into Makefile.sources

Chad Versace chad at chad-versace.us
Tue Aug 23 17:04:39 PDT 2011


In preparation for porting i915 to Android, factor its source lists into
a shared makefile. This prevents duplication of source lists, and hence
prevents the Android from breaking as often.

Signed-off-by: Chad Versace <chad at chad-versace.us>
---
 src/mesa/drivers/dri/i915/Makefile         |   49 +--------------------------
 src/mesa/drivers/dri/i915/Makefile.sources |   45 +++++++++++++++++++++++++
 2 files changed, 47 insertions(+), 47 deletions(-)
 create mode 100644 src/mesa/drivers/dri/i915/Makefile.sources

diff --git a/src/mesa/drivers/dri/i915/Makefile b/src/mesa/drivers/dri/i915/Makefile
index 79e03f2..548d7e8 100644
--- a/src/mesa/drivers/dri/i915/Makefile
+++ b/src/mesa/drivers/dri/i915/Makefile
@@ -4,57 +4,12 @@ include $(TOP)/configs/current
 
 LIBNAME = i915_dri.so
 
+include Makefile.sources
 include ../Makefile.defines
 
-DRIVER_SOURCES = \
-	i830_context.c \
-	i830_state.c \
-	i830_texblend.c \
-	i830_texstate.c \
-	i830_vtbl.c \
-	intel_render.c \
-	intel_regions.c \
-	intel_buffer_objects.c \
-	intel_batchbuffer.c \
-	intel_clear.c \
-	intel_extensions.c \
-	intel_extensions_es2.c \
-	intel_mipmap_tree.c \
-	intel_tex_layout.c \
-	intel_tex_image.c \
-	intel_tex_subimage.c \
-	intel_tex_copy.c \
-	intel_tex_validate.c \
-	intel_tex_format.c \
-	intel_tex.c \
-	intel_pixel.c \
-	intel_pixel_bitmap.c \
-	intel_pixel_copy.c \
-	intel_pixel_draw.c \
-	intel_pixel_read.c \
-	intel_buffers.c \
-	intel_blit.c \
-	i915_tex_layout.c \
-	i915_texstate.c \
-	i915_context.c \
-	i915_debug.c \
-	i915_debug_fp.c \
-	i915_fragprog.c \
-	i915_program.c \
-	i915_state.c \
-	i915_vtbl.c \
-	intel_context.c \
-	intel_decode.c \
-	intel_screen.c \
-	intel_span.c \
-	intel_state.c \
-	intel_syncobj.c \
-	intel_tris.c \
-	intel_fbo.c
-
 C_SOURCES = \
 	$(COMMON_SOURCES) \
-	$(DRIVER_SOURCES)
+	$(i915_C_SOURCES)
 
 ASM_SOURCES = 
 
diff --git a/src/mesa/drivers/dri/i915/Makefile.sources b/src/mesa/drivers/dri/i915/Makefile.sources
new file mode 100644
index 0000000..1336fff
--- /dev/null
+++ b/src/mesa/drivers/dri/i915/Makefile.sources
@@ -0,0 +1,45 @@
+i915_C_SOURCES := \
+	i830_context.c \
+	i830_state.c \
+	i830_texblend.c \
+	i830_texstate.c \
+	i830_vtbl.c \
+	intel_render.c \
+	intel_regions.c \
+	intel_buffer_objects.c \
+	intel_batchbuffer.c \
+	intel_clear.c \
+	intel_extensions.c \
+	intel_extensions_es2.c \
+	intel_mipmap_tree.c \
+	intel_tex_layout.c \
+	intel_tex_image.c \
+	intel_tex_subimage.c \
+	intel_tex_copy.c \
+	intel_tex_validate.c \
+	intel_tex_format.c \
+	intel_tex.c \
+	intel_pixel.c \
+	intel_pixel_bitmap.c \
+	intel_pixel_copy.c \
+	intel_pixel_draw.c \
+	intel_pixel_read.c \
+	intel_buffers.c \
+	intel_blit.c \
+	i915_tex_layout.c \
+	i915_texstate.c \
+	i915_context.c \
+	i915_debug.c \
+	i915_debug_fp.c \
+	i915_fragprog.c \
+	i915_program.c \
+	i915_state.c \
+	i915_vtbl.c \
+	intel_context.c \
+	intel_decode.c \
+	intel_screen.c \
+	intel_span.c \
+	intel_state.c \
+	intel_syncobj.c \
+	intel_tris.c \
+	intel_fbo.c
-- 
1.7.6



More information about the mesa-dev mailing list