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