targets/vdpau-nouveau: convert to static/shared pipe-drivers
[mesa.git] / src / gallium / Automake.inc
1 GALLIUM_CFLAGS = \
2 -I$(top_srcdir)/include \
3 -I$(top_srcdir)/src/gallium/include \
4 -I$(top_srcdir)/src/gallium/auxiliary \
5 $(DEFINES)
6
7 # src/gallium/auxiliary must appear before src/gallium/drivers
8 # because there are stupidly two rbug_context.h files in
9 # different directories, and which one is included by the
10 # preprocessor is determined by the ordering of the -I flags.
11 GALLIUM_DRIVER_CFLAGS = \
12 -I$(srcdir)/include \
13 -I$(top_srcdir)/include \
14 -I$(top_srcdir)/src/gallium/include \
15 -I$(top_srcdir)/src/gallium/auxiliary \
16 -I$(top_srcdir)/src/gallium/drivers \
17 $(DEFINES) \
18 $(VISIBILITY_CFLAGS)
19
20 GALLIUM_DRIVER_CXXFLAGS = \
21 -I$(srcdir)/include \
22 -I$(top_srcdir)/include \
23 -I$(top_srcdir)/src/gallium/include \
24 -I$(top_srcdir)/src/gallium/auxiliary \
25 -I$(top_srcdir)/src/gallium/drivers \
26 $(DEFINES) \
27 $(VISIBILITY_CXXFLAGS)
28
29 GALLIUM_DRI_CFLAGS = \
30 -I$(top_srcdir)/include \
31 -I$(top_srcdir)/src/gallium/include \
32 -I$(top_srcdir)/src/gallium/auxiliary \
33 -I$(top_srcdir)/src/gallium/drivers \
34 -I$(top_srcdir)/src/gallium/winsys \
35 -I$(top_srcdir)/src/mesa \
36 -I$(top_srcdir)/src/mapi \
37 $(DEFINES) \
38 $(PTHREAD_CFLAGS) \
39 $(LIBDRM_CFLAGS) \
40 $(VISIBILITY_CFLAGS)
41
42 GALLIUM_VIDEO_CFLAGS = \
43 -I$(top_srcdir)/include \
44 -I$(top_srcdir)/src/loader \
45 -I$(top_srcdir)/src/gallium/include \
46 -I$(top_srcdir)/src/gallium/auxiliary \
47 -I$(top_srcdir)/src/gallium/drivers \
48 -I$(top_srcdir)/src/gallium/winsys \
49 $(DEFINES) \
50 $(PTHREAD_CFLAGS) \
51 $(LIBDRM_CFLAGS) \
52 $(VISIBILITY_CFLAGS)
53
54
55 GALLIUM_DRI_LINKER_FLAGS = \
56 -shared \
57 -shrext .so \
58 -module \
59 -avoid-version \
60 $(GC_SECTIONS)
61
62 GALLIUM_VDPAU_LINKER_FLAGS = \
63 -shared \
64 -module \
65 -no-undefined \
66 -version-number $(VDPAU_MAJOR):$(VDPAU_MINOR) \
67 $(GC_SECTIONS) \
68 $(LD_NO_UNDEFINED)
69
70 GALLIUM_XVMC_LINKER_FLAGS = \
71 -shared \
72 -module \
73 -no-undefined \
74 -version-number $(XVMC_MAJOR):$(XVMC_MINOR) \
75 $(GC_SECTIONS) \
76 $(LD_NO_UNDEFINED)
77
78 GALLIUM_OMX_LINKER_FLAGS = \
79 -shared \
80 -module \
81 -no-undefined \
82 -avoid-version \
83 $(GC_SECTIONS) \
84 $(LD_NO_UNDEFINED)
85
86 if HAVE_LD_VERSION_SCRIPT
87 GALLIUM_DRI_LINKER_FLAGS += \
88 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/dri.sym
89
90 GALLIUM_VDPAU_LINKER_FLAGS += \
91 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/vdpau/vdpau.sym
92
93 GALLIUM_XVMC_LINKER_FLAGS += \
94 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/xvmc.sym
95
96 GALLIUM_OMX_LINKER_FLAGS += \
97 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/omx.sym
98 endif
99
100
101 GALLIUM_COMMON_LIB_DEPS = \
102 -lm \
103 $(CLOCK_LIB) \
104 $(PTHREAD_LIBS) \
105 $(DLOPEN_LIBS)
106
107 GALLIUM_DRI_LIB_DEPS = \
108 $(top_builddir)/src/mesa/libmesagallium.la \
109 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
110 $(SELINUX_LIBS) \
111 $(LIBDRM_LIBS) \
112 $(EXPAT_LIBS) \
113 $(GALLIUM_COMMON_LIB_DEPS)
114
115 GALLIUM_VDPAU_LIB_DEPS = \
116 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
117 $(top_builddir)/src/gallium/state_trackers/vdpau/libvdpautracker.la \
118 $(VDPAU_LIBS) \
119 $(LIBDRM_LIBS) \
120 $(GALLIUM_COMMON_LIB_DEPS)
121
122 GALLIUM_XVMC_LIB_DEPS = \
123 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
124 $(top_builddir)/src/gallium/state_trackers/xvmc/libxvmctracker.la \
125 $(XVMC_LIBS) \
126 $(LIBDRM_LIBS) \
127 $(GALLIUM_COMMON_LIB_DEPS)
128
129 GALLIUM_OMX_LIB_DEPS = \
130 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
131 $(top_builddir)/src/gallium/state_trackers/omx/libomxtracker.la \
132 $(OMX_LIBS) \
133 $(GALLIUM_COMMON_LIB_DEPS)
134
135 GALLIUM_WINSYS_CFLAGS = \
136 -I$(top_srcdir)/include \
137 -I$(top_srcdir)/src/gallium/include \
138 -I$(top_srcdir)/src/gallium/auxiliary \
139 $(DEFINES) \
140 $(VISIBILITY_CFLAGS)
141
142 if HAVE_MESA_LLVM
143
144 GALLIUM_DRI_LINKER_FLAGS += $(LLVM_LDFLAGS)
145 GALLIUM_VDPAU_LINKER_FLAGS += $(LLVM_LDFLAGS)
146 GALLIUM_XVMC_LINKER_FLAGS += $(LLVM_LDFLAGS)
147 GALLIUM_OMX_LINKER_FLAGS += $(LLVM_LDFLAGS)
148
149 GALLIUM_DRI_LIB_DEPS += $(LLVM_LIBS)
150 GALLIUM_VDPAU_LIB_DEPS += $(LLVM_LIBS)
151 GALLIUM_XVMC_LIB_DEPS += $(LLVM_LIBS)
152 GALLIUM_OMX_LIB_DEPS += $(LLVM_LIBS)
153
154 endif
155
156
157 GALLIUM_PIPE_LOADER_WINSYS_LIBS = \
158 $(top_builddir)/src/gallium/winsys/sw/null/libws_null.la
159
160 if HAVE_DRISW
161 GALLIUM_PIPE_LOADER_WINSYS_LIBS += \
162 $(top_builddir)/src/gallium/winsys/sw/dri/libswdri.la
163 endif
164
165 if NEED_WINSYS_XLIB
166 GALLIUM_PIPE_LOADER_WINSYS_LIBS += \
167 $(top_builddir)/src/gallium/winsys/sw/xlib/libws_xlib.la \
168 -lX11 -lXext -lXfixes \
169 $(LIBDRM_LIBS)
170 endif