18113Sgblack@eecs.umich.edu# Copyright (c) 2011 Gabe Black
28113Sgblack@eecs.umich.edu# All rights reserved.
38113Sgblack@eecs.umich.edu#
48113Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
58113Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are
68113Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright
78113Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
88113Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
98113Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
108113Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution;
118113Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its
128113Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from
138113Sgblack@eecs.umich.edu# this software without specific prior written permission.
148113Sgblack@eecs.umich.edu#
158113Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
168113Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
178113Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
188113Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
198113Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
208113Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
218113Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
228113Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
238113Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
248113Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
258113Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
268113Sgblack@eecs.umich.edu#
278113Sgblack@eecs.umich.edu# Authors: Gabe Black
288113Sgblack@eecs.umich.edu
298113Sgblack@eecs.umich.eduimport os
308113Sgblack@eecs.umich.edu
318113Sgblack@eecs.umich.eduImport('env', 'arch')
328113Sgblack@eecs.umich.edu
338113Sgblack@eecs.umich.eduenv.Append(CPPPATH=Dir('.'))
348113Sgblack@eecs.umich.edu
358113Sgblack@eecs.umich.edusources = [os.path.join('base', 'statetrace.cc'),
368113Sgblack@eecs.umich.edu           os.path.join('base', 'tracechild.cc'),
378113Sgblack@eecs.umich.edu           os.path.join('arch', arch, 'tracechild.cc')]
388113Sgblack@eecs.umich.eduobjects = [env.Object(source) for source in sources]
398113Sgblack@eecs.umich.eduenv.Program('statetrace', objects)
40