Re: building binaries in separate directory

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

 



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
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux