1 |
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 |
jacobian.c |
9 |
graph.c |
10 |
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 |
installdir = Dir(libascend_env.subst("$INSTALL_ROOT$INSTALL_INCLUDE/system")) |
36 |
|
37 |
headers = glob.glob("*.h") |
38 |
libascend_env.InstallHeader(installdir,headers) |
39 |
|
40 |
Return('objs') |
41 |
|
42 |
# vim: set syntax=python: |
43 |
|