• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_CPPFLAGS = \
26	$(GALLIUM_CFLAGS) \
27	-I$(top_srcdir)/include \
28	-I$(top_builddir)/src/gallium/drivers \
29	-I$(top_srcdir)/src/gallium/drivers \
30	-I$(top_srcdir)/src/gallium/winsys \
31	-I$(top_builddir)/src/util \
32	$(GALLIUM_PIPE_LOADER_DEFINES) \
33	$(LIBDRM_CFLAGS) \
34	$(VISIBILITY_CFLAGS) \
35	-DGALLIUM_RBUG \
36	-DGALLIUM_TRACE
37
38pipedir = $(libdir)/gallium-pipe
39pipe_LTLIBRARIES =
40
41PIPE_LIBS =
42
43if NEED_GALLIUM_VL
44PIPE_LIBS += \
45	$(top_builddir)/src/gallium/auxiliary/libgalliumvl.la
46else
47PIPE_LIBS += \
48	$(top_builddir)/src/gallium/auxiliary/libgalliumvl_stub.la
49endif
50
51if NEED_GALLIUM_VL_WINSYS
52PIPE_LIBS+= \
53	$(top_builddir)/src/gallium/auxiliary/libgalliumvlwinsys.la
54endif
55
56PIPE_LIBS += \
57	$(top_builddir)/src/gallium/auxiliary/libgallium.la \
58	$(top_builddir)/src/compiler/nir/libnir.la \
59	$(top_builddir)/src/util/libmesautil.la \
60	$(top_builddir)/src/gallium/drivers/rbug/librbug.la \
61	$(top_builddir)/src/gallium/drivers/trace/libtrace.la \
62	$(GALLIUM_COMMON_LIB_DEPS)
63
64AM_LDFLAGS = \
65	-module \
66	-no-undefined \
67	-avoid-version \
68	$(GC_SECTIONS) \
69	$(LD_NO_UNDEFINED)
70
71if HAVE_LD_VERSION_SCRIPT
72AM_LDFLAGS += \
73	-Wl,--version-script=$(top_srcdir)/src/gallium/targets/pipe-loader/pipe.sym
74endif
75
76if HAVE_GALLIUM_LLVM
77PIPE_LIBS += $(LLVM_LIBS)
78AM_LDFLAGS += $(LLVM_LDFLAGS)
79endif
80
81if HAVE_GALLIUM_I915
82pipe_LTLIBRARIES += pipe_i915.la
83
84pipe_i915_la_SOURCES = pipe_i915.c
85nodist_EXTRA_pipe_i915_la_SOURCES = dummy.cpp
86pipe_i915_la_LIBADD = \
87	$(PIPE_LIBS) \
88	$(top_builddir)/src/gallium/winsys/i915/drm/libi915drm.la \
89	$(top_builddir)/src/gallium/drivers/i915/libi915.la \
90	$(LIBDRM_LIBS) \
91	$(I915_LIBS)
92
93endif
94
95if HAVE_GALLIUM_NOUVEAU
96pipe_LTLIBRARIES += pipe_nouveau.la
97
98pipe_nouveau_la_SOURCES = pipe_nouveau.c
99nodist_EXTRA_pipe_nouveau_la_SOURCES = dummy.cpp
100pipe_nouveau_la_LIBADD = \
101	$(PIPE_LIBS) \
102	$(top_builddir)/src/gallium/winsys/nouveau/drm/libnouveaudrm.la \
103	$(top_builddir)/src/gallium/drivers/nouveau/libnouveau.la \
104	$(LIBDRM_LIBS) \
105	$(NOUVEAU_LIBS)
106
107endif
108
109if HAVE_GALLIUM_R300
110pipe_LTLIBRARIES += pipe_r300.la
111
112pipe_r300_la_SOURCES = pipe_r300.c
113nodist_EXTRA_pipe_r300_la_SOURCES = dummy.cpp
114pipe_r300_la_LIBADD = \
115	$(PIPE_LIBS) \
116	$(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
117	$(top_builddir)/src/gallium/drivers/r300/libr300.la \
118	$(LIBDRM_LIBS) \
119	$(RADEON_LIBS)
120
121endif
122
123if HAVE_GALLIUM_R600
124pipe_LTLIBRARIES += pipe_r600.la
125
126pipe_r600_la_SOURCES = pipe_r600.c
127nodist_EXTRA_pipe_r600_la_SOURCES = dummy.cpp
128pipe_r600_la_LIBADD = \
129	$(PIPE_LIBS) \
130	$(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
131	$(top_builddir)/src/gallium/drivers/r600/libr600.la \
132	$(LIBDRM_LIBS) \
133	$(RADEON_LIBS) \
134	$(LIBELF_LIBS)
135endif
136
137if HAVE_GALLIUM_RADEONSI
138pipe_LTLIBRARIES += pipe_radeonsi.la
139
140pipe_radeonsi_la_SOURCES = pipe_radeonsi.c
141nodist_EXTRA_pipe_radeonsi_la_SOURCES = dummy.cpp
142pipe_radeonsi_la_LIBADD = \
143	$(PIPE_LIBS) \
144	$(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
145	$(top_builddir)/src/gallium/winsys/amdgpu/drm/libamdgpuwinsys.la \
146	$(top_builddir)/src/gallium/drivers/radeon/libradeon.la \
147	$(top_builddir)/src/gallium/drivers/radeonsi/libradeonsi.la \
148	$(top_builddir)/src/amd/common/libamd_common.la \
149	$(top_builddir)/src/util/libxmlconfig.la \
150	$(LIBDRM_LIBS) \
151	$(RADEON_LIBS) \
152	$(AMDGPU_LIBS)
153
154endif
155
156if HAVE_GALLIUM_FREEDRENO
157pipe_LTLIBRARIES += pipe_msm.la
158
159pipe_msm_la_SOURCES = pipe_msm.c
160nodist_EXTRA_pipe_msm_la_SOURCES = dummy.cpp
161pipe_msm_la_LIBADD = \
162	$(PIPE_LIBS) \
163	$(top_builddir)/src/gallium/winsys/freedreno/drm/libfreedrenodrm.la \
164	$(top_builddir)/src/gallium/drivers/freedreno/libfreedreno.la \
165	$(LIBDRM_LIBS) \
166	$(FREEDRENO_LIBS)
167
168endif
169
170if HAVE_GALLIUM_SVGA
171pipe_LTLIBRARIES += pipe_vmwgfx.la
172
173pipe_vmwgfx_la_SOURCES = pipe_vmwgfx.c
174nodist_EXTRA_pipe_vmwgfx_la_SOURCES = dummy.cpp
175
176pipe_vmwgfx_la_LIBADD = \
177	$(PIPE_LIBS) \
178	$(top_builddir)/src/gallium/winsys/svga/drm/libsvgadrm.la \
179	$(top_builddir)/src/gallium/drivers/svga/libsvga.la \
180	$(LIBDRM_LIBS)
181
182endif
183
184if HAVE_GALLIUM_SWRAST
185pipe_LTLIBRARIES += pipe_swrast.la
186pipe_swrast_la_SOURCES = pipe_swrast.c
187nodist_EXTRA_pipe_swrast_la_SOURCES = dummy.cpp
188pipe_swrast_la_LIBADD = $(PIPE_LIBS)
189
190if HAVE_GALLIUM_SOFTPIPE
191AM_CPPFLAGS += -DGALLIUM_SOFTPIPE
192
193pipe_swrast_la_LIBADD += \
194	$(top_builddir)/src/gallium/drivers/softpipe/libsoftpipe.la
195endif
196
197if HAVE_GALLIUM_LLVMPIPE
198AM_CPPFLAGS += -DGALLIUM_LLVMPIPE
199
200pipe_swrast_la_LIBADD += \
201	$(top_builddir)/src/gallium/drivers/llvmpipe/libllvmpipe.la
202endif
203
204if HAVE_GALLIUM_SWR
205AM_CPPFLAGS += -DGALLIUM_SWR
206
207pipe_swrast_la_LIBADD += \
208	$(top_builddir)/src/gallium/drivers/swr/libmesaswr.la
209endif
210
211pipe_swrast_la_LIBADD += \
212	$(GALLIUM_PIPE_LOADER_WINSYS_LIBS)
213
214endif
215
216EXTRA_DIST = pipe.sym meson.build
217