Hi,

> BlinkToRadioMsg.c:
>   mig c -c-prefix=BlinkToRadioMsg -o BlinkToRadio.h BlinkToRadioMsg $@


This is wrong, I didn't tried the C version of the tutorial, but you should
have something like that :

BlinkToRadioMsg.c:
  mig c -c-prefix=[...] -o  $@

where $@ refers to BlinkToRadioMsg.c
After the -o option you should have an output file name

Rémi

2009/4/19 Michael Schippling <[email protected]>

> It's been a long time since I did make foo and I don't know offhand
> what mig expects to get, but perhaps try the full input file name.
> In the makefile $@ expands to the target name, "BlinkToRadioMsg.c"
> in your case; and $< to it's dependencies -- the stuff after the :
> on the target line, of which you have none. It may be that the
> "BlinkToRadioMsg" is redundant.
>
> I just byped "mig" and got some rather unclear help...
>
> Use "man make" for more information than you will ever want.
>
> MS
>
> Derek Jones wrote:
> > Hi all,
> >
> > I am a bit of a newbie to makefiles and very much a newbie with tinyos.
> > I have been trying to figure out how to create the C equivalent of the
> > MIG Java example in Mote-PC serial communication and SerialForwarder. In
> > my makefile I have the following.
> >
> > COMPONENT=BlinkToRadioAppC
> > BUILD_EXTRA_DEPS+=BlinkToRadioMsg.o
> >
> > BlinkToRadioMsg.c:
> > mig c -c-prefix=BlinkToRadioMsg -o BlinkToRadio.h BlinkToRadioMsg $@
> >
> > include $(MAKERULES)
> >
> > Where BlinkToRadio.h is the header file containing the structure
> > BlinkToRadioMsg. I use the command: make tmote and get the following
> > errors/warnings.
> >
> > gcc: BlinkToRadioMsg No such file or directory
> > gcc: warning: '-x nesc' after last input file has no effect
> > gcc: no input files
> > failed to parse message file BlinkToRadioMsg
> > make: *** [BlinkToRadioMsg.c] Error 1
> >
> > Any help would be greatly appreciated as Google hasn't been my friend in
> > finding any answers.
> >
> > Regards
> >
> > Derek Jones
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to