c43f735c3f372c1eaf573345016d49142a64b2e7
[mesa.git] / src / gallium / Automake.inc
1 GALLIUM_CFLAGS = \
2 -I$(top_srcdir)/include \
3 -I$(top_srcdir)/src \
4 -I$(top_srcdir)/src/gallium/include \
5 -I$(top_srcdir)/src/gallium/auxiliary \
6 $(DEFINES)
7
8 # src/gallium/auxiliary must appear before src/gallium/drivers
9 # because there are stupidly two rbug_context.h files in
10 # different directories, and which one is included by the
11 # preprocessor is determined by the ordering of the -I flags.
12 GALLIUM_DRIVER_CFLAGS = \
13 -I$(srcdir)/include \
14 -I$(top_srcdir)/src \
15 -I$(top_srcdir)/include \
16 -I$(top_srcdir)/src/gallium/include \
17 -I$(top_srcdir)/src/gallium/auxiliary \
18 -I$(top_srcdir)/src/gallium/drivers \
19 -I$(top_srcdir)/src/gallium/winsys \
20 $(DEFINES) \
21 $(VISIBILITY_CFLAGS)
22
23 GALLIUM_DRIVER_CXXFLAGS = \
24 -I$(srcdir)/include \
25 -I$(top_srcdir)/src \
26 -I$(top_srcdir)/include \
27 -I$(top_srcdir)/src/gallium/include \
28 -I$(top_srcdir)/src/gallium/auxiliary \
29 -I$(top_srcdir)/src/gallium/drivers \
30 -I$(top_srcdir)/src/gallium/winsys \
31 $(DEFINES) \
32 $(VISIBILITY_CXXFLAGS)
33
34 GALLIUM_TARGET_CFLAGS = \
35 -I$(top_srcdir)/include \
36 -I$(top_srcdir)/src/loader \
37 -I$(top_srcdir)/src/gallium/include \
38 -I$(top_srcdir)/src/gallium/auxiliary \
39 -I$(top_srcdir)/src/gallium/drivers \
40 -I$(top_srcdir)/src/gallium/winsys \
41 $(DEFINES) \
42 $(PTHREAD_CFLAGS) \
43 $(LIBDRM_CFLAGS) \
44 $(VISIBILITY_CFLAGS)
45
46 GALLIUM_COMMON_LIB_DEPS = \
47 -lm \
48 $(CLOCK_LIB) \
49 $(PTHREAD_LIBS) \
50 $(DLOPEN_LIBS)
51
52 GALLIUM_WINSYS_CFLAGS = \
53 -I$(top_srcdir)/include \
54 -I$(top_srcdir)/src/gallium/include \
55 -I$(top_srcdir)/src/gallium/auxiliary \
56 $(DEFINES) \
57 $(VISIBILITY_CFLAGS)
58
59
60 GALLIUM_PIPE_LOADER_WINSYS_LIBS = \
61 $(top_builddir)/src/gallium/winsys/sw/null/libws_null.la
62
63 if HAVE_DRISW
64 GALLIUM_PIPE_LOADER_WINSYS_LIBS += \
65 $(top_builddir)/src/gallium/winsys/sw/dri/libswdri.la
66 endif
67
68 if NEED_WINSYS_XLIB
69 GALLIUM_PIPE_LOADER_WINSYS_LIBS += \
70 $(top_builddir)/src/gallium/winsys/sw/xlib/libws_xlib.la \
71 -lX11 -lXext -lXfixes \
72 $(LIBDRM_LIBS)
73 endif