diff options
author | patthoyts <patthoyts@noemail.net> | 2007-08-21 20:35:09 (GMT) |
---|---|---|
committer | patthoyts <patthoyts@noemail.net> | 2007-08-21 20:35:09 (GMT) |
commit | f9427b411270c48fd536b53944640db48483bb0e (patch) | |
tree | d2794777bb9b79f1112d695abbfd7083f22cc725 /win/rules.vc | |
parent | 337ab391fccc859c563f8843857f490e50147510 (diff) | |
download | tk-f9427b411270c48fd536b53944640db48483bb0e.zip tk-f9427b411270c48fd536b53944640db48483bb0e.tar.gz tk-f9427b411270c48fd536b53944640db48483bb0e.tar.bz2 |
Synchronize with tcl rules.vc
FossilOrigin-Name: b1b4e07b6664d44c518af96281922fa50de8183e
Diffstat (limited to 'win/rules.vc')
-rw-r--r-- | win/rules.vc | 23 |
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 #---------------------------------------------------------- |