82 lines
3.1 KiB
Makefile
82 lines
3.1 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=-L@ct_libdir@ -lcantera
|
|
|
|
CANTERA_CORE_FTN=-L@ct_libdir@ -lcantera_fortran -lcantera
|
|
|
|
CANTERA_FORTRAN_MODS=@ct_incroot@/cantera
|
|
|
|
###############################################################################
|
|
# 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
|
|
|
|
###############################################################################
|
|
# COMBINATIONS OF INCLUDES AND LIBS
|
|
###############################################################################
|
|
|
|
CANTERA_INCLUDES=$(CANTERA_CORE_INCLUDES) $(CANTERA_SUNDIALS_INCLUDE) \
|
|
$(CANTERA_BOOST_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_FORTRAN_LIBS=$(CANTERA_CORE_FTN) $(CANTERA_SUNDIALS_LIBS) \
|
|
$(CANTERA_BLAS_LAPACK_LIBS) $(CANTERA_BOOST_LIBS) \
|
|
-lstdc++
|
|
|
|
###############################################################################
|
|
# END
|
|
###############################################################################
|