summaryrefslogtreecommitdiff
path: root/src/gbm
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2016-05-03 21:02:40 -0500
committerEmil Velikov <emil.l.velikov@gmail.com>2016-05-23 12:07:46 +0100
commit7d79eec4561b992ab2e007a67ffd1c34beb60f5d (patch)
tree710a323c6367d53ce293dc4273b8b1c93c181f33 /src/gbm
parentfc1806e041b4ce93ab9b5710164bf96d725437ba (diff)
gbm: split out source file to Makefile.sources
In preparation to add Android build support, split out the source file lists to Makefile.sources Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Eric Anholt <eric@anholt.net> [Emil Velikov: Whitespace cleanup.] Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
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 9ec6ea032f..45fb762620 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 0000000000..7a2d6a4354
--- /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