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

Contents of /trunk/paso/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 481 - (show 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 libinstall = None
2 incinstall = None
3
4 Import('*')
5
6 import os
7 import string
8 paso_env = Environment(ENV = os.environ)
9
10 paso_path = str(esysroot) + '/paso/src'
11 solvers_path = str(esysroot) + '/paso/src/Solvers'
12 mmio_path = str(esysroot) + '/tools/mmio/inc'
13
14 cpp_path = [paso_path,
15 solvers_path,
16 mmio_path,
17 python_path,
18 boost_path]
19
20 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 lib = 'paso'
32
33 incs = ['Paso.h']
34
35 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 'MKL.c',
57 'SCSL.c',
58 'SCSL_direct.c',
59 'SCSL_iterative.c',
60 '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 'Solvers/Solver_RILU.c',
67 'Solvers/Solver_jacobi.c',
68 'Solvers/Solver_preconditioner.c',
69 'Solvers/Solver_SchurComplement.c']
70
71 paso_lib = paso_env.StaticLibrary(lib, sources)
72
73 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 Default(paso_env.Install(libdir, paso_lib))
79 Default(paso_env.Install(libdir2, paso_lib))
80 if libinstall != None:
81 Default(paso_env.Install(libinstall, paso_lib))

  ViewVC Help
Powered by ViewVC 1.1.26