[Top][All Lists]

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

Re: howto place object files in dir other than source dir

From: Alan D. Salewski
Subject: Re: howto place object files in dir other than source dir
Date: Wed, 21 May 2008 23:30:23 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

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
    $ cd .. && mkdir project-foo-BUILD && cd project-foo-BUILD
    $ pwd
    $ ../project-foo/configure ... && make

Your object files will be beneath the


directory, and the source code in the


directory will remain "pristine".


a l a n   d.   s a l e w s k i             address@hidden
                        In my bright office
                     I look out of the window
                        at a dead chipmunk
Generated from Haiku-O-Matic: 

reply via email to

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