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