set_env.bat
来自「mediastreamer2是开源的网络传输媒体流的库」· Batch 代码 · 共 91 行
BAT
91 行
@echo offrem ========================================================================rem Batch file to assist in setting up the necessary enviroment forrem building OpenSSL for NetWare.remrem usage:rem set_env [target]remrem target - "netware-clib" - Clib buildrem - "netware-libc" - LibC buildremremif "a%1" == "a" goto usage set LIBC_BUILD=set CLIB_BUILD=if "%1" == "netware-clib" set CLIB_BUILD=Yif "%1" == "netware-clib" set LIBC_BUILD=if "%1" == "netware-libc" set LIBC_BUILD=Yif "%1" == "netware-libc" set CLIB_BUILD=rem Location of tools (compiler, linker, etc)set TOOLS=d:\i_drive\toolsrem If Perl for Win32 is not already in your path, add it hereset PERL_PATH=rem Define path to the Metrowerks command line toolsrem ( compiler, assembler, linker)set METROWERKS_PATH=%TOOLS%\codewar\pdk_21\tools\command line toolsrem set METROWERKS_PATH=%TOOLS%\codewar\PDK_40\Other Metrowerks Tools\Command Line Toolsrem If using gnu make define path to utilityset GNU_MAKE_PATH=%TOOLS%\gnurem If using ms nmake define path to nmakeset MS_NMAKE_PATH=%TOOLS%\msvc\600\binrem If using NASM assembler define pathset NASM_PATH=%TOOLS%\nasmrem Update path to include tool pathsset path=%path%;%METROWERKS_PATH%if not "%GNU_MAKE_PATH%" == "" set path=%path%;%GNU_MAKE_PATH%if not "%MS_NMAKE_PATH%" == "" set path=%path%;%MS_NMAKE_PATH%if not "%NASM_PATH%" == "" set path=%path%;%NASM_PATH%if not "%PERL_PATH%" == "" set path=%path%;%PERL_PATH%rem Set MWCIncludes to location of Novell NDK includesif "%LIBC_BUILD%" == "Y" set MWCIncludes=%TOOLS%\ndk\libc\include;%TOOLS%\ndk\libc\include\winsock;.\enginesif "%CLIB_BUILD%" == "Y" set MWCIncludes=%TOOLS%\ndk\nwsdk\include\nlm;.\enginesset include=rem Set Imports to location of Novell NDK import filesif "%LIBC_BUILD%" == "Y" set IMPORTS=%TOOLS%\ndk\libc\importsif "%CLIB_BUILD%" == "Y" set IMPORTS=%TOOLS%\ndk\nwsdk\importsrem Set PRELUDE to the absolute path of the prelude object to link with inrem the Metrowerks NetWare PDK - NOTE: for Clib builds "clibpre.o" is rem recommended, for LibC NKS builds libcpre.o must be usedif "%LIBC_BUILD%" == "Y" set PRELUDE=%IMPORTS%\libcpre.oif "%CLIB_BUILD%" == "Y" set PRELUDE=%IMPORTS%\clibpre.oif "%LIBC_BUILD%" == "Y" echo Enviroment configured for LibC buildif "%LIBC_BUILD%" == "Y" echo use "netware\build.bat netware-libc ..." if "%CLIB_BUILD%" == "Y" echo Enviroment configured for CLib buildif "%CLIB_BUILD%" == "Y" echo use "netware\build.bat netware-clib ..." goto end:usagerem ===============================================================echo .echo . No target build specified!echo .echo . usage: set_env [target]echo .echo . target - "netware-clib" - Clib buildecho . - "netware-libc" - LibC buildecho .:end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?