/[escript]/branches/RW_WIN32/tools/mmio/src/SConscript
ViewVC logotype

Diff of /branches/RW_WIN32/tools/mmio/src/SConscript

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

revision 185 by robwdcock, Sun Nov 20 05:43:12 2005 UTC revision 186 by robwdcock, Sun Nov 20 10:51:16 2005 UTC
# Line 1  Line 1 
1  Import('*')  Import('*')
2    
3  import os  # TODO: These two sections can be unified once we know what the linux/irix build looks like
4    
5  cc_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -w1'  if env['PLATFORM'] == "win32":
6       mmio_env=env
7  cpp_path = ['#inc']    
8       mmio_lib = mmio_env.StaticLibrary( 'mmio', 'mmio.c')
9  lib = 'mmio'     include = Dir('mmio', esys_inc)
10  sources = ['mmio.c']    
11       mmio_env.Install( include, 'mmio.h')
12  mmio_env = Environment(ENV = os.environ)     mmio_env.Install( esys_lib, mmio_lib)
13    else:
14  mmio_env.Replace(CC = 'icc')     import os
15  mmio_env.Replace(CCFLAGS = cc_flags)    
16  mmio_env.Replace(CPPPATH = cpp_path)     cc_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -w1'
17      
18  mmio_lib = mmio_env.StaticLibrary(lib, sources)     cpp_path = ['#inc']
19  mmio_env.Install(libdir, mmio_lib)    
20       lib = 'mmio'
21       sources = ['mmio.c']
22      
23       mmio_env = Environment(ENV = os.environ)
24      
25       mmio_env.Replace(CC = 'icc')
26       mmio_env.Replace(CCFLAGS = cc_flags)
27       mmio_env.Replace(CPPPATH = cpp_path)
28      
29       mmio_lib = mmio_env.StaticLibrary(lib, sources)
30       mmio_env.Install(libdir, mmio_lib)

Legend:
Removed from v.185  
changed lines
  Added in v.186

  ViewVC Help
Powered by ViewVC 1.1.26