1 pkgconfigdir = $(libdir)/pkgconfig 2 pkgconfig_DATA = main/gbm.pc 3 4 AM_CFLAGS = \ 5 -D_OS_UNIX=1 \ 6 -DMODULEDIR='"$(libdir)/gbm"' \ 7 -I$(top_srcdir)/include \ 8 -I$(top_srcdir)/src/gbm/main \ 9 $(LIBUDEV_CFLAGS) \ 10 $(LIBKMS_CFLAGS) \ 11 $(DLOPEN_CFLAGS) \ 12 $(DEFINES) 13 14 lib_LTLIBRARIES = libgbm.la 15 include_HEADERS = main/gbm.h 16 17 libgbm_la_SOURCES = \ 18 main/gbm.c \ 19 main/backend.c \ 20 main/common.c 21 libgbm_la_LDFLAGS = -version-info 1:0 22 libgbm_la_LIBADD = $(LIBUDEV_LIBS) $(LIBKMS_LIBS) $(DLOPEN_LIBS) 23 24 if HAVE_EGL_PLATFORM_WAYLAND 25 AM_CPPFLAGS = -DHAVE_WAYLAND_PLATFORM 26 AM_CFLAGS += $(WAYLAND_CFLAGS) 27 endif 28 29 if HAVE_DRI 30 noinst_LTLIBRARIES = libgbm_dri.la 31 libgbm_dri_la_SOURCES = \ 32 backends/dri/gbm_dri.c \ 33 backends/dri/driver_name.c 34 35 libgbm_dri_la_CFLAGS = \ 36 $(AM_CFLAGS) \ 37 -DDEFAULT_DRIVER_DIR='"$(DRI_DRIVER_SEARCH_DIR)"' \ 38 $(LIBDRM_CFLAGS) 39 40 libgbm_la_LIBADD += \ 41 libgbm_dri.la $(top_builddir)/src/mapi/shared-glapi/libglapi.la 42 endif 43 44 all-local: libgbm.la 45 $(MKDIR_P) $(top_builddir)/$(LIB_DIR); 46 ln -f .libs/libgbm.so.1.0.0 $(top_builddir)/$(LIB_DIR)/libgbm.so 47