util: Gather some common macros
[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)/include \
15 -I$(top_srcdir)/src/gallium/include \
16 -I$(top_srcdir)/src/gallium/auxiliary \
17 -I$(top_srcdir)/src/gallium/drivers \
18 $(DEFINES) \
19 $(VISIBILITY_CFLAGS)
20
21 GALLIUM_DRIVER_CXXFLAGS = \
22 -I$(srcdir)/include \
23 -I$(top_srcdir)/include \
24 -I$(top_srcdir)/src/gallium/include \
25 -I$(top_srcdir)/src/gallium/auxiliary \
26 -I$(top_srcdir)/src/gallium/drivers \
27 $(DEFINES) \
28 $(VISIBILITY_CXXFLAGS)
29
30 GALLIUM_TARGET_CFLAGS = \
31 -I$(top_srcdir)/include \
32 -I$(top_srcdir)/src/loader \
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 $(DEFINES) \
38 $(PTHREAD_CFLAGS) \
39 $(LIBDRM_CFLAGS) \
40 $(VISIBILITY_CFLAGS)
41
42 GALLIUM_COMMON_LIB_DEPS = \
43 -lm \
44 $(CLOCK_LIB) \
45 $(PTHREAD_LIBS) \
46 $(DLOPEN_LIBS)
47
48 GALLIUM_WINSYS_CFLAGS = \
49 -I$(top_srcdir)/include \
50 -I$(top_srcdir)/src/gallium/include \
51 -I$(top_srcdir)/src/gallium/auxiliary \
52 $(DEFINES) \
53 $(VISIBILITY_CFLAGS)
54
55
56 GALLIUM_PIPE_LOADER_WINSYS_LIBS = \
57 $(top_builddir)/src/gallium/winsys/sw/null/libws_null.la
58
59 if HAVE_DRISW
60 GALLIUM_PIPE_LOADER_WINSYS_LIBS += \
61 $(top_builddir)/src/gallium/winsys/sw/dri/libswdri.la
62 endif
63
64 if NEED_WINSYS_XLIB
65 GALLIUM_PIPE_LOADER_WINSYS_LIBS += \
66 $(top_builddir)/src/gallium/winsys/sw/xlib/libws_xlib.la \
67 -lX11 -lXext -lXfixes \
68 $(LIBDRM_LIBS)
69 endif