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 from other makefiles.
I.e. they are going into:
<build-dir>/common/map.o
<build-dir>/linux/map.o
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 in the same directory, so there's a
conflict. He's tried using the automake option to generate objects in
the source directory, but that didn't work for reasons he outlined (but
I wasn't clear on).
John