From 07cd2a15b3a9681ab3ea8a2c1e590f65bcef3d34 Mon Sep 17 00:00:00 2001 From: Vince Darley Date: Wed, 8 Aug 2001 17:08:16 +0000 Subject: [PATCH] Better compilation --- win/makefile.vc | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/win/makefile.vc b/win/makefile.vc index be5d797..9c1cb7b 100644 --- a/win/makefile.vc +++ b/win/makefile.vc @@ -12,7 +12,18 @@ MACHINE = IX86 VFS_VERSION = 1.0 DLL_VERSION = 10 -PROJECT = vfs$(DLL_VERSION) +# comment the following line to compile with symbols +NODEBUG=1 + +!IF "$(NODEBUG)" == "1" +DEBUGDEFINES = +DBGX = +!ELSE +DEBUGDEFINES = -DTCL_MEM_DEBUG -DUSE_TCLALLOC=0 -DPURIFY +DBGX = d +!ENDIF + +PROJECT = vfs$(DLL_VERSION)$(DBGX) # # Project directories -- these may need to be customized for your site @@ -41,10 +52,23 @@ include32 = -I"$(TOOLS32)\include" # point TCL and TCLLIB to your tcl distribution TCL = c:\progra~1\tcl -TCLLIB = $(TCL)\lib\tclstub84.lib +TCLLIB = $(TCL)\lib\tclstub84$(DBGX).lib -# comment the following line to compile with symbols -NODEBUG=1 +###################################################################### +# Compile flags +###################################################################### + +!IF "$(NODEBUG)" == "1" +# This cranks the optimization level to maximize speed +cdebug = -O2 -Gs -GD +!ELSE IF "$(MACHINE)" == "IA64" +cdebug = -Od -Zi +!ELSE +cdebug = -Z7 -Od -WX +!ENDIF + +# declarations common to all compiler options +cflags = -c -W3 -nologo -Fp$(TMPDIR)\ -YX -DBUILD_Vfs ###################################################################### # Link flags -- 2.23.0