swig/Source/Makefile.am
William S Fulton 5afe8316ab Multiple build directories fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4731 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-04-28 22:51:15 +00:00

102 lines
2.6 KiB
Makefile

## Process this file with automake to produce Makefile.in
# subdir-objects generates object files using the directory structure of the source files.
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$(BUILD_SOURCE_DIR)/Include \
-I$(BUILD_SOURCE_DIR)/CParse \
-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$(BUILD_SOURCE_DIR)/Include \
-I$(SOURCE_DIR)/Include \
-I$(SOURCE_DIR)/DOH \
-I$(SOURCE_DIR)/Preprocessor \
-I$(SOURCE_DIR)/Swig \
-I$(SOURCE_DIR)/Modules \
$(SWIG_CXX_DEFS)
AM_YFLAGS = -d
BUILT_SOURCES = CParse/parser.h
eswig_SOURCES = CParse/cscanner.c \
CParse/parser.y \
CParse/templ.c \
CParse/util.c \
DOH/base.c \
DOH/file.c \
DOH/fio.c \
DOH/hash.c \
DOH/list.c \
DOH/memory.c \
DOH/string.c \
DOH/void.c \
Modules/allocate.cxx \
Modules/browser.cxx \
Modules/chicken.cxx \
Modules/contract.cxx \
Modules/csharp.cxx \
Modules/emit.cxx \
Modules/guile.cxx \
Modules/java.cxx \
Modules/lang.cxx \
Modules/main.cxx \
Modules/module.cxx \
Modules/mzscheme.cxx \
Modules/ocaml.cxx \
Modules/overload.cxx \
Modules/perl5.cxx \
Modules/php4.cxx \
Modules/pike.cxx \
Modules/python.cxx \
Modules/ruby.cxx \
Modules/s-exp.cxx \
Modules/swigmain.cxx \
Modules/tcl8.cxx \
Modules/typepass.cxx \
Modules/xml.cxx \
Preprocessor/cpp.c \
Preprocessor/expr.c \
Swig/cwrap.c \
Swig/error.c \
Swig/fragment.c \
Swig/getopt.c \
Swig/include.c \
Swig/misc.c \
Swig/naming.c \
Swig/parms.c \
Swig/scanner.c \
Swig/stype.c \
Swig/symbol.c \
Swig/tree.c \
Swig/typeobj.c \
Swig/typemap.c \
Swig/typesys.c \
Swig/warn.c \
Swig/wrapfunc.c
bin_PROGRAMS = eswig
eswig_LDADD = @SWIGLIBS@
# Override the link stage to avoid using Libtool
CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
# The executable is copied to the root directory for installation and running the test-suite.
# This occurs on each invocation of make and is a step towards providing support for multiple
# build directories.
all-local: eswig@EXEEXT@
cp eswig@EXEEXT@ ../swig@release_suffix@@EXEEXT@
clean-local:
rm -f ../swig@release_suffix@@EXEEXT@