summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvc0
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/nvc0')
-rw-r--r--src/gallium/drivers/nvc0/Makefile26
-rw-r--r--src/gallium/drivers/nvc0/Makefile.sources24
-rw-r--r--src/gallium/drivers/nvc0/SConscript27
3 files changed, 28 insertions, 49 deletions
diff --git a/src/gallium/drivers/nvc0/Makefile b/src/gallium/drivers/nvc0/Makefile
index e1cd188eec5..3a5314625e6 100644
--- a/src/gallium/drivers/nvc0/Makefile
+++ b/src/gallium/drivers/nvc0/Makefile
@@ -3,30 +3,8 @@ include $(TOP)/configs/current
LIBNAME = nvc0
-C_SOURCES = \
- nvc0_context.c \
- nvc0_draw.c \
- nvc0_formats.c \
- nvc0_miptree.c \
- nvc0_resource.c \
- nvc0_screen.c \
- nvc0_state.c \
- nvc0_state_validate.c \
- nvc0_surface.c \
- nvc0_tex.c \
- nvc0_transfer.c \
- nvc0_vbo.c \
- nvc0_program.c \
- nvc0_shader_state.c \
- nvc0_pc.c \
- nvc0_pc_print.c \
- nvc0_pc_emit.c \
- nvc0_tgsi_to_nc.c \
- nvc0_pc_optimize.c \
- nvc0_pc_regalloc.c \
- nvc0_push.c \
- nvc0_push2.c \
- nvc0_query.c
+# get C_SOURCES
+include Makefile.sources
LIBRARY_INCLUDES = \
$(LIBDRM_CFLAGS)
diff --git a/src/gallium/drivers/nvc0/Makefile.sources b/src/gallium/drivers/nvc0/Makefile.sources
new file mode 100644
index 00000000000..a057f060130
--- /dev/null
+++ b/src/gallium/drivers/nvc0/Makefile.sources
@@ -0,0 +1,24 @@
+C_SOURCES := \
+ nvc0_context.c \
+ nvc0_draw.c \
+ nvc0_formats.c \
+ nvc0_miptree.c \
+ nvc0_resource.c \
+ nvc0_screen.c \
+ nvc0_state.c \
+ nvc0_state_validate.c \
+ nvc0_surface.c \
+ nvc0_tex.c \
+ nvc0_transfer.c \
+ nvc0_vbo.c \
+ nvc0_program.c \
+ nvc0_shader_state.c \
+ nvc0_pc.c \
+ nvc0_pc_print.c \
+ nvc0_pc_emit.c \
+ nvc0_tgsi_to_nc.c \
+ nvc0_pc_optimize.c \
+ nvc0_pc_regalloc.c \
+ nvc0_push.c \
+ nvc0_push2.c \
+ nvc0_query.c
diff --git a/src/gallium/drivers/nvc0/SConscript b/src/gallium/drivers/nvc0/SConscript
index dbbbf663b33..eb32373b71d 100644
--- a/src/gallium/drivers/nvc0/SConscript
+++ b/src/gallium/drivers/nvc0/SConscript
@@ -4,30 +4,7 @@ env = env.Clone()
nvc0 = env.ConvenienceLibrary(
target = 'nvc0',
- source = [
- 'nvc0_context.c',
- 'nvc0_draw.c',
- 'nvc0_formats.c',
- 'nvc0_miptree.c',
- 'nvc0_resource.c',
- 'nvc0_screen.c',
- 'nvc0_state.c',
- 'nvc0_state_validate.c',
- 'nvc0_surface.c',
- 'nvc0_tex.c',
- 'nvc0_transfer.c',
- 'nvc0_vbo.c',
- 'nvc0_program.c',
- 'nvc0_shader_state.c',
- 'nvc0_pc.c',
- 'nvc0_pc_print.c',
- 'nvc0_pc_emit.c',
- 'nvc0_tgsi_to_nc.c',
- 'nvc0_pc_optimize.c',
- 'nvc0_pc_regalloc.c',
- 'nvc0_push.c',
- 'nvc0_push2.c',
- 'nvc0_query.c'
- ])
+ source = env.ParserSourceList('Makefile.sources', 'C_SOURCES')
+ )
Export('nvc0')