build - Support concurrent SUBDIR traversal, fix make depend bug
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 29 Nov 2011 21:34:03 +0000 (13:34 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 29 Nov 2011 21:34:03 +0000 (13:34 -0800)
commit67be553814c6242d4a801d26dc2f6e5ca4b1aa8a
tree45f0b30609bf5cb811d1ac37401ccfd9887ec595
parent0e6b9ee838cf6370c2c8e3ea723839c383de96cc
build - Support concurrent SUBDIR traversal, fix make depend bug

* Support concurrent SUBDIR traversals during a make -j N.

  Create individual targets for each target/directory combination so Make
  will run them in parallel when possible.

* SUBDIR_ORDERED, if it exists, indicates the subset of SUBDIR which must
  be ordered.  Any directories not mentioned can run concurrently.

* If SUBDIR_ORDERED does not exist at all then all directories default
  to being strongly ordered and will NOT run concurrently.

* Try to make sure that all include files and generated source files
  are generated before running the depend core.
share/mk/bsd.dep.mk
share/mk/bsd.subdir.mk