]> git.ipfire.org Git - thirdparty/openssl.git/blob - Netware/set_env.bat
Prevent DTLS Finished message injection
[thirdparty/openssl.git] / Netware / set_env.bat
1 @echo off
2
3 rem ========================================================================
4 rem Batch file to assist in setting up the necessary enviroment for
5 rem building OpenSSL for NetWare.
6 rem
7 rem usage:
8 rem set_env [target]
9 rem
10 rem target - "netware-clib" - Clib build
11 rem - "netware-libc" - LibC build
12 rem
13 rem
14
15 if "a%1" == "a" goto usage
16
17 set LIBC_BUILD=
18 set CLIB_BUILD=
19 set GNUC=
20
21 if "%1" == "netware-clib" set CLIB_BUILD=Y
22 if "%1" == "netware-clib" set LIBC_BUILD=
23
24 if "%1" == "netware-libc" set LIBC_BUILD=Y
25 if "%1" == "netware-libc" set CLIB_BUILD=
26
27 if "%2" == "gnuc" set GNUC=Y
28 if "%2" == "codewarrior" set GNUC=
29
30 rem Location of tools (compiler, linker, etc)
31 if "%NDKBASE%" == "" set NDKBASE=c:\Novell
32
33 rem If Perl for Win32 is not already in your path, add it here
34 set PERL_PATH=
35
36 rem Define path to the Metrowerks command line tools
37 rem or GNU Crosscompiler gcc / nlmconv
38 rem ( compiler, assembler, linker)
39 if "%GNUC%" == "Y" set COMPILER_PATH=c:\usr\i586-netware\bin;c:\usr\bin
40 if "%GNUC%" == "" set COMPILER_PATH=c:\prg\cwcmdl40
41
42 rem If using gnu make define path to utility
43 rem set GNU_MAKE_PATH=%NDKBASE%\gnu
44 set GNU_MAKE_PATH=c:\prg\tools
45
46 rem If using ms nmake define path to nmake
47 rem set MS_NMAKE_PATH=%NDKBASE%\msvc\600\bin
48
49 rem If using NASM assembler define path
50 rem set NASM_PATH=%NDKBASE%\nasm
51 set NASM_PATH=c:\prg\tools
52
53 rem Update path to include tool paths
54 set path=%path%;%COMPILER_PATH%
55 if not "%GNU_MAKE_PATH%" == "" set path=%path%;%GNU_MAKE_PATH%
56 if not "%MS_NMAKE_PATH%" == "" set path=%path%;%MS_NMAKE_PATH%
57 if not "%NASM_PATH%" == "" set path=%path%;%NASM_PATH%
58 if not "%PERL_PATH%" == "" set path=%path%;%PERL_PATH%
59
60 rem Set INCLUDES to location of Novell NDK includes
61 if "%LIBC_BUILD%" == "Y" set INCLUDE=%NDKBASE%\ndk\libc\include;%NDKBASE%\ndk\libc\include\winsock
62 if "%CLIB_BUILD%" == "Y" set INCLUDE=%NDKBASE%\ndk\nwsdk\include\nlm;%NDKBASE%\ws295sdk\include
63
64 rem Set Imports to location of Novell NDK import files
65 if "%LIBC_BUILD%" == "Y" set IMPORTS=%NDKBASE%\ndk\libc\imports
66 if "%CLIB_BUILD%" == "Y" set IMPORTS=%NDKBASE%\ndk\nwsdk\imports
67
68 rem Set PRELUDE to the absolute path of the prelude object to link with in
69 rem the Metrowerks NetWare PDK - NOTE: for Clib builds "clibpre.o" is
70 rem recommended, for LibC NKS builds libcpre.o must be used
71 if "%GNUC%" == "Y" goto gnuc
72 if "%LIBC_BUILD%" == "Y" set PRELUDE=%IMPORTS%\libcpre.o
73 rem if "%CLIB_BUILD%" == "Y" set PRELUDE=%IMPORTS%\clibpre.o
74 if "%CLIB_BUILD%" == "Y" set PRELUDE=%IMPORTS%\prelude.o
75 echo using MetroWerks CodeWarrior
76 goto info
77
78 :gnuc
79 if "%LIBC_BUILD%" == "Y" set PRELUDE=%IMPORTS%\libcpre.gcc.o
80 rem if "%CLIB_BUILD%" == "Y" set PRELUDE=%IMPORTS%\clibpre.gcc.o
81 if "%CLIB_BUILD%" == "Y" set PRELUDE=%IMPORTS%\prelude.gcc.o
82 echo using GNU GCC Compiler
83
84 :info
85 echo.
86
87 if "%LIBC_BUILD%" == "Y" echo Enviroment configured for LibC build
88 if "%LIBC_BUILD%" == "Y" echo use "netware\build.bat netware-libc ..."
89
90 if "%CLIB_BUILD%" == "Y" echo Enviroment configured for CLib build
91 if "%CLIB_BUILD%" == "Y" echo use "netware\build.bat netware-clib ..."
92
93 goto end
94
95 :usage
96 rem ===============================================================
97 echo.
98 echo No target build specified!
99 echo.
100 echo usage: set_env [target] [compiler]
101 echo.
102 echo target - "netware-clib" - Clib build
103 echo - "netware-libc" - LibC build
104 echo.
105 echo compiler - "gnuc" - GNU GCC Compiler
106 echo - "codewarrior" - MetroWerks CodeWarrior (default)
107 echo.
108
109 :end
110 echo.
111
112