kusano 7d535a
@echo // Copyright (C) 1996-2008 Markus F.X.J. Oberhumer
kusano 7d535a
@echo //
kusano 7d535a
@echo //   Windows 32-bit
kusano 7d535a
@echo //   lcc-win32
kusano 7d535a
@echo //
kusano 7d535a
@echo // NOTE: some lcc-win32 versions are buggy, 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=lcc
kusano 7d535a
set CF=-O -A %CFI% -Iinclude\lzo %CFASM%
kusano 7d535a
set CF=-A %CFI% -Iinclude\lzo %CFASM%
kusano 7d535a
set LF=%BLIB% winmm.lib
kusano 7d535a
kusano 7d535a
for %%f in (src\*.c) do %CC% %CF% -c %%f
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
lcclib /out:%BLIB% @b\win32\vc.rsp
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
kusano 7d535a
%CC% -c %CF% examples\dict.c
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
lc dict.obj %LF%
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
%CC% -c %CF% examples\lzopack.c
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
lc lzopack.obj %LF%
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
%CC% -c %CF% examples\precomp.c
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
lc precomp.obj %LF%
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
%CC% -c %CF% examples\precomp2.c
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
lc precomp2.obj %LF%
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
%CC% -c %CF% examples\simple.c
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
lc simple.obj %LF%
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
kusano 7d535a
%CC% -c %CF% lzotest\lzotest.c
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
lc lzotest.obj %LF%
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
kusano 7d535a
%CC% -c %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
lc testmini.obj minilzo.obj
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