GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 09-Sep-2004, 05:45
nkhambal nkhambal is offline
Regular Member
 
Join Date: Jul 2004
Location: CA USA
Posts: 315
nkhambal is a jewel in the roughnkhambal is a jewel in the rough

How to write efficient Makefiles for gcc complier


Hi all,

I am looking for some text or pointers or tutorials on writing Makefiles to compile the large C programs broken down into multiple .C & .h files.

I have basic idea about Makefile and I am using one with some basic directives,but its not good enough or rather scalable when my program will grow beyond 10 files.

Pls let me know.

Thanks,
  #2  
Old 09-Sep-2004, 08:02
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 5,496
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold
Quote:
Originally Posted by nkhambal
Hi all,

I am looking for some text or pointers or tutorials on writing Makefiles to compile the large C programs broken down into multiple .C & .h files.

I have basic idea about Makefile and I am using one with some basic directives,but its not good enough or rather scalable when my program will grow beyond 10 files.

Pls let me know.

Thanks,

This is an unbelievably powerful program, and I applaud your interest in gaining expertise.

I have two ideas; pick one (or both):

1. enter info make at a Linux command line. Most Linux distributions have the info program and have info-readable versions of the documentation. Don't have "info" or don't know how to use "info"? Then enter man info. Don't have "man" (you Windows folks), or don't like using "info" for some reason?, then try the following:

2. Go to google (or your favorite search engine), enter make+tutorial, and you will see lots of references (most are the same tutorial). Pick one and go for it!

I have always been kind of a minimalist, and have reduced my philosophy of life to a single sentence:

Quote:
printf() is your friend.

I now find it necessary to make it twice as long (but, I hope, not too much harder to remember, since I'm getting a little abssnt-minded these days):

So, I have revised my mantra:

Quote:
printf() is your friend.

(Put your favorite search engine here) is also your friend.



Regards,

Dave
 
 

Recent GIDBlogR for statistics by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Yet another CD burner problem: Lite-On LSC-24082K Erwin Computer Hardware Forum 1 22-May-2004 11:28

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 18:57.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.