1include Makefile.sources 2 3pkgconfigdir = $(libdir)/pkgconfig 4pkgconfig_DATA = main/gbm.pc 5 6AM_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 15lib_LTLIBRARIES = libgbm.la 16include_HEADERS = main/gbm.h 17 18libgbm_la_SOURCES = \ 19 $(gbm_core_FILES) 20 21libgbm_la_LDFLAGS = \ 22 -no-undefined \ 23 -version-info 1:0 \ 24 $(GC_SECTIONS) \ 25 $(LD_NO_UNDEFINED) 26 27libgbm_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 33if HAVE_PLATFORM_WAYLAND 34AM_CFLAGS += \ 35 $(WAYLAND_SERVER_CFLAGS) \ 36 -I$(top_srcdir)/src/egl/wayland/wayland-drm/ 37libgbm_la_LIBADD += $(WAYLAND_SERVER_LIBS) 38endif 39 40if HAVE_DRI2 41libgbm_la_SOURCES += \ 42 $(gbm_dri_FILES) 43 44AM_CFLAGS += \ 45 -DDEFAULT_DRIVER_DIR='"$(DRI_DRIVER_SEARCH_DIR)"' \ 46 $(LIBDRM_CFLAGS) \ 47 $(PTHREADSTUBS_CFLAGS) 48 49libgbm_la_LIBADD += \ 50 $(LIBDRM_LIBS) \ 51 $(PTHREADSTUBS_LIBS) 52endif 53 54TESTS = gbm-symbols-check 55EXTRA_DIST = gbm-symbols-check meson.build 56 57include $(top_srcdir)/install-lib-links.mk 58