fileserver-largefile-support-20020109
[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 goto args_done
45
46 :free
47 set AFSBLD_TYPE=FREE
48 set AFSBLD_IS_WSPP=
49 goto args_done
50
51 :wspp
52 set AFSBLD_TYPE=FREE
53 set AFSBLD_IS_WSPP=1
54 goto args_done
55
56
57
58 :args_done
59 REM ########################################################################
60 REM General required definitions:
61 REM     SYS_NAME = AFS system name
62
63 SET SYS_NAME=i386_win95
64 SET SYS_NAME=i386_nt40
65 SET _WIN32_IE=0x400
66
67 REM ########################################################################
68 REM NTMakefile required definitions:
69 REM     AFSDEV_BUILDTYPE = CHECKED / FREE 
70 REM     AFSDEV_INCLUDE = default include directories
71 REM     AFSDEV_LIB = default library directories
72 REM     AFSDEV_BIN = default build binary directories
73
74 set AFSDEV_BUILDTYPE=%AFSBLD_TYPE%
75
76 rem Location of VC++ development folder
77 set MSVCDIR=c:\progra~1\micros~2\vc98
78
79 set AFSDEV_INCLUDE=%MSVCDIR%\include;%MSVCDIR%\mfc\include
80 set AFSDEV_LIB=%MSVCDIR%\lib;%MSVCDIR%\mfc\lib
81 set AFSDEV_BIN=%MSVCDIR%\bin
82
83 REM ########################################################################
84 REM Location of base folder where source lies, build directory
85 REM e.g. AFSROOT\SRC is source directory of the build tree
86
87 set AFSROOT=D:\Dev\AfsSorce\OpenAF~2.2
88
89 REM ########################################################################
90 REM NTMakefile optional definitions:
91 REM
92 REM See NTMakefile.SYS_NAME; will normally use defaults.
93 REM
94
95 IF [%HOMEDRIVE%]==[] SET HOMEDRIVE=C:
96
97 REM ########################################################################
98 REM Options necessary when using bison
99 REM
100
101 set BISON_SIMPLE=c:\bin\bison.simple
102 set BISON_HAIRY=c:\bin\bison.hairy
103
104 goto end
105
106
107 :usage
108 echo.
109 echo Usage: %0 [free^|^checked^|^wspp]
110 echo.
111
112 :end