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

Annotation of /trunk/solvers/conopt/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


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

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