summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-01-25 16:48:36 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-01-25 16:48:36 -0400
commitf6cdbfd02bc3363913daf382c7af3771fc23c21f (patch)
tree82359f11819c5580c41c43103aad58dd907a5634
parent878e5db80679ea82f8248bc2f4961dd31a46d4b2 (diff)
downloadfork-ledger-f6cdbfd02bc3363913daf382c7af3771fc23c21f.tar.gz
fork-ledger-f6cdbfd02bc3363913daf382c7af3771fc23c21f.tar.bz2
fork-ledger-f6cdbfd02bc3363913daf382c7af3771fc23c21f.zip
Missed a -I needed for building in a separate output tree from the source.
-rw-r--r--Makefile.am5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index df89eff0..22b966f1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -227,6 +227,7 @@ all_sources = $(libledger_util_la_SOURCES) \
$(libledger_extra_la_SOURCES) \
$(libledger_python_la_SOURCES) \
python/pyledger.cc
+
all_files = $(all_sources) $(pkginclude_HEADERS)
TAGS: $(all_sources)
@@ -295,7 +296,7 @@ if HAVE_GDTOA
ledger.so: $(ledger_so_SOURCES) $(ledger_so_DEPENDENCIES)
BUILD_DIR=`cd $(top_builddir); pwd`; \
(cd $(srcdir); \
- CFLAGS="$(CPPFLAGS) -I$(srcdir) $(libledger_python_la_CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)" \
+ CFLAGS="$(CPPFLAGS) -I$(srcdir) -I$$BUILD_DIR -I$$BUILD_DIR/lib/gdtoa $(libledger_python_la_CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)" \
LDFLAGS="$(LDFLAGS) -L$$BUILD_DIR -L$$BUILD_DIR/.libs -L$$BUILD_DIR/lib/gdtoa -L$$BUILD_DIR/lib/gdtoa/.libs" \
ARCHFLAGS="$(ARCHFLAGS)" PYLIBS="$(PYLIBS)" \
$(PYTHON) python/setup.py build \
@@ -304,7 +305,7 @@ else
ledger.so: $(ledger_so_SOURCES) $(ledger_so_DEPENDENCIES)
BUILD_DIR=`cd $(top_builddir); pwd`; \
(cd $(srcdir); \
- CFLAGS="$(CPPFLAGS) -I$(srcdir) $(libledger_python_la_CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)" \
+ CFLAGS="$(CPPFLAGS) -I$(srcdir) -I$$BUILD_DIR -I$$BUILD_DIR/lib/gdtoa $(libledger_python_la_CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)" \
LDFLAGS="$(LDFLAGS) -L$$BUILD_DIR -L$$BUILD_DIR/.libs" \
ARCHFLAGS="$(ARCHFLAGS)" PYLIBS="$(PYLIBS)" \
$(PYTHON) python/setup.py build \