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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > W: http://www.spiderbox.com.au > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Matt > Keally > Sent: Sunday, June 01, 2008 1:30 AM > To: [email protected] > 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 > [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
