targets/xvmc-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_XVMC_LINKER_FLAGS = \
63 -shared \
64 -module \
65 -no-undefined \
66 -version-number $(XVMC_MAJOR):$(XVMC_MINOR) \
67 $(GC_SECTIONS) \
68 $(LD_NO_UNDEFINED)
69
70 GALLIUM_OMX_LINKER_FLAGS = \
71 -shared \
72 -module \
73 -no-undefined \
74 -avoid-version \
75 $(GC_SECTIONS) \
76 $(LD_NO_UNDEFINED)
77
78 if HAVE_LD_VERSION_SCRIPT
79 GALLIUM_DRI_LINKER_FLAGS += \
80 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/dri.sym
81
82 GALLIUM_XVMC_LINKER_FLAGS += \
83 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/xvmc/xvmc.sym
84
85 GALLIUM_OMX_LINKER_FLAGS += \
86 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/omx.sym
87 endif
88
89
90 GALLIUM_COMMON_LIB_DEPS = \
91 -lm \
92 $(CLOCK_LIB) \
93 $(PTHREAD_LIBS) \
94 $(DLOPEN_LIBS)
95
96 GALLIUM_DRI_LIB_DEPS = \
97 $(top_builddir)/src/mesa/libmesagallium.la \
98 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
99 $(SELINUX_LIBS) \
100 $(LIBDRM_LIBS) \
101 $(EXPAT_LIBS) \
102 $(GALLIUM_COMMON_LIB_DEPS)
103
104 GALLIUM_XVMC_LIB_DEPS = \
105 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
106 $(top_builddir)/src/gallium/state_trackers/xvmc/libxvmctracker.la \
107 $(XVMC_LIBS) \
108 $(LIBDRM_LIBS) \
109 $(GALLIUM_COMMON_LIB_DEPS)
110
111 GALLIUM_OMX_LIB_DEPS = \
112 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
113 $(top_builddir)/src/gallium/state_trackers/omx/libomxtracker.la \
114 $(OMX_LIBS) \
115 $(GALLIUM_COMMON_LIB_DEPS)
116
117 GALLIUM_WINSYS_CFLAGS = \
118 -I$(top_srcdir)/include \
119 -I$(top_srcdir)/src/gallium/include \
120 -I$(top_srcdir)/src/gallium/auxiliary \
121 $(DEFINES) \
122 $(VISIBILITY_CFLAGS)
123
124 if HAVE_MESA_LLVM
125
126 GALLIUM_DRI_LINKER_FLAGS += $(LLVM_LDFLAGS)
127 GALLIUM_XVMC_LINKER_FLAGS += $(LLVM_LDFLAGS)
128 GALLIUM_OMX_LINKER_FLAGS += $(LLVM_LDFLAGS)
129
130 GALLIUM_DRI_LIB_DEPS += $(LLVM_LIBS)
131 GALLIUM_XVMC_LIB_DEPS += $(LLVM_LIBS)
132 GALLIUM_OMX_LIB_DEPS += $(LLVM_LIBS)
133
134 endif
135
136
137 GALLIUM_PIPE_LOADER_WINSYS_LIBS = \
138 $(top_builddir)/src/gallium/winsys/sw/null/libws_null.la
139
140 if HAVE_DRISW
141 GALLIUM_PIPE_LOADER_WINSYS_LIBS += \
142 $(top_builddir)/src/gallium/winsys/sw/dri/libswdri.la
143 endif
144
145 if NEED_WINSYS_XLIB
146 GALLIUM_PIPE_LOADER_WINSYS_LIBS += \
147 $(top_builddir)/src/gallium/winsys/sw/xlib/libws_xlib.la \
148 -lX11 -lXext -lXfixes \
149 $(LIBDRM_LIBS)
150 endif