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

Contents of /trunk/solvers/lsode/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2032 - (show annotations) (download)
Tue May 12 01:37:25 2009 UTC (15 years, 1 month ago) by jpye
File size: 882 byte(s)
Fixes bug 301. Changed 'LINKFLAGS' to 'SHLINKFLAGS'.
Needs someone to confirm.
1 Import('env')
2
3 if 'LSODE' in env.get('WITH_SOLVERS'):
4
5 solver_env = env.Clone()
6
7 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 env.get('F2C_LIBPATH'):
15 solver_env.AppendUnique(LIBPATH=[env.get('F2C_LIBPATH')])
16
17 if solver_env.get('F2C_LIB'):
18 solver_env.AppendUnique(LIBS=[env.get('F2C_LIB')])
19
20 solver_env.AppendUnique(
21 LIBS=['ascend']
22 ,LIBPATH=['#']
23 ,SHLINKFLAGS=['-fPIC']
24 )
25
26 lib = solver_env.SharedLibrary('lsode',srcs + env['blasobjs']
27 ,SHLIBSUFFIX = env['EXTLIB_SUFFIX']
28 ,SHLIBPREFIX = env['EXTLIB_PREFIX']
29 ,SHFORTRANFLAGS = ['-w']
30 )
31
32 env.Depends(lib,env['libascend'])
33
34 env['extfns'] += [lib]
35
36 if env.get('CAN_INSTALL'):
37 dir = Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS"))
38 env.InstallShared(dir,lib)
39
40 # vim: set syntax=python:

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