From 10d2f46a7f0515d3591b2bb05442fe4d04d003ef Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 1 Apr 2003 11:26:17 +0000 Subject: [PATCH] Fix when configuring in a directory other than the root directory. Multiple build directories for building the executable now possible. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4646 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Makefile.am | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Makefile.am b/Source/Makefile.am index 5347ae264..d2d812877 100644 --- a/Source/Makefile.am +++ b/Source/Makefile.am @@ -4,19 +4,22 @@ AUTOMAKE_OPTIONS = foreign nostdinc subdir-objects 1.7.2 SOURCE_DIR=$(top_srcdir)/Source +BUILD_SOURCE_DIR=$(top_builddir)/Source SWIG_CXX_DEFS = -DSWIG_LIB=\"$(swig_lib)\" \ -DLIBDIR=\"$(libdir)\" \ -DRELEASE_SUFFIX=\"$(release_suffix)\" @SWILL@ -AM_CFLAGS = -I$(SOURCE_DIR)/Include \ +AM_CFLAGS = -I$(BUILD_SOURCE_DIR)/Include \ + -I$(SOURCE_DIR)/Include \ -I$(SOURCE_DIR)/DOH \ -I$(SOURCE_DIR)/CParse \ -I$(SOURCE_DIR)/Preprocessor \ -I$(SOURCE_DIR)/Swig \ -I$(SOURCE_DIR)/Modules -AM_CXXFLAGS = -I$(SOURCE_DIR)/Include \ +AM_CXXFLAGS = -I$(BUILD_SOURCE_DIR)/Include \ + -I$(SOURCE_DIR)/Include \ -I$(SOURCE_DIR)/DOH \ -I$(SOURCE_DIR)/Preprocessor \ -I$(SOURCE_DIR)/Swig \