[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
how to use already existing .d files
From: |
Swapna Pawar |
Subject: |
how to use already existing .d files |
Date: |
Thu, 5 Dec 2013 12:10:40 +0000 |
Hi,
How can I make gcc use the existing dependency (.d) files, without generating
new dependency (.d) files.
Assumption here is that I already have the dependency (.d) files available,
which are created using the following command,
gcc -MM -MP -MF "$(@:%.o=%.d)" -MT "$(@:%.o=%.d)"....
I have tried the following:
1. Generate both .0 and .d - this works as expected with following commands:
%.o %.d: %.c
gcc -MM -MP -MF "$(@:%.o=%.d)" -MT "$(@:%.o=%.d)" -x c "$<"
gcc -c -x c -o "$(@:%.d=%.o)" "$<"
Now if I am not able to find a makefile rule to reuse these generated
dependency, without regenerating them.
2. I have also tried the solutions suggested in the following links, but no
success:
http://stackoverflow.com/questions/16639615/automatically-generating-dependency-in-make-and-including-them-in-dependency-lis
http://locklessinc.com/articles/makefile_tricks/
Any help is highly appreciated.
Regards,
Swapna
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.
- how to use already existing .d files,
Swapna Pawar <=