LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

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

Rep: Reputation: 0
autotools


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, 01:53 AM   #2
asgeirss
Member
 
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:
http://sourceware.org/autobook/autob..._18.html#SEC18

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
 
  


Reply


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 07:17 PM
Using GNU autotools properly MadCactus Linux - Software 0 08-19-2004 07:36 AM
newbie autotools question llama_meme Programming 4 04-15-2004 07:04 PM
Gnu Autotools jinksys Programming 0 10-08-2003 12:26 AM
autotools data help ChimpFace9000 Linux - Software 0 06-16-2003 01:29 PM


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

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