Thorsten Ottosen wrote, on 8/28/2007 10:49 AM:
> Hi all,
>
> Often I only want to compile a single .cpp file I'm
working on.
> Thus I could add a Jamfile with an obj target for each
.cpp file in my
> project. This seems a bit anoying. Is there a way to
auto generate a
> target (perhaps having the same name as the .cpp file
without it's
> extension)?
>
> Thanks in advance
>
> -Thorsten
You can tell it to generate the object file directly by
doing "bjam
foo.o" on Unix or "bjam foo.obj" on Windows
(or whatever the extension
for object files is on your system). Assuming you have a
foo.cpp, it
will build it. You'll get something like this:
notice: could not find main target foo.obj
notice: assuming it's a name of file to create
Phillip
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
a>
|