Page 1 of 1

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

Posted: Wed Mar 28, 2012 5:09 pm
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.