pipe-loader: wrap pipe_loader_sw_probe_xlib within HAVE_PIPE_LOADER_XLIB
[mesa.git] / src / gallium / tests / trivial / Makefile.am
1 include $(top_srcdir)/src/gallium/Automake.inc
2
3 PIPE_SRC_DIR = $(top_builddir)/src/gallium/targets/pipe-loader
4
5 AM_CFLAGS = \
6 $(GALLIUM_CFLAGS)
7
8 AM_CPPFLAGS = \
9 -I$(top_srcdir)/src/gallium/drivers \
10 -I$(top_srcdir)/src/gallium/winsys \
11 -DPIPE_SEARCH_DIR=\"$(PIPE_SRC_DIR)/.libs\" \
12 $(GALLIUM_PIPE_LOADER_DEFINES)
13
14 LDADD = $(GALLIUM_PIPE_LOADER_CLIENT_LIBS) \
15 $(top_builddir)/src/gallium/auxiliary/pipe-loader/libpipe_loader_client.la \
16 $(top_builddir)/src/gallium/winsys/sw/dri/libswdri.la \
17 $(top_builddir)/src/gallium/winsys/sw/null/libws_null.la \
18 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
19 $(DLOPEN_LIBS) \
20 $(PTHREAD_LIBS) \
21 -lm
22
23 if NEED_PIPE_LOADER_XLIB
24 LDADD += \
25 $(top_builddir)/src/gallium/winsys/sw/xlib/libws_xlib.la \
26 -lX11 -lXext -lXfixes \
27 $(LIBDRM_LIBS)
28 endif
29
30 noinst_PROGRAMS = compute tri quad-tex
31
32 compute_SOURCES = compute.c
33
34 tri_SOURCES = tri.c
35
36 quad_tex_SOURCES = quad-tex.c
37
38 clean-local:
39 -rm -f result.bmp