[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Object & changing target of CXXCOM
From: |
Brad Garcia |
Subject: |
Re: Object & changing target of CXXCOM |
Date: |
Fri, 15 Jun 2001 15:52:31 -0400 (EDT) |
If all your source code lives in "dir", and you want all of your compiled
code to go in "obj", then you should use the Link command.
See the documentation for more information.
If that's not what you're trying to do, then could you explain your
problem in more detail?
On Fri, 15 Jun 2001, Steven Allen wrote:
> My problem is I have a file dir/file.cpp that I want to compile and put it's
> output in obj/file.o
>
> So
>
> Object $env "dir/file.cpp";
>
> I can change CXXCOM as so
>
> CXXCOM => 'g++ %CFLAGS %_IFLAGS -c %< -o binary/%>:F.o',
>
> This puts the .o file into the other directory just fine. BUT cons doesn't
> know that the target has changed from dir/file.o to binary/file.o and
> *always* rebuild binary/file.o. I can understand why, but I don't know how
> to fix it.
Brad Garcia