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