On Thu, June 14, 2007 7:51 am, Romain Thouvenin said:
> When you want to add personal compilation options, use PFLAGS+=...
> In your code, you wrote PFLAGS=..., which destroys what you added before.
>
> Romain

Correct

> On 6/14/07, Bibudh Lahiri <[EMAIL PROTECTED]> wrote:
>> Hi,
>>   Can anyone throw some light on what is the best way (syntactically) to
>> include multiple files in the makefile? I need to include the following
>> files for one application:
>>
>>    /usr/include/math.h
>>    /opt/tinyos-1.x/tos/interfaces/Random.nc
>>
>>  and two header files (config.h and nMotesMsg.h) from my own application
>> folder (which is
>> /opt/tinyos-1.x/apps/FlajoletMartin/BaseStation).
>>
>>  I tried the following:
>>
>>   COMPONENT=BaseStation
>>   PFLAGS=-I/usr/include
>>   PFLAGS=-I%T/interfaces
>>   PFLAGS=-I../Library
>>   include ../../Makerules
>>
You can also use:
PFLAGS += -I/usr/include -I%T/interfaces -I../Library

Whitespace in the makefile may be included for clarity.

-- 
The difference between the right word and the almost right word is really a
large matter- it's the difference between a lightning bug and the lightning.
-Twain

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to