3 rem ========================================================================
4 rem Batch file to assist in setting up the necessary enviroment for
5 rem building OpenSSL for NetWare.
10 rem target - "netware-clib" - Clib build
11 rem - "netware-libc" - LibC build
15 if "a%1" == "a" goto usage
20 if "%1" == "netware-clib" set CLIB_BUILD=Y
21 if "%1" == "netware-clib" set LIBC_BUILD=
23 if "%1" == "netware-libc" set LIBC_BUILD=Y
24 if "%1" == "netware-libc" set CLIB_BUILD=
26 rem Location of tools (compiler, linker, etc)
27 set TOOLS=d:\i_drive\tools
29 rem If Perl for Win32 is not already in your path, add it here
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
37 rem If using gnu make define path to utility
38 set GNU_MAKE_PATH=%TOOLS%\gnu
40 rem If using ms nmake define path to nmake
41 set MS_NMAKE_PATH=%TOOLS%\msvc\600\bin
43 rem If using NASM assembler define path
44 set NASM_PATH=%TOOLS%\nasm
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%
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
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
62 rem Set PRELUDE to the absolute path of the prelude object to link with in
63 rem the Metrowerks NetWare PDK - NOTE: for Clib builds "clibpre.o" is
64 rem recommended, for LibC NKS builds libcpre.o must be used
65 if "%LIBC_BUILD%" == "Y" set PRELUDE=%IMPORTS%\libcpre.o
66 if "%CLIB_BUILD%" == "Y" set PRELUDE=%IMPORTS%\clibpre.o
69 if "%LIBC_BUILD%" == "Y" echo Enviroment configured for LibC build
70 if "%LIBC_BUILD%" == "Y" echo use "netware\build.bat netware-libc ..."
72 if "%CLIB_BUILD%" == "Y" echo Enviroment configured for CLib build
73 if "%CLIB_BUILD%" == "Y" echo use "netware\build.bat netware-clib ..."
77 rem ===============================================================
79 echo . No target build specified!
81 echo . usage: set_env [target]
83 echo . target - "netware-clib" - Clib build
84 echo . - "netware-libc" - LibC build