# filetype=python

#  Network Simulation Cradle
#  Copyright (C) 2003-2005 Sam Jansen
#
#  This program is free software; you can redistribute it and/or modify it
#  under the terms of the GNU General Public License as published by the Free
#  Software Foundation; either version 2 of the License, or (at your option)
#  any later version.
#
#  This program is distributed in the hope that it will be useful, but WITHOUT
#  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
#  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
#  more details.
#
#  You should have received a copy of the GNU General Public License along
#  with this program; if not, write to the Free Software Foundation, Inc., 59
#  Temple Place, Suite 330, Boston, MA 02111-1307 USA

# Doesn't work? Had problems using timestamp signatures. Might have sped things
# up...
#SourceSignatures('timestamp')

globaliser_action = '$CC $CCFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS ' \
    + ' -E $SOURCE -o - | $GLOBALISER $GLB_FLAGS $GLB_LIST >$TARGET'

# | tee ${SOURCE}.prepro 
#
# We can put the above in (the tee line) before the invocation of the
# globaliser to record the preprocessed output if we want to be able to view
# that for whatever reason.

default_env = Environment(
    GLOBALISER = 'globaliser/globaliser',
    GLB_FLAGS = '-v')
default_env.Append(
    BUILDERS = { 'Parser' : Builder(action = globaliser_action) } )
Export('default_env')

SConscript('globaliser/SConscript')

SConscript('freebsd5/SConscript')
SConscript('lwip-HEAD/src/SConscript')
SConscript('openbsd3/SConscript')
SConscript('linux-2.4/SConscript')
SConscript('linux-2.6/SConscript')

#SConscript('scps/SConscript')
#SConscript('linux-2.6.14.2/SConscript')
