1AUTOMAKE_OPTIONS = subdir-objects
2
3AM_CPPFLAGS = $(DEFINES) \
4	$(GALLIUM_PIPE_LOADER_DEFINES) \
5	-I$(top_srcdir)/include \
6	-I$(top_srcdir)/src/gallium/include \
7	-I$(top_srcdir)/src/gallium/auxiliary \
8	-I$(top_srcdir)/src/gallium/winsys
9
10AM_CFLAGS = $(PIC_FLAGS)
11
12noinst_LTLIBRARIES =
13
14if HAVE_LOADER_GALLIUM
15noinst_LTLIBRARIES += libpipe_loader.la
16
17libpipe_loader_la_SOURCES = \
18	pipe_loader.h \
19	pipe_loader_priv.h \
20	pipe_loader.c \
21	pipe_loader_sw.c
22
23if HAVE_DRM_LOADER_GALLIUM
24libpipe_loader_la_SOURCES += pipe_loader_drm.c
25AM_CFLAGS += $(LIBDRM_CFLAGS)
26endif
27
28# Provide compatibility with scripts for the old Mesa build system for
29# a while by putting a link to the library in the current directory.
30all-local: libpipe_loader.la
31	ln -f .libs/libpipe_loader.a .
32
33clean-local:
34	rm -f libpipe_loader.a
35endif
36
37# FIXME: Remove when the rest of Gallium is converted to automake.
38default: all
39