/[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 187 by jgs, Mon Nov 21 01:15:26 2005 UTC revision 352 by jgs, Wed Dec 14 02:21:37 2005 UTC
# Line 1  Line 1 
1    libinstall = None
2    
3  Import('*')  Import('*')
4    
5  import os  import os
6    import string
7    
8  cc_flags = '-O0 -openmp -openmp_report0 -tpp2 -c99 -ansi_alias -no-gcc -c -fpic -w1'  paso_path = str(esysroot) + '/paso/src'
9    scsl_path = str(esysroot) + '/paso/src/SCSL'
10  cpp_path = ['#../paso/src',  solvers_path = str(esysroot) + '/paso/src/Solvers'
11              '#../paso/src/SCSL',  mmio_path = str(esysroot) + '/tools/mmio/inc'
12              '#../paso/src/Solvers',  
13              '#../tools/mmio/inc',  cpp_path = [paso_path,
14              '/raid2/tools/python-2.3.4/include/python2.3',              scsl_path,
15              '/raid2/tools/boost/include/boost-1_31']              solvers_path,
16                mmio_path,
17                python_path,
18                boost_path]
19    
20  lib = 'paso'  lib = 'paso'
21  sources = ['Options_getPackage.c',  sources = ['Options_getPackage.c',
# Line 48  sources = ['Options_getPackage.c', Line 54  sources = ['Options_getPackage.c',
54    
55  paso_env = Environment(ENV = os.environ)  paso_env = Environment(ENV = os.environ)
56    
57  paso_env.Replace(CC = 'icc')  paso_env.Replace(CC = cc)
58  paso_env.Replace(CCFLAGS = cc_flags)  paso_env.Replace(CCFLAGS = cc_flags)
59    paso_env.Replace(ARFLAGS = ar_flags)
60  paso_env.Replace(CPPPATH = cpp_path)  paso_env.Replace(CPPPATH = cpp_path)
61    
62  paso_lib = paso_env.StaticLibrary(lib, sources)  paso_lib = paso_env.StaticLibrary(lib, sources)
63  paso_env.Install(libdir, paso_lib)  
64    Default(paso_env.Install(libdir, paso_lib))
65    Default(paso_env.Install(libdir2, paso_lib))
66    if libinstall != None:
67      Default(paso_env.Install(libinstall, paso_lib))

Legend:
Removed from v.187  
changed lines
  Added in v.352

  ViewVC Help
Powered by ViewVC 1.1.26