Moved the external libraries to separate library files so that libcantera.a just contains its own namespace externals. Fixed several errors in the equilibrium program that occurred during the port. (int to size_t issues). Moved some equilibrium program headers to the include file system, so that it can link with equilibrium program. Worked on Cantera.mak. Needs more work. Fixed an issue with the Residual virtual base classes within numerics. They didn't inherit due to int to size_t migration. This caused numerous test problems to fail (issue with backwards compatibility - do we want it and how much do we want?). Added csvdiff back so that it's available for shell environment runtests.
109 lines
3.8 KiB
Makefile
109 lines
3.8 KiB
Makefile
###############################################################################
|
|
# Include Snippet for Makefiles
|
|
#
|
|
# To create Cantera C++ applications from the install environment
|
|
# include this file into your Makefile environment by putting
|
|
# the line "include Cantera.mak" in your Makefile.
|
|
#
|
|
# Main Variables:
|
|
#
|
|
# CANTERA_INCLUDES = Variable containing the include path
|
|
# CANTERA_LIBS = List of libraries to include on the link line
|
|
#
|
|
# CANTERA_FORTRAN_LIBS = list of libraries to link for Fortran programs
|
|
# CANTERA_FORTRAN_MODS = Directory containing the F90 .mod files
|
|
#
|
|
|
|
CANTERA_VERSION=@cantera_version@
|
|
|
|
###############################################################################
|
|
# CANTERA CORE
|
|
###############################################################################
|
|
|
|
# The directory where Cantera include files may be found.
|
|
# Include files in application programs should start with:
|
|
# #include "cantera/thermo.h"
|
|
# #include "cantera/kernel/HMWSoln.h"
|
|
|
|
CANTERA_CORE_INCLUDES=-I@ct_incroot@
|
|
|
|
# Required Cantera libraries
|
|
CANTERA_CORE_LIBS=@mak_threadflags@ -L@ct_libdir@ -lcantera -lctmath -lexecstream
|
|
|
|
CANTERA_CORE_LIBS_DEP = @ct_libdir@/libcantera.a
|
|
|
|
CANTERA_CORE_FTN=-L@ct_libdir@ -lcantera_fortran -lcantera
|
|
|
|
CANTERA_FORTRAN_MODS=@ct_incroot@/cantera
|
|
|
|
CANTERA_FORTRAN_SYSLIBS=@mak_fort_threadflags@ -lstdc++
|
|
|
|
###############################################################################
|
|
# BOOST
|
|
###############################################################################
|
|
|
|
CANTERA_BOOST_INCLUDES=@mak_boost_include@
|
|
CANTERA_BOOST_LIBS=@mak_boost_libdir@ @mak_boost_libs@
|
|
|
|
###############################################################################
|
|
# CVODE/SUNDIALS LINKAGE
|
|
###############################################################################
|
|
|
|
CANTERA_SUNDIALS_INCLUDE=@mak_sundials_include@
|
|
CANTERA_SUNDIALS_LIBS=@mak_sundials_libdir@ @mak_sundials_libs@
|
|
|
|
###############################################################################
|
|
# BLAS LAPACK LINKAGE
|
|
###############################################################################
|
|
|
|
CANTERA_have_blas_lapack_dir=@mak_have_blas_lapack_dir@
|
|
|
|
ifeq ($(CANTERA_have_blas_lapack_dir), 1)
|
|
CANTERA_BLAS_LAPACK_LIBS=-L@blas_lapack_dir@
|
|
else
|
|
CANTERA_BLAS_LAPACK_LIBS=@mak_blas_lapack_libs@
|
|
endif
|
|
|
|
###############################################################################
|
|
# F2C USAGE
|
|
###############################################################################
|
|
|
|
CANTERA_mak_have_f2c_lib=@mak_have_f2c_lib@
|
|
|
|
ifeq ($(CANTERA_mak_have_f2c_lib), 1)
|
|
CANTERA_F2C_LIBS= -lctf2c
|
|
else
|
|
CANTERA_F2C_LIBS=
|
|
endif
|
|
|
|
|
|
###############################################################################
|
|
# COMBINATIONS OF INCLUDES AND LIBS
|
|
###############################################################################
|
|
|
|
CANTERA_INCLUDES=$(CANTERA_CORE_INCLUDES) $(CANTERA_SUNDIALS_INCLUDE) \
|
|
$(CANTERA_BOOST_INCLUDES)
|
|
|
|
CANTERA_TOTAL_INCLUDES = $(CANTERA_INCLUDES)
|
|
|
|
# Add this into the compilation environment to identify the version number
|
|
CANTERA_DEFINES = -DCANTERA_VERSION=@cantera_version@
|
|
|
|
CANTERA_LIBS=$(CANTERA_CORE_LIBS) $(CANTERA_SUNDIALS_LIBS) \
|
|
$(CANTERA_BLAS_LAPACK_LIBS) $(CANTERA_BOOST_LIBS) \
|
|
$(CANTERA_F2C_LIBS)
|
|
|
|
CANTERA_TOTAL_LIBS=$(CANTERA_LIBS)
|
|
|
|
CANTERA_TOTAL_LIBS_DEP= $(CANTERA_CORE_LIBS_DEP) \
|
|
$(CANTERA_SUNDIALS_LIBS_DEP) \
|
|
$(CANTERA_BLAS_LAPACK_LIBS_DEP)
|
|
|
|
|
|
CANTERA_FORTRAN_LIBS=$(CANTERA_CORE_FTN) $(CANTERA_SUNDIALS_LIBS) \
|
|
$(CANTERA_BLAS_LAPACK_LIBS) $(CANTERA_BOOST_LIBS) \
|
|
$(CANTERA_FORTRAN_SYSLIBS)
|
|
|
|
###############################################################################
|
|
# END
|
|
###############################################################################
|