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;