]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUILD] version and date now come from the makefile
authorWilly Tarreau <w@1wt.eu>
Fri, 22 Dec 2006 14:28:43 +0000 (15:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 22 Dec 2006 14:28:43 +0000 (15:28 +0100)
Makefile

index 77470a5d465e3e9799c5a9e89913657d8c70ea0c..b10fa21abf9789d4d55cd9969b7c8c4ff6123222 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,11 @@
 # You should use it this way :
 #   make TARGET=os CPU=cpu
 
+# Version of last tag
 VERSION := 1.3.3
+# number of changes since last tag
+SUBVERS := -34
+VERDATE := 2006/12/22
 
 # Select target OS. TARGET must match a system for which COPTS and LIBS are
 # correctly defined below.
@@ -137,6 +141,14 @@ ifneq ($(USE_REGPARM),)
 OPTIONS += -DCONFIG_HAP_USE_REGPARM
 endif
 
+ifneq ($(VERSION),)
+OPTIONS += -DCONFIG_HAPROXY_VERSION=\"$(VERSION)$(SUBVERS)\"
+endif
+
+ifneq ($(VERDATE),)
+OPTIONS += -DCONFIG_HAPROXY_DATE=\"$(VERDATE)\"
+endif
+
 #### end of build options