From 40e727f92fb7ff894e85d7e2624a351d45cfb33e Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Tue, 15 Jan 2008 16:59:16 +0000 Subject: [PATCH] Added a Cantera makefile that can be included into other makefiles. This is a good way to handle Cantera as a library in another C++ application. --- Cantera/cxx/include/Cantera.mak.in | 50 +++++++++++++++++++++++++++ Cantera/cxx/include/Cantera_bt.mak.in | 46 ++++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 Cantera/cxx/include/Cantera.mak.in create mode 100644 Cantera/cxx/include/Cantera_bt.mak.in diff --git a/Cantera/cxx/include/Cantera.mak.in b/Cantera/cxx/include/Cantera.mak.in new file mode 100644 index 000000000..16355a5f1 --- /dev/null +++ b/Cantera/cxx/include/Cantera.mak.in @@ -0,0 +1,50 @@ +####################################################################### +# Include Snipet for Makefiles +# +# To create Cantera C++ applications from the install 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$ +# +# +# This variable determines whether we are making this example in the +# build tree environment or in the install tree environment. +# +in_CanteraBuildTree = 0 + +# +# The directory where Cantera include files may be found. +# +CANTERA_INCROOTDIR=@ct_incroot@ + +# +# Includes to add +# +CANTERA_INCLUDES=-I$(CANTERA_INCROOTDIR) -I$(CANTERA_INCROOTDIR)/cantera + +# +# Library location +# +CANTERA_LIBSDIR = @ct_libdir@ + +# +# Required Cantera libraries +# +CANTERA_LIBS = -L$(CANTERA_LIBDIR) @LOCAL_LIBS@ -lctcxx + +# +# Dependency Line +# +CANTERA_LIBS_DEP = @INSTALL_LIBS_DEP@ $(CANTERA_LIBDIR)/libctcxx.a + diff --git a/Cantera/cxx/include/Cantera_bt.mak.in b/Cantera/cxx/include/Cantera_bt.mak.in new file mode 100644 index 000000000..5d0bf8014 --- /dev/null +++ b/Cantera/cxx/include/Cantera_bt.mak.in @@ -0,0 +1,46 @@ +####################################################################### +# 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$ +# +# +# This variable determines whether we are making this example in the +# build tree environment or in the install tree environment. + +in_CanteraBuildTree = 1 + +# +# The directory where Cantera include files may be found. +# + +CANTERA_INCROOTDIR=@ctroot@/build/include +CANTERA_INCLUDES=-I$(CANTERA_INCROOTDIR) -I$(CANTERA_INCROOTDIR)/cantera + +# Library where the files are located +CANTERA_LIBDIR=@buildlib@ + +# +# Required Cantera libraries +# +CANTERA_LIBS = -L$(CANTERA_LIBDIR) @LOCAL_LIBS@ -lctcxx + +# +# Dependency line +# +CANTERA_LIBS_DEP = @LOCAL_LIBS_DEP@ $(CANTERA_LIBDIR)/libctcxx.a + +