[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Common Source code

From: Paulo J. Matos
Subject: Re: Common Source code
Date: Fri, 12 May 2006 14:01:55 +0100

On 12/05/06, Paulo J. Matos <address@hidden> wrote:

Ah, that's most probably what I need. Thanks a lot!

After reading the chapter you mentioned and browsing the rest of the
very nice book I implemented things that way and set up the structure
(I'll forget lib2):
|- lib
|    |- install-libs
|    |          |- lib1
|    |- convenience-libs
|               |- liblogger
|- src

And I have only one in lib logger and the source files.
The in liblogger is:
libesatlogger_la_SOURCES = logger.hh

The in lib1 specifies:


And in in lib1:
SUBDIRS = ../../convenience-libs/liblogger src

Makefile of liblogger is generated OK, however I get an error:
make[2]: Entering directory `/home/pmatos/soft/lib/convenience-libs/liblogger'
make[2]: *** No rule to make target `../../../../', needed
by `'.  Stop.

The problem is that the generated Makefile in liblogger has:
top_srcdir = ../../../..

And the top_srcdir is the one in lib1 which is ../../usable-libs/lib1
and not ../../../..

Probably liblogger would have to be inside the lib1 tree but what
happens in lib2 also needs liblogger as a convinience library? Do I
have to duplicate liblogger inside lib2 tree? Don't think this is the
way to go.

Is this a bug or a problem of my configuration?

Paulo Jorge Matos - pocm at sat inesc-id pt
Computer and Software Engineering

reply via email to

[Prev in Thread] Current Thread [Next in Thread]