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

Annotation of /trunk/paso/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 481 - (hide annotations)
Wed Feb 1 05:57:50 2006 UTC (14 years ago) by jgs
File size: 2500 byte(s)
add mechanism to install .h files to inc directories
(still need to specify full lists of .h files to install)

1 jgs 192 libinstall = None
2 jgs 481 incinstall = None
3 jgs 192
4 jgs 187 Import('*')
5    
6     import os
7 jgs 190 import string
8 gross 425 paso_env = Environment(ENV = os.environ)
9 jgs 187
10 jgs 190 paso_path = str(esysroot) + '/paso/src'
11     solvers_path = str(esysroot) + '/paso/src/Solvers'
12     mmio_path = str(esysroot) + '/tools/mmio/inc'
13 jgs 187
14 jgs 190 cpp_path = [paso_path,
15     solvers_path,
16     mmio_path,
17     python_path,
18     boost_path]
19    
20 gross 425 paso_env.Replace(CC = cc)
21     paso_env.Replace(CCFLAGS = cc_flags)
22     if len(mkl_libs) >0: paso_env.Append(CCFLAGS=' -DMKL')
23     if len(mkl_path) >0: cpp_path.append(mkl_path)
24     if len(scsl_libs)>0 : paso_env.Append(CCFLAGS=' -DSCSL')
25     if len(scsl_path)>0: cpp_path.append(scsl_path)
26     if len(umfpack_libs)>0 : paso_env.Append(CCFLAGS=' -DUMFPACK')
27     if len(umfpack_path)>0: cpp_path.append(umfpack_path)
28     paso_env.Replace(CPPPATH = cpp_path)
29     paso_env.Replace(ARFLAGS = ar_flags)
30    
31 jgs 187 lib = 'paso'
32 jgs 481
33     incs = ['Paso.h']
34    
35 jgs 187 sources = ['Options_getPackage.c',
36     'Options_getSolver.c',
37     'Options_setDefaults.c',
38     'Paso.c',
39     'solve.c',
40     'SystemMatrix_borrowNormalization.c',
41     'SystemMatrix.c',
42     'SystemMatrix_copy.c',
43     'SystemMatrix_getSubmatrix.c',
44     'SystemMatrix_getSystemMatrixTypeId.c',
45     'SystemMatrix_loadMM.c',
46     'SystemMatrix_MatrixVector.c',
47     'SystemMatrix_nullifyRowsAndCols.c',
48     'SystemMatrixPattern.c',
49     'SystemMatrixPattern_getSubpattern.c',
50     'SystemMatrixPattern_mis.c',
51     'SystemMatrixPattern_unrollBlocks.c',
52     'SystemMatrix_saveHB.c',
53     'SystemMatrix_saveMM.c',
54     'SystemMatrix_setValues.c',
55     'Util.c',
56 gross 425 'MKL.c',
57 gross 411 'SCSL.c',
58     'SCSL_direct.c',
59     'SCSL_iterative.c',
60 jgs 187 'Solvers/BiCGStab.c',
61     'Solvers/GMRES.c',
62     'Solvers/PCG.c',
63     'Solvers/Solver_applyBlockDiagonalMatrix.c',
64     'Solvers/Solver.c',
65     'Solvers/Solver_ILU.c',
66 gross 430 'Solvers/Solver_RILU.c',
67 jgs 187 'Solvers/Solver_jacobi.c',
68     'Solvers/Solver_preconditioner.c',
69     'Solvers/Solver_SchurComplement.c']
70    
71     paso_lib = paso_env.StaticLibrary(lib, sources)
72 jgs 288
73 jgs 481 Default(paso_env.Install(incdir, incs))
74     Default(paso_env.Install(incdir2, incs))
75     if incinstall != None:
76     Default(paso_env.Install(incinstall, incs))
77    
78 jgs 352 Default(paso_env.Install(libdir, paso_lib))
79     Default(paso_env.Install(libdir2, paso_lib))
80 jgs 192 if libinstall != None:
81 jgs 352 Default(paso_env.Install(libinstall, paso_lib))

  ViewVC Help
Powered by ViewVC 1.1.26