From: Emil Velikov Date: Wed, 8 May 2013 22:44:15 +0000 (+0100) Subject: trace: consolidate C sources list into Makefile.sources X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b91a9cdeaac251dfd8ec46b07755176c14110727;p=mesa.git trace: consolidate C sources list into Makefile.sources Signed-off-by: Emil Velikov Reviewed-by: Tom Stellard --- diff --git a/src/gallium/drivers/trace/Makefile.am b/src/gallium/drivers/trace/Makefile.am index 984ead4d7ab..db5904d23e6 100644 --- a/src/gallium/drivers/trace/Makefile.am +++ b/src/gallium/drivers/trace/Makefile.am @@ -1,3 +1,4 @@ +include Makefile.sources include $(top_srcdir)/src/gallium/Automake.inc AM_CFLAGS = \ @@ -6,9 +7,4 @@ AM_CFLAGS = \ noinst_LTLIBRARIES = libtrace.la -libtrace_la_SOURCES = \ - tr_context.c \ - tr_dump.c \ - tr_dump_state.c \ - tr_screen.c \ - tr_texture.c +libtrace_la_SOURCES = $(C_SOURCES) diff --git a/src/gallium/drivers/trace/Makefile.sources b/src/gallium/drivers/trace/Makefile.sources new file mode 100644 index 00000000000..d325739913d --- /dev/null +++ b/src/gallium/drivers/trace/Makefile.sources @@ -0,0 +1,6 @@ +C_SOURCES := \ + tr_context.c \ + tr_dump.c \ + tr_dump_state.c \ + tr_screen.c \ + tr_texture.c diff --git a/src/gallium/drivers/trace/SConscript b/src/gallium/drivers/trace/SConscript index 1384fe33d72..7341d1c1c1d 100644 --- a/src/gallium/drivers/trace/SConscript +++ b/src/gallium/drivers/trace/SConscript @@ -4,13 +4,8 @@ env = env.Clone() trace = env.ConvenienceLibrary( target = 'trace', - source = [ - 'tr_context.c', - 'tr_dump.c', - 'tr_dump_state.c', - 'tr_screen.c', - 'tr_texture.c', - ]) + source = env.ParseSourceList('Makefile.sources', 'C_SOURCES') + ) env.Alias('trace', trace)