diff options
author | Michael Brown <mcb30@ipxe.org> | 2012-11-02 14:46:39 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2012-11-02 14:46:39 +0000 |
commit | 4867085c0cd334004e8d67dff7bd53996f23ade6 (patch) | |
tree | 31f92c7844273c3b495c105a4c24d98dc54917ac /src/Makefile.housekeeping | |
parent | 0932bc5156bd88f773936ee5dac5d574ff921287 (diff) | |
download | ipxe-4867085c0cd334004e8d67dff7bd53996f23ade6.tar.gz |
[build] Include version number within only a single object file
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r-- | src/Makefile.housekeeping | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index fce49288..f607c4d3 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -653,6 +653,13 @@ $(BIN)/embedded.o : override CC := env CCACHE_DISABLE=1 $(CC) $(BIN)/clientcert.o : override CC := env CCACHE_DISABLE=1 $(CC) +# Version number +# +CFLAGS_version += -DVERSION_MAJOR=$(VERSION_MAJOR) \ + -DVERSION_MINOR=$(VERSION_MINOR) \ + -DVERSION_PATCH=$(VERSION_PATCH) \ + -DVERSION="\"$(VERSION)\"" + # We automatically generate rules for any file mentioned in AUTO_SRCS # using the following set of templates. It would be cleaner to use # $(eval ...), but this function exists only in GNU make >= 3.80. |