trace: consolidate C sources list into Makefile.sources

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
This commit is contained in:
Emil Velikov 2013-05-08 23:44:15 +01:00 committed by Tom Stellard
parent e369126709
commit b91a9cdeaa
3 changed files with 10 additions and 13 deletions

View file

@ -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)

View file

@ -0,0 +1,6 @@
C_SOURCES := \
tr_context.c \
tr_dump.c \
tr_dump_state.c \
tr_screen.c \
tr_texture.c

View file

@ -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)