| 3 |
# To run the test, type |
# To run the test, type |
| 4 |
# ascend johnpye/qrslv/qrslv.a4c |
# ascend johnpye/qrslv/qrslv.a4c |
| 5 |
|
|
| 6 |
libqrslv = [env.SharedLibrary("qrslv",["qrslv.c"] |
lib = env.SharedLibrary("qrslv",["qrslv.c"] |
| 7 |
,LIBS = ['ascend'] |
,LIBS = ['ascend'] |
| 8 |
,LIBPATH = ['#'] |
,LIBPATH = ['#'] |
| 9 |
)] |
,SHLIBSUFFIX = env['EXTLIB_SUFFIX'] |
| 10 |
|
,SHLIBPREFIX = env['EXTLIB_PREFIX'] |
| 11 |
|
) |
| 12 |
|
|
| 13 |
env['extfns'] += libqrslv |
env['extfns'] += [lib] |
| 14 |
|
|
| 15 |
|
env.Depends(lib,env['libascend']) |
| 16 |
|
|
| 17 |
if env.get('CAN_INSTALL'): |
if env.get('CAN_INSTALL'): |
| 18 |
dir = Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS")) |
dir = Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS")) |
| 19 |
env.InstallShared(dir,libqrslv) |
env.InstallShared(dir,lib) |
| 20 |
|
|
| 21 |
# vim: set syntax=python: |
# vim: set syntax=python: |