summaryrefslogtreecommitdiffstats
path: root/win/rules.vc
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-10-23 21:43:05 (GMT)
committernijtmans <nijtmans>2010-10-23 21:43:05 (GMT)
commitff76e17890fe1b8b16aca68dd915089231bcc458 (patch)
tree8b30072690e26b26beb32e3c6a4098e45b367886 /win/rules.vc
parent9d8a0339110e68547c1ee6d8c1020f1bf9fed96a (diff)
downloadtk-ff76e17890fe1b8b16aca68dd915089231bcc458.zip
tk-ff76e17890fe1b8b16aca68dd915089231bcc458.tar.gz
tk-ff76e17890fe1b8b16aca68dd915089231bcc458.tar.bz2
Update for VS10
Diffstat (limited to 'win/rules.vc')
-rw-r--r--win/rules.vc19
1 files changed, 13 insertions, 6 deletions
diff --git a/win/rules.vc b/win/rules.vc
index 678f4b3..ba87724 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.5.2.9 2007/09/11 00:13:12 patthoyts Exp $
+# RCS: @(#) $Id: rules.vc,v 1.5.2.10 2010/10/23 21:43:05 nijtmans Exp $
#------------------------------------------------------------------------------
!ifndef _RULES_VC
@@ -83,7 +83,7 @@ COPY = copy /y >NUL
!message *** Compiler has 'Optimizations'
OPTIMIZING = 1
!else
-!message *** Compiler doesn't have 'Optimizations'
+!message *** Compiler does not have 'Optimizations'
OPTIMIZING = 0
!endif
@@ -145,9 +145,9 @@ OPTIMIZATIONS = $(OPTIMIZATIONS) -YX
### test for pentium errata
!if [nmakehlp -c -QI0f]
!message *** Compiler has 'Pentium 0x0f fix'
-COMPILERFLAGS = $(COMPILERFLAGSS) -QI0f
+COMPILERFLAGS = $(COMPILERFLAGS) -QI0f
!else
-!message *** Compiler doesn't have 'Pentium 0x0f fix'
+!message *** Compiler does not have 'Pentium 0x0f fix'
!endif
!endif
@@ -167,7 +167,7 @@ COMPILERFLAGS = $(COMPILERFLAGS) -QIA64_Bx
!message *** Linker has 'Win98 alignment problem'
ALIGN98_HACK = 1
!else
-!message *** Linker doesn't have 'Win98 alignment problem'
+!message *** Linker does not have 'Win98 alignment problem'
ALIGN98_HACK = 0
!endif
!else
@@ -195,6 +195,14 @@ VCVER=7
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
+!elseif ![cl /Zs /Tc NUL 2>&1 | find "Version 15" > NUL]
+VCVER=9
+_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
+!elseif ![cl /Zs /Tc NUL 2>&1 | find "Version 16" > NUL]
+VCVER=10
+_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
!endif
@@ -393,7 +401,6 @@ FULLWARNINGS = 0
!endif
!endif
-
#----------------------------------------------------------
# Set our defines now armed with our options.
#----------------------------------------------------------