Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. # Copyright © 2012 Intel Corporation
  2. #
  3. # Permission is hereby granted, free of charge, to any person obtaining a
  4. # copy of this software and associated documentation files (the "Software"),
  5. # to deal in the Software without restriction, including without limitation
  6. # the rights to use, copy, modify, merge, publish, distribute, sublicense,
  7. # and/or sell copies of the Software, and to permit persons to whom the
  8. # Software is furnished to do so, subject to the following conditions:
  9. #
  10. # The above copyright notice and this permission notice (including the next
  11. # paragraph) shall be included in all copies or substantial portions of the
  12. # Software.
  13. #
  14. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  15. # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  16. # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  17. # NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  18. # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  19. # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  20. # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  21. # DEALINGS IN THE SOFTWARE.
  22.  
  23. include $(top_srcdir)/src/gallium/Automake.inc
  24.  
  25. AM_CFLAGS = \
  26.         $(GALLIUM_TARGET_CFLAGS)
  27.  
  28. pkgconfigdir = $(libdir)/pkgconfig
  29. pkgconfig_DATA = xatracker.pc
  30.  
  31. lib_LTLIBRARIES = libxatracker.la
  32.  
  33. nodist_EXTRA_libxatracker_la_SOURCES = dummy.cpp
  34. libxatracker_la_SOURCES =
  35.  
  36. libxatracker_la_LIBADD = \
  37.         $(top_builddir)/src/gallium/state_trackers/xa/libxatracker.la \
  38.         $(top_builddir)/src/gallium/auxiliary/libgalliumvl_stub.la \
  39.         $(top_builddir)/src/gallium/auxiliary/libgallium.la \
  40.         $(top_builddir)/src/glsl/libnir.la \
  41.         $(top_builddir)/src/libglsl_util.la \
  42.         $(top_builddir)/src/util/libmesautil.la \
  43.         $(LIBDRM_LIBS) \
  44.         $(GALLIUM_COMMON_LIB_DEPS)
  45.  
  46. libxatracker_la_LDFLAGS = \
  47.         -no-undefined \
  48.         -version-number $(XA_MAJOR):$(XA_MINOR):$(XA_TINY) \
  49.         $(GC_SECTIONS) \
  50.         $(LD_NO_UNDEFINED)
  51.  
  52. if HAVE_LD_VERSION_SCRIPT
  53. libxatracker_la_LDFLAGS += \
  54.         -Wl,--version-script=$(top_srcdir)/src/gallium/targets/xa/xa.sym
  55. endif
  56.  
  57. EXTRA_libxatracker_la_DEPENDENCIES = xa.sym
  58. EXTRA_DIST = xa.sym
  59.  
  60. if HAVE_GALLIUM_STATIC_TARGETS
  61.  
  62. TARGET_DRIVERS =
  63. TARGET_CPPFLAGS =
  64. TARGET_LIB_DEPS = $(top_builddir)/src/loader/libloader.la
  65.  
  66. include $(top_srcdir)/src/gallium/drivers/i915/Automake.inc
  67.  
  68. include $(top_srcdir)/src/gallium/drivers/ilo/Automake.inc
  69.  
  70. include $(top_srcdir)/src/gallium/drivers/nouveau/Automake.inc
  71.  
  72. include $(top_srcdir)/src/gallium/drivers/svga/Automake.inc
  73.  
  74. include $(top_srcdir)/src/gallium/drivers/freedreno/Automake.inc
  75.  
  76. libxatracker_la_SOURCES += target.c
  77. libxatracker_la_CPPFLAGS = $(TARGET_CPPFLAGS)
  78. libxatracker_la_LIBADD += $(TARGET_LIB_DEPS)
  79.  
  80. else # HAVE_GALLIUM_STATIC_TARGETS
  81.  
  82. libxatracker_la_LIBADD += \
  83.         $(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader.la \
  84.         $(GALLIUM_PIPE_LOADER_WINSYS_LIBS) \
  85.         $(GALLIUM_PIPE_LOADER_LIBS)
  86.  
  87. endif # HAVE_GALLIUM_STATIC_TARGETS
  88.  
  89. if HAVE_MESA_LLVM
  90. libxatracker_la_LIBADD += $(LLVM_LIBS)
  91. libxatracker_la_LDFLAGS += $(LLVM_LDFLAGS)
  92. endif
  93.  
  94. include $(top_srcdir)/install-lib-links.mk
  95.