targets/dri-swrast: convert to gallium megadrivers :)
[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/state_trackers/dri/common \
32 -I$(top_srcdir)/src/mesa/drivers/dri/common \
33 -I$(top_srcdir)/src/gallium/include \
34 -I$(top_srcdir)/src/gallium/auxiliary \
35 -I$(top_srcdir)/src/gallium/drivers \
36 -I$(top_srcdir)/src/gallium/winsys \
37 -I$(top_srcdir)/src/mesa \
38 -I$(top_srcdir)/src/mapi \
39 $(DEFINES) \
40 $(PTHREAD_CFLAGS) \
41 $(LIBDRM_CFLAGS) \
42 $(VISIBILITY_CFLAGS)
43
44 GALLIUM_TARGET_CFLAGS = \
45 -I$(top_srcdir)/include \
46 -I$(top_srcdir)/src/loader \
47 -I$(top_srcdir)/src/gallium/include \
48 -I$(top_srcdir)/src/gallium/auxiliary \
49 -I$(top_srcdir)/src/gallium/drivers \
50 -I$(top_srcdir)/src/gallium/winsys \
51 $(DEFINES) \
52 $(PTHREAD_CFLAGS) \
53 $(LIBDRM_CFLAGS) \
54 $(VISIBILITY_CFLAGS)
55
56
57 GALLIUM_DRI_LINKER_FLAGS = \
58 -shared \
59 -shrext .so \
60 -module \
61 -avoid-version \
62 $(GC_SECTIONS)
63
64 if HAVE_LD_VERSION_SCRIPT
65 GALLIUM_DRI_LINKER_FLAGS += \
66 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/dri/dri.sym
67
68 endif
69
70
71 GALLIUM_COMMON_LIB_DEPS = \
72 -lm \
73 $(CLOCK_LIB) \
74 $(PTHREAD_LIBS) \
75 $(DLOPEN_LIBS)
76
77 GALLIUM_DRI_LIB_DEPS = \
78 $(top_builddir)/src/mesa/libmesagallium.la \
79 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
80 $(SELINUX_LIBS) \
81 $(LIBDRM_LIBS) \
82 $(EXPAT_LIBS) \
83 $(GALLIUM_COMMON_LIB_DEPS)
84
85 GALLIUM_WINSYS_CFLAGS = \
86 -I$(top_srcdir)/include \
87 -I$(top_srcdir)/src/gallium/include \
88 -I$(top_srcdir)/src/gallium/auxiliary \
89 $(DEFINES) \
90 $(VISIBILITY_CFLAGS)
91
92 if HAVE_MESA_LLVM
93 GALLIUM_DRI_LINKER_FLAGS += $(LLVM_LDFLAGS)
94 GALLIUM_DRI_LIB_DEPS += $(LLVM_LIBS)
95 endif
96
97
98 GALLIUM_PIPE_LOADER_WINSYS_LIBS = \
99 $(top_builddir)/src/gallium/winsys/sw/null/libws_null.la
100
101 if HAVE_DRISW
102 GALLIUM_PIPE_LOADER_WINSYS_LIBS += \
103 $(top_builddir)/src/gallium/winsys/sw/dri/libswdri.la
104 endif
105
106 if NEED_WINSYS_XLIB
107 GALLIUM_PIPE_LOADER_WINSYS_LIBS += \
108 $(top_builddir)/src/gallium/winsys/sw/xlib/libws_xlib.la \
109 -lX11 -lXext -lXfixes \
110 $(LIBDRM_LIBS)
111 endif