help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implicitly specifying target directories


From: Greg Chicares
Subject: Re: Implicitly specifying target directories
Date: Tue, 21 Mar 2006 02:36:26 +0000
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

On 2006-3-20 16:45 UTC, EXT-Pennington, Dale K wrote:
>
> Base -------- src----subproj1
>             |           +-subproj2
>             |
>             -----obj-----subproj1
>                        +subproj2
> 
> Currently each subproj builds in its source directory

I'd build everything in the 'obj' directories. For example,
cd to obj/subproj1/ and then do
  make -f ../../Makefile subproj1.exe
using vpath to tell the makefile where to find the sources.

> I tried the vpath directory, but that only works if the .o already
> exists. If it does not, they make the .o in the src directory, which is
> not desired.

vpath can reach back from the object dir to find sources,
but it it can't reach forward from the source dir to say
where to place objects.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]