1 @echo // Copyright (C) 1996-2015 Markus F.X.J. Oberhumer
\r
3 @echo // Windows 32-bit
\r
4 @echo // cygwin + gcc
\r
7 @if "%BECHO%"=="n" echo off
\r
10 set BLIB=lib%BNAME%.a
\r
12 set CF=-O2 -fomit-frame-pointer -Wall %CFI% %CFASM%
\r
13 set LF=%BLIB% -lwinmm -s
\r
15 %CC% %CF% -c src/*.c
\r
16 @if errorlevel 1 goto error
\r
17 %CC% -x assembler-with-cpp -c asm/i386/src_gas/*.S
\r
18 @if errorlevel 1 goto error
\r
19 ar rcs %BLIB% @b/win32/cygwin.rsp
\r
20 @if errorlevel 1 goto error
\r
22 %CC% %CF% -o dict.exe examples/dict.c %LF%
\r
23 @if errorlevel 1 goto error
\r
24 %CC% %CF% -o lzopack.exe examples/lzopack.c %LF%
\r
25 @if errorlevel 1 goto error
\r
26 %CC% %CF% -o precomp.exe examples/precomp.c %LF%
\r
27 @if errorlevel 1 goto error
\r
28 %CC% %CF% -o precomp2.exe examples/precomp2.c %LF%
\r
29 @if errorlevel 1 goto error
\r
30 %CC% %CF% -o simple.exe examples/simple.c %LF%
\r
31 @if errorlevel 1 goto error
\r
33 %CC% %CF% -o lzotest.exe lzotest/lzotest.c %LF%
\r
34 @if errorlevel 1 goto error
\r
36 %CC% %CF% -Iinclude/lzo -o testmini.exe minilzo/testmini.c minilzo/minilzo.c
\r
37 @if errorlevel 1 goto error
\r
43 @echo ERROR during build!
\r