automake
[Top][All Lists]
Advanced

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

Re: Destination directory for object files


From: Jan Engelhardt
Subject: Re: Destination directory for object files
Date: Tue, 3 Mar 2009 22:41:07 +0100 (CET)
User-agent: Alpine 2.00 (LSU 1167 2008-08-23)

On Tuesday 2009-03-03 22:37, Ralf Wildenhues wrote:
>* Jeff Ward wrote on Tue, Mar 03, 2009 at 10:31:01PM CET:
>>
>> What I was hoping for was an ability to make the rule look something  
>> like the following:
>> .cpp.o:
>>     if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o  
>> objects/$@ $<; \
>>
>> This would cause my object files to be placed somewhere other than the  
>> current directory.  I know this is probably a stretch and might be going 
>> against the core capabilities and features of the tool.  But I can hope.
>
>The question is why do you want this, but not VPATH?
>
>The other thing you can look at is the subdir-objects option.

And to have objects be separate from source, call configure
from a distinct directory, e.g.

        ls -l configure; # you're there
        mkdir obj;  # hihi
        ../configure;




reply via email to

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