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

Contents of /trunk/ascend/linear/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2020 - (show annotations) (download)
Wed Apr 29 04:00:14 2009 UTC (14 years, 10 months ago) by jpye
File size: 732 byte(s)
Fixed installation location of libascend headerfiles.
1 #!/usr/bin/python invoke_using_scons
2 Import('libascend_env')
3
4 csrcs = Split("""
5 densemtx.c
6 linsolqr.c linutils.c
7 mtx_basic.c mtx_linal.c mtx_perms.c mtx_query.c
8 mtx_reorder.c mtx_use_only.c mtx_vector.c
9 mtx_csparse.c
10 ranki.c
11 rankiba2.c
12 ranki2.c
13 plainqr.c
14 """)
15
16 solver_env = libascend_env.Clone()
17 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 installdir = Dir(libascend_env.subst("$INSTALL_ROOT$INSTALL_INCLUDE/ascend/linear"))
32
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