[Top][All Lists]

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

Re: target with sources in different directory?

From: John Levon
Subject: Re: target with sources in different directory?
Date: Mon, 30 Jul 2001 19:30:11 +0100
User-agent: Mutt/1.3.19i

On Sun, Jul 29, 2001 at 02:40:54AM -0400, Denes Molnar wrote:

> Hi,
> Is there a way to specify a target (e.g., a library) to be built from
> sources that are in different directories? I need to build a library from
> a large number of objects for which the sources are in various
> subdirectories  (for easiear maintenance).
> I tried a simple example
> lib_LIBRARIES = mylib.a
> mylib_SOURCES = ../a/a.C ../b/b.C 
> but automake gives a message telling this is not supported (I have
> automake 1.4).
> Thanks for any help.

You can use libtool convenience libraries to do this. AFAIK this is the standard
solution. It uses up more diskspace and increases build times though.

See the autobook.


"I'd rather be rudely informed than politely left in the dark."

reply via email to

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