#$Id: .platform,v 1.6 2005/10/26 21:12:58 jpolastre Exp $

# Includes that should take precedence come first.  Platforms come before
# chips because they may override files.  These must be specified as
# @includes instead of -I's to @opts, otherwise the %T won't be processed
# by ncc.  And because of that, the current platform's include directory
# must be specified, otherwise its search order is last instead of first.

push( @includes, qw(

  %T/platform/telos
  %T/platform/msp430
  %T/lib/Flash/AT45DB
  %T/lib/Flash

) );

@opts = ("-gcc=msp430-gcc",
         "-mmcu=msp430x149",
         "-fnesc-target=msp430",
         "-fnesc-no-debug");

push @opts, "-mingw-gcc" if $cygwin;

# Including -I's here like this means that the make system can't override them.
# This is why it's bad to secretly stuff build logic in a place like .platform.
#push @opts, "-I$TOSDIR/lib/Flash";
#push @opts, "-I$TOSDIR/lib/Flash/AT45DB";

