[Tinyos-help] Makefile in different directory than source
Matt Keally
makeal at wm.edu
Sun Jun 1 18:04:24 PDT 2008
Thanks,
This worked, but I had to specify the directory of the top level component:
COMPONENT=subdir/AppC
Matt Keally
On Sun, Jun 1, 2008 at 7:41 PM, Varun Jain <varun at spiderbox.com.au> wrote:
> Hi Matt,
> I am not an expert at Makefiles either but I think for this one that in
> your makefile, you need to do an "INCLUDES" statement such that you have
> a main application called "AppC" within which you have another folder
> called "SubApp" where you can have your source code like
>
> -----------------------------------------------------------
> COMPONENT=AppC
>
> INCLUDES= -I.. \
> -I../SubApp
>
> CFLAGS += $(INCLUDES)
>
> include $(MAKERULES)
> -----------------------------------------------------------
>
> FOR more information, see how it is done in the repository for RssiDemo
> application at /tos/apps/tutorials/RssiDemo
>
>
> Cheers,
>
> Varun Jain
> R&D Electronics Design Engineer
> Spiderbox Pty. Ltd.
> P: +617 3318 9509
> F: +617 3318 9595
> M: +61401 091 248
> E: varun at spiderbox.com.au
> W: http://www.spiderbox.com.au
>
>
> -----Original Message-----
> From: tinyos-help-bounces at millennium.berkeley.edu
> [mailto:tinyos-help-bounces at millennium.berkeley.edu] On Behalf Of Matt
> Keally
> Sent: Sunday, June 01, 2008 1:30 AM
> To: tinyos-help at millennium.berkeley.edu
> Subject: [Tinyos-help] Makefile in different directory than source
>
> Hi,
>
> I would like to keep my TinyOS 2.x application source code in a
> subdirectory from the makefile that builds it. Unfortunately, I am not
> very familiar with using makefiles.
>
> Is there any way to include a source directory in the makefile for my
> application? Otherwise, when I try to compile the application, the
> makefile does not know where to look for the source code.
>
> Thanks,
>
> Matt
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080601/195013aa/attachment.htm
More information about the Tinyos-help
mailing list