1 # Copyright © 2012 Intel Corporation
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:
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
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.
23 include $(top_srcdir)/src/gallium/Automake.inc
27 -I$(top_srcdir)/include \
28 -I$(top_srcdir)/src/gallium/drivers \
29 -I$(top_srcdir)/src/gallium/winsys \
31 $(VISIBILITY_CFLAGS) \
36 pipedir = $(libdir)/gallium-pipe
40 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
41 $(top_builddir)/src/gallium/drivers/rbug/librbug.la \
42 $(top_builddir)/src/gallium/drivers/trace/libtrace.la \
43 $(top_builddir)/src/gallium/drivers/galahad/libgalahad.la \
44 $(GALLIUM_COMMON_LIB_DEPS)
53 if HAVE_LD_VERSION_SCRIPT
55 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/pipe-loader/pipe.sym
59 PIPE_LIBS += $(LLVM_LIBS)
60 AM_LDFLAGS += $(LLVM_LDFLAGS)
64 pipe_LTLIBRARIES += pipe_i915.la
66 pipe_i915_la_SOURCES = pipe_i915.c
67 nodist_EXTRA_pipe_i915_la_SOURCES = dummy.cpp
68 pipe_i915_la_LIBADD = \
70 $(top_builddir)/src/gallium/winsys/i915/drm/libi915drm.la \
71 $(top_builddir)/src/gallium/drivers/i915/libi915.la \
77 if HAVE_GALLIUM_NOUVEAU
78 pipe_LTLIBRARIES += pipe_nouveau.la
80 pipe_nouveau_la_SOURCES = pipe_nouveau.c
81 nodist_EXTRA_pipe_nouveau_la_SOURCES = dummy.cpp
82 pipe_nouveau_la_LIBADD = \
84 $(top_builddir)/src/gallium/winsys/nouveau/drm/libnouveaudrm.la \
85 $(top_builddir)/src/gallium/drivers/nouveau/libnouveau.la \
92 pipe_LTLIBRARIES += pipe_r300.la
94 pipe_r300_la_SOURCES = pipe_r300.c
95 nodist_EXTRA_pipe_r300_la_SOURCES = dummy.cpp
96 pipe_r300_la_LIBADD = \
98 $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
99 $(top_builddir)/src/util/libmesautil.la \
100 $(top_builddir)/src/gallium/drivers/r300/libr300-helper.la \
101 $(top_builddir)/src/gallium/drivers/r300/libr300.la \
108 pipe_LTLIBRARIES += pipe_r600.la
110 pipe_r600_la_SOURCES = pipe_r600.c
111 nodist_EXTRA_pipe_r600_la_SOURCES = dummy.cpp
112 pipe_r600_la_LIBADD = \
114 $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
115 $(top_builddir)/src/gallium/drivers/radeon/libradeon.la \
116 $(top_builddir)/src/gallium/drivers/r600/libr600.la \
122 if HAVE_GALLIUM_RADEONSI
123 pipe_LTLIBRARIES += pipe_radeonsi.la
125 pipe_radeonsi_la_SOURCES = pipe_radeonsi.c
126 nodist_EXTRA_pipe_radeonsi_la_SOURCES = dummy.cpp
127 pipe_radeonsi_la_LIBADD = \
129 $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
130 $(top_builddir)/src/gallium/drivers/radeon/libradeon.la \
131 $(top_builddir)/src/gallium/drivers/radeonsi/libradeonsi.la \
137 if HAVE_GALLIUM_FREEDRENO
138 pipe_LTLIBRARIES += pipe_msm.la
140 pipe_msm_la_SOURCES = pipe_msm.c
141 nodist_EXTRA_pipe_msm_la_SOURCES = dummy.cpp
142 pipe_msm_la_LIBADD = \
144 $(top_builddir)/src/gallium/winsys/freedreno/drm/libfreedrenodrm.la \
145 $(top_builddir)/src/gallium/drivers/freedreno/libfreedreno.la \
152 pipe_LTLIBRARIES += pipe_vmwgfx.la
154 pipe_vmwgfx_la_SOURCES = pipe_vmwgfx.c
155 nodist_EXTRA_pipe_vmwgfx_la_SOURCES = dummy.cpp
157 pipe_vmwgfx_la_LIBADD = \
159 $(top_builddir)/src/gallium/winsys/svga/drm/libsvgadrm.la \
160 $(top_builddir)/src/gallium/drivers/svga/libsvga.la \
165 if HAVE_GALLIUM_SOFTPIPE
166 AM_CPPFLAGS += -DGALLIUM_SOFTPIPE
168 pipe_LTLIBRARIES += pipe_swrast.la
169 pipe_swrast_la_SOURCES = pipe_swrast.c
170 nodist_EXTRA_pipe_swrast_la_SOURCES = dummy.cpp
172 pipe_swrast_la_LIBADD = \
174 $(top_builddir)/src/gallium/drivers/softpipe/libsoftpipe.la
176 if HAVE_GALLIUM_LLVMPIPE
177 AM_CPPFLAGS += -DGALLIUM_LLVMPIPE
179 pipe_swrast_la_LIBADD += \
180 $(top_builddir)/src/gallium/drivers/llvmpipe/libllvmpipe.la