[Mesa-dev] [PATCH 06/37] gbm: move source file lists to Makefile.sources
Emil Velikov
emil.l.velikov at gmail.com
Sat Nov 2 12:00:36 PDT 2013
Allow the lists to be shared among build systems.
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
src/gbm/Makefile.am | 15 ++++++---------
src/gbm/Makefile.sources | 8 ++++++++
2 files changed, 14 insertions(+), 9 deletions(-)
create mode 100644 src/gbm/Makefile.sources
diff --git a/src/gbm/Makefile.am b/src/gbm/Makefile.am
index 1282b14..5572fc3 100644
--- a/src/gbm/Makefile.am
+++ b/src/gbm/Makefile.am
@@ -1,5 +1,4 @@
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = main/gbm.pc
+include Makefile.sources
AM_CFLAGS = \
-D_OS_UNIX=1 \
@@ -13,11 +12,11 @@ AM_CFLAGS = \
lib_LTLIBRARIES = libgbm.la
include_HEADERS = main/gbm.h
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = main/gbm.pc
+
+libgbm_la_SOURCES = $(MAIN_FILES)
-libgbm_la_SOURCES = \
- main/gbm.c \
- main/backend.c \
- main/common.c
libgbm_la_LDFLAGS = -version-info 1:0
libgbm_la_LIBADD = $(LIBUDEV_LIBS) $(LIBKMS_LIBS) $(DLOPEN_LIBS)
@@ -29,9 +28,7 @@ endif
if HAVE_DRI
noinst_LTLIBRARIES = libgbm_dri.la
-libgbm_dri_la_SOURCES = \
- backends/dri/gbm_dri.c \
- backends/dri/driver_name.c
+libgbm_dri_la_SOURCES = $(DRI_BACKEND_FILES)
libgbm_dri_la_CFLAGS = \
$(AM_CFLAGS) \
diff --git a/src/gbm/Makefile.sources b/src/gbm/Makefile.sources
new file mode 100644
index 0000000..56ecc0d
--- /dev/null
+++ b/src/gbm/Makefile.sources
@@ -0,0 +1,8 @@
+MAIN_FILES := \
+ main/gbm.c \
+ main/backend.c \
+ main/common.c
+
+DRI_BACKEND_FILES := \
+ backends/dri/gbm_dri.c \
+ backends/dri/driver_name.c
--
1.8.4.2
More information about the mesa-dev
mailing list