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