Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-15-2007, 04:35 AM   #1
LQ Newbie
Registered: Jan 2007
Posts: 5

Rep: Reputation: 0

my project has many sources which logically split into directories. Each subdirectiry has common headers needed for others part and its own. How should I compile its project using autotools????
As I understandd I should for all subdirs create static library and lately all of them link to the main program where I decide to create main-func, is it right?
Or how to orginize project structutre in the most convinience way??

thanks a lot.
Old 01-16-2007, 02:53 AM   #2
Registered: Aug 2003
Location: Vancouver, Canada
Distribution: RH, SL
Posts: 37

Rep: Reputation: 15
What you are describing, is what 'makefiles' and the utility 'make' are for - keeping track of separate code directories or libraries, and their dependencies.

If you want to use gnu make, take a look at the documentation here:

Or pick up any book or online tutorial describing how to use make, and it will show you what to do. Basically you specify a series of 'targets' each directory could be one target, then you need to specify which other targets need to be built first, the dependencies... Depending on how many code files you have, it can get very complicated. Good luck!

- Dave


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
slack autotools sunman Slackware 2 11-05-2005 08:17 PM
Using GNU autotools properly MadCactus Linux - Software 0 08-19-2004 08:36 AM
newbie autotools question llama_meme Programming 4 04-15-2004 08:04 PM
Gnu Autotools jinksys Programming 0 10-08-2003 01:26 AM
autotools data help ChimpFace9000 Linux - Software 0 06-16-2003 02:29 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration