Files
cantera/samples/f77/SConstruct.in
2023-10-03 11:23:39 -04:00

27 lines
790 B
Python

import os
env = Environment(ENV = os.environ)
@tmpl_cc@
@tmpl_f77@
env.Append(FFLAGS='-g',
CCFLAGS=@tmpl_compiler_flags@,
CPPPATH=@tmpl_cantera_incdirs@,
LIBS=@tmpl_cantera_libs@,
LIBPATH=@tmpl_cantera_libdirs@,
RPATH=@tmpl_cantera_libdirs@,
LINKFLAGS=@tmpl_cantera_linkflags@,
FRAMEWORKS=@tmpl_cantera_frameworks@)
ftnlib = env.SharedObject('demo_ftnlib.cpp')
ctlib = env.Program('ctlib', [ftnlib, 'ctlib.f'],
LINK='@FORTRAN_LINK@')
demo = env.Program('demo', [ftnlib, 'f77_demo.f'],
LINK='@FORTRAN_LINK@')
isentropic = env.Program('isentropic', [ftnlib, 'isentropic.f'],
LINK='@FORTRAN_LINK@')
Default(ctlib)
Default(demo)
Default(isentropic)