Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with makedepend

807575Dec 30 2004 — edited Jan 19 2005
Hi,

According to my understanding makedepend is used to generate the dependencies, so that if a header file has changed then make will compile the corresponding .o and ultimately link.

This is what which is not happening in my case.

I am using a target depends in my makefile which says

depends:
makedepend -I $(SRC_DIR) -Y $(SRC_DIR)/*.cpp 2>/dev/null

As my headers are also in the same dir as source.

On running make depends, it generates the dependencies at the end of makefile, which is perfectly ok.

But on changing any of the headers it doesn't compiles the respective .o, which defies the whole purpose of makedepend.

Is something wrong in my command, or am i doing something wrong.

Any help will be appreciated.
Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 16 2005
Added on Dec 30 2004
17 comments
419 views