From 58ceccd0d10f897051e279a41bf9dc3e0481fdf8 Mon Sep 17 00:00:00 2001 From: davygrvy Date: Tue, 23 Dec 2003 02:38:23 +0000 Subject: VERSION macro now set by reading tcl.h for it. --- win/makefile.vc | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/win/makefile.vc b/win/makefile.vc index 7e308ae..f7eaa8d 100644 --- a/win/makefile.vc +++ b/win/makefile.vc @@ -12,7 +12,7 @@ # Copyright (c) 2001-2002 David Gravereaux. # #------------------------------------------------------------------------------ -# RCS: @(#) $Id: makefile.vc,v 1.113 2003/11/10 22:55:48 dgp Exp $ +# RCS: @(#) $Id: makefile.vc,v 1.114 2003/12/23 02:38:23 davygrvy Exp $ #------------------------------------------------------------------------------ !if "$(MSVCDIR)" == "" @@ -159,7 +159,18 @@ PROJECT = tcl !include "rules.vc" STUBPREFIX = $(PROJECT)stub -DOTVERSION = 8.5 + +!if [nmakehlp -g ../generic/tcl.h TCL_VERSION] == 85 +DOTVERSION = 8.5 +!elseif [nmakehlp -g ../generic/tcl.h TCL_VERSION] == 86 +DOTVERSION = 8.6 +!elseif [nmakehlp -g ../generic/tcl.h TCL_VERSION] == 90 +DOTVERSION = 9.0 +!elseif [nmakehlp -g ../generic/tcl.h TCL_VERSION] == 0 +MSG =^ +Can't get version string from ../generic/tcl.h +!error $(MSG) +!endif VERSION = $(DOTVERSION:.=) DDEDOTVERSION = 1.3 -- cgit v0.12