summaryrefslogtreecommitdiff
path: root/B
diff options
context:
space:
mode:
authorJinkun Jang <jinkun.jang@samsung.com>2013-03-12 15:14:22 +0900
committerJinkun Jang <jinkun.jang@samsung.com>2013-03-12 15:14:22 +0900
commit70b67e7e430bf0ce5dd66850082ecbdf8313ffd7 (patch)
tree32e329de8dc8ba2395bb962f1695b4702ef11fe7 /B
parenta83fc9cd1e8b00df9de50d6285680a8e19d419f1 (diff)
downloadlzop-70b67e7e430bf0ce5dd66850082ecbdf8313ffd7.tar.gz
lzop-70b67e7e430bf0ce5dd66850082ecbdf8313ffd7.tar.bz2
lzop-70b67e7e430bf0ce5dd66850082ecbdf8313ffd7.zip
Diffstat (limited to 'B')
-rw-r--r--B/00README.TXT61
-rw-r--r--B/clean.bat2
-rw-r--r--B/clean.cmd2
-rw-r--r--B/done.bat2
-rw-r--r--B/done.cmd2
-rw-r--r--B/dos16/bc.bat19
-rw-r--r--B/dos16/bc_286.bat19
-rw-r--r--B/dos16/bc_pp.bat19
-rw-r--r--B/dos16/dm.bat19
-rw-r--r--B/dos16/mc.bat22
-rw-r--r--B/dos16/sc.bat21
-rw-r--r--B/dos16/tc.bat19
-rw-r--r--B/dos16/vc.bat22
-rw-r--r--B/dos16/wc.bat20
-rw-r--r--B/dos32/dj2.bat21
-rw-r--r--B/dos32/dj2.opt11
-rw-r--r--B/dos32/dm.bat19
-rw-r--r--B/dos32/emx.bat19
-rw-r--r--B/dos32/highc.bat19
-rw-r--r--B/dos32/ndp.bat19
-rw-r--r--B/dos32/sc.bat21
-rw-r--r--B/dos32/wc.bat20
-rw-r--r--B/dos32/wc_c.bat20
-rw-r--r--B/dos32/wc_d.bat20
-rw-r--r--B/dos32/wc_p.bat20
-rw-r--r--B/dos32/zc.bat21
-rwxr-xr-xB/generic/build.sh37
-rwxr-xr-xB/generic/build_gcc.sh24
-rwxr-xr-xB/generic/clean.sh7
-rw-r--r--B/os2/bc.cmd19
-rw-r--r--B/os2/emx.bat19
-rw-r--r--B/os2/emx.cmd19
-rw-r--r--B/os2/va.cmd19
-rw-r--r--B/os2/wc.bat20
-rw-r--r--B/os2/wc.cmd20
-rw-r--r--B/os2/zc.bat21
-rw-r--r--B/os2_16/mc.bat22
-rw-r--r--B/os2_16/sc.cmd21
-rw-r--r--B/os2_16/wc.bat20
-rw-r--r--B/os2_16/wc.cmd20
-rw-r--r--B/prepare.bat12
-rw-r--r--B/prepare.cmd12
-rw-r--r--B/src.rsp18
-rw-r--r--B/unset.bat11
-rw-r--r--B/unset.cmd11
-rw-r--r--B/win16/bc.bat19
-rw-r--r--B/win16/sc.bat21
-rw-r--r--B/win16/vc.bat22
-rw-r--r--B/win16/wc.bat20
-rw-r--r--B/win32/bc.bat19
-rw-r--r--B/win32/cygwin.bat19
-rw-r--r--B/win32/dm.bat19
-rw-r--r--B/win32/ic.bat19
-rw-r--r--B/win32/lccwin32.bat23
-rw-r--r--B/win32/mingw.bat19
-rw-r--r--B/win32/pellesc.bat19
-rw-r--r--B/win32/pgi.bat19
-rw-r--r--B/win32/pw32.bat19
-rw-r--r--B/win32/rsxnt.bat19
-rw-r--r--B/win32/sc.bat21
-rw-r--r--B/win32/sc.rsp1
-rw-r--r--B/win32/vc.bat19
-rw-r--r--B/win32/wc.bat20
-rw-r--r--B/win64/ic.bat19
-rw-r--r--B/win64/vc.bat19
65 files changed, 1206 insertions, 0 deletions
diff --git a/B/00README.TXT b/B/00README.TXT
new file mode 100644
index 0000000..417f8f2
--- /dev/null
+++ b/B/00README.TXT
@@ -0,0 +1,61 @@
+Simple make drivers for DOS, Windows, OS/2 and other systems
+============================================================
+
+This directory contains a bunch of simple build scripts - I've tried
+to make them as foolproof as possible.
+
+To build lzop for your system type `b\OS\COMPILER' in the base directory,
+e.g. `b\win32\vc.bat' will build the Win32 Visual C/C++ version.
+
+All scripts expect that the LZO library has been installed and built
+in the directory ..\lzo-2.01. You can also set the environment variable
+`LZODIR' to point to your LZO directory, e.g. `set LZODIR=c:\src\lzo-2.01',
+or you can modify `prepare.bat' to suit your needs.
+
+Please send me your additional/improved versions.
+
+
+Overview:
+---------
+
+b\dos16\bc.bat Borland C/C++ (1)
+b\dos16\dm.bat Digital Mars C/C++ (1)
+b\dos16\mc.bat Microsoft C 7.0 (1)
+b\dos16\sc.bat Symantec C/C++ (1)
+b\dos16\tc.bat Turbo C/C++ (1)
+b\dos16\vc.bat Visual C/C++ (1)
+b\dos16\wc.bat Watcom C/C++ (1)
+
+b\dos32\dj2.bat djgpp v2 + gcc
+b\dos32\dm.bat Digital Mars C/C++
+b\dos32\emx.bat emx + gcc
+b\dos32\sc.bat Symantec C/C++
+b\dos32\wc.bat Watcom C/C++
+
+b\os2\emx.cmd emx + gcc
+b\os2\wc.cmd Watcom C/C++
+
+b\win16\bc.bat Borland C/C++ (1)
+b\win16\sc.bat Symantec C/C++ (1)
+b\win16\vc.bat Visual C/C++ (1)
+b\win16\wc.bat Watcom C/C++ (1)
+
+b\win32\bc.bat Borland C/C++
+b\win32\cygwin.bat Cygwin + gcc
+b\win32\dm.bat Digital Mars C/C++
+b\win32\ic.bat Intel C/C++
+b\win32\lccwin32.bat lcc-win32
+b\win32\mingw.bat MinGW + gcc
+b\win32\rsxnt.bat rsxnt + gcc
+b\win32\sc.bat Symantec C/C++
+b\win32\vc.bat Visual C/C++
+b\win32\wc.bat Watcom C/C++
+
+b\win64\ic.bat Intel C/C++ (AMD64 or Itanium)
+b\win64\vc.bat Visual C/C++ (AMD64 or Itanium)
+
+
+Notes:
+ (1) 16-bit versions should work but are not officially supported
+
+
diff --git a/B/clean.bat b/B/clean.bat
new file mode 100644
index 0000000..3108290
--- /dev/null
+++ b/B/clean.bat
@@ -0,0 +1,2 @@
+@del /q *.def *.err *.exp *.map *.o *.obj *.res *.tds > nul 2> nul
+@del /q lzop.exe > nul 2> nul
diff --git a/B/clean.cmd b/B/clean.cmd
new file mode 100644
index 0000000..3108290
--- /dev/null
+++ b/B/clean.cmd
@@ -0,0 +1,2 @@
+@del /q *.def *.err *.exp *.map *.o *.obj *.res *.tds > nul 2> nul
+@del /q lzop.exe > nul 2> nul
diff --git a/B/done.bat b/B/done.bat
new file mode 100644
index 0000000..1ffe502
--- /dev/null
+++ b/B/done.bat
@@ -0,0 +1,2 @@
+@echo //
+@echo // Building %BEXE% was successful. All done.
diff --git a/B/done.cmd b/B/done.cmd
new file mode 100644
index 0000000..1ffe502
--- /dev/null
+++ b/B/done.cmd
@@ -0,0 +1,2 @@
+@echo //
+@echo // Building %BEXE% was successful. All done.
diff --git a/B/dos16/bc.bat b/B/dos16/bc.bat
new file mode 100644
index 0000000..16b668d
--- /dev/null
+++ b/B/dos16/bc.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // DOS 16-bit
+@echo // Borland C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+bcc -ml -f- -O1 -w -Isrc -Iacc %CFI% -e%BEXE% @b\src.rsp %BLDLIBS%
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/dos16/bc_286.bat b/B/dos16/bc_286.bat
new file mode 100644
index 0000000..d34231c
--- /dev/null
+++ b/B/dos16/bc_286.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // DOS 16-bit
+@echo // Borland C/C++ + Pharlap 286DOS-Extender
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+bcc -ml -2 -f- -O1 -d -w -Isrc -Iacc %CFI% -e%BEXE% @b\src.rsp %BLDLIBS%
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/dos16/bc_pp.bat b/B/dos16/bc_pp.bat
new file mode 100644
index 0000000..7ba09e2
--- /dev/null
+++ b/B/dos16/bc_pp.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // DOS 16-bit
+@echo // Borland C/C++ + Borland PowerPack 1.0 (DPMI16)
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+bcc -ml -2 -WX -O1 -w -Isrc -Iacc %CFI% -e%BEXE% @b\src.rsp %BLDLIBS%
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/dos16/dm.bat b/B/dos16/dm.bat
new file mode 100644
index 0000000..504effa
--- /dev/null
+++ b/B/dos16/dm.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // DOS 16-bit
+@echo // Digital Mars C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+dmc -ml -2 -o -w- %CFI% -o%BEXE% @b\src.rsp %BLDLIBS% -L/map
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/dos16/mc.bat b/B/dos16/mc.bat
new file mode 100644
index 0000000..af2d995
--- /dev/null
+++ b/B/dos16/mc.bat
@@ -0,0 +1,22 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // DOS 16-bit
+@echo // Microsoft C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+set CC=cl -nologo -AL
+%CC% -O -W3 %CFI% -c src\*.c
+@if errorlevel 1 goto error
+%CC% -F 2000 -Fm -Fe%BEXE% *.obj %BLDLIBS% /link /noe
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/dos16/sc.bat b/B/dos16/sc.bat
new file mode 100644
index 0000000..fec82ce
--- /dev/null
+++ b/B/dos16/sc.bat
@@ -0,0 +1,21 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // DOS 16-bit
+@echo // Symantec C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+sc -c -ml -o -w- %CFI% @b\src.rsp
+@if errorlevel 1 goto error
+link @b\win32\sc.rsp,%BEXE%,,lzo/noi/map
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/dos16/tc.bat b/B/dos16/tc.bat
new file mode 100644
index 0000000..580d016
--- /dev/null
+++ b/B/dos16/tc.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // DOS 16-bit
+@echo // Turbo C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+tcc -ml -f- -O -G -w -Isrc -Iacc %CFI% -e%BEXE% src\*.c %BLDLIBS%
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/dos16/vc.bat b/B/dos16/vc.bat
new file mode 100644
index 0000000..365f09c
--- /dev/null
+++ b/B/dos16/vc.bat
@@ -0,0 +1,22 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // DOS 16-bit
+@echo // Microsoft Visual C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+set CC=cl -nologo -AL
+%CC% -O -W3 %CFI% -c @b\src.rsp
+@if errorlevel 1 goto error
+%CC% -F 2000 -Fm -Fe%BEXE% *.obj %BLDLIBS% /link /noe
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/dos16/wc.bat b/B/dos16/wc.bat
new file mode 100644
index 0000000..cb49f61
--- /dev/null
+++ b/B/dos16/wc.bat
@@ -0,0 +1,20 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // DOS 16-bit
+@echo // Watcom C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+set WCL=-zq -bt#dos -l#dos %CFI% %WCL_W%
+wcl -ml -ox -k0x2000 -fm -Fe#%BEXE% src\*.c %BLDLIBS%
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/dos32/dj2.bat b/B/dos32/dj2.bat
new file mode 100644
index 0000000..a3f17ba
--- /dev/null
+++ b/B/dos32/dj2.bat
@@ -0,0 +1,21 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // DOS 32-bit
+@echo // djgpp2 + gcc
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+gcc @b/dos32/dj2.opt %CFI% -o %BEXE% @b\src.rsp -L. -llzo2
+@if errorlevel 1 goto error
+stubedit %BEXE% bufsize=64512 minstack=65536
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/dos32/dj2.opt b/B/dos32/dj2.opt
new file mode 100644
index 0000000..c85f1de
--- /dev/null
+++ b/B/dos32/dj2.opt
@@ -0,0 +1,11 @@
+-O2
+-Wall
+-W
+-Wbad-function-cast
+-Wcast-align
+-Wcast-qual
+-Wimplicit
+-Wnested-externs
+-Wpointer-arith
+-Wstrict-prototypes
+-Wwrite-strings
diff --git a/B/dos32/dm.bat b/B/dos32/dm.bat
new file mode 100644
index 0000000..81adeaa
--- /dev/null
+++ b/B/dos32/dm.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // DOS 32-bit
+@echo // Digital Mars C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+dmc -mx -o -w- %CFI% -o%BEXE% @b\src.rsp %BLDLIBS% x32.lib -L/map
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/dos32/emx.bat b/B/dos32/emx.bat
new file mode 100644
index 0000000..a90be62
--- /dev/null
+++ b/B/dos32/emx.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // DOS 32-bit
+@echo // emx + gcc
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+gcc -Wall -O2 %CFI% -s -o %BEXE% @b\src.rsp -L. -llzo2
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/dos32/highc.bat b/B/dos32/highc.bat
new file mode 100644
index 0000000..576da9b
--- /dev/null
+++ b/B/dos32/highc.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // DOS 32-bit
+@echo // MetaWare High C/C++ (using Pharlap DOS extender)
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+hc386 -O3 -w4 -Dconst= %CFI% -o %BEXE% src\*.c %BLDLIBS%
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/dos32/ndp.bat b/B/dos32/ndp.bat
new file mode 100644
index 0000000..a4cf4d4
--- /dev/null
+++ b/B/dos32/ndp.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // DOS 32-bit
+@echo // Microway NDP C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+mx486 -ansi -on %CFI% -Dconst= -Isrc -o %BEXE% src\*.c %BLDLIBS% -bind -map
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/dos32/sc.bat b/B/dos32/sc.bat
new file mode 100644
index 0000000..7364340
--- /dev/null
+++ b/B/dos32/sc.bat
@@ -0,0 +1,21 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // DOS 32-bit
+@echo // Symantec C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+sc -c -mx -o -w- %CFI% @b\src.rsp
+@if errorlevel 1 goto error
+link @b\win32\sc.rsp,%BEXE%,,lzo/noi/map
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/dos32/wc.bat b/B/dos32/wc.bat
new file mode 100644
index 0000000..5b6cfe5
--- /dev/null
+++ b/B/dos32/wc.bat
@@ -0,0 +1,20 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // DOS 32-bit
+@echo // Watcom C/C++ (using DOS/4G extender)
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+set WCL386=-zq -bt#dos -l#dos4g %CFI% %WCL_W%
+wcl386 -mf -5r -ox -fm -Fe#%BEXE% src\*.c %BLDLIBS%
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/dos32/wc_c.bat b/B/dos32/wc_c.bat
new file mode 100644
index 0000000..1895c70
--- /dev/null
+++ b/B/dos32/wc_c.bat
@@ -0,0 +1,20 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // DOS 32-bit
+@echo // Watcom C/C++ (using CauseWay extender)
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+set WCL386=-zq -bt#dos -l#CauseWay %CFI% %WCL_W%
+wcl386 -mf -5r -ox -fm -Fe#%BEXE% src\*.c %BLDLIBS%
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/dos32/wc_d.bat b/B/dos32/wc_d.bat
new file mode 100644
index 0000000..28ec9e8
--- /dev/null
+++ b/B/dos32/wc_d.bat
@@ -0,0 +1,20 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // DOS 32-bit
+@echo // Watcom C/C++ (using DOS/32 Advanced extender)
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+set WCL386=-zq -bt#dos -l#dos32a %CFI% %WCL_W%
+wcl386 -mf -5r -ox -fm -Fe#%BEXE% src\*.c %BLDLIBS%
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/dos32/wc_p.bat b/B/dos32/wc_p.bat
new file mode 100644
index 0000000..6438851
--- /dev/null
+++ b/B/dos32/wc_p.bat
@@ -0,0 +1,20 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // DOS 32-bit
+@echo // Watcom C/C++ (using PMODE/W extender)
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+set WCL386=-zq -bt#dos -l#pmodew %CFI% %WCL_W%
+wcl386 -mf -5r -ox -fm -Fe#%BEXE% src\*.c %BLDLIBS%
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/dos32/zc.bat b/B/dos32/zc.bat
new file mode 100644
index 0000000..e1666eb
--- /dev/null
+++ b/B/dos32/zc.bat
@@ -0,0 +1,21 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // DOS 32-bit
+@echo // Zortech C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+ztc -b -v0 -c -mx -o -w- -r %CFI% @b\src.rsp
+@if errorlevel 1 goto error
+link @b\win32\sc.rsp,%BEXE%,,lzo/noi/map
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/generic/build.sh b/B/generic/build.sh
new file mode 100755
index 0000000..6706109
--- /dev/null
+++ b/B/generic/build.sh
@@ -0,0 +1,37 @@
+#! /bin/sh
+# vi:ts=4:et
+set -e
+echo "// Copyright (C) 1996-2010 Markus F.X.J. Oberhumer"
+echo "//"
+echo "// Generic Posix/Unix system"
+echo "// Generic C compiler"
+
+test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../..
+
+test "X${CC}" = X && CC="cc"
+test "X${CFLAGS+set}" = Xset || CFLAGS="-O"
+test "X${LIBS+set}" = Xset || LIBS="-llzo2"
+# CPPFLAGS, LDFLAGS
+# LZOP_EXTRA_CPPFLAGS, LZOP_EXTRA_CFLAGS, LZOP_EXTRA_LDFLAGS
+# LZOP_EXTRA_SOURCES, LZOP_EXTRA_LIBS
+
+CFI="-I${top_srcdir}"
+
+CF="$CPPFLAGS $CFI $CFLAGS"
+LF="$LDFLAGS $LZOP_EXTRA_LDFLAGS"
+LL="$LIBS $LZOP_EXRA_LIBS"
+
+. $top_srcdir/B/generic/clean.sh
+
+for f in $top_srcdir/src/*.c $LZOP_EXTRA_SOURCES; do
+ echo $CC $CF $LZOP_EXTRA_CPPFLAGS $LZOP_EXTRA_CFLAGS -c $f
+ $CC $CF $LZOP_EXTRA_CPPFLAGS $LZOP_EXTRA_CFLAGS -c $f
+done
+
+echo $CC $CF $LF -o lzop.out *.o $LL
+ $CC $CF $LF -o lzop.out *.o $LL
+
+echo "//"
+echo "// Building lzop was successful. All done."
+
+true
diff --git a/B/generic/build_gcc.sh b/B/generic/build_gcc.sh
new file mode 100755
index 0000000..8640614
--- /dev/null
+++ b/B/generic/build_gcc.sh
@@ -0,0 +1,24 @@
+#! /bin/sh
+# vi:ts=4:et
+set -e
+echo "// Using GNU C compiler."
+echo "//"
+
+test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../..
+UNAME_MACHINE=unknown
+
+CC="gcc -fPIC"
+CC="gcc -static"
+CC="gcc"
+CFLAGS="-Wall -O2 -fomit-frame-pointer"
+
+# delete the next line to disable assembler support
+UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
+case $UNAME_MACHINE in
+ i[34567]86)
+ CC="$CC -m32"
+ CPPFLAGS="-DLZO_USE_ASM_1"
+ ;;
+esac
+
+. $top_srcdir/B/generic/build.sh
diff --git a/B/generic/clean.sh b/B/generic/clean.sh
new file mode 100755
index 0000000..35a1063
--- /dev/null
+++ b/B/generic/clean.sh
@@ -0,0 +1,7 @@
+#! /bin/sh
+# vi:ts=4:et
+# Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+
+rm -f *.o lzop.out
+
+true
diff --git a/B/os2/bc.cmd b/B/os2/bc.cmd
new file mode 100644
index 0000000..aefe3c1
--- /dev/null
+++ b/B/os2/bc.cmd
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // OS/2 32-bit
+@echo // Borland C/C++
+@echo //
+@call b\prepare.cmd
+@if "%BECHO%"=="n" echo off
+
+
+bcc -O2 -d -w -w-aus -Isrc -Iacc %CFI% -ls -e%BEXE% @b\src.rsp %BLDLIBS%
+@if errorlevel 1 goto error
+
+
+@call b\done.cmd
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.cmd
diff --git a/B/os2/emx.bat b/B/os2/emx.bat
new file mode 100644
index 0000000..1aa3c14
--- /dev/null
+++ b/B/os2/emx.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // OS/2 32-bit
+@echo // emx + gcc
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+gcc -Wall -O2 %CFI% -s -o %BEXE% @b\src.rsp -L. -llzo2
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/os2/emx.cmd b/B/os2/emx.cmd
new file mode 100644
index 0000000..00fc74f
--- /dev/null
+++ b/B/os2/emx.cmd
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // OS/2 32-bit
+@echo // emx + gcc
+@echo //
+@call b\prepare.cmd
+@if "%BECHO%"=="n" echo off
+
+
+gcc -Wall -O2 %CFI% -s -o %BEXE% @b\src.rsp -L. -llzo2
+@if errorlevel 1 goto error
+
+
+@call b\done.cmd
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.cmd
diff --git a/B/os2/va.cmd b/B/os2/va.cmd
new file mode 100644
index 0000000..e193e95
--- /dev/null
+++ b/B/os2/va.cmd
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // OS/2 32-bit
+@echo // IBM Visual Age C/C++
+@echo //
+@call b\prepare.cmd
+@if "%BECHO%"=="n" echo off
+
+
+icc -Q+ -O -W3 %CFI% -Fm -Fe%BEXE% src\*.c %BLDLIBS%
+@if errorlevel 1 goto error
+
+
+@call b\done.cmd
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.cmd
diff --git a/B/os2/wc.bat b/B/os2/wc.bat
new file mode 100644
index 0000000..30425d7
--- /dev/null
+++ b/B/os2/wc.bat
@@ -0,0 +1,20 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // OS/2 32-bit
+@echo // Watcom C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+set WCL386=-zq -bt#os2 -l#os2v2 %CFI% %WCL_W%
+wcl386 -mf -5r -ox -fm -Fe#%BEXE% src\*.c %BLDLIBS%
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/os2/wc.cmd b/B/os2/wc.cmd
new file mode 100644
index 0000000..c4667af
--- /dev/null
+++ b/B/os2/wc.cmd
@@ -0,0 +1,20 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // OS/2 32-bit
+@echo // Watcom C/C++
+@echo //
+@call b\prepare.cmd
+@if "%BECHO%"=="n" echo off
+
+
+set WCL386=-zq -bt#os2 -l#os2v2 %CFI% %WCL_W%
+wcl386 -mf -5r -ox -fm -Fe#%BEXE% src\*.c %BLDLIBS%
+@if errorlevel 1 goto error
+
+
+@call b\done.cmd
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.cmd
diff --git a/B/os2/zc.bat b/B/os2/zc.bat
new file mode 100644
index 0000000..da64a8b
--- /dev/null
+++ b/B/os2/zc.bat
@@ -0,0 +1,21 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // OS/2 32-bit
+@echo // Zortech C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+ztc -b -v0 -c -mf -o -w- -r %CFI% @b\src.rsp
+@if errorlevel 1 goto error
+link @b\win32\sc.rsp,%BEXE%,,lzo/noi/map
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/os2_16/mc.bat b/B/os2_16/mc.bat
new file mode 100644
index 0000000..56ef9b4
--- /dev/null
+++ b/B/os2_16/mc.bat
@@ -0,0 +1,22 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // OS/2 16-bit
+@echo // Microsoft C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+set CC=cl -nologo -AL -G2
+%CC% -D__OS2__ -O -W3 %CFI% -c src\*.c
+@if errorlevel 1 goto error
+%CC% -Lp -F 2000 -Fm -Fe%BEXE% *.obj %BLDLIBS% /link /noe
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/os2_16/sc.cmd b/B/os2_16/sc.cmd
new file mode 100644
index 0000000..01aae28
--- /dev/null
+++ b/B/os2_16/sc.cmd
@@ -0,0 +1,21 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // OS/2 16-bit
+@echo // Symantec C/C++
+@echo //
+@call b\prepare.cmd
+@if "%BECHO%"=="n" echo off
+
+
+sc -c -mlo -2 -o -w- %CFI% @b\src.rsp
+@if errorlevel 1 goto error
+link @b\win32\sc.rsp,%BEXE%,,lzo/noi/map
+@if errorlevel 1 goto error
+
+
+@call b\done.cmd
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.cmd
diff --git a/B/os2_16/wc.bat b/B/os2_16/wc.bat
new file mode 100644
index 0000000..89b980d
--- /dev/null
+++ b/B/os2_16/wc.bat
@@ -0,0 +1,20 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // OS/2 16-bit
+@echo // Watcom C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+set WCL=-zq -bt#os2 -l#os2 %CFI% %WCL_W%
+wcl -ml -2 -ox -k0x2000 -fm -Fe#%BEXE% src\*.c %BLDLIBS%
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/os2_16/wc.cmd b/B/os2_16/wc.cmd
new file mode 100644
index 0000000..5cc64e7
--- /dev/null
+++ b/B/os2_16/wc.cmd
@@ -0,0 +1,20 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // OS/2 16-bit
+@echo // Watcom C/C++
+@echo //
+@call b\prepare.cmd
+@if "%BECHO%"=="n" echo off
+
+
+set WCL=-zq -bt#os2 -l#os2 %CFI% %WCL_W%
+wcl -ml -2 -ox -k0x2000 -fm -Fe#%BEXE% src\*.c %BLDLIBS%
+@if errorlevel 1 goto error
+
+
+@call b\done.cmd
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.cmd
diff --git a/B/prepare.bat b/B/prepare.bat
new file mode 100644
index 0000000..a3386d8
--- /dev/null
+++ b/B/prepare.bat
@@ -0,0 +1,12 @@
+@call b\unset.bat
+@call b\clean.bat
+
+@if "%LZODIR%"=="" if exist b\all\prepare.bat call b\all\prepare.bat
+@if "%LZODIR%"=="" set LZODIR=..\lzo-2.01
+@set CFI=-I. -I%LZODIR%\include
+
+@set BNAME=lzop
+@set BEXE=lzop.exe
+@set BLDLIBS=lzo2.lib
+
+@echo Compiling, please be patient...
diff --git a/B/prepare.cmd b/B/prepare.cmd
new file mode 100644
index 0000000..de2d093
--- /dev/null
+++ b/B/prepare.cmd
@@ -0,0 +1,12 @@
+@call b\unset.cmd
+@call b\clean.cmd
+
+@if "%LZODIR%"=="" if exist b\all\prepare.cmd call b\all\prepare.cmd
+@if "%LZODIR%"=="" set LZODIR=..\lzo-2.01
+@set CFI=-I. -I%LZODIR%\include
+
+@set BNAME=lzop
+@set BEXE=lzop.exe
+@set BLDLIBS=lzo2.lib
+
+@echo Compiling, please be patient...
diff --git a/B/src.rsp b/B/src.rsp
new file mode 100644
index 0000000..6c759a2
--- /dev/null
+++ b/B/src.rsp
@@ -0,0 +1,18 @@
+src/c_ansic.c
+src/c_ansim.c
+src/c_init.c
+src/c_none.c
+src/c_screen.c
+src/compress.c
+src/djgpp2.c
+src/filter.c
+src/frames.c
+src/help.c
+src/lzop.c
+src/mblock.c
+src/p_lzo.c
+src/s_curses.c
+src/s_djgpp2.c
+src/s_object.c
+src/s_vcsa.c
+src/util.c
diff --git a/B/unset.bat b/B/unset.bat
new file mode 100644
index 0000000..51250e1
--- /dev/null
+++ b/B/unset.bat
@@ -0,0 +1,11 @@
+@set CC=
+@set CF=
+@set CFI=
+@set CFX=
+@set LF=
+@set BEXE=
+@set BLIB=
+@set BECHO=
+@set WCGMEMORY=
+@set WCL=
+@set WCL386=
diff --git a/B/unset.cmd b/B/unset.cmd
new file mode 100644
index 0000000..51250e1
--- /dev/null
+++ b/B/unset.cmd
@@ -0,0 +1,11 @@
+@set CC=
+@set CF=
+@set CFI=
+@set CFX=
+@set LF=
+@set BEXE=
+@set BLIB=
+@set BECHO=
+@set WCGMEMORY=
+@set WCL=
+@set WCL386=
diff --git a/B/win16/bc.bat b/B/win16/bc.bat
new file mode 100644
index 0000000..6ed8345
--- /dev/null
+++ b/B/win16/bc.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // Windows 16-bit
+@echo // Borland C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+bcc -ml -2 -tW -O1 -w -Isrc -Iacc %CFI% -e%BEXE% @b\src.rsp %BLDLIBS%
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/win16/sc.bat b/B/win16/sc.bat
new file mode 100644
index 0000000..4f209ed
--- /dev/null
+++ b/B/win16/sc.bat
@@ -0,0 +1,21 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // Windows 16-bit
+@echo // Symantec C/C++ (using WINIO)
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+sc -c -ml -2 -W -o -w- %CFI% @b\src.rsp
+@if errorlevel 1 goto error
+link @b\win32\sc.rsp,%BEXE%,,lzo+lwindos+libw+commdlg/noi/map/stack:16384
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/win16/vc.bat b/B/win16/vc.bat
new file mode 100644
index 0000000..0e8e299
--- /dev/null
+++ b/B/win16/vc.bat
@@ -0,0 +1,22 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // Windows 16-bit
+@echo // Microsoft Visual C/C++ (using QuickWin)
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+set CC=cl -nologo -AL -G2 -Mq
+%CC% -O -W3 %CFI% -c @b\src.rsp
+@if errorlevel 1 goto error
+%CC% -Fe%BEXE% -Fm *.obj %BLDLIBS% /link /noe
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/win16/wc.bat b/B/win16/wc.bat
new file mode 100644
index 0000000..fa73175
--- /dev/null
+++ b/B/win16/wc.bat
@@ -0,0 +1,20 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // Windows 16-bit
+@echo // Watcom C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+set WCL=-zq -bt#windows -l#windows %CFI% %WCL_W%
+wcl -ml -2 -bw -ox -fm -Fe#%BEXE% src\*.c %BLDLIBS%
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/win32/bc.bat b/B/win32/bc.bat
new file mode 100644
index 0000000..bd8556e
--- /dev/null
+++ b/B/win32/bc.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // Windows 32-bit
+@echo // Borland C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+bcc32 -O2 -d -w -w-aus -Isrc -Iacc %CFI% -ls -e%BEXE% @b\src.rsp %BLDLIBS%
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/win32/cygwin.bat b/B/win32/cygwin.bat
new file mode 100644
index 0000000..c23970f
--- /dev/null
+++ b/B/win32/cygwin.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // Windows 32-bit
+@echo // cygwin + gcc
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+gcc -x c -O2 -Wall %CFI% -s -o %BEXE% src/*.[cC] -L. -llzo2 -Wl,-Map,%BNAME%.map
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/win32/dm.bat b/B/win32/dm.bat
new file mode 100644
index 0000000..4c4c29e
--- /dev/null
+++ b/B/win32/dm.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // Windows 32-bit
+@echo // Digital Mars C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+dmc -mn -o -w- %CFI% -o%BEXE% @b\src.rsp %BLDLIBS% -L/map
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/win32/ic.bat b/B/win32/ic.bat
new file mode 100644
index 0000000..95f8f98
--- /dev/null
+++ b/B/win32/ic.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // Windows 32-bit
+@echo // Intel C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+icl -nologo -MD -O2 -GF -W3 %CFI% -Fe%BEXE% @b\src.rsp %BLDLIBS% /link /map:%BNAME%.map
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/win32/lccwin32.bat b/B/win32/lccwin32.bat
new file mode 100644
index 0000000..9483519
--- /dev/null
+++ b/B/win32/lccwin32.bat
@@ -0,0 +1,23 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // Windows 32-bit
+@echo // lcc-win32
+@echo //
+@echo // NOTE: some lcc-win32 versions are buggy, so we disable optimizations
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+for %%f in (src\*.c) do lcc -A %CFI% -Iacc -c %%f
+@if errorlevel 1 goto error
+lc *.obj %BLDLIBS% -o %BEXE% -s
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/win32/mingw.bat b/B/win32/mingw.bat
new file mode 100644
index 0000000..5080124
--- /dev/null
+++ b/B/win32/mingw.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // Windows 32-bit
+@echo // MinGW + gcc
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+gcc -x c -O2 -Wall %CFI% -s -o %BEXE% src/*.c -L. -llzo2 -Wl,-Map,%BNAME%.map
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/win32/pellesc.bat b/B/win32/pellesc.bat
new file mode 100644
index 0000000..f24768c
--- /dev/null
+++ b/B/win32/pellesc.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // Windows 32-bit
+@echo // Pelles C
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+cc -Ze -Go -O2 -W2 %CFI% src\*.c %BLDLIBS% /out:%BEXE% /map:%BNAME%.map
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/win32/pgi.bat b/B/win32/pgi.bat
new file mode 100644
index 0000000..ffc98af
--- /dev/null
+++ b/B/win32/pgi.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // Windows 32-bit
+@echo // Portland Group PGI C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+pgcc -fast %CFI% -o %BEXE% src\*.c -L. -llzo2
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/win32/pw32.bat b/B/win32/pw32.bat
new file mode 100644
index 0000000..148d550
--- /dev/null
+++ b/B/win32/pw32.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // Windows 32-bit
+@echo // PW32 + gcc
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+gcc -x c -O2 -Wall %CFI% -s -o %BEXE% src/*.c -L. -llzo2 -Wl,-Map,%BNAME%.map
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/win32/rsxnt.bat b/B/win32/rsxnt.bat
new file mode 100644
index 0000000..10a6805
--- /dev/null
+++ b/B/win32/rsxnt.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // Windows 32-bit
+@echo // rsxnt + gcc
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+gcc -Zwin32 -Zsys -mprobe -Wall -O2 %CFI% -s -o %BEXE% @b\src.rsp -L. -llzo2
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/win32/sc.bat b/B/win32/sc.bat
new file mode 100644
index 0000000..781c7b6
--- /dev/null
+++ b/B/win32/sc.bat
@@ -0,0 +1,21 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // Windows 32-bit
+@echo // Symantec C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+sc -c -mn -o -w- %CFI% @b\src.rsp
+@if errorlevel 1 goto error
+link @b\win32\sc.rsp,%BEXE%,,lzo+user32+kernel32/noi/map
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/win32/sc.rsp b/B/win32/sc.rsp
new file mode 100644
index 0000000..4a86c84
--- /dev/null
+++ b/B/win32/sc.rsp
@@ -0,0 +1 @@
+c_ansic.obj+c_ansim.obj+c_init.obj+c_none.obj+c_screen.obj+compress.obj+djgpp2.obj+filter.obj+frames.obj+help.obj+lzop.obj+mblock.obj+p_lzo.obj+s_curses.obj+s_djgpp2.obj+s_object.obj+s_vcsa.obj+util.obj
diff --git a/B/win32/vc.bat b/B/win32/vc.bat
new file mode 100644
index 0000000..d32083b
--- /dev/null
+++ b/B/win32/vc.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // Windows 32-bit
+@echo // Microsoft Visual C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+cl -nologo -MD -O2 -GF -W3 %CFI% -Fe%BEXE% @b\src.rsp %BLDLIBS% /link /map:%BNAME%.map
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/win32/wc.bat b/B/win32/wc.bat
new file mode 100644
index 0000000..7febea0
--- /dev/null
+++ b/B/win32/wc.bat
@@ -0,0 +1,20 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // Windows 32-bit
+@echo // Watcom C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+set WCL386=-zq -bt#nt -l#nt %CFI% %WCL_W%
+wcl386 -mf -5r -ox -fm -Fe#%BEXE% src\*.c %BLDLIBS%
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/win64/ic.bat b/B/win64/ic.bat
new file mode 100644
index 0000000..8c07921
--- /dev/null
+++ b/B/win64/ic.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // Windows 64-bit (Itanium)
+@echo // Intel C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+icl -nologo -MD -O2 -GF -W3 %CFI% -Fe%BEXE% @b\src.rsp %BLDLIBS% /link /map:%BNAME%.map
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat
diff --git a/B/win64/vc.bat b/B/win64/vc.bat
new file mode 100644
index 0000000..02cf45e
--- /dev/null
+++ b/B/win64/vc.bat
@@ -0,0 +1,19 @@
+@echo // Copyright (C) 1996-2010 Markus F.X.J. Oberhumer
+@echo //
+@echo // Windows 64-bit (AMD64 or Itanium)
+@echo // Microsoft Visual C/C++
+@echo //
+@call b\prepare.bat
+@if "%BECHO%"=="n" echo off
+
+
+cl -nologo -MD -O2 -GF -W3 %CFI% -Fe%BEXE% @b\src.rsp %BLDLIBS% /link /map:%BNAME%.map
+@if errorlevel 1 goto error
+
+
+@call b\done.bat
+@goto end
+:error
+@echo ERROR during build!
+:end
+@call b\unset.bat