Re: Keeping source directory structure

2010-03-25 Thread Brendon Costa
>> It is not clear what the conflict is here. Are you creating several map.o >> files from the same map.cc? why? > > He's using a non-recursive build system that pulls source files of the same > name from two different sub-directories. The resulting object files are named > the same, and stored

Re: Keeping source directory structure

2010-03-24 Thread John Calcote
On 3/24/2010 11:22 AM, Peter Johansson wrote: Hi Brendon, Brendon Costa wrote: So I tried replacing the variable with: XXX_SOURCES= \ ../common/map.cpp \ ../linux/map.cpp This will kind of build, though the location it is putting the object files in is really bad and conflicts with those

Re: Keeping source directory structure

2010-03-24 Thread Peter Johansson
Hi Brendon, Brendon Costa wrote: where abs_top_srcdir is a variable i define in my configure script that is an absolute path to the top_srcdir (to avoid the ..'s) and is used in the sources instead of $(top_srcdir) To my knowledge, $(abs_top_srcdir) is defined by automake by default. So ther

Keeping source directory structure

2010-03-23 Thread Brendon Costa
Hi all, I have been using automake for a while now, however I recently came across an issue i haven't had to worry about before, which is having duplicate named source files under different directory structures producing conflicting object files. Say i have a source directory structure like: /bla