]> git.ipfire.org Git - thirdparty/openssl.git/blame - Netware/set_env.bat
NetWare fixes provided by Verdon Walker for OpenSSL 0.9.8-dev.
[thirdparty/openssl.git] / Netware / set_env.bat
CommitLineData
4d8743f4
RL
1@echo off
2
3rem ========================================================================
4rem Batch file to assist in setting up the necessary enviroment for
5rem building OpenSSL for NetWare.
6rem
7rem usage:
8rem set_env [target]
9rem
10rem target - "netware-clib" - Clib build
11rem - "netware-libc" - LibC build
12rem
13rem
14
15if "a%1" == "a" goto usage
16
17set LIBC_BUILD=
18set CLIB_BUILD=
19
20if "%1" == "netware-clib" set CLIB_BUILD=Y
21if "%1" == "netware-clib" set LIBC_BUILD=
22
23if "%1" == "netware-libc" set LIBC_BUILD=Y
24if "%1" == "netware-libc" set CLIB_BUILD=
25
26rem Location of tools (compiler, linker, etc)
27set TOOLS=d:\i_drive\tools
28
29rem If Perl for Win32 is not already in your path, add it here
30set PERL_PATH=
31
32rem Define path to the Metrowerks command line tools
33rem ( compiler, assembler, linker)
34set METROWERKS_PATH=%TOOLS%\codewar\pdk_21\tools\command line tools
35rem set METROWERKS_PATH=%TOOLS%\codewar\PDK_40\Other Metrowerks Tools\Command Line Tools
36
37rem If using gnu make define path to utility
38set GNU_MAKE_PATH=%TOOLS%\gnu
39
40rem If using ms nmake define path to nmake
41set MS_NMAKE_PATH=%TOOLS%\msvc\600\bin
42
43rem If using NASM assembler define path
44set NASM_PATH=%TOOLS%\nasm
45
46rem Update path to include tool paths
47set path=%path%;%METROWERKS_PATH%
48if not "%GNU_MAKE_PATH%" == "" set path=%path%;%GNU_MAKE_PATH%
49if not "%MS_NMAKE_PATH%" == "" set path=%path%;%MS_NMAKE_PATH%
50if not "%NASM_PATH%" == "" set path=%path%;%NASM_PATH%
51if not "%PERL_PATH%" == "" set path=%path%;%PERL_PATH%
52
53rem Set MWCIncludes to location of Novell NDK includes
54if "%LIBC_BUILD%" == "Y" set MWCIncludes=%TOOLS%\ndk\libc\include;%TOOLS%\ndk\libc\include\winsock;.\engines
55if "%CLIB_BUILD%" == "Y" set MWCIncludes=%TOOLS%\ndk\nwsdk\include\nlm;.\engines
56set include=
57
58rem Set Imports to location of Novell NDK import files
59if "%LIBC_BUILD%" == "Y" set IMPORTS=%TOOLS%\ndk\libc\imports
60if "%CLIB_BUILD%" == "Y" set IMPORTS=%TOOLS%\ndk\nwsdk\imports
61
62rem Set PRELUDE to the absolute path of the prelude object to link with in
47c1735a 63rem the Metrowerks NetWare PDK - NOTE: for Clib builds "clibpre.o" is
4d8743f4 64rem recommended, for LibC NKS builds libcpre.o must be used
47c1735a
RL
65if "%LIBC_BUILD%" == "Y" set PRELUDE=%IMPORTS%\libcpre.o
66if "%CLIB_BUILD%" == "Y" set PRELUDE=%IMPORTS%\clibpre.o
4d8743f4
RL
67
68
69if "%LIBC_BUILD%" == "Y" echo Enviroment configured for LibC build
70if "%LIBC_BUILD%" == "Y" echo use "netware\build.bat netware-libc ..."
71
72if "%CLIB_BUILD%" == "Y" echo Enviroment configured for CLib build
73if "%CLIB_BUILD%" == "Y" echo use "netware\build.bat netware-clib ..."
74goto end
75
76:usage
77rem ===============================================================
78echo .
79echo . No target build specified!
80echo .
81echo . usage: set_env [target]
82echo .
83echo . target - "netware-clib" - Clib build
84echo . - "netware-libc" - LibC build
85echo .
86
87
88
89:end
90