diff options
author | Chia-I Wu <[email protected]> | 2011-08-22 11:30:27 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2011-08-27 17:28:31 +0800 |
commit | 11a56c430b84e97a10016045a2a0eeb126df88de (patch) | |
tree | 61c1b649af50bb4b305293c393e0b103a3bd1623 /src/gallium/drivers/nouveau | |
parent | 1025f11327cc5fb91a2dbd286ee0d7c00daaa8b3 (diff) |
nouveau: share the source lists
For each driver, factor out C_SOURCES from Makefile to Makefile.sources,
and let Makefile and SConscript share it.
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r-- | src/gallium/drivers/nouveau/Makefile | 7 | ||||
-rw-r--r-- | src/gallium/drivers/nouveau/Makefile.sources | 6 | ||||
-rw-r--r-- | src/gallium/drivers/nouveau/SConscript | 5 |
3 files changed, 10 insertions, 8 deletions
diff --git a/src/gallium/drivers/nouveau/Makefile b/src/gallium/drivers/nouveau/Makefile index aae6d9889bb..eb35c1f1d4e 100644 --- a/src/gallium/drivers/nouveau/Makefile +++ b/src/gallium/drivers/nouveau/Makefile @@ -7,10 +7,7 @@ LIBRARY_INCLUDES = \ $(LIBDRM_CFLAGS) \ -I$(TOP)/src/gallium/drivers/nouveau/include -C_SOURCES = nouveau_screen.c \ - nouveau_fence.c \ - nouveau_mm.c \ - nouveau_buffer.c \ - nouveau_video.c +# get C_SOURCES +include Makefile.sources include ../../Makefile.template diff --git a/src/gallium/drivers/nouveau/Makefile.sources b/src/gallium/drivers/nouveau/Makefile.sources new file mode 100644 index 00000000000..5a5998bca0a --- /dev/null +++ b/src/gallium/drivers/nouveau/Makefile.sources @@ -0,0 +1,6 @@ +C_SOURCES := \ + nouveau_screen.c \ + nouveau_fence.c \ + nouveau_mm.c \ + nouveau_buffer.c \ + nouveau_video.c diff --git a/src/gallium/drivers/nouveau/SConscript b/src/gallium/drivers/nouveau/SConscript index fe7af4d2ae8..8cbed556e22 100644 --- a/src/gallium/drivers/nouveau/SConscript +++ b/src/gallium/drivers/nouveau/SConscript @@ -4,8 +4,7 @@ env = env.Clone() nouveau = env.ConvenienceLibrary( target = 'nouveau', - source = [ - 'nouveau_screen.c', - ]) + source = env.ParserSourceList('Makefile.sources', 'C_SOURCES') + ) Export('nouveau') |