gbm: Export a per plane getter for stride
[mesa.git] / src / gbm / Makefile.am
1 include Makefile.sources
2
3 pkgconfigdir = $(libdir)/pkgconfig
4 pkgconfig_DATA = main/gbm.pc
5
6 AM_CFLAGS = \
7 -I$(top_srcdir)/include \
8 -I$(top_srcdir)/src/loader \
9 -I$(top_srcdir)/src/gbm/main \
10 $(DLOPEN_CFLAGS) \
11 $(DEFINES) \
12 $(VISIBILITY_CFLAGS)
13
14 lib_LTLIBRARIES = libgbm.la
15 include_HEADERS = main/gbm.h
16
17 libgbm_la_SOURCES = \
18 $(gbm_core_FILES)
19
20 libgbm_la_LDFLAGS = \
21 -no-undefined \
22 -version-info 1:0 \
23 $(GC_SECTIONS) \
24 $(LD_NO_UNDEFINED)
25
26 libgbm_la_LIBADD = \
27 $(top_builddir)/src/loader/libloader.la \
28 $(DLOPEN_LIBS)
29
30 if HAVE_PLATFORM_WAYLAND
31 AM_CPPFLAGS = -DHAVE_WAYLAND_PLATFORM
32 AM_CFLAGS += $(WAYLAND_CFLAGS)
33 libgbm_la_LIBADD += $(top_builddir)/src/egl/wayland/wayland-drm/libwayland-drm.la $(WAYLAND_LIBS)
34 endif
35
36 if HAVE_DRI2
37 libgbm_la_SOURCES += \
38 $(gbm_dri_FILES)
39
40 AM_CFLAGS += \
41 -DDEFAULT_DRIVER_DIR='"$(DRI_DRIVER_SEARCH_DIR)"' \
42 $(LIBDRM_CFLAGS) \
43 $(PTHREADSTUBS_CFLAGS)
44
45 libgbm_la_LIBADD += \
46 $(LIBDRM_LIBS) \
47 $(PTHREADSTUBS_LIBS)
48 endif
49
50 TESTS = gbm-symbols-check
51 EXTRA_DIST = gbm-symbols-check
52
53 include $(top_srcdir)/install-lib-links.mk