Browse Source

- added a SER_VER define which contains the numerical ser version
(0.10.99 = 0*1000000 + 10*1000 +99 = 10099). It can be used to compile code
conditionally (#if SER_VER > x...). If SER_VER is not defined => older ser
version (0.9.x).

Andrei Pelinescu-Onciul 20 years ago
parent
commit
21a3adb310
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Makefile.defs

+ 3 - 0
Makefile.defs

@@ -63,6 +63,8 @@ PATCHLEVEL = 10
 SUBLEVEL =   99
 EXTRAVERSION = -dev30-tm-timers
 
+SER_VER = $(shell expr $(VERSION) \* 1000000 + $(PATCHLEVEL) \* 1000 + \
+			$(SUBLEVEL) )
 RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
 OS = $(shell uname -s | sed -e s/SunOS/solaris/ | tr "[A-Z]" "[a-z]")
 
@@ -332,6 +334,7 @@ endif
 DEFS+= $(extra_defs) \
 	 -DNAME='"$(MAIN_NAME)"' -DVERSION='"$(RELEASE)"' -DARCH='"$(ARCH)"' \
 	 -DOS='"$(OS)"' -DCOMPILER='"$(CC_VER)"' -D__CPU_$(ARCH) -D__OS_$(OS) \
+	 -DSER_VER=$(SER_VER) \
 	 -DCFG_DIR='"$(cfg-target)"'\
 	 -DPKG_MALLOC \
 	 -DSHM_MEM  -DSHM_MMAP \