noop: 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-06-05 23:33:38 +01:00 committed by Tom Stellard
parent d7c66ff59e
commit 38d80c01d0
5 changed files with 24 additions and 17 deletions

View file

@ -2007,6 +2007,7 @@ AC_CONFIG_FILES([Makefile
src/gallium/drivers/identity/Makefile
src/gallium/drivers/ilo/Makefile
src/gallium/drivers/llvmpipe/Makefile
src/gallium/drivers/noop/Makefile
src/gallium/drivers/nouveau/Makefile
src/gallium/drivers/r300/Makefile
src/gallium/drivers/r600/Makefile

View file

@ -11,7 +11,7 @@ AM_CFLAGS = $(VISIBILITY_CFLAGS)
noinst_LTLIBRARIES =
SUBDIRS = . identity trace rbug
SUBDIRS = . identity noop trace rbug
################################################################################
@ -24,17 +24,6 @@ galahad_libgalahad_la_SOURCES = \
################################################################################
# Meta-driver which combines whichever software rasterizers have been
# built into a single convenience library.
noinst_LTLIBRARIES += noop/libnoop.la
noop_libnoop_la_SOURCES = \
noop/noop_pipe.c \
noop/noop_state.c
################################################################################
if HAVE_GALLIUM_R600
SUBDIRS += radeon

View file

@ -0,0 +1,16 @@
################################################################################
# Meta-driver which combines whichever software rasterizers have been
# built into a single convenience library.
include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
AM_CFLAGS = \
-I$(top_srcdir)/src/gallium/drivers \
$(GALLIUM_CFLAGS) \
$(VISIBILITY_CFLAGS)
noinst_LTLIBRARIES = libnoop.la
libnoop_la_SOURCES = $(C_SOURCES)

View file

@ -0,0 +1,3 @@
C_SOURCES := \
noop_pipe.c \
noop_state.c

View file

@ -7,9 +7,7 @@ env = env.Clone()
noop = env.ConvenienceLibrary(
target = 'noop',
source = [
'noop_pipe.c',
'noop_state.c'
]
) + extra
source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
) + extra
Export('noop')