meson: build libEGL
[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 \
9 -I$(top_srcdir)/src/loader \
10 -I$(top_srcdir)/src/gbm/main \
11 $(DLOPEN_CFLAGS) \
12 $(DEFINES) \
13 $(VISIBILITY_CFLAGS)
14
15 lib_LTLIBRARIES = libgbm.la
16 include_HEADERS = main/gbm.h
17
18 libgbm_la_SOURCES = \
19 $(gbm_core_FILES)
20
21 libgbm_la_LDFLAGS = \
22 -no-undefined \
23 -version-info 1:0 \
24 $(GC_SECTIONS) \
25 $(LD_NO_UNDEFINED)
26
27 libgbm_la_LIBADD = \
28 $(top_builddir)/src/loader/libloader.la \
29 $(top_builddir)/src/util/libmesautil.la \
30 $(top_builddir)/src/util/libxmlconfig.la \
31 $(DLOPEN_LIBS)
32
33 if HAVE_PLATFORM_WAYLAND
34 AM_CFLAGS += $(WAYLAND_SERVER_CFLAGS)
35 libgbm_la_LIBADD += $(top_builddir)/src/egl/wayland/wayland-drm/libwayland-drm.la $(WAYLAND_SERVER_LIBS)
36 endif
37
38 if HAVE_DRI2
39 libgbm_la_SOURCES += \
40 $(gbm_dri_FILES)
41
42 AM_CFLAGS += \
43 -DDEFAULT_DRIVER_DIR='"$(DRI_DRIVER_SEARCH_DIR)"' \
44 $(LIBDRM_CFLAGS) \
45 $(PTHREADSTUBS_CFLAGS)
46
47 libgbm_la_LIBADD += \
48 $(LIBDRM_LIBS) \
49 $(PTHREADSTUBS_LIBS)
50 endif
51
52 TESTS = gbm-symbols-check
53 EXTRA_DIST = gbm-symbols-check
54
55 include $(top_srcdir)/install-lib-links.mk