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