The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Make utility - some Qs togurus.. alex_5161 SUN Solaris 0 01-30-2007 12:17 PM
is there kind of good utility that convert make files to dsp? umen UNIX for Dummies Questions & Answers 1 10-04-2006 08:09 PM
Make utility bigmoon SUN Solaris 2 10-10-2005 09:48 PM
MAKE utility victorvvk High Level Programming 4 06-30-2005 10:23 AM
Using make utility to create an mini-app Yifan_Guo High Level Programming 1 03-19-2005 05:35 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-23-2005
victorvvk victorvvk is offline
Registered User
  
 

Join Date: Mar 2005
Location: Hyderabad, india
Posts: 32
Lightbulb Make utility

When we run the make utility , make compiles only those files which are undergone changes(other files which have not undergone any changes are not recompiled)

The Following quotes says

HTML Code:
When you run the make utility, it examines the modification times of files and determines what needs to be regenerated. Files that are older than the files they depend on must be regenerated. Regenerating one file may cause others to become old, so that several files end up being regenerated.
1) How does the make utiltity check whether the file is updated ?

2) What does it mean Modification times of files

3) what does it consider or look for before creating an object file


I would like to know about some things which make utility does in the background before creating the object files


Regards
Victor Vinod Kumar
  #2 (permalink)  
Old 06-23-2005
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,770
files have modification times. make looks at those and decides what has to be updated.

modification means the file was saved to disk (possibly changed) at that time.

mkae has some rules of thumb about how it decides to go about keeping things up-to-date. For example, since it knows that object.o requires three source files in order to compile, it checks the modifcation times of each source file. If any of the source files is newer than the object.o file, it rebuilds object.o

If any file uses object.o (now it is newer than it was a minute ago) those files are rebuilt as well.
  #3 (permalink)  
Old 06-24-2005
victorvvk victorvvk is offline
Registered User
  
 

Join Date: Mar 2005
Location: Hyderabad, india
Posts: 32
Make utiltity

Thanks for the reply

Keeping this in view , what are the advantages and disadvantages of make

One of my colleague was saying that the clear make has some more advantage than GNU make.

He was saying that GNUmake is not an intelligent tool whereas Clearcase make is intelligent tool.

how is it intelligent and in what ways is it intellegent

Thanks and Regards

Victor vinod kumar
  #4 (permalink)  
Old 06-24-2005
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,770
I know nothing about clearcase. Sorry.
  #5 (permalink)  
Old 06-25-2005
victorvvk victorvvk is offline
Registered User
  
 

Join Date: Mar 2005
Location: Hyderabad, india
Posts: 32
make utility

Thats fine, No Problem

regards

victor
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0