Bug #514043: Use AM_CPPFLAGS instead of AM_CFLAGS.

AM_CFLAGS is passed both to the compiler (.c -> .o) and to the linker, so it
should only have flags that are appropriate for both steps. AM_CPPFLAGS is
passed only to the compiler, so flags that are only appropriate for that step
(-I and -D flags, for example), should be in _CPPFLAGS instead of _CFLAGS.
Every gnucash-2.2.3 Makefile.am that passes -I flags gets it wrong, placing
them in _CFLAGS. It's not a functional bug (the linker ignores -I flags), but a
ton of superfluous flags makes the build output pretty verbose and hard to
debug when things do go wrong.

To make matters more confusing as a developer, the FOO_CFLAGS variable set by
PKG_CHECK_MODULES(FOO) is actually for _CPPFLAGS in the Makefile.am
('pkg-config --cflags' returns the -I flags).

A related -I bug (one that *is* functionally broken) is that sometimes a local
(build dir) -I flag is passed after a global (installed dependent library) one.
If my system happens to have a header installed from some unrelated thing,
compiler will find *that* one instead of the expected one in the source
directory. Should always pass all local -I before any global ones.

Patch by andi5 plus one manual addition in src/gnome-utils/Makefile.am

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17655 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2008-10-25 20:30:47 +00:00
parent e5886453cb
commit 60c32fd16b
63 changed files with 117 additions and 116 deletions

View File

@ -13,6 +13,6 @@ endif
libgnc_glib_la_LIBADD = ${GLIB26_LIBS}
AM_CFLAGS = ${GLIB_CFLAGS}
AM_CPPFLAGS = ${GLIB_CFLAGS}
EXTRA_DIST = $(DUMMYSRCS) $(REALSRCS) $(REALHDRS)

View File

@ -18,7 +18,7 @@ LTLIBOBJS = $(shell echo "$(LIBOBJS)" | sed '@LIBOBJS_SEDSCRIPT@' | \
libc_missing_la_LIBADD = $(LTLIBOBJS)
if OS_WIN32
AM_CFLAGS = -DOS_WIN32
AM_CPPFLAGS = -DOS_WIN32
endif
# Not currently used. If added to AC_REPLACE_FUNCS then this line

View File

@ -2,13 +2,13 @@ SUBDIRS = .
pkglib_LTLIBRARIES = libgncqof-backend-qsf.la
AM_CFLAGS = \
AM_CPPFLAGS = \
-I.. -I../.. \
-I$(top_srcdir)/lib/libc \
-DLOCALE_DIR=\""$(datadir)/locale"\" \
${QOF_CFLAGS} \
${LIBXML2_CFLAGS} \
${GLIB_CFLAGS} \
-I$(top_srcdir)/lib/libc
${GLIB_CFLAGS}
libgncqof_backend_qsf_la_SOURCES = \
qsf-backend.c \

View File

@ -6,9 +6,9 @@ libgnc_qof_la_LIBADD= \
$(REGEX_LIBS) \
$(top_builddir)/lib/libc/libc-missing.la
AM_CFLAGS = \
$(GLIB_CFLAGS) \
-I$(top_srcdir)/lib/libc
AM_CPPFLAGS = \
-I$(top_srcdir)/lib/libc \
$(GLIB_CFLAGS)
libgnc_qof_la_SOURCES = \
gnc-date.c \

View File

@ -8,6 +8,6 @@ noinst_HEADERS = ${REALHDRS}
libgnc_stf_la_LIBADD = $(GOFFICE_LIBS)
AM_CFLAGS = $(GOFFICE_CFLAGS)
AM_CPPFLAGS = $(GOFFICE_CFLAGS)
EXTRA_DIST = $(REALSRCS) $(REALHDRS)

View File

@ -19,7 +19,7 @@ if OS_WIN32
bin_PROGRAMS = redirect
redirect_SOURCES = redirect.c
redirect_LDADD = $(GLIB_LIBS)
AM_CFLAGS = $(GLIB_CFLAGS)
AM_CPPFLAGS = $(GLIB_CFLAGS)
pkgdata_DATA = Greek-4-5.1.11.isl
else
EXTRA_DIST += redirect.c

View File

@ -2,7 +2,7 @@ SUBDIRS = . test
pkglib_LTLIBRARIES = libgncmod-app-utils.la
AM_CFLAGS = \
AM_CPPFLAGS = \
-I$(top_srcdir)/lib/libc \
-I${top_srcdir}/src \
-I${top_builddir}/src \
@ -10,9 +10,9 @@ AM_CFLAGS = \
-I${top_srcdir}/src/calculation \
-I${top_srcdir}/src/core-utils \
-I${top_srcdir}/src/engine \
${QOF_CFLAGS} \
${GUILE_INCS} \
${GLIB_CFLAGS} \
${QOF_CFLAGS} \
${GCONF_CFLAGS} \
${GTK_CFLAGS}

View File

@ -55,7 +55,7 @@ check_PROGRAMS = \
EXTRA_DIST = \
test-load-module
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/test-core \
-I${top_srcdir}/src/engine \
@ -63,7 +63,7 @@ AM_CFLAGS = \
-I${top_srcdir}/src/app-utils \
-I${top_srcdir}/src/gnc-module \
-I${top_srcdir}/src/core-utils \
${QOF_CFLAGS} \
${GUILE_INCS} \
${GLIB_CFLAGS} \
${QOF_CFLAGS} \
${GCONF_CFLAGS}

View File

@ -4,15 +4,15 @@ SUBDIRS = . test
lib_LTLIBRARIES = libgnc-backend-xml-utils.la
pkglib_LTLIBRARIES = libgncmod-backend-xml.la
AM_CFLAGS = \
AM_CPPFLAGS = \
-I.. -I../.. \
-DLOCALE_DIR=\""$(datadir)/locale"\" \
-I${top_srcdir}/src/backend \
-I${top_srcdir}/src/engine \
-I${top_srcdir}/src/core-utils\
-I${top_srcdir}/lib/libc\
${LIBXML2_CFLAGS} \
${QOF_CFLAGS} \
${LIBXML2_CFLAGS} \
${GLIB_CFLAGS} \
${GCONF_CFLAGS}

View File

@ -228,7 +228,7 @@ LDADD = ${top_builddir}/src/test-core/libgncmod-test.la \
${QOF_LIBS} \
${top_builddir}/lib/libc/libc-missing.la
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/lib/libc \
-I${top_srcdir}/src \
-I${top_srcdir}/src/core-utils \
@ -238,9 +238,9 @@ AM_CFLAGS = \
-I${top_srcdir}/src/engine/test-core \
-I${top_srcdir}/src/backend/file \
-I${top_srcdir}/src/backend/qsf \
${QOF_CFLAGS} \
${LIBXML2_CFLAGS} \
${GLIB_CFLAGS} \
${QOF_CFLAGS} \
${GUILE_INCS} \
${GCONF_CFLAGS}

View File

@ -2,14 +2,14 @@ SUBDIRS = . test
lib_LTLIBRARIES = libgnc-backend-postgres.la
AM_CFLAGS = \
AM_CPPFLAGS = \
-I.. -I../.. \
-I../../engine \
-I${srcdir}/../.. \
-I${top_srcdir}/src/backend \
-I${top_srcdir}/src/engine \
${PGSQL_CFLAGS} \
${QOF_CFLAGS} \
${PGSQL_CFLAGS} \
${GLIB_CFLAGS}
libgnc_backend_postgres_la_LDFLAGS = -module -avoid-version

View File

@ -61,7 +61,7 @@ test_escape_SOURCES = \
${top_srcdir}/src/backend/postgres/putil.c \
test-escape.c
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
${QOF_CFLAGS} \
-I${top_srcdir}/src/test-core \

View File

@ -1,9 +1,7 @@
# Order is important here.
SUBDIRS = . overrides test
AM_CFLAGS = -I${top_builddir} ${GLIB_CFLAGS} ${GNOME_CFLAGS} ${GTK_CFLAGS} \
${GUILE_INCS} \
${QOF_CFLAGS} \
AM_CPPFLAGS = -I${top_builddir} ${GLIB_CFLAGS} ${GNOME_CFLAGS} ${GTK_CFLAGS} \
-DPKGSYSCONFDIR=\"${GNC_CONFIGDIR}\" \
-DPKGDATADIR=\"${GNC_SHAREDIR}\" \
-DGNC_HELPDIR=\"${GNC_HELPDIR}\" \
@ -15,7 +13,9 @@ AM_CFLAGS = -I${top_builddir} ${GLIB_CFLAGS} ${GNOME_CFLAGS} ${GTK_CFLAGS} \
-I${top_srcdir}/src/engine \
-I${top_srcdir}/src/gnome \
-I${top_builddir}/src/gnome-utils \
-I${top_srcdir}/src/gnc-module
-I${top_srcdir}/src/gnc-module \
${QOF_CFLAGS} \
${GUILE_INCS}
bin_PROGRAMS = gnucash-bin
gnucash_bin_SOURCES = gnucash-bin.c

View File

@ -2,13 +2,13 @@ SUBDIRS = . sql test file
pkglib_LTLIBRARIES = libgncmod-business-core.la
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_builddir}/src \
-I${top_srcdir}/src/engine \
-I${top_srcdir}/src/gnc-module \
${GUILE_INCS} \
${QOF_CFLAGS} \
${GUILE_INCS} \
${GLIB_CFLAGS}
libgncmod_business_core_la_SOURCES = \

View File

@ -2,15 +2,15 @@ SUBDIRS = .
pkglib_LTLIBRARIES = libgncmod-business-backend-xml.la
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/backend \
-I${top_srcdir}/src/backend/file \
-I${top_srcdir}/src/engine \
-I${top_srcdir}/src/gnc-module \
-I${top_srcdir}/src/business/business-core \
${LIBXML2_CFLAGS} \
${QOF_CFLAGS} \
${LIBXML2_CFLAGS} \
${GLIB_CFLAGS}
libgncmod_business_backend_xml_la_SOURCES = \

View File

@ -1,12 +1,12 @@
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/gnc-module \
-I${top_srcdir}/src/test-core \
-I${top_srcdir}/src/engine \
-I${top_srcdir}/src/business/business-core \
${GUILE_INCS} \
${QOF_CFLAGS} \
${GUILE_INCS} \
${GLIB_CFLAGS}
LDADD = \

View File

@ -2,7 +2,7 @@ SUBDIRS = . glade schemas ui
pkglib_LTLIBRARIES = libgncmod-business-gnome.la
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_builddir}/src \
-I${top_srcdir}/src/core-utils \
@ -16,16 +16,16 @@ AM_CFLAGS = \
-I${top_srcdir}/src/business/business-core \
-I${top_srcdir}/src/business/business-ledger \
-I${top_srcdir}/src/business/dialog-tax-table \
-I${top_srcdir}/src/register/register-core \
-I${top_srcdir}/src/register/register-gnome \
-I${top_srcdir}/src/register/ledger-core \
${QOF_CFLAGS} \
${GNOME_CFLAGS} \
${GLADE_CFLAGS} \
${GTKHTML_CFLAGS} \
${GDK_PIXBUF_CFLAGS} \
${GLIB_CFLAGS} \
${GUILE_INCS} \
${QOF_CFLAGS} \
-I${top_srcdir}/src/register/register-core \
-I${top_srcdir}/src/register/register-gnome \
-I${top_srcdir}/src/register/ledger-core
${GUILE_INCS}
libgncmod_business_gnome_la_SOURCES = \
business-options-gnome.c \

View File

@ -32,7 +32,7 @@ libgnc_business_ledger_la_LIBADD = \
${QOF_LIBS} \
${GLIB_LIBS}
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src/business/business-core \
-I${top_srcdir}/src/business/business-utils \
-I${top_srcdir}/src/business/dialog-tax-table \
@ -43,9 +43,9 @@ AM_CFLAGS = \
-I${top_srcdir}/src/app-utils \
-I${top_srcdir}/src/gnome-utils \
-I${top_srcdir}/src/register/register-core \
${QOF_CFLAGS} \
${GUILE_INCS} \
${GLADE_CFLAGS} \
${QOF_CFLAGS} \
${GNOME_CFLAGS} \
${GLIB_CFLAGS}

View File

@ -1,15 +1,15 @@
pkglib_LTLIBRARIES = libgncmod-business-utils.la
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_builddir}/src \
-I${top_srcdir}/src/engine \
-I${top_srcdir}/src/gnc-module \
-I${top_srcdir}/src/app-utils \
-I${top_srcdir}/src/business/business-core \
${QOF_CFLAGS} \
${GUILE_INCS} \
${GLIB_CFLAGS} \
${QOF_CFLAGS} \
${GNOME_CFLAGS}
libgncmod_business_utils_la_SOURCES = \

View File

@ -1,6 +1,6 @@
pkglib_LTLIBRARIES = libgncmod-dialog-tax-table.la
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/core-utils \
-I${top_srcdir}/src/engine \
@ -8,12 +8,12 @@ AM_CFLAGS = \
-I${top_srcdir}/src/gnome-utils \
-I${top_srcdir}/src/app-utils \
-I${top_srcdir}/src/business/business-core \
${QOF_CFLAGS} \
${GNOME_CFLAGS} \
${GLADE_CFLAGS} \
${GTKHTML_CFLAGS} \
${GDK_PIXBUF_CFLAGS} \
${GLIB_CFLAGS} \
${QOF_CFLAGS} \
${GUILE_INCS}
libgncmod_dialog_tax_table_la_SOURCES = \

View File

@ -28,10 +28,10 @@ EXTRA_DIST = \
numeric_ops.c \
numeric_ops.h
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/lib/libc \
-I${top_srcdir}/src \
-I${top_srcdir}/src/gnc-module \
${GUILE_INCS} \
${QOF_CFLAGS} \
${GUILE_INCS} \
${GLIB_CFLAGS}

View File

@ -31,7 +31,7 @@ swig-core-utils.c: core-utils.i ${top_srcdir}/src/base-typemaps.i
-I${top_srcdir}/src -o $@ $<
endif
AM_CFLAGS = \
AM_CPPFLAGS = \
${GUILE_INCS} \
${GLIB_CFLAGS} \
${GCONF_CFLAGS} \

View File

@ -2,7 +2,7 @@ SUBDIRS = . test-core test
pkglib_LTLIBRARIES = libgncmod-engine.la
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/lib/libc \
-I${top_srcdir}/src/core-utils \
-I${top_srcdir}/src \

View File

@ -16,11 +16,11 @@ libgncmod_test_engine_la_LIBADD = \
noinst_HEADERS=test-engine-stuff.h test-engine-strings.h
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/gnc-module \
-I${top_srcdir}/src/test-core \
-I${top_srcdir}/src/engine \
${GLIB_CFLAGS} \
${QOF_CFLAGS} \
${GLIB_CFLAGS} \
${GUILE_INCS}

View File

@ -1,13 +1,13 @@
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir} \
-I${top_srcdir}/src \
-I${top_srcdir}/src/gnc-module \
-I${top_srcdir}/src/test-core \
-I${top_srcdir}/src/engine \
-I${top_srcdir}/src/engine/test-core \
${GUILE_INCS} \
${QOF_CFLAGS} \
${GUILE_INCS} \
${GLIB_CFLAGS}
LDADD = \

View File

@ -3,7 +3,7 @@
bin_PROGRAMS = hello hello2 fastcgi-hello hello3 gnc-server
AM_CFLAGS = \
AM_CPPFLAGS = \
-I../../engine -I${srcdir}/../../engine \
-I../../backend/xml -I${srcdir}/../../backend/xml \
${GLIB_CFLAGS}

View File

@ -1,10 +1,11 @@
SUBDIRS = . test
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/lib/libc \
-I${top_srcdir}/src \
-I${top_srcdir}/src/core-utils \
${GLIB_CFLAGS} ${GUILE_INCS}
${GLIB_CFLAGS} \
${GUILE_INCS}
lib_LTLIBRARIES = libgnc-module.la

View File

@ -2,7 +2,7 @@ SUBDIRS = mod-foo mod-bar mod-baz misc-mods
LDADD = ../libgnc-module.la ${GLIB_LIBS} ${GUILE_LIBS}
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/gnc-module \
${GUILE_INCS} \

View File

@ -1,4 +1,4 @@
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/gnc-module \
${GLIB_CFLAGS} \

View File

@ -1,4 +1,4 @@
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/gnc-module \
${GUILE_INCS} \

View File

@ -1,4 +1,4 @@
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/gnc-module \
-I${top_srcdir}/src/gnc-module/test/mod-foo \

View File

@ -1,4 +1,4 @@
AM_CFLAGS=\
AM_CPPFLAGS=\
-I${top_srcdir}/src \
-I${top_srcdir}/src/gnc-module \
${GUILE_INCS} \

View File

@ -1,6 +1,6 @@
pkglib_LTLIBRARIES = libgncmod-gnome-search.la
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/core-utils \
-I${top_srcdir}/src/engine \
@ -8,13 +8,13 @@ AM_CFLAGS = \
-I${top_srcdir}/src/gnome-utils \
-I${top_srcdir}/src/gnc-module \
-I${top_srcdir}/src/business/business-core \
${QOF_CFLAGS} \
${GUILE_INCS} \
${GTKHTML_CFLAGS} \
${GDK_PIXBUF_CFLAGS} \
${GLADE_CFLAGS} \
${GNOME_CFLAGS} \
${GLIB_CFLAGS} \
${QOF_CFLAGS}
${GLIB_CFLAGS}
libgncmod_gnome_search_la_SOURCES = \
gncmod-gnome-search.c \

View File

@ -4,7 +4,7 @@ pkglib_LTLIBRARIES = libgncmod-gnome-utils.la
# Note that src/gnome-utils CANNOT depend on src/gnome!
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src/core-utils \
-I${top_srcdir}/src/gnc-module \
-I${top_srcdir}/src/engine \
@ -219,7 +219,7 @@ EXTRA_DIST = \
${gncscm_DATA}
if !GTKHTML_USES_GTKPRINT
AM_CFLAGS += ${GNOME_PRINT_CFLAGS}
AM_CPPFLAGS += ${GNOME_PRINT_CFLAGS}
libgncmod_gnome_utils_la_LIBADD += ${GNOME_PRINT_LIBS}
endif

View File

@ -100,7 +100,7 @@ EXTRA_DIST = \
gnucash.desktop.in \
gnome.i
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_builddir}/src \
-I${top_srcdir}/src/core-utils \
@ -116,13 +116,13 @@ AM_CFLAGS = \
-I${top_srcdir}/src/report/report-system \
-I${top_srcdir}/src/report/report-gnome \
-I${top_srcdir}/lib/libc \
${QOF_CFLAGS} \
${GUILE_INCS} \
${GNOME_CFLAGS} \
${GDK_PIXBUF_CFLAGS} \
${GTKHTML_CFLAGS} \
${GLADE_CFLAGS} \
$(GLIB_CFLAGS) \
${QOF_CFLAGS}
$(GLIB_CFLAGS)
# We build this in an earlier directory.

View File

@ -58,7 +58,7 @@ glade_DATA = \
generic-import.glade \
import-provider-format.glade
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/core-utils \
-I${top_srcdir}/src/engine \
@ -66,12 +66,12 @@ AM_CFLAGS = \
-I${top_srcdir}/src/app-utils \
-I${top_srcdir}/src/gnome \
-I${top_srcdir}/src/gnome-utils \
${QOF_CFLAGS} \
${GNOME_CFLAGS} \
${GTKHTML_CFLAGS} \
${GDK_PIXBUF_CFLAGS} \
${GLADE_CFLAGS} \
${GUILE_INCS} \
${QOF_CFLAGS} \
${GLIB_CFLAGS}
EXTRA_DIST = \

View File

@ -2,17 +2,17 @@ SUBDIRS = . test
pkglib_LTLIBRARIES = libgncmod-binary-import.la
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src/gnc-module \
-I${top_srcdir}/src/engine \
-I${top_srcdir}/src/app-utils \
-I${top_srcdir}/src/gnome-utils \
-I${top_srcdir}/src \
-I${top_srcdir}/src/gnome \
${QOF_CFLAGS} \
${GUILE_INCS} \
${GLADE_CFLAGS} \
${GLIB_CFLAGS} \
${QOF_CFLAGS} \
${GNOME_CFLAGS}
#FIXME remove the following deps

View File

@ -7,4 +7,4 @@ test_link_module_LDADD=../libgncmod-binary-import.la
noinst_PROGRAMS = \
test-link-module
AM_CFLAGS = -I${top_srcdir}/src/test-core -I.. ${GLIB_CFLAGS}
AM_CPPFLAGS = -I${top_srcdir}/src/test-core -I.. ${GLIB_CFLAGS}

View File

@ -26,11 +26,11 @@ libgncmod_csv_la_LIBADD = \
${top_builddir}/src/gnc-module/libgnc-module.la \
${top_builddir}/lib/stf/libgnc-stf.la \
${top_builddir}/lib/libc/libc-missing.la \
${GOFFICE_LIBS} \
${QOF_LIBS} \
${GOFFICE_LIBS} \
${GLIB_LIBS}
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/core-utils \
-I${top_srcdir}/src/engine \
@ -41,11 +41,11 @@ AM_CFLAGS = \
-I${top_srcdir}/src/import-export \
-I${top_srcdir}/lib/libc \
-I${top_srcdir}/lib \
${QOF_CFLAGS} \
${GNOME_CFLAGS} \
${GTKHTML_CFLAGS} \
${GLADE_CFLAGS} \
${GUILE_INCS} \
${QOF_CFLAGS} \
${GLIB_CFLAGS} \
$(GOFFICE_CFLAGS)

View File

@ -58,7 +58,7 @@ libgncmod_hbci_la_LIBADD = \
${GLIB_LIBS} \
${AQBANKING_LIBS}
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/core-utils \
-I${top_srcdir}/src/engine \
@ -71,11 +71,11 @@ AM_CFLAGS = \
-I${top_srcdir}/src/register/register-core \
-I${top_srcdir}/src/register/register-gnome \
-I${top_srcdir}/src/register/ledger-core \
${QOF_CFLAGS} \
${GUILE_INCS} \
${GNOME_CFLAGS} \
${GTKHTML_CFLAGS} \
${GLADE_CFLAGS} \
${QOF_CFLAGS} \
${GLIB_CFLAGS} \
${AQBANKING_CFLAGS}

View File

@ -22,7 +22,7 @@ libgncmod_log_replay_la_LIBADD = \
${GTK_LIBS} \
${GLIB_LIBS} ${QOF_LIBS}
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/core-utils \
-I${top_srcdir}/src/engine \
@ -31,11 +31,11 @@ AM_CFLAGS = \
-I${top_srcdir}/src/gnome \
-I${top_srcdir}/src/gnome-utils \
-I${top_srcdir}/src/import-export \
${QOF_CFLAGS} \
${GNOME_CFLAGS} \
${GTKHTML_CFLAGS} \
${GLADE_CFLAGS} \
${GUILE_INCS} \
${QOF_CFLAGS} \
${GLIB_CFLAGS}
uidir = $(GNC_UI_DIR)

View File

@ -24,7 +24,7 @@ libgncmod_ofx_la_LIBADD = \
${GLIB_LIBS} \
${LIBOFX_LIBS}
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/core-utils \
-I${top_srcdir}/src/engine \
@ -33,11 +33,11 @@ AM_CFLAGS = \
-I${top_srcdir}/src/gnome \
-I${top_srcdir}/src/gnome-utils \
-I${top_srcdir}/src/import-export \
${QOF_CFLAGS} \
${GNOME_CFLAGS} \
${GTKHTML_CFLAGS} \
${GLADE_CFLAGS} \
${GUILE_INCS} \
${QOF_CFLAGS} \
${GLIB_CFLAGS} \
${LIBOFX_CFLAGS}

View File

@ -1,6 +1,6 @@
TESTS=test-link
AM_CFLAGS=${LIBOFX_CFLAGS}
AM_CPPFLAGS=${LIBOFX_CFLAGS}
check_PROGRAMS=test-link
test_link_SOURCES=test-link.c

View File

@ -51,7 +51,7 @@ gncscm_DATA = \
gladedir = ${GNC_GLADE_DIR}
glade_DATA = qif.glade
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_builddir}/src \
-I${top_srcdir}/src/core-utils \
@ -61,12 +61,12 @@ AM_CFLAGS = \
-I${top_srcdir}/src/gnome \
-I${top_srcdir}/src/gnome-utils \
-I${top_srcdir}/src/import-export \
${QOF_CFLAGS} \
${GUILE_INCS} \
${GLIB_CFLAGS} \
${GLADE_CFLAGS} \
${GNOME_CFLAGS} \
${GDK_PIXBUF_CFLAGS} \
${QOF_CFLAGS} \
${GTKHTML_CFLAGS}
uidir = $(GNC_UI_DIR)

View File

@ -2,7 +2,7 @@ SUBDIRS = . test
pkglib_LTLIBRARIES = libgncmod-qifiocore.la
AM_CFLAGS = -I${top_srcdir}/src/gnc-module ${GUILE_INCS} ${GLIB_CFLAGS}
AM_CPPFLAGS = -I${top_srcdir}/src/gnc-module ${GUILE_INCS} ${GLIB_CFLAGS}
libgncmod_qifiocore_la_SOURCES = gncmod-qifiocore.c

View File

@ -1,6 +1,6 @@
LDADD=${top_builddir}/src/gnc-module/libgnc-module.la ${GLIB_LIBS}
AM_CFLAGS = -I${top_srcdir}/src/gnc-module ${GUILE_INCS} ${GLIB_CFLAGS}
AM_CPPFLAGS = -I${top_srcdir}/src/gnc-module ${GUILE_INCS} ${GLIB_CFLAGS}
TESTS=test-load-module test-parser test-reader test-file-formats \
test-import-phase-1

View File

@ -26,15 +26,15 @@ libgncmod_qif_la_LIBADD = \
${REGEX_LIBS} \
${GLIB_LIBS}
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/engine \
-I${top_srcdir}/src/gnc-module \
-I${top_srcdir}/src/app-utils \
-I${top_srcdir}/src/import-export \
${QOF_CFLAGS} \
${GLIB_CFLAGS} \
${GUILE_INCS} \
${QOF_CFLAGS}
${GUILE_INCS}
INCLUDES = -DG_LOG_DOMAIN=\"gnc.import.qif\"

View File

@ -1,4 +1,4 @@
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/gnc-module \
-I${top_srcdir}/src/test-core \
@ -6,8 +6,8 @@ AM_CFLAGS = \
-I${top_srcdir}/src/app-utils \
-I${top_srcdir}/src/import-export \
-I${top_srcdir}/src/import-export/qif \
${GUILE_INCS} \
${QOF_CFLAGS} \
${GUILE_INCS} \
${GLIB_CFLAGS}
LDADD = \

View File

@ -1,12 +1,12 @@
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/gnc-module \
-I${top_srcdir}/src/test-core \
-I${top_srcdir}/src/engine \
-I${top_srcdir}/src/app-utils \
-I${top_srcdir}/src/import-export \
${GUILE_INCS} \
${QOF_CFLAGS} \
${GUILE_INCS} \
${GLIB_CFLAGS}
LDADD = \

View File

@ -40,7 +40,7 @@ libgncmod_ledger_core_la_LIBADD = \
${QOF_LIBS} \
${GLIB_LIBS}
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/engine \
-I${top_srcdir}/src/gnc-module \
@ -49,10 +49,10 @@ AM_CFLAGS = \
-I${top_srcdir}/src/gnome-utils \
-I${top_srcdir}/src/register/register-core \
-I${top_srcdir}/src/register/register-gnome \
${QOF_CFLAGS} \
${GUILE_INCS} \
${GLADE_CFLAGS} \
${GNOME_CFLAGS} \
${QOF_CFLAGS} \
${GLIB_CFLAGS}

View File

@ -5,4 +5,4 @@ check_PROGRAMS = test-link-module
test_link_module_SOURCES=test-link-module.c
test_link_module_LDADD=../libgncmod-ledger-core.la
AM_CFLAGS = -I${top_srcdir}/src/test-core -I.. ${GLIB_CFLAGS}
AM_CPPFLAGS = -I${top_srcdir}/src/test-core -I.. ${GLIB_CFLAGS}

View File

@ -51,16 +51,16 @@ gncinclude_HEADERS = \
table-layout.h \
table-model.h
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/engine \
-I${top_srcdir}/src/app-utils \
-I${top_srcdir}/src/gnc-module \
-I${top_srcdir}/src/gnome-utils \
${QOF_CFLAGS} \
${GUILE_INCS} \
${GLADE_CFLAGS} \
${GNOME_CFLAGS} \
${QOF_CFLAGS} \
${GLIB_CFLAGS}
CLEANFILES = $(BUILT_SOURCES)

View File

@ -19,4 +19,4 @@ test_link_module_LDADD= \
#EXTRA_DIST = test-load-module
AM_CFLAGS = ${GLIB_CFLAGS} -I${top_srcdir}/src/test-core -I..
AM_CPPFLAGS = ${GLIB_CFLAGS} -I${top_srcdir}/src/test-core -I..

View File

@ -50,7 +50,7 @@ noinst_HEADERS = \
quickfillcell-gnome.h \
table-gnome.h
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/core-utils \
-I${top_srcdir}/src/engine \
@ -59,11 +59,11 @@ AM_CFLAGS = \
-I${top_srcdir}/src/gnome-utils \
-I${top_srcdir}/src/register/ledger-core \
-I${top_srcdir}/src/register/register-core \
${QOF_CFLAGS} \
${GUILE_INCS} \
${GLADE_CFLAGS} \
${GLIB_CFLAGS} \
${GTK_XIM_FLAGS} \
${QOF_CFLAGS} \
${GNOME_CFLAGS}
INCLUDES = -DG_LOG_DOMAIN=\"gnc.register.gnome\"

View File

@ -19,4 +19,4 @@ test_link_module_LDADD = \
#EXTRA_DIST = test-load-module
AM_CFLAGS = -I${top_srcdir}/src/test-core -I.. ${GLIB_CFLAGS}
AM_CPPFLAGS = -I${top_srcdir}/src/test-core -I.. ${GLIB_CFLAGS}

View File

@ -13,7 +13,7 @@ libgncmod_locale_reports_us_la_LIBADD = \
${GLIB_LIBS}
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/gnc-module \
${GUILE_INCS} ${GLIB_CFLAGS}

View File

@ -2,7 +2,7 @@ SUBDIRS = . test
pkglib_LTLIBRARIES = libgncmod-report-gnome.la
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_builddir}/src \
-I${top_srcdir}/src/core-utils \
@ -12,11 +12,11 @@ AM_CFLAGS = \
-I${top_srcdir}/src/gnome-utils \
-I${top_srcdir}/src/gnome \
-I${top_srcdir}/src/report/report-system \
${QOF_CFLAGS} \
${GLADE_CFLAGS} \
${GUILE_INCS} \
${GTKHTML_CFLAGS} \
${GNOME_CFLAGS} \
${QOF_CFLAGS} \
${GLIB_CFLAGS}
libgncmod_report_gnome_la_SOURCES = \

View File

@ -25,7 +25,7 @@ swig-report-system.c: report-system.i ${top_srcdir}/src/base-typemaps.i
-I${top_srcdir}/src -o $@ $<
endif
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/gnc-module \
-I${top_srcdir}/src/app-utils \

View File

@ -12,7 +12,7 @@ libgncmod_standard_reports_la_LIBADD = \
${GUILE_LIBS} \
${GLIB_LIBS}
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/gnc-module \
${GUILE_INCS} ${GLIB_CFLAGS}

View File

@ -20,16 +20,16 @@ libgncmod_stylesheets_la_LIBADD = \
${GUILE_LIBS} \
${GLIB_LIBS}
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/engine \
-I${top_srcdir}/src/gnc-module \
-I${top_srcdir}/src/gnome \
-I${top_srcdir}/src/gnome-utils \
-I${top_srcdir}/src/report/report-gnome \
${QOF_CFLAGS} \
${GUILE_INCS} \
${GLIB_CFLAGS} \
${QOF_CFLAGS} \
${GNOME_CFLAGS}
gncscmmoddir = ${GNC_SHAREDIR}/guile-modules/gnucash/report/

View File

@ -11,7 +11,7 @@ libgncmod_utility_reports_la_LIBADD = \
libgncmod_utility_reports_la_LDFLAGS = -module -avoid-version
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/gnc-module \
${GUILE_INCS} ${GLIB_CFLAGS}

View File

@ -11,7 +11,7 @@ libgncmod_tax_us_la_LIBADD = \
${GUILE_LIBS} \
${GLIB_LIBS}
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/gnc-module \
${GLIB_CFLAGS} ${GUILE_INCS}

View File

@ -8,7 +8,7 @@ libgncmod_test_la_LIBADD = \
noinst_HEADERS=test-stuff.h
AM_CFLAGS = \
AM_CPPFLAGS = \
-I${top_srcdir}/src \
-I${top_srcdir}/src/gnc-module \
${GLIB_CFLAGS} \