Deleted Added
sdiff udiff text old ( 2632:1bb2f91485ea ) new ( 2634:db0b1133abd5 )
full compact
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
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='.')
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 ---