fix scons dist and scons all for gcc 4.1

This commit is contained in:
Mathieu Lacage
2007-05-17 07:51:22 +02:00
parent 256582455b
commit 58f1af736e
3 changed files with 12 additions and 6 deletions

4
BUILD
View File

@@ -29,6 +29,10 @@ Example: scons cflags="-O3 -ffast-math"
Example: scons cxxflags="-O3 -ffast-math"
- ldflags: flags for the linker:
Example: scons ldflags="-L/foo -L/bar"
- cc: the C compiler to use:
Example: scons cc=gcc-4.0
- cxx: the C++ compiler to use:
Example: scons cxx=g++-4.0
- high-precision-as-double: set to 'y' to make sure that the
high-precision arithmetics performed by the Time class on
behalf of the user will use doubles. By default, the code

View File

@@ -4,7 +4,7 @@ import build
ns3 = build.Ns3()
ns3.build_dir = 'build-dir'
ns3.version = '0.0.1'
ns3.version = '0.2'
ns3.name = 'ns3'
ns3.doxygen_config = os.path.join('doc', 'doxygen.conf')
ns3.add_extra_dist(os.path.join('doc', 'main.txt'))
@@ -277,12 +277,11 @@ inode.add_headers ([
'udp-header.h',
'ipv4-checksum.h',
'arp-header.h',
'arp-cache-cache.h',
'arp-cache.h',
'arp.h',
'ipv4-loopback-interface.h',
'l3-demux.h',
'header-utils.h',
'queue.h',
'arp-ipv4-interface.h',
'udp-socket.h',
'udp.h',
@@ -318,9 +317,6 @@ p2p.add_sources ([
'p2p-channel.cc',
'p2p-topology.cc',
])
p2p.add_headers ([
'propagator.h',
])
p2p.add_inst_headers ([
'p2p-net-device.h',
'p2p-channel.h',

View File

@@ -350,6 +350,12 @@ class Ns3:
env = Environment(ENV=os.environ)
debug_flags = ['-W1', '-GX', '-EHsc', '-D_DEBUG', '/MDd']
opti_flags = ['-O2', '-EHsc', '-DNDEBUG', '/MD']
cc = ARGUMENTS.get ('cc', '')
cxx = ARGUMENTS.get ('cxx', '')
if cc != '':
env.Replace (CC = cc)
if cxx != '':
env.Replace (CXX = cxx)
env.Append(CCFLAGS = common_flags,
CPPDEFINES = ['RUN_SELF_TESTS'],
TARFLAGS = '-c -z',