1pkgconfigdir = $(libdir)/pkgconfig 2pkgconfig_DATA = main/gbm.pc 3 4AM_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 14lib_LTLIBRARIES = libgbm.la 15include_HEADERS = main/gbm.h 16 17libgbm_la_SOURCES = \ 18 main/gbm.c \ 19 main/backend.c \ 20 main/common.c 21libgbm_la_LDFLAGS = -version-info 1:0 22libgbm_la_LIBADD = $(LIBUDEV_LIBS) $(LIBKMS_LIBS) $(DLOPEN_LIBS) 23 24if HAVE_EGL_PLATFORM_WAYLAND 25AM_CPPFLAGS = -DHAVE_WAYLAND_PLATFORM 26AM_CFLAGS += $(WAYLAND_CFLAGS) 27endif 28 29if HAVE_DRI 30noinst_LTLIBRARIES = libgbm_dri.la 31libgbm_dri_la_SOURCES = \ 32 backends/dri/gbm_dri.c \ 33 backends/dri/driver_name.c 34 35libgbm_dri_la_CFLAGS = \ 36 $(AM_CFLAGS) \ 37 -DDEFAULT_DRIVER_DIR='"$(DRI_DRIVER_SEARCH_DIR)"' \ 38 $(LIBDRM_CFLAGS) 39 40libgbm_la_LIBADD += \ 41 libgbm_dri.la $(top_builddir)/src/mapi/shared-glapi/libglapi.la 42endif 43 44all-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