1dridir = $(DRI_DRIVER_INSTALL_DIR) 2 3SUBDIRS = 4MEGADRIVERS = 5MEGADRIVERS_DEPS = 6 7SUBDIRS+=common 8 9# On Android, we need to explicitly link to libglapi.so. 10if HAVE_ANDROID 11if HAVE_SHARED_GLAPI 12SHARED_GLAPI_LIB = $(top_builddir)/src/mapi/shared-glapi/libglapi.la 13endif 14endif 15 16if HAVE_I915_DRI 17SUBDIRS += i915 18MEGADRIVERS_DEPS += i915/libi915_dri.la 19MEGADRIVERS += i915_dri.so 20endif 21 22if HAVE_I965_DRI 23SUBDIRS += i965 24MEGADRIVERS_DEPS += i965/libi965_dri.la 25MEGADRIVERS += i965_dri.so 26endif 27 28if HAVE_NOUVEAU_DRI 29SUBDIRS += nouveau 30MEGADRIVERS_DEPS += nouveau/libnouveau_dri.la 31MEGADRIVERS += nouveau_vieux_dri.so 32endif 33 34if HAVE_R200_DRI 35SUBDIRS += r200 36MEGADRIVERS_DEPS += r200/libr200_dri.la 37MEGADRIVERS += r200_dri.so 38endif 39 40if HAVE_RADEON_DRI 41SUBDIRS += radeon 42MEGADRIVERS_DEPS += radeon/libradeon_dri.la 43MEGADRIVERS += radeon_dri.so 44endif 45 46if HAVE_SWRAST_DRI 47SUBDIRS += swrast 48MEGADRIVERS_DEPS += swrast/libswrast_dri.la 49MEGADRIVERS += swrast_dri.so 50endif 51 52pkgconfigdir = $(libdir)/pkgconfig 53pkgconfig_DATA = dri.pc 54 55driincludedir = $(includedir)/GL/internal 56driinclude_HEADERS = \ 57 $(top_srcdir)/include/GL/internal/dri_interface.h 58 59nodist_EXTRA_mesa_dri_drivers_la_SOURCES = dummy.cpp 60mesa_dri_drivers_la_SOURCES = 61mesa_dri_drivers_la_LDFLAGS = \ 62 -module -avoid-version -shared -shrext .so \ 63 $(BSYMBOLIC) \ 64 $(GC_SECTIONS) \ 65 $() 66mesa_dri_drivers_la_LIBADD = \ 67 ../../libmesa.la \ 68 common/libmegadriver_stub.la \ 69 common/libdricommon.la \ 70 common/libxmlconfig.la \ 71 $(SHARED_GLAPI_LIB) \ 72 $(MEGADRIVERS_DEPS) \ 73 $(DRI_LIB_DEPS) \ 74 $() 75 76if NEED_MEGADRIVER 77dri_LTLIBRARIES = mesa_dri_drivers.la 78 79if HAVE_COMPAT_SYMLINKS 80# Add a link to allow setting LD_LIBRARY_PATH/LIBGL_DRIVERS_PATH to /lib of the build tree. 81all-local: mesa_dri_drivers.la 82 $(AM_V_at)$(MKDIR_P) $(top_builddir)/$(LIB_DIR); 83 $(AM_V_GEN)ln -f .libs/mesa_dri_drivers.so \ 84 $(top_builddir)/$(LIB_DIR)/mesa_dri_drivers.so; 85 $(AM_V_GEN)for i in $(MEGADRIVERS); do \ 86 ln -f $(top_builddir)/$(LIB_DIR)/mesa_dri_drivers.so \ 87 $(top_builddir)/$(LIB_DIR)/$$i; \ 88 done; 89 90clean-local: 91 $(AM_V_GEN)$(RM) $(top_builddir)/$(LIB_DIR)/mesa_dri_drivers.so; 92 $(AM_V_GEN)for i in $(MEGADRIVERS); do \ 93 $(RM) $(top_builddir)/$(LIB_DIR)/$$i; \ 94 done; 95endif 96 97# hardlink each megadriver instance, but don't actually have 98# mesa_dri_drivers.so in the set of final installed files. 99install-data-hook: 100 for i in $(MEGADRIVERS); do \ 101 ln -f $(DESTDIR)$(dridir)/mesa_dri_drivers.so \ 102 $(DESTDIR)$(dridir)/$$i; \ 103 done; 104 $(RM) $(DESTDIR)$(dridir)/mesa_dri_drivers.* 105 106uninstall-hook: 107 for i in $(MEGADRIVERS); do \ 108 $(RM) $(DESTDIR)$(dridir)/$$i; \ 109 done; 110 111endif 112