STM32F4 discovery makefile

sarraciro sarraciro at yahoo.it
Fri Nov 1 16:42:45 UTC 2013


Sorry in last message I've made an error in the structure
The example is:
 hello_c
  |--lib
  |     |--say.c
  |     |--say.h
  |     |--Makefile
  |--src
  |     |--init
  |     |--Makefile
  | --Makefile

Thanks again

--
RC
Il giorno ven, 01/11/2013 alle 17.27 +0100, sarraciro ha scritto:
> 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
> 
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users





More information about the users mailing list