kusano 7d535a
@echo // Copyright (C) 1996-2008 Markus F.X.J. Oberhumer
kusano 7d535a
@echo //
kusano 7d535a
@echo //   DOS 32-bit
kusano 7d535a
@echo //   djgpp2 + gcc
kusano 7d535a
@echo //
kusano 7d535a
@call b\prepare.bat
kusano 7d535a
@if "%BECHO%"=="n" echo off
kusano 7d535a
kusano 7d535a
kusano 7d535a
set BLIB=lib%BNAME%.a
kusano 7d535a
set CC=gcc
kusano 7d535a
set CF=@b/dos32/dj2.opt %CFI% %CFASM%
kusano 7d535a
set LF=%BLIB% -s
kusano 7d535a
kusano 7d535a
%CC% %CF% -c @b\src.rsp
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
%CC% -x assembler-with-cpp -c asm/i386/src_gas/*.S
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
ar rcs %BLIB% @b/win32/cygwin.rsp
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
kusano 7d535a
%CC% %CF% -o dict.exe examples/dict.c %LF%
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
%CC% %CF% -o lzopack.exe examples/lzopack.c %LF%
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
%CC% %CF% -o precomp.exe examples/precomp.c %LF%
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
%CC% %CF% -o precomp2.exe examples/precomp2.c %LF%
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
%CC% %CF% -o simple.exe examples/simple.c %LF%
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
kusano 7d535a
%CC% %CF% -o lzotest.exe lzotest/lzotest.c %LF%
kusano 7d535a
@if errorlevel 1 goto error
kusano 7d535a
kusano 7d535a
%CC% %CF% -s -Iinclude/lzo -o testmini.exe minilzo/testmini.c minilzo/minilzo.c
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