This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: building a _shared_ library from sources in differentdirectories
- From: Alexandre Duret-Lutz <aduret at src dot lip6 dot fr>
- To: jgeorgal at uoc dot gr
- Cc: automake at gnu dot org
- Date: Tue, 22 Jul 2003 00:02:12 +0200
- Subject: Re: building a _shared_ library from sources in differentdirectories
- References: <87wuei5zkf.fsf@hciat-16.ics.forth.gr>
>>> "Giannis" == Giannis Georgalis <jgeorgal@uoc.gr> writes:
[...]
Giannis> What I want to do, is to build a *shared* library from
Giannis> ALL the sources that are included in module1 AND
Giannis> module2 AND module3 AND module4 and then link the
Giannis> program1 and program2 against this shared library.
Giannis> My latest approach to this problem (that didn't work)
Giannis> was to have for example in module2, module3, module4
Giannis> directories a Makefile.am of the form:
[...]
Giannis> noinst_LTLIBRARIES = libmodule{2,3,4}.la
[...]
Giannis> lib_LTLIBRARIES = libproject_name.la
Giannis> libproject_name_la_LIBADD = ../module2/libmodule2.la \
Giannis> ../module3/libmodule3.la ../module4/libmodule4.la
[...]
Giannis> What am I doing wrong ?
Nothing I could see. I'm using a similar setup successfully.
1. what Autoconf/Automake/Libtool versions are you using?
2. what "didn't work"?
Giannis> Additionally, even though it isn't as important for me as the
Giannis> previous question; Is it possible to make object files being created
Giannis> in the Obj subdirectory ? -> Note that my makefiles reside in the
Giannis> module1, module2, module3, module4, program1 and program2
Giannis> subdirectories.
See the subdir-objects options.
--
Alexandre Duret-Lutz