[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: how to use already existing .d files
From: |
Swapna Pawar |
Subject: |
RE: how to use already existing .d files |
Date: |
Fri, 6 Dec 2013 05:25:20 +0000 |
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:address@hidden
Sent: 06 December 2013 AM 03:54
To: Swapna Pawar
Cc: address@hidden
Subject: Re: how to use already existing .d files
On Thu, Dec 5, 2013 at 4:10 AM, Swapna Pawar <address@hidden> 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.