/[escript]/trunk/paso/src/SConscript
ViewVC logotype

Diff of /trunk/paso/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 411 by gross, Tue Jan 3 00:23:48 2006 UTC revision 425 by gross, Tue Jan 10 04:10:39 2006 UTC
# Line 4  Import('*') Line 4  Import('*')
4    
5  import os  import os
6  import string  import string
7    paso_env = Environment(ENV = os.environ)
8    
9  paso_path = str(esysroot) + '/paso/src'  paso_path = str(esysroot) + '/paso/src'
10  solvers_path = str(esysroot) + '/paso/src/Solvers'  solvers_path = str(esysroot) + '/paso/src/Solvers'
# Line 15  cpp_path = [paso_path, Line 16  cpp_path = [paso_path,
16              python_path,              python_path,
17              boost_path]              boost_path]
18    
19    paso_env.Replace(CC = cc)
20    paso_env.Replace(CCFLAGS = cc_flags)
21    if len(mkl_libs) >0: paso_env.Append(CCFLAGS=' -DMKL')
22    if len(mkl_path) >0: cpp_path.append(mkl_path)
23    if len(scsl_libs)>0 : paso_env.Append(CCFLAGS=' -DSCSL')
24    if len(scsl_path)>0: cpp_path.append(scsl_path)
25    if len(umfpack_libs)>0 : paso_env.Append(CCFLAGS=' -DUMFPACK')
26    if len(umfpack_path)>0: cpp_path.append(umfpack_path)
27    paso_env.Replace(CPPPATH = cpp_path)
28    paso_env.Replace(ARFLAGS = ar_flags)
29    
30  lib = 'paso'  lib = 'paso'
31  sources = ['Options_getPackage.c',  sources = ['Options_getPackage.c',
32             'Options_getSolver.c',             'Options_getSolver.c',
# Line 37  sources = ['Options_getPackage.c', Line 49  sources = ['Options_getPackage.c',
49             'SystemMatrix_saveMM.c',             'SystemMatrix_saveMM.c',
50             'SystemMatrix_setValues.c',             'SystemMatrix_setValues.c',
51             'Util.c',             'Util.c',
52               'MKL.c',
53             'SCSL.c',             'SCSL.c',
54             'SCSL_direct.c',             'SCSL_direct.c',
55             'SCSL_iterative.c',             'SCSL_iterative.c',
# Line 50  sources = ['Options_getPackage.c', Line 63  sources = ['Options_getPackage.c',
63             'Solvers/Solver_preconditioner.c',             'Solvers/Solver_preconditioner.c',
64             'Solvers/Solver_SchurComplement.c']             'Solvers/Solver_SchurComplement.c']
65    
 paso_env = Environment(ENV = os.environ)  
66    
 paso_env.Replace(CC = cc)  
 paso_env.Replace(CCFLAGS = cc_flags)  
 paso_env.Replace(ARFLAGS = ar_flags)  
 paso_env.Replace(CPPPATH = cpp_path)  
67    
68  paso_lib = paso_env.StaticLibrary(lib, sources)  paso_lib = paso_env.StaticLibrary(lib, sources)
69    

Legend:
Removed from v.411  
changed lines
  Added in v.425

  ViewVC Help
Powered by ViewVC 1.1.26