On Wed, May 21, 2008 at 07:21:26PM -0700, eawiggins spake thus:
> 
> Hi, 
> 
> I'm trying to figure out how to put my object files into a separate
> directory so that they aren't mixed in w/ my cpp source files, and still be
> able to link and build.
> 
> I've got a basic autoconf, automake, libtool configuration working, but
> haven't found anything to help me w/ this question, 
> 
> Thanks,

I think you just want to do a "VPATH build". One common way of doing
this is invoking your 'configure' script from a peer directory of your
top-level source tree.

    $ pwd
    .../project-foo
    $ cd .. && mkdir project-foo-BUILD && cd project-foo-BUILD
    $ pwd
    .../project-foo-BUILD
    $
    $ ../project-foo/configure ... && make

Your object files will be beneath the

    .../project-foo-BUILD

directory, and the source code in the

    .../project-foo

directory will remain "pristine".

HTH,
-Al

-- 
a l a n   d.   s a l e w s k i             [EMAIL PROTECTED]
--------------------------------------------------------------------
                        In my bright office
                     I look out of the window
                        at a dead chipmunk
--------------------------------------------------------------------
Generated from Haiku-O-Matic:           www.smalltime.com/haiku.html


Reply via email to