Hi Philip, Thank you for the quick response.
We have already tried this by adding the following rule: %.o: %.c gcc -c -x c -o "$@" $<" Modifying the rule as above does not use the existing .d files and does not rebuild the .c file in case any required header is modified. In addition to the above rule, we also tried using '-include $(C_DEPS), not no luck.. Regards, Swapna -----Original Message----- From: Philip Guenther [mailto:guent...@gmail.com] Sent: 06 December 2013 AM 03:54 To: Swapna Pawar Cc: help-make@gnu.org Subject: Re: how to use already existing .d files On Thu, Dec 5, 2013 at 4:10 AM, Swapna Pawar <swapna.pa...@kpit.com> wrote: > How can I make gcc use the existing dependency (.d) files, without generating > new dependency (.d) files. Short answer: do not specify %.d as a target in any rule. Longer answer with explanation: read http://make.paulandlesley.org/autodep.html#advanced Philip Guenther This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails. _______________________________________________ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make