/[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 1508 by jpye, Wed Jun 27 11:37:28 2007 UTC revision 1509 by jpye, Wed Jun 27 13:08:47 2007 UTC
# Line 1  Line 1 
1  Import('env')  Import('env')
2    
3  solver_env = env.Copy()  if 'LSODE' in env.get('WITH_SOLVERS'):
4    
5  srcs = ['lsode.f','lsode.c']      solver_env = env.Copy()
6    
7  lsode = solver_env.SharedObject('lsode')      srcs = ['lsode.f','asc_lsode.c']
8    
9        linpack_srcs = ['d1mach.c','dgbfa.f','dgbsl.f','dgefa.f','dgesl.f']
10    
11        for s in linpack_srcs:
12            srcs.append( "linpack/%s" % s )
13    
14  #if 'LSOD' in solver_env.get('WITH_SOLVERS'):      if env.get('F2C_LIBPATH'):
15            solver_env.AppendUnique(LIBPATH=[env.get('F2C_LIBPATH')])
16    
17  if env.get('F2C_LIBPATH'):      if solver_env.get('F2C_LIB'):
18      solver_env.AppendUnique(LIBPATH=[env.get('F2C_LIBPATH')])          solver_env.AppendUnique(LIBS=[env.get('F2C_LIB')])
19    
20  if solver_env.get('F2C_LIB'):      solver_env.AppendUnique(LIBS=['ascend'])
     solver_env.AppendUnique(LIBS=[env.get('F2C_LIB')])  
21    
22  liblsode = solver_env.SharedLibrary('lsode',srcs)      liblsode = solver_env.SharedLibrary('lsode',srcs)
23    
24  env['extfns'] += [liblsode]      env['extfns'] += [liblsode]
25    
26  # vim: set syntax=python:      # vim: set syntax=python:

Legend:
Removed from v.1508  
changed lines
  Added in v.1509

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