modetest: move sources lists to makefiles.sources
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 7 Sep 2014 17:20:03 +0000 (18:20 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sun, 28 Sep 2014 16:09:34 +0000 (17:09 +0100)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
tests/modetest/Makefile.am
tests/modetest/Makefile.sources [new file with mode: 0644]

index fd6ebb2..d551fe4 100644 (file)
@@ -1,3 +1,5 @@
+include Makefile.sources
+
 AM_CFLAGS = $(filter-out -Wpointer-arith, $(WARN_CFLAGS))
 
 AM_CFLAGS += \
@@ -13,10 +15,7 @@ noinst_PROGRAMS = \
        modetest
 endif
 
-modetest_SOURCES = \
-       buffers.c buffers.h \
-       cursor.c cursor.h \
-       modetest.c
+modetest_SOURCES = $(MODETEST_FILES)
 
 modetest_LDADD = \
        $(top_builddir)/libdrm.la \
diff --git a/tests/modetest/Makefile.sources b/tests/modetest/Makefile.sources
new file mode 100644 (file)
index 0000000..399af0d
--- /dev/null
@@ -0,0 +1,6 @@
+MODETEST_FILES := \
+       buffers.c \
+       buffers.h \
+       cursor.c \
+       cursor.h \
+       modetest.c