/[ascend]/trunk/solvers/lsode/SConscript
ViewVC logotype

Diff of /trunk/solvers/lsode/SConscript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1634 by jpye, Fri Aug 17 05:26:05 2007 UTC revision 1635 by jpye, Wed Oct 24 08:01:26 2007 UTC
# Line 3  Import('env') Line 3  Import('env')
3  if 'LSODE' in env.get('WITH_SOLVERS'):  if 'LSODE' in env.get('WITH_SOLVERS'):
4    
5      solver_env = env.Copy()      solver_env = env.Copy()
6    
7      srcs = ['lsode.f','asc_lsode.c']      srcs = ['lsode.f','asc_lsode.c']
8    
9      linpack_srcs = ['d1mach.c','dgbfa.f','dgbsl.f','dgefa.f','dgesl.f']      linpack_srcs = ['d1mach.c','dgbfa.f','dgbsl.f','dgefa.f','dgesl.f']
10    
11      for s in linpack_srcs:      for s in linpack_srcs:
12          srcs.append( "linpack/%s" % s )          srcs.append( "linpack/%s" % s )
13    
14      if env.get('F2C_LIBPATH'):      if env.get('F2C_LIBPATH'):
15          solver_env.AppendUnique(LIBPATH=[env.get('F2C_LIBPATH')])          solver_env.AppendUnique(LIBPATH=[env.get('F2C_LIBPATH')])
# Line 24  if 'LSODE' in env.get('WITH_SOLVERS'): Line 24  if 'LSODE' in env.get('WITH_SOLVERS'):
24    
25      lib = solver_env.SharedLibrary('lsode',srcs + env['blasobjs']      lib = solver_env.SharedLibrary('lsode',srcs + env['blasobjs']
26          ,SHLIBSUFFIX = env['EXTLIB_SUFFIX']          ,SHLIBSUFFIX = env['EXTLIB_SUFFIX']
27          ,SHLIBPREFIX = env['EXTLIB_PREFIX']          ,SHLIBPREFIX = env['EXTLIB_PREFIX']
28      )      )
29    
30      env.Depends(lib,env['libascend'])      env.Depends(lib,env['libascend'])
31    
32      env['extfns'] += [lib]      env['extfns'] += [lib]
33            
34      #TODO install the file?      if env.get('CAN_INSTALL'):
35                dir = Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS"))
36      # vim: set syntax=python:          env.InstallShared(dir,lib)
37    
38    # vim: set syntax=python:

Legend:
Removed from v.1634  
changed lines
  Added in v.1635

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22