Revert r288966 as it is redundant and not right.
bsd.prog.mk and bsd.lib.mk already make OBJS depend on headers when there is not .OBJDIR/.depend file, which is still true for the initial meta mode builds. If there was something to benefit the meta mode build here then it should be extended to the non-meta mode build as well. Some of the problems here were just DPSRCS being hooked up wrongly, fixed in r291330. The logic itself is flawed as 'buildfiles' is in a different part of the dependency tree than the objects and headers are, so the objects will still be built independent from 'buildfiles'. 'buildfiles' is not ordered in the build before objects. Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
ec5c45ed2d
commit
37e34b3278
@ -14,12 +14,6 @@ LDFLAGS+= ${LDFLAGS_LAST}
|
|||||||
|
|
||||||
CLEANFILES+= .depend
|
CLEANFILES+= .depend
|
||||||
|
|
||||||
.for h in ${SRCS:M*.h}
|
|
||||||
.if target($h)
|
|
||||||
buildfiles: $h
|
|
||||||
.endif
|
|
||||||
.endfor
|
|
||||||
|
|
||||||
# handy for debugging
|
# handy for debugging
|
||||||
.SUFFIXES: .S .c .cc .cpp .cpp-out
|
.SUFFIXES: .S .c .cc .cpp .cpp-out
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user