diff options
author | Chia-I Wu <[email protected]> | 2011-08-22 11:30:27 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2011-08-27 17:28:31 +0800 |
commit | 11a56c430b84e97a10016045a2a0eeb126df88de (patch) | |
tree | 61c1b649af50bb4b305293c393e0b103a3bd1623 /src/gallium/drivers/nv50 | |
parent | 1025f11327cc5fb91a2dbd286ee0d7c00daaa8b3 (diff) |
nouveau: share the source lists
For each driver, factor out C_SOURCES from Makefile to Makefile.sources,
and let Makefile and SConscript share it.
Diffstat (limited to 'src/gallium/drivers/nv50')
-rw-r--r-- | src/gallium/drivers/nv50/Makefile | 25 | ||||
-rw-r--r-- | src/gallium/drivers/nv50/Makefile.sources | 23 | ||||
-rw-r--r-- | src/gallium/drivers/nv50/SConscript | 26 |
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') |