summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/nv50')
-rw-r--r--src/gallium/drivers/nv50/Makefile25
-rw-r--r--src/gallium/drivers/nv50/Makefile.sources23
-rw-r--r--src/gallium/drivers/nv50/SConscript26
3 files changed, 27 insertions, 47 deletions
diff --git a/src/gallium/drivers/nv50/Makefile b/src/gallium/drivers/nv50/Makefile
index 02bcc26cfb3..220adf696b3 100644
--- a/src/gallium/drivers/nv50/Makefile
+++ b/src/gallium/drivers/nv50/Makefile
@@ -3,29 +3,8 @@ include $(TOP)/configs/current
LIBNAME = nv50
-C_SOURCES = \
- nv50_context.c \
- nv50_draw.c \
- nv50_formats.c \
- nv50_miptree.c \
- nv50_resource.c \
- nv50_screen.c \
- nv50_state.c \
- nv50_state_validate.c \
- nv50_surface.c \
- nv50_tex.c \
- nv50_transfer.c \
- nv50_vbo.c \
- nv50_program.c \
- nv50_shader_state.c \
- nv50_pc.c \
- nv50_pc_print.c \
- nv50_pc_emit.c \
- nv50_tgsi_to_nc.c \
- nv50_pc_optimize.c \
- nv50_pc_regalloc.c \
- nv50_push.c \
- nv50_query.c
+# get C_SOURCES
+include Makefile.sources
LIBRARY_INCLUDES = \
$(LIBDRM_CFLAGS)
diff --git a/src/gallium/drivers/nv50/Makefile.sources b/src/gallium/drivers/nv50/Makefile.sources
new file mode 100644
index 00000000000..756f90be979
--- /dev/null
+++ b/src/gallium/drivers/nv50/Makefile.sources
@@ -0,0 +1,23 @@
+C_SOURCES := \
+ nv50_context.c \
+ nv50_draw.c \
+ nv50_formats.c \
+ nv50_miptree.c \
+ nv50_resource.c \
+ nv50_screen.c \
+ nv50_state.c \
+ nv50_state_validate.c \
+ nv50_surface.c \
+ nv50_tex.c \
+ nv50_transfer.c \
+ nv50_vbo.c \
+ nv50_program.c \
+ nv50_shader_state.c \
+ nv50_pc.c \
+ nv50_pc_print.c \
+ nv50_pc_emit.c \
+ nv50_tgsi_to_nc.c \
+ nv50_pc_optimize.c \
+ nv50_pc_regalloc.c \
+ nv50_push.c \
+ nv50_query.c
diff --git a/src/gallium/drivers/nv50/SConscript b/src/gallium/drivers/nv50/SConscript
index 3c8a7276b97..e0484c57086 100644
--- a/src/gallium/drivers/nv50/SConscript
+++ b/src/gallium/drivers/nv50/SConscript
@@ -4,29 +4,7 @@ env = env.Clone()
nv50 = env.ConvenienceLibrary(
target = 'nv50',
- source = [
- 'nv50_context.c',
- 'nv50_draw.c',
- 'nv50_formats.c',
- 'nv50_miptree.c',
- 'nv50_resource.c',
- 'nv50_screen.c',
- 'nv50_state.c',
- 'nv50_state_validate.c',
- 'nv50_surface.c',
- 'nv50_tex.c',
- 'nv50_transfer.c',
- 'nv50_vbo.c',
- 'nv50_program.c',
- 'nv50_shader_state.c',
- 'nv50_pc.c',
- 'nv50_pc_print.c',
- 'nv50_pc_emit.c',
- 'nv50_tgsi_to_nc.c',
- 'nv50_pc_optimize.c',
- 'nv50_pc_regalloc.c',
- 'nv50_push.c',
- 'nv50_query.c'
- ])
+ source = env.ParserSourceList('Makefile.sources', 'C_SOURCES')
+ )
Export('nv50')