This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: creating a shared library from more than one src directory


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
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]