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

Contents of /trunk/escript/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 188 - (show annotations)
Mon Nov 21 01:20:26 2005 UTC (13 years, 10 months ago) by jgs
Original Path: trunk/escript/src/Data/SConscript
File size: 1306 byte(s)
explicitly add -fpic option to all compiler options lists
to ensure relocatable code is generated

1 Import('*')
2
3 import os
4
5 cxx_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -fpic -w1'
6
7 cpp_path = ['#../escript/inc',
8 '#../esysUtils/inc',
9 '/raid2/tools/python-2.3.4/include/python2.3',
10 '/raid2/tools/boost/include/boost-1_31']
11
12 lib = 'escriptcpp'
13 sources = ['AbstractContinuousDomain.cpp',
14 'AbstractDomain.cpp',
15 'AbstractSystemMatrix.cpp',
16 'DataAbstract.cpp',
17 'DataArray.cpp',
18 'DataArrayView.cpp',
19 'DataBlocks2D.cpp',
20 'DataCached.cpp',
21 'DataC.cpp',
22 'DataConstant.cpp',
23 'Data.cpp',
24 'DataEmpty.cpp',
25 'DataExpanded.cpp',
26 'DataFactory.cpp',
27 'DataProf.cpp',
28 'DataTagged.cpp',
29 'DataVariable.cpp',
30 'DataVector.cpp',
31 'FunctionSpace.cpp',
32 'FunctionSpaceFactory.cpp',
33 'NullDomain.cpp',
34 'Taipan.cpp',
35 'escriptcpp.cpp']
36
37 escript_env = Environment(ENV = os.environ)
38
39 escript_env.Replace(CXX = 'icc')
40 escript_env.Replace(SHOBJSUFFIX = '.lo')
41 escript_env.Replace(CXXFLAGS = cxx_flags)
42 escript_env.Replace(CPPPATH = cpp_path)
43
44 escript_lib = escript_env.SharedLibrary(lib, sources)
45 escript_env.Install(libdir, escript_lib)

  ViewVC Help
Powered by ViewVC 1.1.26