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

Contents of /trunk/solvers/lsode/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1597 - (show annotations) (download)
Fri Aug 17 05:26:05 2007 UTC (12 years, 6 months ago) by jpye
File size: 748 byte(s)
New external library naming scheme on Windows: 'name_ascend.dll' instead of 'name.dll'.
This applies to solvers as well as external methods, extpy, import handlers, etc.
1 Import('env')
2
3 if 'LSODE' in env.get('WITH_SOLVERS'):
4
5 solver_env = env.Copy()
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 )
24
25 lib = solver_env.SharedLibrary('lsode',srcs + env['blasobjs']
26 ,SHLIBSUFFIX = env['EXTLIB_SUFFIX']
27 ,SHLIBPREFIX = env['EXTLIB_PREFIX']
28 )
29
30 env.Depends(lib,env['libascend'])
31
32 env['extfns'] += [lib]
33
34 #TODO install the file?
35
36 # vim: set syntax=python:

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