|
From: | John Calcote |
Subject: | Re: Keeping source directory structure |
Date: | Wed, 24 Mar 2010 11:30:10 -0600 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 |
On 3/24/2010 11:22 AM, Peter Johansson wrote:
Hi Brendon, Brendon Costa wrote:It is not clear what the conflict is here. Are you creating several map.o files from the same map.cc? why?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
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
[Prev in Thread] | Current Thread | [Next in Thread] |