Hello again,
in a private mail, Patrick pointed out some problems in my answer:
On Mon, Oct 03, 2005 at 02:15:29PM +0200, Stepan Kasal wrote:
> You should use a relative path, ie. in lib/Makefile.am you should use:
>
> libmylib_la_SOURCES = ../src/myfile.cc
I should have said _literal_ relative
Hello Patrick,
On Fri, Sep 30, 2005 at 09:48:25AM +0200, Patrick Guio wrote:
> libmylib_la_SOURCES = $(top_srcdir)/src/myfile.cc
this is the problem.
though it might seem counter-intiuitve, you should never specify srcdir
or top_srcdir in your Makefile.am. You should use a relative path, ie.
in
Dear all,
I experienced some problems recently using the "subdir-objects" option of
AM_INIT_AUTOMAKE when creating a library in a different directory than
the source files directory.
configure.ac contains the following line
AM_INIT_AUTOMAKE([1.6.3 subdir-objects foreign])
The "src" director