Module: kamailio
Branch: master
Commit: df9479643d43adf7a657a6b39371142d1d8a702e
URL: 
https://github.com/kamailio/kamailio/commit/df9479643d43adf7a657a6b39371142d1d8a702e

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2018-07-06T15:15:05+02:00

Makefile.defs: renamed define name SER_VER to VERSIONVAL

- the value is the number computed by the rule:

$(VERSION) * 1000000 + $(PATCHLEVEL) * 1000 +  $(SUBLEVEL)

Example: for kamailio 5.1.4, that is 5001004

---

Modified: src/Makefile.defs

---

Diff:  
https://github.com/kamailio/kamailio/commit/df9479643d43adf7a657a6b39371142d1d8a702e.diff
Patch: 
https://github.com/kamailio/kamailio/commit/df9479643d43adf7a657a6b39371142d1d8a702e.patch

---

diff --git a/src/Makefile.defs b/src/Makefile.defs
index 8e76de7687..a114c8ae0f 100644
--- a/src/Makefile.defs
+++ b/src/Makefile.defs
@@ -119,7 +119,7 @@ MEMMNG ?= 0
 # 1 - on (debug mode)
 MEMDBG ?= 1
 
-SER_VER = $(shell expr $(VERSION) \* 1000000 + $(PATCHLEVEL) \* 1000 + \
+VERSIONVAL = $(shell expr $(VERSION) \* 1000000 + $(PATCHLEVEL) \* 1000 + \
                        $(SUBLEVEL) )
 RELEASE:=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
 OS := $(shell uname -s | sed -e s/SunOS/solaris/ -e s/CYGWIN.*/cygwin/ \
@@ -653,7 +653,7 @@ C_DEFS= $(extra_defs) \
         -DNAME='"$(MAIN_NAME)"' -DVERSION='"$(RELEASE)"' -DARCH='"$(ARCH)"' \
         -DOS='$(OS)_' -DOS_QUOTED='"$(OS)"' -DCOMPILER='"$(CC_VER)"'\
         -D__CPU_$(ARCH) $(os_defs) \
-        -DSER_VER=$(SER_VER) \
+        -DVERSIONVAL=$(VERSIONVAL) \
         -DCFG_DIR='"$(cfg_target)"'\
         -DRUN_DIR='"$(run_target)"'
 


_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to