shadow-to-jaltman-bkbox-01-20031121
[openafs.git] / src / ntbuild.bat
1 @echo off
2 rem Copyright 2000, International Business Machines Corporation and others.
3 rem All Rights Reserved.
4 rem 
5 rem This software has been released under the terms of the IBM Public
6 rem License.  For details, see the LICENSE file in the top-level source
7 rem directory or online at http://www.openafs.org/dl/license10.html
8
9
10 REM AFS build environment variables for Windows NT.
11 REM Modify for local configuration; common defaults shown.
12 REM ########################################################################
13
14 REM ########################################################################
15 REM
16 REM NOTE: You should run NTLANG.REG before attempting to build localized
17 REM language files! Failure to do so will cause the resource compiler
18 REM and message-catalog compiler to choke when they hit unknown code pages.
19 REM
20 REM NOTE: You will need to copy the NLS files into your windows\system32 
21 REM directory prior to building non-english files.
22 REM
23 REM ########################################################################
24
25
26 REM ########################################################################
27 REM Accept build type as an argument; default to checked.
28
29 if "%1"=="" goto checked
30 if "%1"=="checked" goto checked
31 if "%1"=="CHECKED" goto checked
32
33 if "%1"=="free" goto free
34 if "%1"=="FREE" goto free
35
36 if "%1"=="wspp" goto wspp
37 if "%1"=="WSPP" goto wspp
38
39 goto usage
40
41 :checked
42 set AFSBLD_TYPE=CHECKED
43 set AFSBLD_IS_WSPP=
44 set AFSDEV_CRTDEBUG=1
45 goto args_done
46
47 :free
48 set AFSBLD_TYPE=FREE
49 set AFSBLD_IS_WSPP=
50 set AFSDEV_CRTDEBUG=0
51 goto args_done
52
53 :wspp
54 set AFSBLD_TYPE=FREE
55 set AFSBLD_IS_WSPP=1
56 set AFSDEV_CRTDEBUG=0
57 goto args_done
58
59
60
61 :args_done
62 REM ########################################################################
63 REM General required definitions:
64 REM     SYS_NAME = AFS system name
65 REM Choose one of "i386_win95" or "i386_nt40"
66
67 SET SYS_NAME=i386_nt40
68
69 REM Specify the targeted version of Windows and IE: 0x400 for Win9x/NT4 
70 REM and above; 0x500 for Windows 2000 and above
71
72 SET _WIN32_IE=0x400
73
74 REM ########################################################################
75 REM NTMakefile required definitions:
76 REM     AFSDEV_BUILDTYPE = CHECKED / FREE 
77 REM     AFSDEV_INCLUDE = default include directories
78 REM     AFSDEV_LIB = default library directories
79 REM     AFSDEV_BIN = default build binary directories
80 REM     AFSVER_CL  = version of the Microsoft compiler "1200" for VC6;
81 REM                  or "1300" for VC7 (.NET)
82 REM                  or "1310" for .NET 2003
83
84 set AFSDEV_BUILDTYPE=%AFSBLD_TYPE%
85
86 REM Location of Microsoft Visual C++ development folder (8.3 short name)
87 set MSVCDIR=c:\progra~1\micros~2\vc98
88
89 REM Location of Microsoft Platform SDK (8.3 short name)
90 set MSSDKDIR=c:\progra~1\micros~4
91
92 REM Location of npapi.h (from DDK or Platform SDK samples - 8.3 short name)
93 set NTDDKDIR=c:\progra~1\micros~5
94
95 REM Location of netmpr.h/netspi.h (from Windows 95/98 DDK - 8.3 short name)
96 SET 9XDDKDIR=c:\progra~1\micros~6
97
98 set AFSDEV_INCLUDE=%MSSDKDIR%\include;%MSVCDIR%\include;%MSVCDIR%\mfc\include
99 set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%NTDDKDIR%\include;%9XDDKDIR%\include
100 set AFSDEV_LIB=%MSSDKDIR%\lib;%MSVCDIR%\lib;%MSVCDIR%\mfc\lib
101 set AFSDEV_BIN=%MSSDKDIR%\bin;%MSVCDIR%\bin
102
103 REM ########################################################################
104 REM Location of base folder where source lies, build directory
105 REM e.g. AFSROOT\SRC is source directory of the build tree (8.3 short name)
106
107 set AFSROOT=D:\Dev\AfsSorce\OpenAF~2.2
108
109 REM ########################################################################
110 REM NTMakefile optional definitions:
111 REM
112 REM See NTMakefile.SYS_NAME; will normally use defaults.
113 REM
114
115 IF [%HOMEDRIVE%]==[] SET HOMEDRIVE=C:
116
117 REM ########################################################################
118 REM Options necessary when using bison
119 REM
120
121 set BISON_SIMPLE=c:\bin\bison.simple
122 set BISON_HAIRY=c:\bin\bison.hairy
123
124 goto end
125
126
127 :usage
128 echo.
129 echo Usage: %0 [free^|^checked^|^wspp]
130 echo.
131
132 :end