diff options
author | davygrvy <davygrvy> | 2004-01-13 02:02:57 (GMT) |
---|---|---|
committer | davygrvy <davygrvy> | 2004-01-13 02:02:57 (GMT) |
commit | f59aebfdb48e5d3f9d4bc7f626c008e69c9a51ff (patch) | |
tree | 6b0f6d38bd0f603c5a3877733cf67ad2fa016ded | |
parent | dba63c03ade6279767876aa9225ce88343efb60a (diff) | |
download | tk-f59aebfdb48e5d3f9d4bc7f626c008e69c9a51ff.zip tk-f59aebfdb48e5d3f9d4bc7f626c008e69c9a51ff.tar.gz tk-f59aebfdb48e5d3f9d4bc7f626c008e69c9a51ff.tar.bz2 |
* win/rules.vc: Sync'd to Tcl, respects the CHECKS=nodep
commandline macro and was used to verify the Tcl_Panic change above.
-rw-r--r-- | win/rules.vc | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/win/rules.vc b/win/rules.vc index aef7371..889c1a7 100644 --- a/win/rules.vc +++ b/win/rules.vc @@ -10,7 +10,7 @@ # Copyright (c) 2001-2003 David Gravereaux. # #------------------------------------------------------------------------------ -# RCS: @(#) $Id: rules.vc,v 1.8 2003/12/23 02:48:29 davygrvy Exp $ +# RCS: @(#) $Id: rules.vc,v 1.9 2004/01/13 02:02:57 davygrvy Exp $ #------------------------------------------------------------------------------ !ifndef _RULES_VC @@ -266,6 +266,22 @@ TCL_COMPILE_DEBUG = 0 #---------------------------------------------------------- +# Decode the checks requested. +#---------------------------------------------------------- + +!if "$(CHECKS)" == "" || [nmakehlp -f "$(CHECKS)" "none"] +TCL_NO_DEPRECATED = 0 +!else +!if [nmakehlp -f $(CHECKS) "nodep"] +!message *** Doing nodep check +TCL_NO_DEPRECATED = 1 +!else +TCL_NO_DEPRECATED = 0 +!endif +!endif + + +#---------------------------------------------------------- # Set our defines now armed with our options. #---------------------------------------------------------- @@ -286,6 +302,9 @@ OPTDEFINES = $(OPTDEFINES) -DUSE_THREAD_ALLOC=1 !if $(STATIC_BUILD) OPTDEFINES = $(OPTDEFINES) -DSTATIC_BUILD !endif +!if $(TCL_NO_DEPRECATED) +OPTDEFINES = $(OPTDEFINES) -DTCL_NO_DEPRECATED +!endif !if $(DEBUG) OPTDEFINES = $(OPTDEFINES) -DTCL_CFG_DEBUG |