Re: subdir-objects & depcomp trouble

2005-10-03 Thread Stepan Kasal
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

Re: subdir-objects & depcomp trouble

2005-10-03 Thread Stepan Kasal
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

subdir-objects & depcomp trouble

2005-09-30 Thread Patrick Guio
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