sl@0
|
1 |
@echo off
|
sl@0
|
2 |
|
sl@0
|
3 |
:: This is an example batchfile for building everything. Please
|
sl@0
|
4 |
:: edit this (or make your own) for your needs and wants using
|
sl@0
|
5 |
:: the instructions for calling makefile.vc found in makefile.vc
|
sl@0
|
6 |
::
|
sl@0
|
7 |
:: RCS: @(#) $Id: buildall.vc.bat,v 1.6 2002/11/04 05:50:19 davygrvy Exp $
|
sl@0
|
8 |
|
sl@0
|
9 |
echo Sit back and have a cup of coffee while this grinds through ;)
|
sl@0
|
10 |
echo You asked for *everything*, remember?
|
sl@0
|
11 |
echo.
|
sl@0
|
12 |
|
sl@0
|
13 |
title Building Tcl, please wait...
|
sl@0
|
14 |
|
sl@0
|
15 |
if "%MSVCDir%" == "" call c:\dev\devstudio60\vc98\bin\vcvars32.bat
|
sl@0
|
16 |
::if "%MSVCDir%" == "" call "C:\Program Files\Microsoft Developer Studio\vc98\bin\vcvars32.bat"
|
sl@0
|
17 |
set INSTALLDIR=C:\Program Files\Tcl
|
sl@0
|
18 |
|
sl@0
|
19 |
:: Build the normal stuff along with the help file.
|
sl@0
|
20 |
::
|
sl@0
|
21 |
nmake -nologo -f makefile.vc release winhelp OPTS=none
|
sl@0
|
22 |
if errorlevel 1 goto error
|
sl@0
|
23 |
|
sl@0
|
24 |
:: Build the static core, dlls and shell.
|
sl@0
|
25 |
::
|
sl@0
|
26 |
nmake -nologo -f makefile.vc release OPTS=static
|
sl@0
|
27 |
if errorlevel 1 goto error
|
sl@0
|
28 |
|
sl@0
|
29 |
:: Build the special static libraries that use the dynamic runtime.
|
sl@0
|
30 |
::
|
sl@0
|
31 |
nmake -nologo -f makefile.vc core dlls OPTS=static,msvcrt
|
sl@0
|
32 |
if errorlevel 1 goto error
|
sl@0
|
33 |
|
sl@0
|
34 |
:: Build the core and shell for thread support.
|
sl@0
|
35 |
::
|
sl@0
|
36 |
nmake -nologo -f makefile.vc shell OPTS=threads
|
sl@0
|
37 |
if errorlevel 1 goto error
|
sl@0
|
38 |
|
sl@0
|
39 |
:: Build a static, thread support core library (no shell).
|
sl@0
|
40 |
::
|
sl@0
|
41 |
nmake -nologo -f makefile.vc core OPTS=static,threads
|
sl@0
|
42 |
if errorlevel 1 goto error
|
sl@0
|
43 |
|
sl@0
|
44 |
:: Build the special static libraries the use the dynamic runtime,
|
sl@0
|
45 |
:: but now with thread support.
|
sl@0
|
46 |
::
|
sl@0
|
47 |
nmake -nologo -f makefile.vc core dlls OPTS=static,msvcrt,threads
|
sl@0
|
48 |
if errorlevel 1 goto error
|
sl@0
|
49 |
|
sl@0
|
50 |
goto end
|
sl@0
|
51 |
|
sl@0
|
52 |
:error
|
sl@0
|
53 |
echo *** BOOM! ***
|
sl@0
|
54 |
|
sl@0
|
55 |
:end
|
sl@0
|
56 |
title Building Tcl, please wait...DONE!
|
sl@0
|
57 |
echo DONE!
|
sl@0
|
58 |
pause
|
sl@0
|
59 |
|