autoconf
[Top][All Lists]
Advanced

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

Re: building binaries in separate directory


From: Baurzhan Ismagulov
Subject: Re: building binaries in separate directory
Date: Sat, 18 Aug 2007 22:15:08 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

On Sat, Aug 18, 2007 at 08:09:32PM +0530, Hrishikesh Muruk wrote:
> I have a directory structure  like below (the program builds only one  
> final executable  (myProgram):
> 
> myProgram/
>       src/
>               widget1/
>               widget2/
>               main.cpp
>       build/
>       
> How do I set up autoconf (and automake) so that widget1, widget2, and  
> main .cpp are built in the build directory? (i.e. I want to keep the  
> sources in the src directory and get make to build them in the build  
> dir)

Autotools support it out of the box, you just need to run configure from
the build directory. Assuming that you have working configure.ac,
Makefile.am, etc., just

cd build
../configure
make

With kind regards,
-- 
Baurzhan Ismagulov
http://www.kz-easy.com/




reply via email to

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