1 @echo // Copyright (C) 1996-2011 Markus F.X.J. Oberhumer
\r
3 @echo // Windows 16-bit
\r
4 @echo // Microsoft C/C++ (using QuickWin)
\r
7 @if "%BECHO%"=="n" echo off
\r
10 set CC=cl -nologo -AL -G2 -Mq
\r
11 set CF=-O -Gf -W3 %CFI%
\r
12 set LF=/seg:256 /stack:8096 /nod:llibce /map
\r
14 %CC% %CF% -c src\*.c
\r
15 @if errorlevel 1 goto error
\r
16 lib /nologo %BLIB% @b\dos16\bc.rsp;
\r
17 @if errorlevel 1 goto error
\r
19 %CC% %CF% -c examples\dict.c
\r
20 @if errorlevel 1 goto error
\r
21 link %LF% dict.obj,,,llibcewq.lib libw.lib %BLIB%;
\r
22 @if errorlevel 1 goto error
\r
23 %CC% %CF% -c examples\lzopack.c
\r
24 @if errorlevel 1 goto error
\r
25 link %LF% lzopack.obj,,,llibcewq.lib libw.lib %BLIB%;
\r
26 @if errorlevel 1 goto error
\r
27 %CC% %CF% -c examples\precomp.c
\r
28 @if errorlevel 1 goto error
\r
29 link %LF% precomp.obj,,,llibcewq.lib libw.lib %BLIB%;
\r
30 @if errorlevel 1 goto error
\r
31 %CC% %CF% -c examples\precomp2.c
\r
32 @if errorlevel 1 goto error
\r
33 link %LF% precomp2.obj,,,llibcewq.lib libw.lib %BLIB%;
\r
34 @if errorlevel 1 goto error
\r
35 %CC% %CF% -c examples\simple.c
\r
36 @if errorlevel 1 goto error
\r
37 link %LF% simple.obj,,,llibcewq.lib libw.lib %BLIB%;
\r
38 @if errorlevel 1 goto error
\r
40 %CC% %CF% -c lzotest\lzotest.c
\r
41 @if errorlevel 1 goto error
\r
42 link %LF% lzotest.obj,,,llibcewq.lib libw.lib %BLIB%;
\r
43 @if errorlevel 1 goto error
\r
45 %CC% %CF% -Iinclude\lzo -c minilzo\testmini.c minilzo\minilzo.c
\r
46 @if errorlevel 1 goto error
\r
47 link %LF% testmini.obj minilzo.obj,,,llibcewq.lib libw.lib;
\r
48 @if errorlevel 1 goto error
\r
54 @echo ERROR during build!
\r