Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
+include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
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)
--- /dev/null
+C_SOURCES := \
+ tr_context.c \
+ tr_dump.c \
+ tr_dump_state.c \
+ tr_screen.c \
+ tr_texture.c
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)