Smith /Team, Would you help me on this issue. Recompilation of object files is not happening if the source file is changed. I want to know how to use include dependency file when I have recursive make.
Thanks, Sravanthi -----Original Message----- From: A, Sravanthi [CCC-OT_IT] Sent: Wednesday, June 18, 2008 5:56 PM To: '[EMAIL PROTECTED]' Cc: [email protected] Subject: RE: Reg Make build on LINUX 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:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2008 7:32 PM To: A, Sravanthi [CCC-OT_IT] Cc: [email protected] 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 <[EMAIL PROTECTED]> 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 _______________________________________________ Bug-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-make
