25 |
|
|
26 |
solver_env.Append( |
solver_env.Append( |
27 |
LIBPATH=[env.get('SUNDIALS_LIBPATH'),"#"] |
LIBPATH=[env.get('SUNDIALS_LIBPATH'),"#"] |
28 |
, LIBS=[env.get('SUNDIALS_LIBS'),"ascend"] |
,LIBS=[env.get('SUNDIALS_LIBS'),"ascend"] |
29 |
) |
) |
30 |
|
|
31 |
srcs = ['ida.c','idalinear.c', 'idaanalyse.c'] |
srcs = ['ida.c','idalinear.c', 'idaanalyse.c'] |
32 |
libida = solver_env.SharedLibrary("ida",srcs) |
lib = solver_env.SharedLibrary("ida",srcs |
33 |
|
,SHLIBSUFFIX = env['EXTLIB_SUFFIX'] |
34 |
|
,SHLIBPREFIX = env['EXTLIB_PREFIX'] |
35 |
|
) |
36 |
|
|
37 |
env.Depends(libida,env['libascend']) |
env.Depends(lib,env['libascend']) |
38 |
|
|
39 |
env['extfns'] += libida |
env['extfns'] += lib |
40 |
|
|
41 |
if env.get('CAN_INSTALL'): |
if env.get('CAN_INSTALL'): |
42 |
dir = Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS")) |
dir = Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS")) |
43 |
env.InstallShared(dir,libida) |
env.InstallShared(dir,lib) |
44 |
|
|
45 |
# vim: set syntax=python: |
# vim: set syntax=python: |