]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
FAST_DEPEND: Only pass -MF if we care about the object being compiled.
authorBryan Drewery <bdrewery@FreeBSD.org>
Mon, 7 Dec 2015 16:08:22 +0000 (16:08 +0000)
committerBryan Drewery <bdrewery@FreeBSD.org>
Mon, 7 Dec 2015 16:08:22 +0000 (16:08 +0000)
commit10f696a52d68f76b894d036068c53c792d0830c3
tree2e8fa043694cdec8ef20288709c6f171b0f67c39
parentb9964333e0c8b895bf967ba0925147cf0ed87ab5
FAST_DEPEND: Only pass -MF if we care about the object being compiled.

This will save time generating dependency files that we didn't expect
due to cases where SRCS!=OBJS or for building custom targetted objects
in Makefiles that do not end up in the DEPENDOBJS list.

This uses a bmake trick to modify CFLAGS based on ${.TARGET}.  A
.PARSEDIR check is done for the sake of MFC safety.

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
share/mk/bsd.dep.mk
share/mk/bsd.lib.mk