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_win95" or "i386_nt40"
24 SET SYS_NAME=i386_nt40
26 REM Specify the targeted version of Windows and IE: 0x400 for Win9x/NT4
27 REM and above; 0x500 for Windows 2000 and above
30 REM ########################################################################
31 REM Location of base folder where source lies, build directory
32 REM e.g. AFSROOT\SRC is source directory of the build tree (8.3 short name)
33 set AFSROOT=D:\Dev\AfsSorce\OpenAF~2.2
35 REM ########################################################################
36 REM NTMakefile required definitions:
37 REM AFSVER_CL = version of the Microsoft compiler:
39 REM "1300" for VC7 (.NET)
40 REM "1310" for .NET 2003
43 REM Location of Microsoft Visual C++ development folder (8.3 short name)
44 set MSVCDIR=c:\progra~1\micros~2\vc98
46 REM Location of Microsoft Platform SDK (8.3 short name)
47 set MSSDKDIR=c:\progra~1\micros~4
49 REM Location of npapi.h (from DDK or Platform SDK samples - 8.3 short name)
50 set NTDDKDIR=c:\progra~1\micros~5
52 REM Location of netmpr.h/netspi.h (from Windows 95/98 DDK - 8.3 short name)
53 SET W9XDDKDIR=c:\progra~1\micros~6
55 REM ########################################################################
56 REM NTMakefile optional definitions:
58 REM See NTMakefile.SYS_NAME; will normally use defaults.
61 IF [%HOMEDRIVE%]==[] SET HOMEDRIVE=C:
63 REM ########################################################################
64 REM Options necessary when using bison
67 set BISON_SIMPLE=c:\bin\bison.simple
68 set BISON_HAIRY=c:\bin\bison.hairy
70 REM ########################################################################
71 REM Accept build type as an argument; default to checked.
73 if "%1"=="" goto checked
74 if "%1"=="checked" goto checked
75 if "%1"=="CHECKED" goto checked
77 if "%1"=="free" goto free
78 if "%1"=="FREE" goto free
83 set AFSBLD_TYPE=CHECKED
94 REM #######################################################################
95 REM Construct Variables Required for NTMakefile
96 REM AFSDEV_BUILDTYPE = CHECKED / FREE
97 REM AFSDEV_INCLUDE = default include directories
98 REM AFSDEV_LIB = default library directories
99 REM AFSDEV_BIN = default build binary directories
101 set AFSDEV_BUILDTYPE=%AFSBLD_TYPE%
103 set AFSDEV_INCLUDE=%MSSDKDIR%\include;%MSVCDIR%\include
104 IF "%AFSVER_CL%" == "1310" set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%MSVCDIR%\atlmfc\include
105 IF "%AFSVER_CL%" == "1300" set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%MSVCDIR%\atlmfc\include
106 IF "%AFSVER_CL%" == "1200" set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%MSVCDIR%\atl\include;%MSVCDIR%\mfc\include
107 set AFSDEV_INCLUDE=%AFSDEV_INCLUDE%;%NTDDKDIR%\include;%W9XDDKDIR%\include
109 set AFSDEV_LIB=%MSSDKDIR%\lib;%MSVCDIR%\lib
110 IF "%AFSVER_CL%" == "1310" set AFSDEV_LIB=%AFSDEV_LIB%;%MSVCDIR%\atlmfc\lib
111 IF "%AFSVER_CL%" == "1300" set AFSDEV_LIB=%AFSDEV_LIB%;%MSVCDIR%\atlmfc\lib
112 IF "%AFSVER_CL%" == "1200" set AFSDEV_LIB=%AFSDEV_LIB%;%MSVCDIR%\mfc\lib
114 set AFSDEV_BIN=%MSSDKDIR%\bin;%MSVCDIR%\bin
120 echo Usage: %0 [free^|^checked^|^wspp]