/[ascend]/trunk/base/generic/system/SConscript
ViewVC logotype

Annotation of /trunk/base/generic/system/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1436 - (hide annotations) (download)
Mon May 21 09:39:28 2007 UTC (17 years, 6 months ago) by jpye
File size: 769 byte(s)
Fixed build for SCons 0.96.92. Needs testing.
1 johnpye 1316 Import('libascend_env')
2    
3     csrcs = Split("""
4     analyze.c block.c
5     bnd.c bndman.c calc.c cond_config.c
6     conditional.c discrete.c
7     diffvars.c
8 johnpye 1317 jacobian.c
9 jpye 1347 graph.c
10 johnpye 1316 logrel.c logrelman.c model_reorder.c
11     rel.c relman.c
12     slv.c
13     slv_common.c
14     slv_param.c
15     slv_stdcalls.c system.c var.c
16     """)
17    
18     solver_env = libascend_env.Copy()
19    
20     for i in libascend_env.get('WITH_SOLVERS'):
21     solver_env.Append(CPPDEFINES=["STATIC_"+i])
22    
23     defs = []
24     objs = []
25    
26     for c in csrcs:
27     objs += solver_env.SharedObject(c)
28    
29     #--------------------
30     # INSTALL
31    
32     import glob
33    
34     if libascend_env.get('CAN_INSTALL'):
35 jpye 1436 installdir = Dir(libascend_env.subst("$INSTALL_ROOT$INSTALL_INCLUDE/system"))
36 johnpye 1316
37     headers = glob.glob("*.h")
38     libascend_env.InstallHeader(installdir,headers)
39    
40     Return('objs')
41    
42     # vim: set syntax=python:
43    

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