/[ascend]/trunk/ascend/linear/SConscript
ViewVC logotype

Annotation of /trunk/ascend/linear/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2020 - (hide annotations) (download)
Wed Apr 29 04:00:14 2009 UTC (15 years, 5 months ago) by jpye
File size: 732 byte(s)
Fixed installation location of libascend headerfiles.
1 jpye 2018 #!/usr/bin/python invoke_using_scons
2 johnpye 1183 Import('libascend_env')
3    
4     csrcs = Split("""
5     densemtx.c
6 jpye 1320 linsolqr.c linutils.c
7 johnpye 1183 mtx_basic.c mtx_linal.c mtx_perms.c mtx_query.c
8     mtx_reorder.c mtx_use_only.c mtx_vector.c
9 jpye 1326 mtx_csparse.c
10 jpye 1325 ranki.c
11     rankiba2.c
12     ranki2.c
13     plainqr.c
14 johnpye 1183 """)
15    
16 jpye 1786 solver_env = libascend_env.Clone()
17 johnpye 1183 if solver_env.get('WITH_MMIO'):
18     solver_env.Append(CPPPATH=["#/mmio"])
19    
20     objs = []
21    
22     for c in csrcs:
23     objs += solver_env.SharedObject(c)
24    
25     #--------------------
26     # INSTALL
27    
28     import glob
29    
30     if libascend_env.get('CAN_INSTALL'):
31 jpye 2020 installdir = Dir(libascend_env.subst("$INSTALL_ROOT$INSTALL_INCLUDE/ascend/linear"))
32 johnpye 1183
33     headers = glob.glob("*.h")
34     libascend_env.InstallHeader(installdir,headers)
35    
36     Return('objs')
37    
38     # vim: set syntax=python:
39    

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