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

Contents of /trunk/base/generic/solver/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1320 - (show annotations) (download)
Tue Mar 6 12:15:21 2007 UTC (17 years, 9 months ago) by jpye
File size: 979 byte(s)
Eliminated linsol, slv0 and slv1: moved the original files to 'disused' and editing out
all reference to them in solvers and related code (including some Tcl/Tk wrapper code)
1 Import('libascend_env')
2
3 csrcs = Split("""
4 incidence.c
5 slv_interface.c
6 mps.c
7 slv2.c slv3.c slv6.c slv7.c
8 slv8.c slv9.c slv9a.c slvDOF.c
9
10 """)
11
12 solver_env = libascend_env.Copy()
13
14 defs = []
15 for i in libascend_env.get('WITH_SOLVERS'):
16 solver_env.Append(CPPDEFINES=["STATIC_"+i])
17
18 objs = []
19
20 if solver_env.get('WITH_CONOPT'):
21 solver_env.AppendUnique(CPPPATH=[solver_env.get('CONOPT_CPPPATH')])
22
23 if solver_env.get('LINKED_CONOPT'):
24 libascend_env.AppendUnique(
25 LIBPATH=[solver_env.get('CONOPT_LIBPATH')]
26 , LIBS=[solver_env.get('CONOPT_LIB')]
27 )
28
29 objs += solver_env.SharedObject('conopt.c')
30 # print "BUILDING CONOPT.OS"
31
32 for c in csrcs:
33 objs += solver_env.SharedObject(c)
34
35 #--------------------
36 # INSTALL
37
38 import glob
39
40 if libascend_env.get('CAN_INSTALL'):
41 installdir = libascend_env['INSTALL_ROOT']+libascend_env['INSTALL_INCLUDE']+'/solver'
42
43 headers = glob.glob("*.h")
44 libascend_env.InstallHeader(installdir,headers)
45
46 Return('objs')
47
48 # vim: set syntax=python:
49

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