dependencies (.o.d) are not updated correctly (patch)

Discussion about CodeLite development process and patches
User avatar
Jarod42
CodeLite Expert
Posts: 239
Joined: Wed Sep 30, 2009 5:54 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

dependencies (.o.d) are not updated correctly (patch)

Post by Jarod42 »

Currently,there is a problem with dependencies file (.o.d)

step to reproduce problem:
foo.c -> foo.h -> bar.h (-> means include)
compile foo.c
change foo.h to not include bar.h
build: foo.c compiled (normal)
modify bar.h
build : foo.c should not be compiled (and it is)

According to generated codelite makefile: .o.d depend on src (.cpp)

According to http://mad-scientist.net/make/autodep.html

dependencies is constructed in the obj rule (%.o: %.c) and have no dependencies.

patch attached.
You do not have the required permissions to view the files attached to this post.