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
# 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