summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2007-08-21 20:35:10 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2007-08-21 20:35:10 (GMT)
commit134312d8f50cfdde3b548488d68c8d6d26091ac7 (patch)
treed2794777bb9b79f1112d695abbfd7083f22cc725 /win
parent3906141b8262e2a1ead82d0f60d81b5a07c5a2c9 (diff)
downloadtk-134312d8f50cfdde3b548488d68c8d6d26091ac7.zip
tk-134312d8f50cfdde3b548488d68c8d6d26091ac7.tar.gz
tk-134312d8f50cfdde3b548488d68c8d6d26091ac7.tar.bz2
Synchronize with tcl rules.vc
Diffstat (limited to 'win')
-rw-r--r--win/rules.vc23
1 files changed, 14 insertions, 9 deletions
diff --git a/win/rules.vc b/win/rules.vc
index 496bb0a..cc1b278 100644
--- a/win/rules.vc
+++ b/win/rules.vc
@@ -11,7 +11,7 @@
# Copyright (c) 2003-2006 Patrick Thoyts
#
#------------------------------------------------------------------------------
-# RCS: @(#) $Id: rules.vc,v 1.15 2007/02/04 00:10:54 mistachkin Exp $
+# RCS: @(#) $Id: rules.vc,v 1.16 2007/08/21 20:35:11 patthoyts Exp $
#------------------------------------------------------------------------------
!ifndef _RULES_VC
@@ -50,6 +50,7 @@ CFG_ENCODING = \"cp1252\"
!if "$(OS)" == "Windows_NT"
RMDIR = rmdir /S /Q
+ERRNULL = 2>NUL
!if ![ver | find "4.0" > nul]
CPY = echo y | xcopy /i >NUL
COPY = copy >NUL
@@ -61,9 +62,10 @@ COPY = copy /y >NUL
CPY = xcopy /i >_JUNK.OUT # On Win98 NUL does not work here.
COPY = copy >_JUNK.OUT # On Win98 NUL does not work here.
RMDIR = deltree /Y
+NULL = \NUL # Used in testing directory existence
+ERRNULL = >NUL # Win9x shell cannot redirect stderr
!endif
MKDIR = mkdir
-COPY = copy /y >NUL
!message ===============================================================================
@@ -187,16 +189,19 @@ LINKERFLAGS =-ltcg
_VC_MANIFEST_EMBED_EXE=
_VC_MANIFEST_EMBED_DLL=
-!if ![cl /Zs /Tc NUL 2>&1 | find "Version 12" > NUL]
-VCVER=6
-!elseif ![cl /Zs /Tc NUL 2>&1 | find "Version 13" > NUL]
-VCVER=7
-!elseif ![cl /Zs /Tc NUL 2>&1 | find "Version 14" > NUL]
+VCVER=0
+!if ![echo VCVERSION=_MSC_VER > vercl.x] \
+ && ![cl -nologo -TC -P vercl.x $(ERRNULL)]
+!include vercl.i
+!if $(VCVERSION) >= 1400
VCVER=8
_VC_MANIFEST_EMBED_EXE=if exist $@.manifest mt -nologo -manifest $@.manifest -outputresource:$@;1
_VC_MANIFEST_EMBED_DLL=if exist $@.manifest mt -nologo -manifest $@.manifest -outputresource:$@;2
-!else
-VCVER=0
+!elseif $(VCVERSION) >= 1300
+VCVER=7
+!elseif $(VCVERSION) >= 1200
+VCVER=6
+!endif
!endif
#----------------------------------------------------------