gbm: use the loader util lib
[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 # TODO: add -export-symbols-regex
55 GALLIUM_DRI_LINKER_FLAGS = \
56 -module \
57 -avoid-version \
58 -shared \
59 -Wl,-Bsymbolic
60
61 GALLIUM_VDPAU_LINKER_FLAGS = \
62 -module \
63 -version-number $(VDPAU_MAJOR):$(VDPAU_MINOR) \
64 -export-symbols-regex $(VDPAU_EXPORTS) \
65 -shared \
66 -no-undefined
67
68 GALLIUM_XVMC_LINKER_FLAGS = \
69 -module \
70 -version-number $(XVMC_MAJOR):$(XVMC_MINOR) \
71 -shared \
72 -export-symbols-regex '^XvMC' \
73 -no-undefined
74
75 GALLIUM_VDPAU_LIB_DEPS = \
76 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
77 $(top_builddir)/src/gallium/state_trackers/vdpau/libvdpautracker.la \
78 $(VDPAU_LIBS) \
79 $(LIBDRM_LIBS)
80
81 GALLIUM_XVMC_LIB_DEPS = \
82 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
83 $(top_builddir)/src/gallium/state_trackers/xvmc/libxvmctracker.la \
84 $(XVMC_LIBS) \
85 $(LIBDRM_LIBS)
86
87 GALLIUM_WINSYS_CFLAGS = \
88 -I$(top_srcdir)/include \
89 -I$(top_srcdir)/src/gallium/include \
90 -I$(top_srcdir)/src/gallium/auxiliary \
91 $(DEFINES) \
92 $(VISIBILITY_CFLAGS)