[Tinyos-help] a question about makefile

Tao Wu lanlantao at gmail.com
Fri Oct 6 12:54:58 PDT 2006


Hi Guys,

I have a question about a line in makefile

PFLAGS= -I%T/lib/Route -I%T/lib/Queue -I%T/lib/Broadcast

What does "-I%T/XXX" mean?  Why cann't we just use -I /lib/Route? Can anyone
tell the difference?

I checked the ncc manual pages. It says
"Except when -nostdinc is specified, the search path for nesC components is
as follows, where *tosdir* is the TinyOS directory requested and *target* is
the selected target:

   1. ./
   2. *-I* directives (in option order)
   3. %T/sensorboards/*boardname*, for each *-board=**boardname* option
   specified (in option order) - except if the sensorboard was found via an
   explicit -I directive
   4. %T/platform/%p - except if the platform was found via an explicit
   -I directive
   5. Additional directories requested by the selected target (e.g.,
   %T/platform/avrmote for the mica target)
   6. %T/interfaces
   7. %T/system
   8. %T/lib

"

Yet it is still not clear to me. Thanks a lot.

Best Regards,
Tao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20061006/d6839114/attachment.html


More information about the Tinyos-help mailing list