LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-30-2014, 07:13 PM   #1
Dareros
LQ Newbie
 
Registered: May 2014
Posts: 13

Rep: Reputation: Disabled
Merge libraries source code


Hi

Most linux based libraries uses the configure tool and have makefiles. Those libraries have many c source files and theirs headers. So i would like to konw if it is possible or is their a tool that will take a library source directory and then merge all the c source files and header files to reproduce a single c source file ?

Best regards
 
Old 09-30-2014, 07:19 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,843

Rep: Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472
No.

The problem is that the files are modules. That isolates any static local variables (used within the module) from conflicting with what COULD be the same name, used as another static local variable in a different module.

The other advantage to having them separated is that an object library can be used to retrieve only the modules required, and not retrieve unused modules. It thus makes an executable image smaller.
 
1 members found this post helpful.
  


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
LXer: VIA Kernel Mode-Setting Code Might Merge Soon LXer Syndicated Linux News 0 07-01-2012 03:41 PM
error while porting gstreamer libraries into android source code jkm Linux - Mobile 0 03-31-2011 01:00 AM
LXer: Code bits, Open-Source Libraries, and project ideas LXer Syndicated Linux News 0 03-31-2007 10:31 PM
Kernel source code, Bison and some development libraries and headers habreu Debian 6 12-14-2006 04:16 PM
merge ASP code with PHP code.. possible ?? ALInux Programming 7 12-30-2005 09:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:14 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration