/[ascend]/trunk/solvers/cmslv/SConscript
ViewVC logotype

Contents of /trunk/solvers/cmslv/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1787 - (show annotations) (download)
Sat Jun 7 06:32:58 2008 UTC (14 years, 5 months ago) by jpye
File size: 670 byte(s)
Fixed against Tcl/Tk on Fedora 9.
Removed lots more env.Copy(), change to env.Clone() for newer SCons.
1 Import('env')
2
3 if 'CMSLV' in env['WITH_SOLVERS'] and 'CONOPT' in env['WITH_SOLVERS']:
4 solver_env = env.Clone()
5
6 solver_env.AppendUnique(
7 LIBS = ['ascend']
8 , LIBPATH = ['#']
9 )
10
11 if solver_env.get('CONOPT_LINKED'):
12 solver_env.AppendUnique(
13 CPPPATH=env['CONOPT_CPPPATH']
14 , LIBS=env['CONOPT_LIB']
15 , LIBPATH=env['CONOPT_LIBPATH']
16 )
17
18 lib = solver_env.SharedLibrary("cmslv",["cmslv.c"]
19 ,SHLIBSUFFIX = env['EXTLIB_SUFFIX']
20 ,SHLIBPREFIX = env['EXTLIB_PREFIX']
21 )
22
23 env.Depends(lib,env['libascend'])
24
25 env['extfns'] += [lib]
26
27 if env.get('CAN_INSTALL'):
28 env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS")),lib)
29
30 # vim: set syntax=python:
31

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