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