Initial IBM OpenAFS 1.0 tree
[openafs.git] / src / ntbuild.bat
1 @echo off
2 REM AFS build environment variables for Windows NT.
3 REM
4 REM Copyright (C) 1998  Transarc Corporation.  All rights reserved.
5 REM
6 REM Modify for local configuration; common defaults shown.
7 REM ########################################################################
8
9
10 REM ########################################################################
11 REM
12 REM NOTE: You should run NTLANG.REG before attempting to build localized
13 REM language files! Failure to do so will cause the resource compiler
14 REM and message-catalog compiler to choke when they hit unknown code pages.
15 REM
16 REM NOTE: You will need to copy the NLS files into your windows\system32 
17 REM directory prior to building non-english files.
18 REM
19 REM ########################################################################
20
21
22 REM ########################################################################
23 REM Accept build type as an argument; default to checked.
24
25 if "%1"=="" goto checked
26 if "%1"=="checked" goto checked
27 if "%1"=="CHECKED" goto checked
28
29 if "%1"=="free" goto free
30 if "%1"=="FREE" goto free
31
32 if "%1"=="wspp" goto wspp
33 if "%1"=="WSPP" goto wspp
34
35 goto usage
36
37 :checked
38 set AFSBLD_TYPE=CHECKED
39 set AFSBLD_IS_WSPP=
40 goto args_done
41
42 :free
43 set AFSBLD_TYPE=FREE
44 set AFSBLD_IS_WSPP=
45 goto args_done
46
47 :wspp
48 set AFSBLD_TYPE=FREE
49 set AFSBLD_IS_WSPP=1
50 goto args_done
51
52
53 :args_done
54 REM ########################################################################
55 REM General required definitions:
56 REM     SYS_NAME = <AFS system name>
57
58 set SYS_NAME=i386_nt40
59
60
61 REM ########################################################################
62 REM NTMakefile required definitions:
63 REM     AFSDEV_BUILDTYPE = [ CHECKED | FREE ]
64 REM     AFSDEV_INCLUDE = <default include directories>
65 REM     AFSDEV_LIB = <default library directories>
66 REM     AFSDEV_BIN = <default build binary directories>
67
68 set AFSDEV_BUILDTYPE=%AFSBLD_TYPE%
69
70 set MSVCDIR=c:\dev\tools\DevStudio\vc
71
72 set AFSDEV_INCLUDE=%MSVCDIR%\include;%MSVCDIR%\mfc\include
73 set AFSDEV_LIB=%MSVCDIR%\lib;%MSVCDIR%\mfc\lib
74 set AFSDEV_BIN=%MSVCDIR%\bin
75
76 set AFSROOT=d:\afs\openafs
77
78 REM ########################################################################
79 REM NTMakefile optional definitions:
80 REM
81 REM See NTMakefile.SYS_NAME; will normally use defaults.
82 REM
83 REM     IS5ROOT = <root directory of the InstallShield5 installation>
84 REM     You should only define this if you have InstallShield installed on
85 REM     your computer and want to create the setup as part of the build.
86
87 set IS5ROOT=d:\progra~1\instal~1\instal~1.1pr
88
89 REM ########################################################################
90 REM Options necessary when using bison
91 REM
92
93 set BISON_SIMPLE=c:\bin\bison.simple
94 set BISON_HAIRY=c:\bin\bison.hairy
95
96 goto end
97
98
99 :usage
100 echo.
101 echo Usage: %0 [free^|^checked^|^wspp]
102 echo.
103
104 :end