137 lines
3.9 KiB
Makefile
137 lines
3.9 KiB
Makefile
#######################################################################
|
|
# Include Snipet for Makefiles
|
|
#
|
|
# To create Cantera C++ applications from the build tree environment
|
|
# include this file into your Makefile environment
|
|
#
|
|
# Main Variables:
|
|
#
|
|
# CANTERA_INCLUDES = Variable containing the include path
|
|
#
|
|
#
|
|
# CANTERA_LIBS = List of libraries to include on the link line
|
|
#
|
|
# CANTERA_LIBS_DEP = dependency line for Cantera libs
|
|
#
|
|
#
|
|
#####################################################################
|
|
# $Id: Cantera_bt.mak.in,v 1.2 2008/01/21 21:17:52 hkmoffa Exp $
|
|
#
|
|
#
|
|
# This variable determines whether we are making this example in the
|
|
# build tree environment or in the install tree environment.
|
|
#
|
|
in_CanteraBuildTree = 0
|
|
|
|
CANTERA_VERSION=@ctversion@
|
|
|
|
###############################################################################
|
|
# 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_INCROOTDIR= @ct_incroot@
|
|
|
|
CANTERA_CORE_INCLUDES=-I$(CANTERA_INCROOTDIR)
|
|
#
|
|
# Library location
|
|
#
|
|
CANTERA_LIBSDIR= @ct_libdir@
|
|
|
|
#
|
|
# Required Cantera libraries
|
|
#
|
|
CANTERA_CORE_LIBS= -L$(CANTERA_LIBSDIR) @CANTERA_CORE_LIBS@ -lctcxx
|
|
|
|
#
|
|
# Cantera Core Lib Dependencies
|
|
#
|
|
CANTERA_CORE_LIBS_DEP= @CANTERA_CORE_LIBS_DEP@ $(CANTERA_LIBSDIR)/libctcxx.a
|
|
|
|
#####################################################################
|
|
# BOOST
|
|
####################################################################
|
|
#
|
|
# Cantera Boost Include
|
|
#
|
|
CANTERA_BOOST_INCLUDES= @BOOST_INCLUDE@
|
|
#
|
|
# Location of the boost library that Cantera linked against
|
|
#
|
|
CANTERA_BOOST_LIB_DIR= @BOOST_LIB_DIR@
|
|
#
|
|
# Linkage extras for linking against boost
|
|
#
|
|
ifeq ("x$(CANTERA_BOOST_LIB_DIR)","x")
|
|
CANTERA_BOOST_LIBS=
|
|
else
|
|
CANTERA_BOOST_LIBS= -L$(CANTERA_BOOST_LIB_DIR) -l@BOOST_LIB@
|
|
endif
|
|
|
|
#####################################################################
|
|
# CVODE/SUNDIALS LINKAGE
|
|
####################################################################
|
|
CANTERA_use_sundials = @use_sundials@
|
|
|
|
#
|
|
# Includes for Sundials - none for cvode
|
|
#
|
|
CANTERA_CVODE_INCLUDE=@sundials_include@
|
|
#
|
|
# Link line for cvode and sundials
|
|
#
|
|
ifeq ($(CANTERA_user_sundials), 1)
|
|
|
|
else
|
|
CANTERA_CVODE_LIBS= -L$(CANTERA_LIBSDIR) @CVODE_LIBS@
|
|
endif
|
|
|
|
|
|
#######################################################################
|
|
# BLAS LAPACK LINKAGE
|
|
#######################################################################
|
|
CANTERA_build_lapack= @build_lapack@
|
|
CANTERA_build_blas= @build_blas@
|
|
|
|
CANTERA_BLAS_LAPACK_DIR= @BLAS_LAPACK_DIR@
|
|
|
|
CANTERA_BLAS_LAPACK_LIBS = -L$(CANTERA_BLAS_LAPACK_DIR) @BLAS_LAPACK_LIBS@
|
|
|
|
#######################################################################
|
|
# CANTERA's F2C Linkage
|
|
#######################################################################
|
|
CANTERA_build_with_f2c= @build_with_f2c@
|
|
CANTERA_build_f2c_lib= @build_f2c_lib@
|
|
|
|
ifeq ($(CANTERA_build_f2c_lib), 1)
|
|
CANTERA_F2C_LIBS= -L$(CANTERA_LIBSDIR) -lctf2c
|
|
else
|
|
CANTERA_F2C_LIBS= @F2C_SYSTEMLIB@
|
|
endif
|
|
|
|
|
|
#####################################################################
|
|
# COMBINATIONS OF INCLUDES AND LIBS
|
|
####################################################################
|
|
|
|
CANTERA_TOTAL_INCLUDES= $(CANTERA_CORE_INCLUDES) $(CANTERA_BOOST_INCLUDES) $(CANTERA_CVODE_INCLUDE)
|
|
#
|
|
# You can add this into the compilation environment to identify the version number
|
|
#
|
|
CANTERA_DEFINES = -DCANTERA_VERSION=@ctversion@
|
|
|
|
CANTERA_TOTAL_LIBS2 = @LOCAL_LIB_DIRS@ @LOCAL_LIBS@
|
|
|
|
CANTERA_TOTAL_LIBS= $(CANTERA_CORE_LIBS) $(CANTERA_BOOST_LIBS) \
|
|
$(CANTERA_CVODE_LIBS) $(CANTERA_BLAS_LAPACK_LIBS) \
|
|
$(CANTERA_F2C_LIBS)
|
|
|
|
#
|
|
# Dependency Line
|
|
#
|
|
CANTERA_LIBS_DEP= @INSTALL_LIBS_DEP@ $(CANTERA_LIBDIR)/libctcxx.a
|
|
|