<div dir="ltr">I tried CFLAGS as suggested and it seems to be completely ignored. My application Makefile now looks like this:<div><br></div><div><div>PGM=${ARCH}/rtems-hello.exe</div><div><br></div><div># optional managers required</div>
<div>MANAGERS=all</div><div><br></div><div># C source names</div><div>CSRCS = rtems-hello.c</div><div>COBJS = $(CSRCS:%.c=${ARCH}/%.o)</div><div>CFLAGS += -I/home/james/Projects/development/motorobots/include</div><div><br>
</div><div>MOTOROBOTS_LIBS = /opt/motorobots/68332/lib</div><div>#LD_PATHS += </div><div>LD_LIBS += $(MOTOROBOTS_LIBS)/liblcd.a  $(MOTOROBOTS_LIBS)/libled.a</div><div><br></div><div>include $(RTEMS_MAKEFILE_PATH)/Makefile.inc</div>
<div>include $(RTEMS_CUSTOM)</div><div>include $(PROJECT_ROOT)/make/leaf.cfg</div><div><br></div><div>OBJS= $(COBJS) $(CXXOBJS) $(ASOBJS)</div><div><br></div><div>all:    ${ARCH} $(PGM)</div><div><br></div><div>$(PGM): $(OBJS) ${LINK_FILES}</div>
<div><span class="" style="white-space:pre">    </span>$(make-exe)</div></div><div><br></div><div>and running make looks like:</div><div><br></div><div><div>hello$ make</div><div>test -d o-optimize || mkdir o-optimize</div><div>
m68k-rtems4.10-gcc --pipe -B/home/james/Projects/development/rtems/rtems-mrm332/m68k-rtems4.10/mrm332/lib/ -specs bsp_specs -qrtems   -g -Wall  -O2 -g -fomit-frame-pointer -g    -mcpu=cpu32     -c   -o o-optimize/rtems-hello.o rtems-hello.c</div>
<div>rtems-hello.c:6:27: error: 68332/mrm/led.h: No such file or directory</div><div>rtems-hello.c:7:27: error: 68332/mrm/lcd.h: No such file or directory</div></div><div>....</div><div><br></div><div><br></div><div>As you can see the include path doesn't appear in the gcc command.</div>
<div><br></div><div>I've read the make/README and can't see anything relavant in there. Am I missing something really obvious here?</div><div><br></div><div>Thanks for any help you can provide!</div><div>James</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 30 January 2014 13:38, James Fitzsimons <span dir="ltr"><<a href="mailto:james.fitzsimons@gmail.com" target="_blank">james.fitzsimons@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks very much guys,<div><br></div><div>I'm thought I'd tried CFLAGS, but I obviously didn't have something quite right so I'll give it another shot.</div>
<div><br></div><div>I'll definitely look into Eclipse - I've used it before for C/C++ stuff and found it excellent. I'm trying to start out pretty vanilla with RTEMS just so I get a really good handle on how the whole build process works (there are a LOT of makefiles to understand) as I've found with other tools that an IDE can often make things nice and easy until it goes wrong, and if you don't understand what it's doing under the hood you are all of a sudden in very deep water.</div>

<div><br></div><div>Cheers!</div><span class="HOEnZb"><font color="#888888"><div>James</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On 30 January 2014 12:53, Simon Williams <span dir="ltr"><<a href="mailto:williamssimonp@gmail.com" target="_blank">williamssimonp@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Ah, -I and CFLAGS it is then.  That'll teach me to read posts properly and not just skim them! :-)</p>


<p dir="ltr">I started using Eclipse for Java, but I moved to using Netbeans as I prefer it, but Eclipse with CDT is a grest C/C++ IDE and the RTEMS plug in makes RTEMS development more productive than vi. I don't really know of an alternative iif you want an IDE for RTEMS, but that may be just because I've not looked. </p>



<p dir="ltr">Regards</p><span><font color="#888888">
<p dir="ltr">Simon</p></font></span><div><div>
<div class="gmail_quote">On 29 Jan 2014 23:36, "Nick Withers" <<a href="mailto:nick.withers@anu.edu.au" target="_blank">nick.withers@anu.edu.au</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


On Wed, 2014-01-29 at 23:31 +0000, Simon Williams wrote:<br>
> Wouldn't thst be -L for the lbrary path? The -l option is usef to<br>
> specify a library.<br>
><br>
> Also, linker flags are usually in LDFLAGS, CFLAGS is for compiler<br>
> flags. It does of course depend on your Makefile.<br>
<br>
It's include paths he's after, which are for the compiler.<br>
<br>
> I would recommend Eclipse. It won't do everything for you, but it can<br>
> help by pointing the way!<br>
<br>
I've heard a lot of good things about Eclipse. I've got a personal peeve<br>
against Java and that's really all that's kept me from trying it!<br>
<br>
> Regards<br>
><br>
> Simon<br>
><br>
> On 29 Jan 2014 22:18, "Nick Withers" <<a href="mailto:nick.withers@anu.edu.au" target="_blank">nick.withers@anu.edu.au</a>> wrote:<br>
>         On Wed, 2014-01-29 at 22:29 +1300, James Fitzsimons wrote:<br>
>         > Thanks Andrei,<br>
>         ><br>
>         ><br>
>         > I'm using a very plain vanilla environment at the moment.<br>
>         Ubuntu 13.10<br>
>         > with tool chain built using rtems source builder.<br>
>         ><br>
>         ><br>
>         > I'm using the template makefile for my test application, and<br>
>         am just<br>
>         > running make directly from bash.<br>
>         ><br>
>         ><br>
>         > No IDE or fancy build environment yet!<br>
><br>
>         I'd've said the RTEMS'provided Makefiles (there are a number<br>
>         of them,<br>
>         chained together) are pretty fancy... But then, I have trouble<br>
>         with just<br>
>         one Makefile :-P<br>
><br>
>         Anyway, try:<br>
>                 CFLAGS+=-I/bam/headers<br>
><br>
>         > Cheers,<br>
>         > James<br>
>         ><br>
>         ><br>
>         > On 29 January 2014 17:01, Andrei Chichak <<a href="mailto:groups@chichak.ca" target="_blank">groups@chichak.ca</a>><br>
>         wrote:<br>
>         >         I believe what Sebastian is referring to is the<br>
>         environment<br>
>         >         that you are using for your compiles. In my case, I<br>
>         am using a<br>
>         >         Mac and Eclipse, I set <C/C++ Build><Settings><Tool<br>
>         >         Settings><RTEMS C Compiler><Preprocessor><Include<br>
>         Paths (-I)>.<br>
>         ><br>
>         >         Your milage will vary, but if you tell us what you<br>
>         are<br>
>         >         driving, there may be someone here that can help.<br>
>         ><br>
>         >         Andrei<br>
>         ><br>
>         ><br>
>         >         On 2014-January-28, at 2:11 PM, James Fitzsimons<br>
>         >         <<a href="mailto:james.fitzsimons@gmail.com" target="_blank">james.fitzsimons@gmail.com</a>> wrote:<br>
>         ><br>
>         >         > Hi Sebastian,<br>
>         >         ><br>
>         >         > Thanks for your reply.<br>
>         >         ><br>
>         >         > Ideally I was hoping to us the -I option to<br>
>         specify the<br>
>         >         header file location, I just can't quite figure out<br>
>         where to<br>
>         >         add that into the RTEMS makefile structure. Looking<br>
>         at the<br>
>         >         make/README I can see a good example of how to link<br>
>         in other<br>
>         >         libraries using LD_LIBS, but there's nothing about<br>
>         including<br>
>         >         other header files.<br>
>         >         ><br>
>         >         > Apologies if I am missing something obvious!<br>
<br>
--<br>
Nick Withers<br>
<br>
Embedded Systems Programmer<br>
Department of Nuclear Physics, Research School of Physics and Engineering<br>
The Australian National University (CRICOS: 00120C)<br>
<br>
</blockquote></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>