* use AM_CPPFLAGS instead of INCLUDES

This commit is contained in:
djcb
2012-12-22 22:54:50 +02:00
parent 4f37e979e1
commit c5f8ea6451
10 changed files with 14 additions and 12 deletions

View File

@ -20,7 +20,7 @@ include $(top_srcdir)/gtest.mk
# with separate builddir)
SUBDIRS= . mu scripts examples tests
INCLUDES=-I. -I${top_builddir} -I${top_srcdir}/lib ${GUILE_CFLAGS} ${GLIB_CFLAGS}
AM_CPPFLAGS=-I. -I${top_builddir} -I${top_srcdir}/lib ${GUILE_CFLAGS} ${GLIB_CFLAGS}
# don't use -Werror, as it might break on other compilers
# use -Wno-unused-parameters, because some callbacks may not
@ -54,7 +54,7 @@ mu_guile_TEXINFOS= \
BUILT_SOURCES=$(XFILES)
snarfcppopts= $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) $(INCLUDES)
snarfcppopts= $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS)
SUFFIXES = .x .doc
.c.x:
$(GUILE_SNARF) -o $@ $< $(snarfcppopts)

View File

@ -16,7 +16,7 @@
include $(top_srcdir)/gtest.mk
INCLUDES=$(XAPIAN_CXXFLAGS) \
AM_CPPFLAGS=$(XAPIAN_CXXFLAGS) \
$(GMIME_CFLAGS) \
$(GLIB_CFLAGS) \
-I ${top_srcdir} \