[LITMUS^RT] Writing programs that use liblitmus

Björn Brandenburg bbb at mpi-sws.org
Fri Apr 27 22:24:03 CEST 2012


On Apr 27, 2012, at 9:15 PM, Sven Dziadek <s9svdzia at stud.uni-saarland.de> wrote:

> Hi,
> I want to create some test programs.
> 
> Up to now I always added my programs to liblitmus/bin/ and let them 
> compile together with the library (by adding a few lines to 
> liblitmus/Makefile).
> 
> Anyway I think this is not the nicest way to do it.. (At least because I 
> do not want to commit them into the git repository.)
> But I saw that liblitmus/Makefile creates the special 
> liblitmus/inc/config.makefile. How can I use it and what else do I need 
> to compile my test program?
> 
> Including
> {{{
> LIBLITMUS = ../liblitmus
> -include $(LIBLITMUS)/inc/config.makefile
> }}}
> and also using $(CFLAGS) in my Makefile is not sufficient.
> 
> Can anyone send me an example Makefile?

Hi Sven,

the config.makefile is intended exactly for that purpose. Please have a  look at the feather-trace-tools repository, which depends on the liblitmus-provided config.makefile IIRC.

- Björn





More information about the litmus-dev mailing list