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
23include $(top_srcdir)/src/gallium/Automake.inc
24
25AM_CFLAGS = \
26	$(GALLIUM_TARGET_CFLAGS)
27
28pkgconfigdir = $(libdir)/pkgconfig
29pkgconfig_DATA = xatracker.pc
30
31lib_LTLIBRARIES = libxatracker.la
32
33nodist_EXTRA_libxatracker_la_SOURCES = dummy.cpp
34libxatracker_la_SOURCES =
35
36libxatracker_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
45libxatracker_la_LDFLAGS = \
46	-no-undefined \
47	-version-number $(XA_MAJOR):$(XA_MINOR):$(XA_TINY) \
48	$(GC_SECTIONS) \
49	$(LD_NO_UNDEFINED)
50
51if HAVE_LD_VERSION_SCRIPT
52libxatracker_la_LDFLAGS += \
53	-Wl,--version-script=$(top_srcdir)/src/gallium/targets/xa/xa.sym
54endif
55
56EXTRA_libxatracker_la_DEPENDENCIES = xa.sym
57EXTRA_DIST = xa.sym
58
59if HAVE_GALLIUM_STATIC_TARGETS
60
61TARGET_DRIVERS =
62TARGET_CPPFLAGS =
63TARGET_LIB_DEPS =
64
65include $(top_srcdir)/src/gallium/drivers/i915/Automake.inc
66
67include $(top_srcdir)/src/gallium/drivers/ilo/Automake.inc
68
69include $(top_srcdir)/src/gallium/drivers/nouveau/Automake.inc
70
71include $(top_srcdir)/src/gallium/drivers/svga/Automake.inc
72
73include $(top_srcdir)/src/gallium/drivers/freedreno/Automake.inc
74
75libxatracker_la_SOURCES += target.c
76libxatracker_la_CPPFLAGS = $(TARGET_CPPFLAGS)
77libxatracker_la_LIBADD += \
78	$(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_static.la \
79	$(GALLIUM_PIPE_LOADER_WINSYS_LIBS) \
80	$(TARGET_LIB_DEPS)
81
82else # HAVE_GALLIUM_STATIC_TARGETS
83
84libxatracker_la_LIBADD += \
85	$(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_dynamic.la
86
87endif # HAVE_GALLIUM_STATIC_TARGETS
88
89if HAVE_GALLIUM_LLVM
90libxatracker_la_LIBADD += $(LLVM_LIBS)
91libxatracker_la_LDFLAGS += $(LLVM_LDFLAGS)
92endif
93
94include $(top_srcdir)/install-lib-links.mk
95