diff options
author | davygrvy <davygrvy@pobox.com> | 2002-02-20 19:06:53 (GMT) |
---|---|---|
committer | davygrvy <davygrvy@pobox.com> | 2002-02-20 19:06:53 (GMT) |
commit | c63339d9da2747a31ca37d104e676a4f18380744 (patch) | |
tree | ca98358496f878ad9ca14dae14ce374662339552 /win/buildall.vc.bat | |
parent | cc1bbd201a7a27fca359161852a83c76154dca64 (diff) | |
download | tcl-c63339d9da2747a31ca37d104e676a4f18380744.zip tcl-c63339d9da2747a31ca37d104e676a4f18380744.tar.gz tcl-c63339d9da2747a31ca37d104e676a4f18380744.tar.bz2 |
* win/buildall.vc.bat:
* win/makefile.vc:
* win/rules.vc: General clean-ups. Added compiler and linker tests
for a) the pentium 0x0F errata, b) optimizing (not all have this),
and c) linker v6 section alignment confusion. All these are tested
first to make sure any D4002 or LNK1117 warnings aren't displayed.
The pentium 0x0F errata is a recommended switch. The v5 linker's
section alignment default is 512, but the v6 linker was changed
to 4096 in an attempt to speed loading on Win98. I changed the
default to always be 512 across both linkers, unless linking
statically, then 4096 is used for the claimed speed effect. Using
a 512 alignment saves 12k bytes of dead space in the DLL.
Added IA64 B-stepping errata switch when the compiler supports it.
Added profiling to $(lflags) when requested and also removed the
explict -entry option as the default works fine as is.
Removed win/tclWinInit.c from the special case section to let it
use the common implicit rule as the $(EXTFLAGS) macro it had was
never referenced anywhere.
Diffstat (limited to 'win/buildall.vc.bat')
-rwxr-xr-x | win/buildall.vc.bat | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/win/buildall.vc.bat b/win/buildall.vc.bat index 2302881..74c6e29 100755 --- a/win/buildall.vc.bat +++ b/win/buildall.vc.bat @@ -1,19 +1,34 @@ @echo off -rem -rem This is an example batchfile for building everything. Please -rem edit this (or make your own) for your needs and wants using -rem the instructions for calling makefile.vc found in makefile.vc -rem -rem RCS: @(#) $Id: buildall.vc.bat,v 1.2 2001/11/20 04:23:53 davygrvy Exp $ +:: This is an example batchfile for building everything. Please +:: edit this (or make your own) for your needs and wants using +:: the instructions for calling makefile.vc found in makefile.vc +:: +:: RCS: @(#) $Id: buildall.vc.bat,v 1.3 2002/02/20 19:06:53 davygrvy Exp $ -if "%MSVCDir%" == "" call c:\progra~1\micros~4\vc98\bin\vcvars32.bat -set INSTALLDIR=d:\tclTestArea +echo Sit back and have a couple cups of coffee while this grinds through ;) +echo You asked for *everything*, remember? +echo. + +if "%MSVCDir%" == "" call C:\progra~1\micros~4\vc98\bin\vcvars32.bat +set INSTALLDIR=C:\progra~1\tcl nmake -nologo -f makefile.vc release winhelp OPTS=none +if errorlevel 1 goto error nmake -nologo -f makefile.vc release OPTS=static +if errorlevel 1 goto error nmake -nologo -f makefile.vc core dlls OPTS=static,msvcrt +if errorlevel 1 goto error nmake -nologo -f makefile.vc core OPTS=static,threads +if errorlevel 1 goto error nmake -nologo -f makefile.vc dlls OPTS=static,msvcrt,threads +if errorlevel 1 goto error nmake -nologo -f makefile.vc shell OPTS=threads +if errorlevel 1 goto error +goto end + +:error +echo **BOOM!** + +:end pause |