📄 netware.bat
字号:
@echo offrem batch file to build multi-thread test ( mttest.nlm )rem command line arguments:rem debug => build using debug settingsremrem After building, copy mttest.nlm to the server and run it, you'll probablyrem want to redirect stdout and stderr. An example command line would berem "mttest.nlm -thread 20 -loops 10 -CAfile \openssl\apps\server.pem >mttest.out 2>mttest.err"rem del mttest.nlmset BLD_DEBUG=set CFLAGS=set LFLAGS=set LIBS=if "%1" == "DEBUG" set BLD_DEBUG=YESif "%1" == "debug" set BLD_DEBUG=YESif "%MWCIncludes%" == "" goto inc_errorif "%PRELUDE%" == "" goto prelude_errorif "%IMPORTS%" == "" goto imports_errorset CFLAGS=-c -I..\..\outinc_nw -nosyspath -DOPENSSL_SYS_NETWARE -opt off -g -sym internal -maxerrors 20if "%BLD_DEBUG%" == "YES" set LIBS=..\..\out_nw.dbg\ssl.lib ..\..\out_nw.dbg\crypto.libif "%BLD_DEBUG%" == "" set LIBS=..\..\out_nw\ssl.lib ..\..\out_nw\crypto.libset LFLAGS=-msgstyle gcc -zerobss -stacksize 32768 -nostdlib -sym internal rem generate command file for metrowerksecho.echo Generating Metrowerks command file: mttest.defecho # dynamically generated command file for metrowerks build > mttest.defecho IMPORT @%IMPORTS%\clib.imp >> mttest.def echo IMPORT @%IMPORTS%\threads.imp >> mttest.def echo IMPORT @%IMPORTS%\ws2nlm.imp >> mttest.def echo IMPORT GetProcessSwitchCount >> mttest.defecho MODULE clib >> mttest.def rem compileecho.echo Compiling mttest.cmwccnlm.exe mttest.c %CFLAGS% if errorlevel 1 goto endrem link echo.echo Linking mttest.nlmmwldnlm.exe %LFLAGS% -screenname mttest -commandfile mttest.def mttest.o "%PRELUDE%" %LIBS% -o mttest.nlmif errorlevel 1 goto endgoto end:inc_errorecho.echo Environment variable MWCIncludes is not set - see install.nwgoto end:prelude_errorecho.echo Environment variable PRELUDE is not set - see install.nwgoto end:imports_errorecho.echo Environment variable IMPORTS is not set - see install.nwgoto end :endset BLD_DEBUG=set CFLAGS=set LFLAGS=set LIBS=
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -