dmc.bat

来自「lzo-1.08-src.zip 高效的压缩解压代码」· Batch 代码 · 共 49 行

BAT
49
字号
rem /* DOS 32 bit - Digital Mars C/C++
rem  * a very simple make driver
rem  * Copyright (C) 1996-2002 Markus F.X.J. Oberhumer
rem  */

@if "%LZO_ECHO%"=="n" echo off

set CC=sc -mx
set CFLAGS=-Iinclude -o -w-
set MYLIB=lzo.lib

echo Compiling, please be patient...
for %%i in (src\*.c) do %CC% %CFLAGS% -c %%i
@if errorlevel 1 goto error
if exist %MYLIB% del %MYLIB%
lib %MYLIB% /b /c /n /noi @b\dos32\dmc.rsp
@if errorlevel 1 goto error

%CC% %CFLAGS% -Iltest ltest\ltest.c %MYLIB% x32.lib
@if errorlevel 1 goto error

%CC% %CFLAGS% examples\dict.c %MYLIB% x32.lib
@if errorlevel 1 goto error
%CC% %CFLAGS% examples\lpack.c %MYLIB% x32.lib
@if errorlevel 1 goto error
%CC% %CFLAGS% examples\overlap.c %MYLIB% x32.lib
@if errorlevel 1 goto error
%CC% %CFLAGS% examples\precomp.c %MYLIB% x32.lib
@if errorlevel 1 goto error
%CC% %CFLAGS% examples\precomp2.c %MYLIB% x32.lib
@if errorlevel 1 goto error
%CC% %CFLAGS% examples\simple.c %MYLIB% x32.lib
@if errorlevel 1 goto error

%CC% %CFLAGS% -Isrc tests\align.c %MYLIB% x32.lib
@if errorlevel 1 goto error
%CC% %CFLAGS% -Isrc tests\chksum.c %MYLIB% x32.lib
@if errorlevel 1 goto error

%CC% %CFLAGS% -Iminilzo -otestmini.exe minilzo\testmini.c minilzo\minilzo.c
@if errorlevel 1 goto error

@echo Done.
@goto end
:error
echo error!
:end
@call b\unset.bat

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?