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

Contents of /trunk/solvers/conopt/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1787 - (show annotations) (download)
Sat Jun 7 06:32:58 2008 UTC (12 years, 9 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 Import('env')
2
3 # To run the test, type
4 # ascend johnpye/conopt/conopt.a4c
5
6 if 'CONOPT' in env['WITH_SOLVERS']:
7
8 solver_env = env.Clone()
9
10 solver_env.AppendUnique(
11 LIBS = ['ascend']
12 , LIBPATH = ['#']
13 )
14
15 if env.get('CONOPT_LINKED'):
16 solver_env.AppendUnique(
17 LIBS = env['CONOPT_LIB']
18 , LIBPATH = env['CONOPT_LIBPATH']
19 )
20
21 lib = solver_env.SharedLibrary("conopt",["asc_conopt.c"]
22 ,SHLIBSUFFIX = env['EXTLIB_SUFFIX']
23 ,SHLIBPREFIX = env['EXTLIB_PREFIX']
24 )
25
26 env.Depends(lib,env['libascend'])
27
28 env['extfns'] += [lib]
29
30 if env.get('CAN_INSTALL'):
31 env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS")),lib)
32
33 # vim: set syntax=python:
34

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