aboutsummaryrefslogtreecommitdiffstats
path: root/src/gbm/Makefile.am
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2012-01-15 21:30:26 -0500
committerMatt Turner <[email protected]>2012-01-23 15:18:12 -0500
commit06ad64ad29e7aa9e2d001f6bd1f8c1c1f77050b8 (patch)
tree79168db2df9ca28b9d099cba983d7b45d2e7bf43 /src/gbm/Makefile.am
parent36473395f1e7574fc22fd4f5210ad6a8def76d91 (diff)
automake: src/gbm
libgbm.so.1.0.0 (instead of libgbm.so.1.0) is installed now along with libgbm.so.1 (no change).
Diffstat (limited to 'src/gbm/Makefile.am')
-rw-r--r--src/gbm/Makefile.am34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/gbm/Makefile.am b/src/gbm/Makefile.am
new file mode 100644
index 00000000000..f874f6411a3
--- /dev/null
+++ b/src/gbm/Makefile.am
@@ -0,0 +1,34 @@
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = main/gbm.pc
+
+AM_CFLAGS = \
+ -D_OS_UNIX=1 \
+ -DMODULEDIR='"$(libdir)/gbm"' \
+ -I$(top_srcdir)/include \
+ -I$(top_srcdir)/src/gbm/main \
+ $(LIBUDEV_CFLAGS) \
+ $(DLOPEN_CFLAGS) \
+ $(DEFINES)
+
+lib_LTLIBRARIES = libgbm.la
+include_HEADERS = main/gbm.h
+
+libgbm_la_SOURCES = \
+ main/gbm.c \
+ main/backend.c \
+ main/common.c
+libgbm_la_LDFLAGS = -version-info 1:0
+
+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_CFLAGS = \
+ $(AM_CFLAGS) \
+ -DDEFAULT_DRIVER_DIR='"$(DRI_DRIVER_SEARCH_DIR)"' \
+ $(LIBDRM_CFLAGS)
+
+libgbm_la_LIBADD = libgbm_dri.la
+endif