SConscript (2632:1bb2f91485ea) SConscript (2634:db0b1133abd5)
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 312 unchanged lines hidden (view full) ---

321###################################################
322
323# base/traceflags.{cc,hh} are generated from base/traceflags.py.
324# $TARGET.base will expand to "<build-dir>/base/traceflags".
325env.Command(Split('base/traceflags.hh base/traceflags.cc'),
326 'base/traceflags.py',
327 'python $SOURCE $TARGET.base')
328
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 312 unchanged lines hidden (view full) ---

321###################################################
322
323# base/traceflags.{cc,hh} are generated from base/traceflags.py.
324# $TARGET.base will expand to "<build-dir>/base/traceflags".
325env.Command(Split('base/traceflags.hh base/traceflags.cc'),
326 'base/traceflags.py',
327 'python $SOURCE $TARGET.base')
328
329# libelf build is described in its own SConscript file.
330# SConscript-local is the per-config build, which just copies some
331# header files into a place where they can be found.
332SConscript('libelf/SConscript-local', exports = 'env', duplicate=0)
333SConscript('python/SConscript', exports = ['env'], duplicate=0)
334
335# This function adds the specified sources to the given build
336# environment, and returns a list of all the corresponding SCons
337# Object nodes (including an extra one for date.cc). We explicitly
338# add the Object nodes so we can set up special dependencies for
339# date.cc.
340def make_objs(sources, env):

--- 12 unchanged lines hidden (view full) ---

353#
354###################################################
355
356# Include file paths are rooted in this directory. SCons will
357# automatically expand '.' to refer to both the source directory and
358# the corresponding build directory to pick up generated include
359# files.
360env.Append(CPPPATH='.')
329SConscript('python/SConscript', exports = ['env'], duplicate=0)
330
331# This function adds the specified sources to the given build
332# environment, and returns a list of all the corresponding SCons
333# Object nodes (including an extra one for date.cc). We explicitly
334# add the Object nodes so we can set up special dependencies for
335# date.cc.
336def make_objs(sources, env):

--- 12 unchanged lines hidden (view full) ---

349#
350###################################################
351
352# Include file paths are rooted in this directory. SCons will
353# automatically expand '.' to refer to both the source directory and
354# the corresponding build directory to pick up generated include
355# files.
356env.Append(CPPPATH='.')
361env.Append(CPPPATH='./libelf')
362
363# Debug binary
364debugEnv = env.Copy(OBJSUFFIX='.do')
365debugEnv.Label = 'debug'
366debugEnv.Append(CCFLAGS=Split('-g3 -gdwarf-2 -O0'))
367debugEnv.Append(CPPDEFINES='DEBUG')
368tlist = debugEnv.Program(target = 'm5.debug',
369 source = make_objs(sources, debugEnv))

--- 33 unchanged lines hidden ---
357
358# Debug binary
359debugEnv = env.Copy(OBJSUFFIX='.do')
360debugEnv.Label = 'debug'
361debugEnv.Append(CCFLAGS=Split('-g3 -gdwarf-2 -O0'))
362debugEnv.Append(CPPDEFINES='DEBUG')
363tlist = debugEnv.Program(target = 'm5.debug',
364 source = make_objs(sources, debugEnv))

--- 33 unchanged lines hidden ---