Teach the Makefile build system how to handle SOURCES which include
authorChandler Carruth <chandlerc@gmail.com>
Thu, 14 Nov 2013 23:51:29 +0000 (23:51 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 14 Nov 2013 23:51:29 +0000 (23:51 +0000)
commit1ccba3161c5285a74921f0ff183e18a3e0343710
treee98976d661bdebcf11d5e44f723ae577b9cf35e5
parentbdbcffa4af01cda413690276d8e81b3ab5cea9b6
Teach the Makefile build system how to handle SOURCES which include
subdirectories. The only thing needed here is to create the appropriate
object file directories and add those as dependencies for the
compilation rules.

As a consequence, factor the non-source-file-specific dependencies for
compilation rules into a helper variable. This fixes an issue where the
project makefile wasn't actually a dependency of a bunch of compilation
make rules for no apparant reason.

This should have no observable effect for current makefile usage, but
will simplify how we build other libraries and is something CMake
already supports.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194753 91177308-0d34-0410-b5e6-96231b3b80d8
Makefile.rules