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