Include version.c from build dir in preference to source dir
authorDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 8 Nov 2012 13:31:23 +0000 (13:31 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 8 Nov 2012 13:31:25 +0000 (13:31 +0000)
commit3db71d95f67d800d3990d2865b0ba021c3bcaba9
treeab183e59b39d288ab85219d94920e69aa400c782
parentfa5760aa677ddeb7f0f8f26d37c3a72e578c8186
Include version.c from build dir in preference to source dir

This should fix out-of-source-tree builds from a tarball, which
otherwise would use the autogenerated $(objdir)/version.c for building
the library, but the pre-packaged $(srcdir)/version.c for the
executable. This is because the latter was included directly from main.c
by #include "version.c". By changing to #include <main.c> instead, we get
to use the new auto-generated one instead if anything's been changed.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
main.c