[Mesa-dev] [PATCH 25/29] st/xvmc: consolidate C sources list into Makefile.sources

Emil Velikov emil.l.velikov at gmail.com
Sun Sep 22 13:29:48 PDT 2013


Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 src/gallium/state_trackers/xvmc/Makefile.am      | 8 ++------
 src/gallium/state_trackers/xvmc/Makefile.sources | 6 ++++++
 2 files changed, 8 insertions(+), 6 deletions(-)
 create mode 100644 src/gallium/state_trackers/xvmc/Makefile.sources

diff --git a/src/gallium/state_trackers/xvmc/Makefile.am b/src/gallium/state_trackers/xvmc/Makefile.am
index 008c50a..c110912 100644
--- a/src/gallium/state_trackers/xvmc/Makefile.am
+++ b/src/gallium/state_trackers/xvmc/Makefile.am
@@ -20,6 +20,7 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 # DEALINGS IN THE SOFTWARE.
 
+include Makefile.sources
 include $(top_srcdir)/src/gallium/Automake.inc
 
 AM_CFLAGS = \
@@ -28,12 +29,7 @@ AM_CFLAGS = \
 
 noinst_LTLIBRARIES = libxvmctracker.la
 
-libxvmctracker_la_SOURCES = \
-	block.c \
-	surface.c \
-	context.c \
-	subpicture.c \
-	attributes.c
+libxvmctracker_la_SOURCES = $(C_SOURCES)
 
 check_PROGRAMS = \
 	tests/test_context \
diff --git a/src/gallium/state_trackers/xvmc/Makefile.sources b/src/gallium/state_trackers/xvmc/Makefile.sources
new file mode 100644
index 0000000..8609801
--- /dev/null
+++ b/src/gallium/state_trackers/xvmc/Makefile.sources
@@ -0,0 +1,6 @@
+C_SOURCES := \
+	block.c \
+	surface.c \
+	context.c \
+	subpicture.c \
+	attributes.c
-- 
1.8.4



More information about the mesa-dev mailing list