targets/dri-swrast: Convert to static/shared pipe-driver
[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_TARGET_CFLAGS = \
30 -I$(top_srcdir)/include \
31 -I$(top_srcdir)/src/loader \
32 -I$(top_srcdir)/src/gallium/include \
33 -I$(top_srcdir)/src/gallium/auxiliary \
34 -I$(top_srcdir)/src/gallium/drivers \
35 -I$(top_srcdir)/src/gallium/winsys \
36 $(DEFINES) \
37 $(PTHREAD_CFLAGS) \
38 $(LIBDRM_CFLAGS) \
39 $(VISIBILITY_CFLAGS)
40
41 GALLIUM_COMMON_LIB_DEPS = \
42 -lm \
43 $(CLOCK_LIB) \
44 $(PTHREAD_LIBS) \
45 $(DLOPEN_LIBS)
46
47 GALLIUM_WINSYS_CFLAGS = \
48 -I$(top_srcdir)/include \
49 -I$(top_srcdir)/src/gallium/include \
50 -I$(top_srcdir)/src/gallium/auxiliary \
51 $(DEFINES) \
52 $(VISIBILITY_CFLAGS)
53
54
55 GALLIUM_PIPE_LOADER_WINSYS_LIBS = \
56 $(top_builddir)/src/gallium/winsys/sw/null/libws_null.la
57
58 if HAVE_DRISW
59 GALLIUM_PIPE_LOADER_WINSYS_LIBS += \
60 $(top_builddir)/src/gallium/winsys/sw/dri/libswdri.la
61 endif
62
63 if NEED_WINSYS_XLIB
64 GALLIUM_PIPE_LOADER_WINSYS_LIBS += \
65 $(top_builddir)/src/gallium/winsys/sw/xlib/libws_xlib.la \
66 -lX11 -lXext -lXfixes \
67 $(LIBDRM_LIBS)
68 endif