LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   HOWTO compile big project (http://www.linuxquestions.org/questions/linux-newbie-8/howto-compile-big-project-808302/)

Niraj Kulkarni 05-17-2010 06:37 AM

HOWTO compile big project
 
Hi,
I need to compile a big project in Linux. I understand
1. there should be one porject folder with a "Master Makefile" which contains names of all sub-folders.
2. Each sub-folder itself will have a Makefile , one C-file if needed one header file.
3. There will be a common folder for all headers.
Please tell me Where to start from : Master Make file , Make file inside each folder , Where do rules.make come into picture , what if sub-folder 1 depends on sub-folder 2 .
Is there any HOWTO learning link.
Can any one please give me some idea/example in this regard.
Please guide me...
Thnks

ajeetsinghraina 05-17-2010 06:43 AM

Hope http://www.wikihow.com/Build-a-Typical-Linux-Project answers your query.

AwesomeMachine 05-17-2010 08:08 AM

Check out the man pages for aclocal, autoconf, and automake.

Gridley 05-17-2010 09:56 AM

Use CMake, it's much, much easier to use.

Niraj Kulkarni 05-17-2010 10:21 AM

Thanks a lot.
But I want to make my own system/project. In the link : http://www.wikihow.com/Build-a-Typical-Linux-Project
is a method for compliing a pre-decided structure (like I have installed ip-messnger , ./configure->make-> make install ). Not Self written.
Or do you with that as a base I should write/build my project.
Regards

knudfl 05-22-2010 04:57 AM

HOWTO's

http://www.gnu.org/software/autoconf/
http://www.gnu.org/software/automake/
http://sourceware.org/autobook/

http://www.freesoftwaremagazine.com/..._gnu_autotools
http://www.freesoftwaremagazine.com/...with_autotools
http://www.freesoftwaremagazine.com/..._with_autoconf

http://www.wlug.org.nz/MakefileHowto
http://www.eng.hawaii.edu/Tutor/Make/


All times are GMT -5. The time now is 04:40 AM.