feed5c32cb00568b9a7bfb7494690b67e08b2450
[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/gallium/include \
45 -I$(top_srcdir)/src/gallium/auxiliary \
46 -I$(top_srcdir)/src/gallium/drivers \
47 -I$(top_srcdir)/src/gallium/winsys \
48 $(DEFINES) \
49 $(PTHREAD_CFLAGS) \
50 $(LIBDRM_CFLAGS) \
51 $(VISIBILITY_CFLAGS)
52
53
54 GALLIUM_DRI_LINKER_FLAGS = \
55 -shared \
56 -shrext .so \
57 -module \
58 -avoid-version \
59 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/dri.sym \
60 $(GC_SECTIONS)
61
62 GALLIUM_VDPAU_LINKER_FLAGS = \
63 -shared \
64 -module \
65 -no-undefined \
66 -version-number $(VDPAU_MAJOR):$(VDPAU_MINOR) \
67 -export-symbols-regex $(VDPAU_EXPORTS) \
68 $(GC_SECTIONS) \
69 $(LD_NO_UNDEFINED)
70
71 GALLIUM_XVMC_LINKER_FLAGS = \
72 -shared \
73 -module \
74 -no-undefined \
75 -version-number $(XVMC_MAJOR):$(XVMC_MINOR) \
76 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/xvmc.sym \
77 $(GC_SECTIONS) \
78 $(LD_NO_UNDEFINED)
79
80 GALLIUM_OMX_LINKER_FLAGS = \
81 -shared \
82 -module \
83 -no-undefined \
84 -export-symbols-regex $(EXPORTS) \
85 $(GC_SECTIONS) \
86 $(LD_NO_UNDEFINED)
87
88 GALLIUM_COMMON_LIB_DEPS = \
89 -lm \
90 $(CLOCK_LIB) \
91 $(PTHREAD_LIBS) \
92 $(DLOPEN_LIBS)
93
94 GALLIUM_DRI_LIB_DEPS = \
95 $(top_builddir)/src/mesa/libmesagallium.la \
96 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
97 $(SELINUX_LIBS) \
98 $(LIBDRM_LIBS) \
99 $(EXPAT_LIBS) \
100 $(GALLIUM_COMMON_LIB_DEPS)
101
102 GALLIUM_VDPAU_LIB_DEPS = \
103 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
104 $(top_builddir)/src/gallium/state_trackers/vdpau/libvdpautracker.la \
105 $(VDPAU_LIBS) \
106 $(LIBDRM_LIBS) \
107 $(GALLIUM_COMMON_LIB_DEPS)
108
109 GALLIUM_XVMC_LIB_DEPS = \
110 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
111 $(top_builddir)/src/gallium/state_trackers/xvmc/libxvmctracker.la \
112 $(XVMC_LIBS) \
113 $(LIBDRM_LIBS) \
114 $(GALLIUM_COMMON_LIB_DEPS)
115
116 GALLIUM_OMX_LIB_DEPS = \
117 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
118 $(top_builddir)/src/gallium/state_trackers/omx/libomxtracker.la \
119 $(OMX_LIBS) \
120 $(GALLIUM_COMMON_LIB_DEPS)
121
122 GALLIUM_WINSYS_CFLAGS = \
123 -I$(top_srcdir)/include \
124 -I$(top_srcdir)/src/gallium/include \
125 -I$(top_srcdir)/src/gallium/auxiliary \
126 $(DEFINES) \
127 $(VISIBILITY_CFLAGS)
128
129 if HAVE_MESA_LLVM
130
131 GALLIUM_DRI_LINKER_FLAGS += $(LLVM_LDFLAGS)
132 GALLIUM_VDPAU_LINKER_FLAGS += $(LLVM_LDFLAGS)
133 GALLIUM_XVMC_LINKER_FLAGS += $(LLVM_LDFLAGS)
134 GALLIUM_OMX_LINKER_FLAGS += $(LLVM_LDFLAGS)
135
136 GALLIUM_DRI_LIB_DEPS += $(LLVM_LIBS)
137 GALLIUM_VDPAU_LIB_DEPS += $(LLVM_LIBS)
138 GALLIUM_XVMC_LIB_DEPS += $(LLVM_LIBS)
139 GALLIUM_OMX_LIB_DEPS += $(LLVM_LIBS)
140
141 endif