500dfce193252d73048177524f02ba7983aba6ab
[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 $(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)
45
46 AM_LDFLAGS = \
47 -module \
48 -no-undefined \
49 -avoid-version \
50 $(GC_SECTIONS) \
51 $(LD_NO_UNDEFINED)
52
53 if HAVE_LD_VERSION_SCRIPT
54 AM_LDFLAGS += \
55 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/pipe-loader/pipe.sym
56 endif
57
58 if HAVE_MESA_LLVM
59 PIPE_LIBS += $(LLVM_LIBS)
60 AM_LDFLAGS += $(LLVM_LDFLAGS)
61 endif
62
63 if HAVE_GALLIUM_I915
64 pipe_LTLIBRARIES += pipe_i915.la
65
66 pipe_i915_la_SOURCES = pipe_i915.c
67 nodist_EXTRA_pipe_i915_la_SOURCES = dummy.cpp
68 pipe_i915_la_LIBADD = \
69 $(PIPE_LIBS) \
70 $(top_builddir)/src/gallium/winsys/i915/drm/libi915drm.la \
71 $(top_builddir)/src/gallium/drivers/i915/libi915.la \
72 $(LIBDRM_LIBS) \
73 $(INTEL_LIBS)
74
75 endif
76
77 if HAVE_GALLIUM_NOUVEAU
78 pipe_LTLIBRARIES += pipe_nouveau.la
79
80 pipe_nouveau_la_SOURCES = pipe_nouveau.c
81 nodist_EXTRA_pipe_nouveau_la_SOURCES = dummy.cpp
82 pipe_nouveau_la_LIBADD = \
83 $(PIPE_LIBS) \
84 $(top_builddir)/src/gallium/winsys/nouveau/drm/libnouveaudrm.la \
85 $(top_builddir)/src/gallium/drivers/nouveau/libnouveau.la \
86 $(LIBDRM_LIBS) \
87 $(NOUVEAU_LIBS)
88
89 endif
90
91 if HAVE_GALLIUM_R300
92 pipe_LTLIBRARIES += pipe_r300.la
93
94 pipe_r300_la_SOURCES = pipe_r300.c
95 nodist_EXTRA_pipe_r300_la_SOURCES = dummy.cpp
96 pipe_r300_la_LIBADD = \
97 $(PIPE_LIBS) \
98 $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
99 $(top_builddir)/src/gallium/drivers/r300/libr300-helper.la \
100 $(top_builddir)/src/gallium/drivers/r300/libr300.la \
101 $(LIBDRM_LIBS) \
102 $(RADEON_LIBS)
103
104 endif
105
106 if HAVE_GALLIUM_R600
107 pipe_LTLIBRARIES += pipe_r600.la
108
109 pipe_r600_la_SOURCES = pipe_r600.c
110 nodist_EXTRA_pipe_r600_la_SOURCES = dummy.cpp
111 pipe_r600_la_LIBADD = \
112 $(PIPE_LIBS) \
113 $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
114 $(top_builddir)/src/gallium/drivers/radeon/libradeon.la \
115 $(top_builddir)/src/gallium/drivers/r600/libr600.la \
116 $(LIBDRM_LIBS) \
117 $(RADEON_LIBS)
118
119 endif
120
121 if HAVE_GALLIUM_RADEONSI
122 pipe_LTLIBRARIES += pipe_radeonsi.la
123
124 pipe_radeonsi_la_SOURCES = pipe_radeonsi.c
125 nodist_EXTRA_pipe_radeonsi_la_SOURCES = dummy.cpp
126 pipe_radeonsi_la_LIBADD = \
127 $(PIPE_LIBS) \
128 $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
129 $(top_builddir)/src/gallium/drivers/radeon/libradeon.la \
130 $(top_builddir)/src/gallium/drivers/radeonsi/libradeonsi.la \
131 $(LIBDRM_LIBS) \
132 $(RADEON_LIBS)
133
134 endif
135
136 if HAVE_GALLIUM_FREEDRENO
137 pipe_LTLIBRARIES += pipe_msm.la
138
139 pipe_msm_la_SOURCES = pipe_msm.c
140 nodist_EXTRA_pipe_msm_la_SOURCES = dummy.cpp
141 pipe_msm_la_LIBADD = \
142 $(PIPE_LIBS) \
143 $(top_builddir)/src/gallium/winsys/freedreno/drm/libfreedrenodrm.la \
144 $(top_builddir)/src/gallium/drivers/freedreno/libfreedreno.la \
145 $(LIBDRM_LIBS) \
146 $(FREEDRENO_LIBS)
147
148 endif
149
150 if HAVE_GALLIUM_SVGA
151 pipe_LTLIBRARIES += pipe_vmwgfx.la
152
153 pipe_vmwgfx_la_SOURCES = pipe_vmwgfx.c
154 nodist_EXTRA_pipe_vmwgfx_la_SOURCES = dummy.cpp
155
156 pipe_vmwgfx_la_LIBADD = \
157 $(PIPE_LIBS) \
158 $(top_builddir)/src/gallium/winsys/svga/drm/libsvgadrm.la \
159 $(top_builddir)/src/gallium/drivers/svga/libsvga.la \
160 $(LIBDRM_LIBS)
161
162 endif
163
164 if HAVE_GALLIUM_SOFTPIPE
165 AM_CPPFLAGS += -DGALLIUM_SOFTPIPE
166
167 pipe_LTLIBRARIES += pipe_swrast.la
168 pipe_swrast_la_SOURCES = pipe_swrast.c
169 nodist_EXTRA_pipe_swrast_la_SOURCES = dummy.cpp
170
171 pipe_swrast_la_LIBADD = \
172 $(PIPE_LIBS) \
173 $(top_builddir)/src/gallium/drivers/softpipe/libsoftpipe.la
174
175 if HAVE_GALLIUM_LLVMPIPE
176 AM_CPPFLAGS += -DGALLIUM_LLVMPIPE
177
178 pipe_swrast_la_LIBADD += \
179 $(top_builddir)/src/gallium/drivers/llvmpipe/libllvmpipe.la
180 endif
181 endif