STM32F4 discovery makefile

sarraciro sarraciro at yahoo.it
Fri Nov 1 16:27:50 UTC 2013


I had a troubles with porting the cxx example in C (instead C++).
Probably the problem is in/src/Makefile.
The example is:
hello_c
|--lib
|     |--say.c
|     |--say.h
|--src
|     |--init

The project build the library (I had simply change the names of files
included)
but have a problem to find (link) the builded library.
I tried to define 
LIBS= -lstm32f4say.a
and also
LD_PATH= ../lib/o-optimize/
LD_LIBS= stm32f4say.a

I think that I have to change the build rules from:
$(PGM): $(OBJS)
	$(make-exe) 

to something like:
$(filter %.obj,$(PGM)): ${OBJS}
	$(make-obj)

$(filter %.exe,$(PGM)): ${LINK_FILES}
	$(make-exe)

With non-rtems platform I can build the same sample with autotools (like
in amhello1_template)  ...  but what about classic makefile approach...
Any suggest??

Thanks

--
SC
Il giorno ven, 01/11/2013 alle 01.44 +0100, sarraciro ha scritto:
> I'll check it ...
> thanks for clarification &  suggest.
> 
> --
> RC
> Il giorno ven, 01/11/2013 alle 09.51 +1100, Chris Johns ha scritto:
> > On 1/11/2013 5:11 am, sarraciro wrote:
> > > In effect...
> > > I've tried to build the example-v2... with success.
> > > I think that, studying them with care, I may to be able to extract the
> > > needed information to centre the target.
> > 
> > Just a little warning about using Makefile.inc to build applications. 
> > Support will be removed from RTEMS in a future release. There maybe 
> > tools provided to generate equivalent files but that is still a maybe.
> > 
> > Personally I am using waf ...
> > 
> >   http://www.rtems.org/ftp/pub/rtems/people/chrisj/rtems-waf/
> > 
> > I will be supporting this way of building application across future 
> > RTEMS releases.
> > 
> > Chris
> 
> 
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello_world_c2.tar.gz
Type: application/x-compressed-tar
Size: 19052 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20131101/90dbc97b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: amhello1_template.tar.gz
Type: application/x-compressed-tar
Size: 10184 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20131101/90dbc97b/attachment-0001.bin>


More information about the users mailing list