summaryrefslogtreecommitdiff
path: root/t/t4034/objc/post
diff options
context:
space:
mode:
authorLibravatar Jonathan Nieder <jrnieder@gmail.com>2010-01-26 09:52:49 -0600
committerLibravatar Jonathan Nieder <jrnieder@gmail.com>2010-01-26 10:08:55 -0600
commitdfea575017ddc2ae7c9e8dcb978f4557f07715d3 (patch)
tree9e1e30e1fe6accd016c8be2b892044148f3acacc /t/t4034/objc/post
parentMakefile: list generated object files in OBJECTS (diff)
downloadtgif-dfea575017ddc2ae7c9e8dcb978f4557f07715d3.tar.xz
Makefile: lazily compute header dependencies
Use the gcc -MMD -MP -MF options to generate dependency rules as a byproduct when building .o files if the COMPUTE_HEADER_DEPENDENCIES variable is defined. That variable is left undefined by default for now. As each object file is built, write a makefile fragment containing its dependencies in the deps/ subdirectory of its containing directory. The deps/ directories should be generated if they are missing at the start of each build. So let each object file depend on $(missing_dep_dirs), which lists only the directories of this kind that are missing to avoid needlessly regenerating files when the directories' timestamps change. gcc learned the -MMD -MP -MF options in version 3.0, so most gcc users should have them by now. The dependencies this option computes are more specific than the rough estimates hard-coded in the Makefile, greatly speeding up rebuilds when only a little-used header file has changed. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Diffstat (limited to 't/t4034/objc/post')
0 files changed, 0 insertions, 0 deletions