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: Paul Smith
Subject: RE: Reg Make build on LINUX
Date: Tue, 17 Jun 2008 10:02:21 -0400

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]