summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-24 11:49:09 +0100
committerMax Kellermann <max@duempel.org>2008-12-24 11:49:09 +0100
commitfefd3d6fb7d32513cd0e05c53f404f35a67ace05 (patch)
tree45678ec6481c3bdd602d2e8212544d0fc60fd472 /src
parentd05c7f898f94aeabdec47850f782f24d14793b33 (diff)
Makefile.am: fix sparse invocation
Added missing includes.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 98b1cc830..ad4ad99f3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -306,10 +306,13 @@ mpd_LDADD = $(MPD_LIBS) \
# URL: git://www.kernel.org/pub/scm/devel/sparse/sparse.git
SPARSE = sparse
SPARSE_FLAGS =
+SPARSE_CPPFLAGS = $(DEFAULT_INCLUDES) \
+ -I$(shell $(CC) -print-file-name=include) \
+ -I$(shell $(CC) -print-file-name=include-fixed)
sparse-check:
for i in $(mpd_SOURCES); \
do \
- $(SPARSE) -I. $(mpd_CFLAGS) $(SPARSE_FLAGS) $(srcdir)/$$i || exit; \
+ $(SPARSE) -I. $(mpd_CFLAGS) $(mpd_CPPFLAGS) $(SPARSE_FLAGS) $(SPARSE_CPPFLAGS) $(srcdir)/$$i || exit; \
done
TEST_CFLAGS = -DUNIT_TEST