diff options
author | Chia-I Wu <[email protected]> | 2011-08-19 14:58:57 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2011-08-25 08:54:16 +0800 |
commit | 027a45e5cf7092a93922fea980264dc0c31f7df7 (patch) | |
tree | 4c03bb15d3f810ff551d9369666fda0157fd660b /src/gallium/winsys/r600 | |
parent | 8dda3f2bcb5723518c284d502d224fe9c27122fc (diff) |
winsys/r600: share the source list
Factor out C_SOURCES from Makefile to Makefile.sources, and let
Makefile and SConscript share it.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/winsys/r600')
-rw-r--r-- | src/gallium/winsys/r600/drm/Makefile | 8 | ||||
-rw-r--r-- | src/gallium/winsys/r600/drm/Makefile.sources | 7 | ||||
-rw-r--r-- | src/gallium/winsys/r600/drm/SConscript | 8 |
3 files changed, 10 insertions, 13 deletions
diff --git a/src/gallium/winsys/r600/drm/Makefile b/src/gallium/winsys/r600/drm/Makefile index 5ad183d78ae..c23286c8197 100644 --- a/src/gallium/winsys/r600/drm/Makefile +++ b/src/gallium/winsys/r600/drm/Makefile @@ -4,12 +4,8 @@ include $(TOP)/configs/current 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 \ diff --git a/src/gallium/winsys/r600/drm/Makefile.sources b/src/gallium/winsys/r600/drm/Makefile.sources new file mode 100644 index 00000000000..97980170e6b --- /dev/null +++ b/src/gallium/winsys/r600/drm/Makefile.sources @@ -0,0 +1,7 @@ +C_SOURCES := \ + evergreen_hw_context.c \ + radeon_pciid.c \ + r600_bo.c \ + r600_drm.c \ + r600_hw_context.c + diff --git a/src/gallium/winsys/r600/drm/SConscript b/src/gallium/winsys/r600/drm/SConscript index ca51b52ea72..2d0d80e8bb9 100644 --- a/src/gallium/winsys/r600/drm/SConscript +++ b/src/gallium/winsys/r600/drm/SConscript @@ -2,13 +2,7 @@ Import('*') 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') |