summaryrefslogtreecommitdiffstats
path: root/src/gbm
diff options
context:
space:
mode:
Diffstat (limited to 'src/gbm')
-rw-r--r--src/gbm/Makefile.am12
-rw-r--r--src/gbm/Makefile.sources11
2 files changed, 15 insertions, 8 deletions
diff --git a/src/gbm/Makefile.am b/src/gbm/Makefile.am
index 9ec6ea032ff..45fb762620a 100644
--- a/src/gbm/Makefile.am
+++ b/src/gbm/Makefile.am
@@ -1,3 +1,5 @@
+include Makefile.sources
+
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = main/gbm.pc
@@ -15,12 +17,7 @@ lib_LTLIBRARIES = libgbm.la
include_HEADERS = main/gbm.h
libgbm_la_SOURCES = \
- main/backend.c \
- main/backend.h \
- main/common_drm.h \
- main/gbm.c \
- main/gbm.h \
- main/gbmint.h
+ $(gbm_core_FILES)
libgbm_la_LDFLAGS = \
-no-undefined \
@@ -40,8 +37,7 @@ endif
if HAVE_DRI2
libgbm_la_SOURCES += \
- backends/dri/gbm_dri.c \
- backends/dri/gbm_driint.h
+ $(gbm_dri_FILES)
AM_CFLAGS += \
-DDEFAULT_DRIVER_DIR='"$(DRI_DRIVER_SEARCH_DIR)"' \
diff --git a/src/gbm/Makefile.sources b/src/gbm/Makefile.sources
new file mode 100644
index 00000000000..7a2d6a43548
--- /dev/null
+++ b/src/gbm/Makefile.sources
@@ -0,0 +1,11 @@
+gbm_core_FILES = \
+ main/backend.c \
+ main/backend.h \
+ main/common_drm.h \
+ main/gbm.c \
+ main/gbm.h \
+ main/gbmint.h
+
+gbm_dri_FILES = \
+ backends/dri/gbm_dri.c \
+ backends/dri/gbm_driint.h