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/


_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to