1 rem Copyright 2000, International Business Machines Corporation and others.
2 rem All Rights Reserved.
4 rem This software has been released under the terms of the IBM Public
5 rem License. For details, see the LICENSE file in the top-level source
6 rem directory or online at http://www.openafs.org/dl/license10.html
9 REM AFS build environment variables for Windows NT.
10 REM Modify for local configuration; common defaults shown.
11 REM ########################################################################
13 REM ########################################################################
14 REM NOTE: You will need to copy the NLS files into your windows\system32
15 REM directory prior to building non-english files.
17 REM ########################################################################
20 REM ########################################################################
21 REM General required definitions:
22 REM SYS_NAME = AFS system name
23 REM Choose one of "i386_w2k", "amd64_w2k", or "i64_w2k"
26 REM Specify the minimum version of Windows and IE:
27 REM 0x500 for Windows 2000 and above
28 REM 0x501 for Windows XP 32 and above
29 REM 0x502 for Windows XP 64 and Server 2003 and above
30 REM 0x600 for Windows Vista and Server 2008 and above
31 REM 0x700 for Windows 7 and Server 2008 R2 and above
35 REM ########################################################################
36 REM Location of base folder where source lies, build directory
37 REM e.g. AFSROOT\SRC is source directory of the build tree (8.3 short name)
38 set AFSROOT=C:\SRC\OpenAFS
40 REM ########################################################################
41 REM NTMakefile required definitions:
42 REM AFSVER_CL = version of the Microsoft compiler:
44 REM "1300" for VC7 (.NET)
45 REM "1310" for .NET 2003
46 REM "1400" for VC8 (VS2005)
47 REM "1500" for VC9 (VS2008)
50 REM ########################################################################
51 REM NTMakefile optional definitions:
53 REM See NTMakefile.SYS_NAME; will normally use defaults.
56 IF [%HOMEDRIVE%]==[] SET HOMEDRIVE=C:
58 REM ########################################################################
59 REM Options necessary when using bison
62 set BISON_SIMPLE=c:\bin\bison.simple
63 set BISON_HAIRY=c:\bin\bison.hairy
65 REM ########################################################################
66 REM Code Signing Definitions for signtool.exe (optional)
68 REM SET CODESIGN_DESC=OpenAFS for Windows
69 REM SET CODESIGN_TIMESTAMP=<URL for Time Stamp Service>
70 REM SET CODESIGN_URL=<Support URL displayed in Add/Remove Programs>
71 REM SET CODESIGN_CROSS_CERT=<Cross signing certificate path>
72 REM SET CODESIGN_OTHER=<other options required for certificate selection>
74 REM ########################################################################
75 REM Symbol Store Support
77 REM SET SYMSTORE_EXE="C:\WinDDK\7600.16385.0\Debuggers\symstore.exe"
78 REM SET SYMSTORE_ROOT=<Path to symbol store>
79 REM SET SYMSTORE_COMMENT=<Comment to add to entries>
81 REM ########################################################################
82 REM Accept build type as an argument; default to checked.
84 if "%1"=="" goto checked
85 if "%1"=="checked" goto checked
86 if "%1"=="CHECKED" goto checked
88 if "%1"=="free" goto free
89 if "%1"=="FREE" goto free
94 set AFSBLD_TYPE=CHECKED
100 set AFSDEV_CRTDEBUG=0
105 REM #######################################################################
106 REM Construct Variables Required for NTMakefile
107 REM AFSDEV_BUILDTYPE = CHECKED / FREE
108 REM AFSDEV_INCLUDE = default include directories
109 REM AFSDEV_LIB = default library directories
110 REM AFSDEV_BIN = default build binary directories
112 set AFSDEV_BUILDTYPE=%AFSBLD_TYPE%
114 REM Location of Microsoft Visual C++ development folder (8.3 short name)
115 set MSVCDIR=c:\progra~1\MID05A~1\vc
117 REM Location of Microsoft Platform SDK (8.3 short name)
118 set MSSDKDIR=C:\progra~1\MIA713~1\Windows\v6.0a
120 REM Location of npapi.h (from DDK or Platform SDK samples - 8.3 short name)
121 set NTDDKDIR=C:\WINDDK\7600.16385.0
123 REM Location of Microsoft IDN Normalization SDK
124 set MSIDNNLS=C:\progra~1\MI5913~1
126 REM Location of Secure Endpoints Kerberos Compatibility SDK 1.0
127 set KERBEROSCOMPATSDKROOT=c:\progra~2\secure~1\kerber~1
129 REM Location of the WiX Installer Toolkit
130 set WIX=c:\tools\wix.2.0.5325
132 REM Location of Cygwin
133 set CYGWINDIR=c:\cygwin
135 REM Location of ActivePerl for Windows
138 REM Location of Microsoft Code Signing Tool
139 SET SIGNTOOL=C:\winddk\7600.16385.0\bin\amd64\signtool.exe
141 set AFSDEV_INCLUDE=%MSSDKDIR%\include;%MSVCDIR%\include;%MSIDNNLS%\include
142 IF "%AFSVER_CL%" == "1400" set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%MSVCDIR%\atlmfc\include
143 IF "%AFSVER_CL%" == "1310" set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%MSVCDIR%\atlmfc\include
144 IF "%AFSVER_CL%" == "1300" set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%MSVCDIR%\atlmfc\include
145 IF "%AFSVER_CL%" == "1200" set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%MSVCDIR%\atl\include;%MSVCDIR%\mfc\include
146 set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%NTDDKDIR%\INC\DDK;%NTDDKDIR%\INC\API;
148 set AFSDEV_LIB=%MSSDKDIR%\lib;%MSVCDIR%\lib
149 IF "%AFSVER_CL%" == "1400" set AFSDEV_LIB=%AFSDEV_LIB%;%MSVCDIR%\atlmfc\lib
150 IF "%AFSVER_CL%" == "1310" set AFSDEV_LIB=%AFSDEV_LIB%;%MSVCDIR%\atlmfc\lib
151 IF "%AFSVER_CL%" == "1300" set AFSDEV_LIB=%AFSDEV_LIB%;%MSVCDIR%\atlmfc\lib
152 IF "%AFSVER_CL%" == "1200" set AFSDEV_LIB=%AFSDEV_LIB%;%MSVCDIR%\mfc\lib
154 set AFSDEV_BIN=%MSSDKDIR%\bin;%MSVCDIR%\bin;%PERL%\bin;%CYGWINDIR%\bin;%WIX%
160 echo Usage: %0 [free^|^checked^|^wspp]