kusano 7d535a
@echo // Copyright (C) 1996-2008 Markus F.X.J. Oberhumer
kusano 7d535a
@echo //
kusano 7d535a
@echo //   Windows 16-bit
kusano 7d535a
@echo //   Symantec C/C++ (using WINIO)
kusano 7d535a
@echo //
kusano 7d535a
@echo // NOTE: LZO breaks the optimizer, so we disable optimizations
kusano 7d535a
@echo //
kusano 7d535a
@call b\prepare.bat
kusano 7d535a
@if "%BECHO%"=="n" echo off
kusano 7d535a
kusano 7d535a
kusano 7d535a
set CC=sc -ml -2 -W
kusano 7d535a
set CF=-w- %CFI%
kusano 7d535a
set LF=%BLIB% libw.lib commdlg.lib lwindos.lib /L/map/stack:8096
kusano 7d535a
kusano 7d535a
%CC% %CF% -c @b\src.rsp
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
lib %BLIB% /b /c /n /noi @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
%CC% dict.obj %LF%
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
%CC% %CF% -c examples\lzopack.c
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
%CC% lzopack.obj %LF%
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
%CC% %CF% -c examples\precomp.c
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
%CC% precomp.obj %LF%
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
%CC% %CF% -c examples\precomp2.c
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
%CC% precomp2.obj %LF%
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
%CC% %CF% -c examples\simple.c
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
%CC% simple.obj %LF%
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
%CC% lzotest.obj %LF%
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