bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Reg Make build on LINUX


From: A, Sravanthi
Subject: RE: Reg Make build on LINUX
Date: Wed, 18 Jun 2008 17:56:08 +0530

Smith,

Please ignore my request below. It was incorrectly mentioned. My problem
: i have CC files in different folders and i call make from root to
subfolders. If any related cc file is updated, related object file is
not recompiling in the tree.

Thanks,
Sravanthi
-----Original Message-----
From: Paul Smith [mailto:address@hidden 
Sent: Tuesday, June 17, 2008 7:32 PM
To: A, Sravanthi [CCC-OT_IT]
Cc: address@hidden
Subject: RE: Reg Make build on LINUX

On Tue, 2008-06-17 at 16:00 +0530, A, Sravanthi wrote:
> 3. b.o is dependant on a.o
> 
> If any changes are done to a.cc file, b.o should get rebuilt.

This is an extremely unusual situation.  In what way is b.o depending on
a.cc or a.o?  Generally, .o files depend on the single .c or .cc or
whatever source file, plus some header files.

The only time a .o file will depend on more than one source file is if
there is an #include of the other source file, which is very rare.

And, the only time I can think of a .o file depending on another .o file
is if you're using readelf or objdump some other magic to translate one
into the other.

--
------------------------------------------------------------------------
-------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.us
 "Please remain calm...I may be mad, but I am a professional." --Mad
Scientist




reply via email to

[Prev in Thread] Current Thread [Next in Thread]