nvc0: enable support for maxwell boards
[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 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/vdpau.sym \
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 -avoid-version \
85 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/omx.sym \
86 $(GC_SECTIONS) \
87 $(LD_NO_UNDEFINED)
88
89 GALLIUM_COMMON_LIB_DEPS = \
90 -lm \
91 $(CLOCK_LIB) \
92 $(PTHREAD_LIBS) \
93 $(DLOPEN_LIBS)
94
95 GALLIUM_DRI_LIB_DEPS = \
96 $(top_builddir)/src/mesa/libmesagallium.la \
97 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
98 $(SELINUX_LIBS) \
99 $(LIBDRM_LIBS) \
100 $(EXPAT_LIBS) \
101 $(GALLIUM_COMMON_LIB_DEPS)
102
103 GALLIUM_VDPAU_LIB_DEPS = \
104 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
105 $(top_builddir)/src/gallium/state_trackers/vdpau/libvdpautracker.la \
106 $(VDPAU_LIBS) \
107 $(LIBDRM_LIBS) \
108 $(GALLIUM_COMMON_LIB_DEPS)
109
110 GALLIUM_XVMC_LIB_DEPS = \
111 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
112 $(top_builddir)/src/gallium/state_trackers/xvmc/libxvmctracker.la \
113 $(XVMC_LIBS) \
114 $(LIBDRM_LIBS) \
115 $(GALLIUM_COMMON_LIB_DEPS)
116
117 GALLIUM_OMX_LIB_DEPS = \
118 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
119 $(top_builddir)/src/gallium/state_trackers/omx/libomxtracker.la \
120 $(OMX_LIBS) \
121 $(GALLIUM_COMMON_LIB_DEPS)
122
123 GALLIUM_WINSYS_CFLAGS = \
124 -I$(top_srcdir)/include \
125 -I$(top_srcdir)/src/gallium/include \
126 -I$(top_srcdir)/src/gallium/auxiliary \
127 $(DEFINES) \
128 $(VISIBILITY_CFLAGS)
129
130 if HAVE_MESA_LLVM
131
132 GALLIUM_DRI_LINKER_FLAGS += $(LLVM_LDFLAGS)
133 GALLIUM_VDPAU_LINKER_FLAGS += $(LLVM_LDFLAGS)
134 GALLIUM_XVMC_LINKER_FLAGS += $(LLVM_LDFLAGS)
135 GALLIUM_OMX_LINKER_FLAGS += $(LLVM_LDFLAGS)
136
137 GALLIUM_DRI_LIB_DEPS += $(LLVM_LIBS)
138 GALLIUM_VDPAU_LIB_DEPS += $(LLVM_LIBS)
139 GALLIUM_XVMC_LIB_DEPS += $(LLVM_LIBS)
140 GALLIUM_OMX_LIB_DEPS += $(LLVM_LIBS)
141
142 endif