Home | History | Annotate | Download | only in xa
      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/compiler/nir/libnir.la \
     41 	$(top_builddir)/src/util/libmesautil.la \
     42 	$(LIBDRM_LIBS) \
     43 	$(GALLIUM_COMMON_LIB_DEPS)
     44 
     45 libxatracker_la_LDFLAGS = \
     46 	-no-undefined \
     47 	-version-number $(XA_MAJOR):$(XA_MINOR):$(XA_PATCH) \
     48 	$(GC_SECTIONS) \
     49 	$(LD_NO_UNDEFINED)
     50 
     51 if HAVE_LD_VERSION_SCRIPT
     52 libxatracker_la_LDFLAGS += \
     53 	-Wl,--version-script=$(top_srcdir)/src/gallium/targets/xa/xa.sym
     54 endif
     55 
     56 EXTRA_libxatracker_la_DEPENDENCIES = xa.sym
     57 EXTRA_DIST = xa.sym meson.build
     58 
     59 if HAVE_GALLIUM_STATIC_TARGETS
     60 
     61 TARGET_DRIVERS =
     62 TARGET_CPPFLAGS =
     63 TARGET_LIB_DEPS =
     64 
     65 include $(top_srcdir)/src/gallium/drivers/i915/Automake.inc
     66 
     67 include $(top_srcdir)/src/gallium/drivers/nouveau/Automake.inc
     68 
     69 include $(top_srcdir)/src/gallium/drivers/svga/Automake.inc
     70 
     71 include $(top_srcdir)/src/gallium/drivers/freedreno/Automake.inc
     72 
     73 libxatracker_la_SOURCES += target.c
     74 libxatracker_la_CPPFLAGS = $(TARGET_CPPFLAGS)
     75 libxatracker_la_LIBADD += \
     76 	$(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_static.la \
     77 	$(GALLIUM_PIPE_LOADER_WINSYS_LIBS) \
     78 	$(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_dynamic.la
     84 
     85 endif # HAVE_GALLIUM_STATIC_TARGETS
     86 
     87 if HAVE_GALLIUM_LLVM
     88 libxatracker_la_LIBADD += $(LLVM_LIBS)
     89 libxatracker_la_LDFLAGS += $(LLVM_LDFLAGS)
     90 endif
     91 
     92 include $(top_srcdir)/install-lib-links.mk
     93