68aa649ebb82ec7e00defbb7a49d2b8a83b0d94f
[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 $(DLOPEN_LIBS) \
43 $(CLOCK_LIB) \
44 -lpthread \
45 -lm
46
47 if HAVE_GALAHAD_GALLIUM
48 PIPE_LIBS += $(top_builddir)/src/gallium/drivers/galahad/libgalahad.la
49 endif
50
51
52 if HAVE_GALLIUM_I915
53 pipe_LTLIBRARIES += pipe_i915.la
54 pipe_i915_la_SOURCES = pipe_i915.c
55 pipe_i915_la_LIBADD = \
56 $(PIPE_LIBS) \
57 $(top_builddir)/src/gallium/winsys/i915/drm/libi915drm.la \
58 $(top_builddir)/src/gallium/drivers/i915/libi915.la \
59 $(LIBDRM_LIBS) \
60 $(INTEL_LIBS)
61 pipe_i915_la_LDFLAGS = -no-undefined -avoid-version -module
62 if HAVE_MESA_LLVM
63 nodist_EXTRA_pipe_i915_la_SOURCES = dummy.cpp
64 pipe_i915_la_LIBADD += $(LLVM_LIBS)
65 pipe_i915_la_LDFLAGS += $(LLVM_LDFLAGS)
66 endif
67 endif
68
69 if HAVE_GALLIUM_NOUVEAU
70 pipe_LTLIBRARIES += pipe_nouveau.la
71 pipe_nouveau_la_SOURCES = pipe_nouveau.c
72 nodist_EXTRA_pipe_nouveau_la_SOURCES = dummy.cpp
73 pipe_nouveau_la_LIBADD = \
74 $(PIPE_LIBS) \
75 $(top_builddir)/src/gallium/winsys/nouveau/drm/libnouveaudrm.la \
76 $(top_builddir)/src/gallium/drivers/nv30/libnv30.la \
77 $(top_builddir)/src/gallium/drivers/nv50/libnv50.la \
78 $(top_builddir)/src/gallium/drivers/nvc0/libnvc0.la \
79 $(top_builddir)/src/gallium/drivers/nouveau/libnouveau.la \
80 $(NOUVEAU_LIBS)
81 pipe_nouveau_la_LDFLAGS = -no-undefined -avoid-version -module
82 if HAVE_MESA_LLVM
83 pipe_nouveau_la_LIBADD += $(LLVM_LIBS)
84 pipe_nouveau_la_LDFLAGS += $(LLVM_LDFLAGS)
85 endif
86 endif
87
88 if HAVE_GALLIUM_R300
89 pipe_LTLIBRARIES += pipe_r300.la
90 pipe_r300_la_SOURCES = pipe_r300.c
91 nodist_EXTRA_pipe_r300_la_SOURCES = dummy.cpp
92 pipe_r300_la_LIBADD = \
93 $(PIPE_LIBS) \
94 $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
95 $(top_builddir)/src/gallium/drivers/r300/libr300-helper.la \
96 $(top_builddir)/src/gallium/drivers/r300/libr300.la \
97 $(LIBDRM_LIBS) \
98 $(RADEON_LIBS)
99 pipe_r300_la_LDFLAGS = -no-undefined -avoid-version -module
100 if HAVE_MESA_LLVM
101 pipe_r300_la_LIBADD += $(LLVM_LIBS)
102 pipe_r300_la_LDFLAGS += $(LLVM_LDFLAGS)
103 endif
104 endif
105
106 if HAVE_GALLIUM_R600
107 pipe_LTLIBRARIES += pipe_r600.la
108 pipe_r600_la_SOURCES = pipe_r600.c
109 pipe_r600_la_LIBADD = \
110 $(PIPE_LIBS) \
111 $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
112 $(top_builddir)/src/gallium/drivers/r600/libr600.la \
113 $(LIBDRM_LIBS) \
114 $(RADEON_LIBS)
115 pipe_r600_la_LDFLAGS = -no-undefined -avoid-version -module
116 if HAVE_MESA_LLVM
117 nodist_EXTRA_pipe_r600_la_SOURCES = dummy.cpp
118 pipe_r600_la_LIBADD += $(LLVM_LIBS)
119 pipe_r600_la_LDFLAGS += $(LLVM_LDFLAGS)
120 endif
121 endif
122
123 if HAVE_GALLIUM_RADEONSI
124 pipe_LTLIBRARIES += pipe_radeonsi.la
125 pipe_radeonsi_la_SOURCES = pipe_radeonsi.c
126 nodist_EXTRA_pipe_radeonsi_la_SOURCES = dummy.cpp
127 pipe_radeonsi_la_LIBADD = \
128 $(PIPE_LIBS) \
129 $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
130 $(top_builddir)/src/gallium/drivers/radeonsi/libradeonsi.la \
131 $(LIBDRM_LIBS) \
132 $(RADEON_LIBS)
133 pipe_radeonsi_la_LDFLAGS = -no-undefined -avoid-version -module
134 if HAVE_MESA_LLVM
135 pipe_radeonsi_la_LIBADD += $(LLVM_LIBS)
136 pipe_radeonsi_la_LDFLAGS += $(LLVM_LDFLAGS)
137 endif
138 endif
139
140 if HAVE_GALLIUM_SVGA
141 pipe_LTLIBRARIES += pipe_vmwgfx.la
142 pipe_vmwgfx_la_SOURCES = pipe_vmwgfx.c
143 pipe_vmwgfx_la_LIBADD = \
144 $(PIPE_LIBS) \
145 $(top_builddir)/src/gallium/winsys/svga/drm/libsvgadrm.la \
146 $(top_builddir)/src/gallium/drivers/svga/libsvga.la \
147 $(LIBDRM_LIBS)
148 pipe_vmwgfx_la_LDFLAGS = -no-undefined -avoid-version -module
149 if HAVE_MESA_LLVM
150 nodist_EXTRA_pipe_vmwgfx_la_SOURCES = dummy.cpp
151 pipe_vmwgfx_la_LIBADD += $(LLVM_LIBS)
152 pipe_vmwgfx_la_LDFLAGS += $(LLVM_LDFLAGS)
153 endif
154 endif
155
156 if HAVE_GALLIUM_LLVMPIPE
157 pipe_LTLIBRARIES += pipe_swrast.la
158 pipe_swrast_la_SOURCES = pipe_swrast.c
159 nodist_EXTRA_pipe_swrast_la_SOURCES = dummy.cpp
160 pipe_swrast_la_LIBADD = \
161 $(PIPE_LIBS) \
162 $(top_builddir)/src/gallium/drivers/llvmpipe/libllvmpipe.la \
163 $(LLVM_LIBS)
164 pipe_swrast_la_LDFLAGS = -no-undefined -avoid-version -module $(LLVM_LDFLAGS)
165 else
166 if HAVE_GALLIUM_SOFTPIPE
167 pipe_LTLIBRARIES += pipe_swrast.la
168 pipe_swrast_la_SOURCES = pipe_swrast.c
169 pipe_swrast_la_LIBADD = \
170 $(PIPE_LIBS) \
171 $(top_builddir)/src/gallium/drivers/softpipe/libsoftpipe.la
172 pipe_swrast_la_LDFLAGS = -no-undefined -avoid-version -module
173 endif
174 endif