import os
env = Environment(ENV = os.environ)

env['F77'] = '@F77@'
env['CC'] = '@CC@'
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, 'demo.f'],
                   LINK='@FORTRAN_LINK@')
isentropic = env.Program('isentropic', [ftnlib, 'isentropic.f'],
                         LINK='@FORTRAN_LINK@')

Default(ctlib)
Default(demo)
Default(isentropic)
