r600g: share the source list
authorChia-I Wu <olvaffe@gmail.com>
Fri, 19 Aug 2011 06:41:29 +0000 (14:41 +0800)
committerChia-I Wu <olv@lunarg.com>
Thu, 25 Aug 2011 00:54:16 +0000 (08:54 +0800)
Factor out C_SOURCES from Makefile to Makefile.sources, and let
Makefile and SConscript share it.

Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/gallium/drivers/r600/Makefile
src/gallium/drivers/r600/Makefile.sources [new file with mode: 0644]
src/gallium/drivers/r600/SConscript

index 7e21e3e32b1d4831669d0d3a81bf14511c2c124e..0e68fe99345f73cfe97f1f2dc589acdfeb0e7a8e 100644 (file)
@@ -6,20 +6,7 @@ LIBNAME = r600
 LIBRARY_INCLUDES = \
        $(shell pkg-config libdrm --cflags-only-I)
 
-C_SOURCES = \
-       r600_asm.c \
-       r600_blit.c \
-       r600_buffer.c \
-       r600_pipe.c \
-       r600_query.c \
-       r600_resource.c \
-       r600_shader.c \
-       r600_state.c \
-       r600_texture.c \
-       r700_asm.c \
-       evergreen_state.c \
-       eg_asm.c \
-       r600_translate.c \
-       r600_state_common.c
+# get C_SOURCES
+include Makefile.sources
 
 include ../../Makefile.template
diff --git a/src/gallium/drivers/r600/Makefile.sources b/src/gallium/drivers/r600/Makefile.sources
new file mode 100644 (file)
index 0000000..0366394
--- /dev/null
@@ -0,0 +1,15 @@
+C_SOURCES := \
+       r600_asm.c \
+       r600_blit.c \
+       r600_buffer.c \
+       r600_pipe.c \
+       r600_query.c \
+       r600_resource.c \
+       r600_shader.c \
+       r600_state.c \
+       r600_texture.c \
+       r700_asm.c \
+       evergreen_state.c \
+       eg_asm.c \
+       r600_translate.c \
+       r600_state_common.c
index 19f07b2bef8f306d90f368e70f5a5c8a117b6d25..be12255e4d08666e342290e01d479f76ce0630d2 100644 (file)
@@ -11,22 +11,8 @@ env.Append(CPPPATH = [
 
 r600 = env.ConvenienceLibrary(
     target = 'r600',
-    source = [
-        'r600_asm.c',
-        'r600_buffer.c',
-        'r600_blit.c',
-        'r600_pipe.c',
-        'r600_query.c',
-        'r600_resource.c',
-        'r600_shader.c',
-        'r600_state.c',
-        'r600_state_common.c',
-        'r600_texture.c',
-        'r600_translate.c',
-        'r700_asm.c',
-        'evergreen_state.c',
-        'eg_asm.c',
-    ])
+    source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
+    )
 
 env.Alias('r600', r600)