From: Willy Tarreau Date: Fri, 22 Dec 2006 14:28:43 +0000 (+0100) Subject: [BUILD] version and date now come from the makefile X-Git-Tag: v1.3.4~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=79b34bfe0f8765106ccf25c98ae8d1e03de0a8d5;p=thirdparty%2Fhaproxy.git [BUILD] version and date now come from the makefile --- diff --git a/Makefile b/Makefile index 77470a5d46..b10fa21abf 100644 --- 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