Factor out C_SOURCES from Makefile to Makefile.sources, and let
Makefile and SConscript share it.
Reviewed-by: Marek Olšák <maraeo@gmail.com>
LIBNAME = r600winsys
-C_SOURCES = \
- evergreen_hw_context.c \
- radeon_pciid.c \
- r600_bo.c \
- r600_drm.c \
- r600_hw_context.c
+# get C_SOURCES
+include Makefile.sources
LIBRARY_INCLUDES = -I$(TOP)/src/gallium/drivers/r600 \
-I$(TOP)/include \
--- /dev/null
+C_SOURCES := \
+ evergreen_hw_context.c \
+ radeon_pciid.c \
+ r600_bo.c \
+ r600_drm.c \
+ r600_hw_context.c
+
env = env.Clone()
-r600_sources = [
- 'evergreen_hw_context.c',
- 'radeon_pciid.c',
- 'r600_bo.c',
- 'r600_drm.c',
- 'r600_hw_context.c',
-]
+r600_sources = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
env.PkgUseModules('DRM_RADEON')