Browse code

- 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 authored on 19/12/2005 12:58:10
Showing 1 changed files
... ...
@@ -63,6 +63,8 @@ PATCHLEVEL = 10
63 63
 SUBLEVEL =   99
64 64
 EXTRAVERSION = -dev30-tm-timers
65 65
 
66
+SER_VER = $(shell expr $(VERSION) \* 1000000 + $(PATCHLEVEL) \* 1000 + \
67
+			$(SUBLEVEL) )
66 68
 RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
67 69
 OS = $(shell uname -s | sed -e s/SunOS/solaris/ | tr "[A-Z]" "[a-z]")
68 70
 
... ...
@@ -332,6 +334,7 @@ endif
332 334
 DEFS+= $(extra_defs) \
333 335
 	 -DNAME='"$(MAIN_NAME)"' -DVERSION='"$(RELEASE)"' -DARCH='"$(ARCH)"' \
334 336
 	 -DOS='"$(OS)"' -DCOMPILER='"$(CC_VER)"' -D__CPU_$(ARCH) -D__OS_$(OS) \
337
+	 -DSER_VER=$(SER_VER) \
335 338
 	 -DCFG_DIR='"$(cfg-target)"'\
336 339
 	 -DPKG_MALLOC \
337 340
 	 -DSHM_MEM  -DSHM_MMAP \