From 631be2da458194c385878234b5fc53df19e0d68e Mon Sep 17 00:00:00 2001 From: Nicholas Malaya Date: Tue, 19 Jun 2012 01:50:57 +0000 Subject: [PATCH] [cantera2.0]: building and writing arith.h --- configure.ac | 35 ++++++++++++++++--------------- ext/f2c_libs/Makefile.am | 2 ++ ext/f2c_libs/arithchk/Makefile.am | 22 +++++++++++++++++++ 3 files changed, 42 insertions(+), 17 deletions(-) create mode 100644 ext/f2c_libs/arithchk/Makefile.am diff --git a/configure.ac b/configure.ac index 9f85148a4..b49aba803 100644 --- a/configure.ac +++ b/configure.ac @@ -94,13 +94,14 @@ DX_INIT_DOXYGEN(cantera, doxygen/cantera.dox, docs) # Generate Output Files AC_OUTPUT(Makefile \ - ext/Makefile \ - ext/libexecstream/Makefile \ - ext/f2c_math/Makefile \ - ext/f2c_libs/Makefile \ - ext/f2c_blas/Makefile \ - ext/f2c_lapack/Makefile \ - ext/cvode/Makefile \ + ext/Makefile \ + ext/libexecstream/Makefile \ + ext/f2c_math/Makefile \ + ext/f2c_libs/Makefile \ + ext/f2c_libs/arithchk/Makefile \ + ext/f2c_blas/Makefile \ + ext/f2c_lapack/Makefile \ + ext/cvode/Makefile \ test_problems/Makefile \ test_problems/mixGasTransport/Makefile \ test_problems/ChemEquil_gri_matrix/Makefile \ @@ -145,16 +146,16 @@ AC_OUTPUT(Makefile \ test_problems/cathermo/wtWater/Makefile \ test_problems/PecosTransport/Makefile \ doxygen/Makefile \ - src/Makefile \ - src/fortran/Makefile \ - src/base/Makefile \ - src/converters/Makefile \ - src/kinetics/Makefile \ - src/numerics/Makefile src/oneD/Makefile \ - src/thermo/Makefile \ - src/transport/Makefile \ - src/spectra/Makefile src/zeroD/Makefile \ - src/equil/Makefile \ + src/Makefile \ + src/fortran/Makefile \ + src/base/Makefile \ + src/converters/Makefile \ + src/kinetics/Makefile \ + src/numerics/Makefile src/oneD/Makefile \ + src/thermo/Makefile \ + src/transport/Makefile \ + src/spectra/Makefile src/zeroD/Makefile \ + src/equil/Makefile \ cantera.pc) # skipped tests diff --git a/ext/f2c_libs/Makefile.am b/ext/f2c_libs/Makefile.am index 151537495..787d07786 100644 --- a/ext/f2c_libs/Makefile.am +++ b/ext/f2c_libs/Makefile.am @@ -1,3 +1,5 @@ +SUBDIRS = arithchk + cc_sources = abort_.c c_log.c d_atn2.c dfe.c d_prod.c \ due.c exit_.c getenv_.c hl_le.c i_dim.c \ inquire.c lread.c pow_ii.c r_acos.c \ diff --git a/ext/f2c_libs/arithchk/Makefile.am b/ext/f2c_libs/arithchk/Makefile.am new file mode 100644 index 000000000..667594ca2 --- /dev/null +++ b/ext/f2c_libs/arithchk/Makefile.am @@ -0,0 +1,22 @@ +AM_CPPFLAGS = -I. -I$(top_builddir)/ext/f2c_libs/ +AM_CXXFLAGS = $(AM_CPPFLAGS) +AM_FCFLAGS = $(AM_CPPFLAGS) + +lib_LTLIBRARIES = +library_includedir = +library_include_HEADERS = $(h_sources) + +bin_PROGRAMS = arithchk + +#----------------------- +# Cantera Arithchk +#----------------------- + +arithchk_SOURCES = arithchk.c + +# header file creation +all: + @echo creating arithchk.h + ./arithchk > ../arith.h + +CLEANFILES = *.o