Thanks Micheal.
I will investigate it soon and reply with the result. Somebody else might
need it.
Right now, I have a lot to do.
Inderjit
On 5/14/07, Michael Schippling <[EMAIL PROTECTED]> wrote:
short answer: yes...
more complicated answer, to be take with a grain of salt because
I've probably forgotten something...
There is a make variable "CFLAGS" which is passed to the compiler.
You can stick anything you want in there and hope that it works right.
Since other bits and pieces may be using CFLAGS you want to add to it
so you use +=....To set a 'C' define you use this:
CFLAGS += -Dname=value
Then you figure out how to pass it to make as an environment variable,
which I always forget. I think this works but you'll need to experiment
and read the bash and make man pages:
var=value make stuff
MS
Inderjit Singh wrote:
> Hi,
>
> Is it possible to pass a preprocessor command from terminal i.e "$make
> XXX BASE". And in the code there are pre-processor definitions like:
>
> #ifdef BASE
> ...
> #endif
>
> What I'm trying to do is that there are some different routines for a
> BASE station and the other motes. BASE transmitts the serial data where
> as the other doesn't (shouldn't).
>
> Thanks
>
> Inderjit
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
>
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help