loader: rework xmlconfig dependency
[mesa.git] / src / gallium / auxiliary / pipe-loader / Makefile.am
1 include Makefile.sources
2 include $(top_srcdir)/src/gallium/Automake.inc
3
4 # XXX: check if we need the gallium/winsys include
5 AM_CFLAGS = \
6 -I$(top_srcdir)/src/loader \
7 -I$(top_srcdir)/src/gallium/winsys \
8 -I$(top_builddir)/src/util \
9 $(GALLIUM_PIPE_LOADER_DEFINES) \
10 $(GALLIUM_CFLAGS) \
11 $(VISIBILITY_CFLAGS)
12
13 noinst_LTLIBRARIES = \
14 libpipe_loader_static.la \
15 libpipe_loader_dynamic.la
16
17 libpipe_loader_static_la_CFLAGS = \
18 $(AM_CFLAGS) \
19 -DGALLIUM_STATIC_TARGETS=1
20
21 libpipe_loader_dynamic_la_CFLAGS = \
22 $(AM_CFLAGS) \
23 -DPIPE_SEARCH_DIR=\"$(libdir)/gallium-pipe\"
24
25 libpipe_loader_static_la_SOURCES = \
26 $(COMMON_SOURCES)
27
28 libpipe_loader_dynamic_la_SOURCES = \
29 $(COMMON_SOURCES)
30
31 if HAVE_LIBDRM
32 AM_CFLAGS += \
33 $(LIBDRM_CFLAGS)
34
35 libpipe_loader_static_la_SOURCES += \
36 $(DRM_SOURCES)
37
38 libpipe_loader_dynamic_la_SOURCES += \
39 $(DRM_SOURCES)
40
41 endif
42
43 libpipe_loader_static_la_LIBADD = \
44 $(top_builddir)/src/loader/libloader.la \
45 $(top_builddir)/src/util/libxmlconfig.la
46
47 libpipe_loader_dynamic_la_LIBADD = \
48 $(top_builddir)/src/loader/libloader.la \
49 $(top_builddir)/src/util/libxmlconfig.la
50
51 EXTRA_DIST = SConscript