summaryrefslogtreecommitdiffstats
path: root/src/gbm/Makefile.am
blob: d18d35c4e39412edf3efee903a7c56c312b9a692 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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

all-local: libgbm.la
	$(MKDIR_P) $(top_builddir)/$(LIB_DIR);
	ln -f .libs/libgbm.so.1.0.0 $(top_builddir)/$(LIB_DIR)/libgbm.so