kusano 7d535a
@echo // Copyright (C) 1996-2008 Markus F.X.J. Oberhumer
kusano 7d535a
@echo //
kusano 7d535a
@echo //   Windows 16-bit
kusano 7d535a
@echo //   Microsoft C/C++ (using QuickWin)
kusano 7d535a
@echo //
kusano 7d535a
@call b\prepare.bat
kusano 7d535a
@if "%BECHO%"=="n" echo off
kusano 7d535a
kusano 7d535a
kusano 7d535a
set CC=cl -nologo -AL -G2 -Mq
kusano 7d535a
set CF=-O -Gf -W3 %CFI%
kusano 7d535a
set LF=/seg:256 /stack:8096 /nod:llibce /map
kusano 7d535a
kusano 7d535a
%CC% %CF% -c src\*.c
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
lib /nologo %BLIB% @b\dos16\bc.rsp;
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
kusano 7d535a
%CC% %CF% -c examples\dict.c
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
link %LF% dict.obj,,,llibcewq.lib libw.lib %BLIB%;
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
%CC% %CF% -c examples\lzopack.c
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
link %LF% lzopack.obj,,,llibcewq.lib libw.lib %BLIB%;
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
%CC% %CF% -c examples\precomp.c
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
link %LF% precomp.obj,,,llibcewq.lib libw.lib %BLIB%;
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
%CC% %CF% -c examples\precomp2.c
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
link %LF% precomp2.obj,,,llibcewq.lib libw.lib %BLIB%;
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
%CC% %CF% -c examples\simple.c
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
link %LF% simple.obj,,,llibcewq.lib libw.lib %BLIB%;
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
kusano 7d535a
%CC% %CF% -c lzotest\lzotest.c
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
link %LF% lzotest.obj,,,llibcewq.lib libw.lib %BLIB%;
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
kusano 7d535a
%CC% %CF% -Iinclude\lzo -c minilzo\testmini.c minilzo\minilzo.c
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
link %LF% testmini.obj minilzo.obj,,,llibcewq.lib libw.lib;
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
kusano 7d535a
kusano 7d535a
@call b\done.bat
kusano 7d535a
@goto end
kusano 7d535a
:error
kusano 7d535a
@echo ERROR during build!
kusano 7d535a
:end
kusano 7d535a
@call b\unset.bat