|
From: | Bob Friesenhahn |
Subject: | Re: creating a shared library from more than one src directory |
Date: | Tue, 26 Oct 2004 10:52:49 -0500 (CDT) |
On Tue, 26 Oct 2004, Jens Rehsack wrote:
Another way is to use the non-recursive build approach where the sources are located in subdirectories.You mean adding sth. like this: lib_LTLIBRARIES = libfpbase.so libfpbase_so_SOURCES = $(src_dir)/core/base/$(core_base_SOURCES) \ $(src_dir)/core/base/$(core_config_SOURCES) ... to Makefile.am info project/src/core/? That may work. Is there a known good example available (do you know a project using such kind of Makefile.am's?)
The GraphicsMagick (http://www.graphicsmagick.org/) snapshot versions are using a non-recursive build with sources in subdirectories. Libltdl sources are used directly (without a convenience library). Except for libtool bugs, it is working fine. Given the existing libtool bugs (attempts to write to a non-existent .libs directory), it would be best to put all the built libraries in the top directory. Using sources and objects in subdirectories (Automake responsibility) works fine though.
Bob ====================================== Bob Friesenhahn address@hidden http://www.simplesystems.org/users/bfriesen
[Prev in Thread] | Current Thread | [Next in Thread] |