modified Makefile.am's to handle each src dir independently

git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@4298 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
Scott R Charlton 2010-04-23 05:21:21 +00:00
parent 2c99533400
commit f5d7409793
2 changed files with 25 additions and 130 deletions

View File

@ -8,7 +8,13 @@ AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wall -Werror foreign]) AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_CONFIG_SRCDIR([src/IPhreeqc.cpp]) AC_CONFIG_SRCDIR([src/IPhreeqc.cpp])
AC_DEFINE(SWIG_SHARED_OBJ)
AC_DEFINE(PHREEQC_CPP)
AC_DEFINE(PHREEQC_CLASS)
AC_DEFINE(USE_PHRQ_ALLOC)
# Checks for programs. # Checks for programs.
AC_PROG_CC
AC_PROG_CXX AC_PROG_CXX
# Check if the fortran interface should be included # Check if the fortran interface should be included
@ -27,6 +33,10 @@ if test "X$IPQ_FORTRAN" = "Xyes"; then
AC_FC_MAIN AC_FC_MAIN
AC_SUBST(F77, $FC) AC_SUBST(F77, $FC)
AC_SUBST(FFLAGS, $FCFLAGS) AC_SUBST(FFLAGS, $FCFLAGS)
#{{
## AC_SUBST(COMPILE, $CXXCOMPILE)
## AC_SUBST(LTCOMPILE, $LTCXXCOMPILE)
#}}
else else
echo "no" echo "no"
fi fi
@ -44,6 +54,6 @@ AC_PROG_LIBTOOL
# Checks for library functions. # Checks for library functions.
AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile tests/phreeqc.dat tests/ex1]) AC_CONFIG_FILES([Makefile src/Makefile src/phreeqcpp/Makefile src/phreeqcpp/phreeqc/Makefile tests/Makefile tests/phreeqc.dat tests/ex1])
AC_OUTPUT AC_OUTPUT

View File

@ -1,7 +1,15 @@
AM_CPPFLAGS=-I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/src/phreeqcpp -I$(top_srcdir)/src/phreeqcpp/cxx -DSWIG_SHARED_OBJ -DPHREEQC_CPP -DPHREEQC_CLASS -DUSE_PHRQ_ALLOC #AM_CPPFLAGS=-I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/src/phreeqcpp -I$(top_srcdir)/src/phreeqcpp/phreeqc
AM_CPPFLAGS=-I$(top_srcdir)/include -I$(top_srcdir)/src/phreeqcpp -I$(top_srcdir)/src/phreeqcpp/phreeqc
SUBDIRS=phreeqcpp
lib_LTLIBRARIES=libiphreeqc.la lib_LTLIBRARIES=libiphreeqc.la
##{{
##libiphreeqc_la_CPPFLAGS=-I$(top_srcdir)/include -I$(top_srcdir)/src/phreeqcpp -I$(top_srcdir)/src/phreeqcpp/phreeqc
##libiphreeqc_la_CPPFLAGS=-I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/src/phreeqcpp -I$(top_srcdir)/src/phreeqcpp/phreeqc
##}}
# library sources # library sources
libiphreeqc_la_SOURCES=\ libiphreeqc_la_SOURCES=\
CVar.hxx\ CVar.hxx\
@ -11,132 +19,11 @@ libiphreeqc_la_SOURCES=\
IPhreeqcLib.cpp\ IPhreeqcLib.cpp\
SelectedOutput.cpp\ SelectedOutput.cpp\
SelectedOutput.hxx\ SelectedOutput.hxx\
Var.c\ Var.c
phreeqcpp/char_star.h\
phreeqcpp/cxxKinetics.cxx\ libiphreeqc_la_LIBADD=\
phreeqcpp/cxxKinetics.h\ phreeqcpp/libphreeqcpp.la\
phreeqcpp/cxxMix.cxx\ phreeqcpp/phreeqc/libphreeqc.la
phreeqcpp/cxxMix.h\
phreeqcpp/Dictionary.h\
phreeqcpp/dumper.cpp\
phreeqcpp/dumper.h\
phreeqcpp/Exchange.cxx\
phreeqcpp/Exchange.h\
phreeqcpp/ExchComp.cxx\
phreeqcpp/ExchComp.h\
phreeqcpp/GasPhase.cxx\
phreeqcpp/GasPhase.h\
phreeqcpp/ISolution.cxx\
phreeqcpp/ISolution.h\
phreeqcpp/ISolutionComp.cxx\
phreeqcpp/ISolutionComp.h\
phreeqcpp/KineticsComp.cxx\
phreeqcpp/KineticsComp.h\
phreeqcpp/NameDouble.cxx\
phreeqcpp/NameDouble.h\
phreeqcpp/NumKeyword.cxx\
phreeqcpp/NumKeyword.h\
phreeqcpp/Parser.cxx\
phreeqcpp/Parser.h\
phreeqcpp/Phreeqc.cpp\
phreeqcpp/Phreeqc.h\
phreeqcpp/Phreeqc_class.h\
phreeqcpp/PPassemblage.cxx\
phreeqcpp/PPassemblage.h\
phreeqcpp/PPassemblageComp.cxx\
phreeqcpp/PPassemblageComp.h\
phreeqcpp/Reaction.cxx\
phreeqcpp/Reaction.h\
phreeqcpp/ReadClass.cxx\
phreeqcpp/runner.cpp\
phreeqcpp/runner.h\
phreeqcpp/SAXPhreeqc.h\
phreeqcpp/SaxPhreeqcHandlers.h\
phreeqcpp/Solution.cxx\
phreeqcpp/Solution.h\
phreeqcpp/SolutionIsotope.cxx\
phreeqcpp/SolutionIsotope.h\
phreeqcpp/SolutionIsotopeList.cxx\
phreeqcpp/SolutionIsotopeList.h\
phreeqcpp/SSassemblage.cxx\
phreeqcpp/SSassemblage.h\
phreeqcpp/SSassemblageSS.cxx\
phreeqcpp/SSassemblageSS.h\
phreeqcpp/StorageBin.cxx\
phreeqcpp/StorageBin.h\
phreeqcpp/StorageBinList.cpp\
phreeqcpp/StorageBinList.h\
phreeqcpp/Surface.cxx\
phreeqcpp/Surface.h\
phreeqcpp/SurfaceCharge.cxx\
phreeqcpp/SurfaceCharge.h\
phreeqcpp/SurfaceComp.cxx\
phreeqcpp/SurfaceComp.h\
phreeqcpp/System.cxx\
phreeqcpp/System.h\
phreeqcpp/Temperature.cxx\
phreeqcpp/Temperature.h\
phreeqcpp/Utils.cxx\
phreeqcpp/Utils.h\
phreeqcpp/cxx/advection.cxx\
phreeqcpp/cxx/basic.cxx\
phreeqcpp/cxx/basic.h\
phreeqcpp/cxx/basicsubs.cxx\
phreeqcpp/cxx/cl1.cxx\
phreeqcpp/cxx/cvdense.cxx\
phreeqcpp/cxx/cvdense.h\
phreeqcpp/cxx/cvode.cxx\
phreeqcpp/cxx/cvode.h\
phreeqcpp/cxx/dense.cxx\
phreeqcpp/cxx/dense.h\
phreeqcpp/cxx/dw.cxx\
phreeqcpp/cxx/global.h\
phreeqcpp/cxx/global_structures.h\
phreeqcpp/cxx/input.cxx\
phreeqcpp/cxx/input.h\
phreeqcpp/cxx/integrate.cxx\
phreeqcpp/cxx/inverse.cxx\
phreeqcpp/cxx/isotopes.cxx\
phreeqcpp/cxx/kinetics.cxx\
phreeqcpp/cxx/kinetics.h\
phreeqcpp/cxx/mainsubs.cxx\
phreeqcpp/cxx/model.cxx\
phreeqcpp/cxx/nvector.cxx\
phreeqcpp/cxx/nvector.h\
phreeqcpp/cxx/nvector_serial.cxx\
phreeqcpp/cxx/nvector_serial.h\
phreeqcpp/cxx/output.cxx\
phreeqcpp/cxx/output.h\
phreeqcpp/cxx/p2c.h\
phreeqcpp/cxx/p2clib.cxx\
phreeqcpp/cxx/parse.cxx\
phreeqcpp/cxx/phqalloc.cxx\
phreeqcpp/cxx/phqalloc.h\
phreeqcpp/cxx/phreeqc_files.cxx\
phreeqcpp/cxx/phrqproto.h\
phreeqcpp/cxx/phrqtype.h\
phreeqcpp/cxx/pitzer.cxx\
phreeqcpp/cxx/pitzer.h\
phreeqcpp/cxx/pitzer_structures.cxx\
phreeqcpp/cxx/pitzer_structures.h\
phreeqcpp/cxx/prep.cxx\
phreeqcpp/cxx/print.cxx\
phreeqcpp/cxx/read.cxx\
phreeqcpp/cxx/readtr.cxx\
phreeqcpp/cxx/sit.cxx\
phreeqcpp/cxx/smalldense.cxx\
phreeqcpp/cxx/smalldense.h\
phreeqcpp/cxx/spread.cxx\
phreeqcpp/cxx/step.cxx\
phreeqcpp/cxx/structures.cxx\
phreeqcpp/cxx/sundialsmath.cxx\
phreeqcpp/cxx/sundialsmath.h\
phreeqcpp/cxx/sundialstypes.h\
phreeqcpp/cxx/tally.cxx\
phreeqcpp/cxx/tidy.cxx\
phreeqcpp/cxx/transport.cxx\
phreeqcpp/cxx/utilities.cxx
include_HEADERS=\ include_HEADERS=\
$(top_srcdir)/include/IPhreeqc.h\ $(top_srcdir)/include/IPhreeqc.h\
@ -150,8 +37,6 @@ if BUILD_FORTRAN
libiphreeqc_la_SOURCES+=\ libiphreeqc_la_SOURCES+=\
fwrap.h\ fwrap.h\
fwrap.cpp\ fwrap.cpp\
fwrap2.cpp\
fwrap3.cpp\
IPhreeqcF.f IPhreeqcF.f
include_HEADERS+=\ include_HEADERS+=\