mirror of https://gitee.com/openkylin/lzo2.git
Import Upstream version 2.10
This commit is contained in:
commit
f40ad87deb
|
@ -0,0 +1,3 @@
|
|||
Authors of the LZO data compression library:
|
||||
|
||||
Markus F.X.J. Oberhumer. Invented, designed and implemented LZO.
|
|
@ -0,0 +1,51 @@
|
|||
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 LZO 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.
|
||||
|
||||
After building do a basic test by running 'lzotest.exe -mlzo COPYING'.
|
||||
util\check.sh is an example of a more thorough test driver.
|
||||
|
||||
Please send me your additional/improved versions.
|
||||
|
||||
|
||||
Overview:
|
||||
---------
|
||||
|
||||
b\dos32\bc_pp.bat Borland C/C++ (1)
|
||||
b\dos32\dj2.bat djgpp v2 + gcc (1)
|
||||
b\dos32\dm.bat Digital Mars C/C++ (1)
|
||||
b\dos32\emx.bat emx + gcc (1)
|
||||
b\dos32\sc.bat Symantec C/C++ (1)
|
||||
b\dos32\wc.bat Watcom C/C++ (1)
|
||||
|
||||
b\os2\emx.bat emx + gcc (1)
|
||||
b\os2\wc.bat Watcom C/C++ (1)
|
||||
|
||||
b\win32\bc.bat Borland C/C++ (1)
|
||||
b\win32\cygwin.bat Cygwin + gcc (1)
|
||||
b\win32\dm.bat Digital Mars C/C++ (1)
|
||||
b\win32\ic.bat Intel C/C++ (1)
|
||||
b\win32\mingw.bat MinGW + gcc (1)
|
||||
b\win32\mwerks.bat Metrowerks CodeWarrior C/C++ (1)
|
||||
b\win32\pellesc.bat Pelles C (1)
|
||||
b\win32\pgi.bat Portland Group PGI C/C++ (1)
|
||||
b\win32\rsxnt.bat rsxnt + gcc (1)
|
||||
b\win32\sc.bat Symantec C/C++ (1)
|
||||
b\win32\vc.bat Visual C/C++ (1)
|
||||
b\win32\vc_dll.bat Visual C/C++ (DLL version) (1)
|
||||
b\win32\wc.bat Watcom C/C++ (1)
|
||||
|
||||
b\win64\ic.bat Intel C/C++ (Itanium)
|
||||
b\win64\ic_dll.bat Intel C/C++ (Itanium) (DLL version)
|
||||
b\win64\vc.bat Visual C/C++ (AMD64 or Itanium)
|
||||
b\win64\vc_dll.bat Visual C/C++ (AMD64 or Itanium) (DLL version)
|
||||
|
||||
|
||||
Notes:
|
||||
(1) includes support for i386 assembler versions
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
@del /q *.def *.err *.exp *.map *.o *.obj *.res *.tds > nul 2> nul
|
||||
@del /q liblzo2.a lzo2.a lzo2.dll lzo2.lib > nul 2> nul
|
||||
@del /q a.exe a.out dict.exe lzopack.exe precomp.exe precomp2.exe simple.exe > nul 2> nul
|
||||
@del /q lzotest.exe testmini.exe > nul 2> nul
|
|
@ -0,0 +1,2 @@
|
|||
@echo //
|
||||
@echo // Building LZO was successful. All done.
|
|
@ -0,0 +1,42 @@
|
|||
@echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer
|
||||
@echo //
|
||||
@echo // DOS 32-bit
|
||||
@echo // Borland C/C++ + Borland PowerPack 1.0 (DPMI32)
|
||||
@echo //
|
||||
@call b\prepare.bat
|
||||
@if "%BECHO%"=="n" echo off
|
||||
|
||||
|
||||
set CC=bcc32 -WX
|
||||
set CF=-O2 -w -w-aus %CFI% -Iinclude\lzo %CFASM%
|
||||
set LF=%BLIB%
|
||||
|
||||
%CC% %CF% -Isrc -c @b\src.rsp
|
||||
@if errorlevel 1 goto error
|
||||
tlib %BLIB% @b\win32\bc.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -ls -Iexamples examples\dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -ls -Iexamples examples\lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -ls -Iexamples examples\precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -ls -Iexamples examples\precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -ls -Iexamples examples\simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -ls -Ilzotest lzotest\lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -ls -Iminilzo minilzo\testmini.c minilzo\minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,45 @@
|
|||
@echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer
|
||||
@echo //
|
||||
@echo // DOS 32-bit
|
||||
@echo // djgpp2 + gcc
|
||||
@echo //
|
||||
@call b\prepare.bat
|
||||
@if "%BECHO%"=="n" echo off
|
||||
|
||||
|
||||
set BLIB=lib%BNAME%.a
|
||||
set CC=gcc
|
||||
set CF=@b/dos32/dj2.opt %CFI% %CFASM%
|
||||
set LF=%BLIB% -s
|
||||
|
||||
%CC% %CF% -c @b\src.rsp
|
||||
@if errorlevel 1 goto error
|
||||
%CC% -x assembler-with-cpp -c asm/i386/src_gas/*.S
|
||||
@if errorlevel 1 goto error
|
||||
ar rcs %BLIB% @b/win32/cygwin.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -o dict.exe examples/dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o lzopack.exe examples/lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o precomp.exe examples/precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o precomp2.exe examples/precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o simple.exe examples/simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -o lzotest.exe lzotest/lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -s -Iinclude/lzo -o testmini.exe minilzo/testmini.c minilzo/minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,6 @@
|
|||
-O2
|
||||
-fomit-frame-pointer
|
||||
-Wall
|
||||
-Wcast-align
|
||||
-Wcast-qual
|
||||
-Wwrite-strings
|
|
@ -0,0 +1,43 @@
|
|||
@echo // Copyright (C) 1996-2017 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
|
||||
|
||||
|
||||
set CC=dmc -mx
|
||||
set CF=-o -w- %CFI% %CFASM%
|
||||
set LF=%BLIB% x32.lib
|
||||
|
||||
%CC% %CF% -c @b\src.rsp
|
||||
@if errorlevel 1 goto error
|
||||
lib %BLIB% /b /c /n /noi @b\win32\bc.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% examples\dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% lzotest\lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
set LF=x32.lib
|
||||
%CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,45 @@
|
|||
@echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer
|
||||
@echo //
|
||||
@echo // DOS 32-bit
|
||||
@echo // emx + gcc
|
||||
@echo //
|
||||
@call b\prepare.bat
|
||||
@if "%BECHO%"=="n" echo off
|
||||
|
||||
|
||||
set BLIB=%BNAME%.a
|
||||
set CC=gcc
|
||||
set CF=@b/dos32/dj2.opt %CFI% %CFASM%
|
||||
set LF=%BLIB% -s
|
||||
|
||||
%CC% %CF% -c @b\src.rsp
|
||||
@if errorlevel 1 goto error
|
||||
%CC% -x assembler-with-cpp -c asm/i386/src_gas/*.S
|
||||
@if errorlevel 1 goto error
|
||||
ar rcs %BLIB% @b/win32/cygwin.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -o dict.exe examples/dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o lzopack.exe examples/lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o precomp.exe examples/precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o precomp2.exe examples/precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o simple.exe examples/simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -o lzotest.exe lzotest/lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -Iinclude/lzo -o testmini.exe minilzo/testmini.c minilzo/minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,39 @@
|
|||
@echo // Copyright (C) 1996-2017 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
|
||||
|
||||
|
||||
set CC=hc386
|
||||
set CF=-O3 -w4 %CFI% %CFASM%
|
||||
set LF=%BLIB%
|
||||
|
||||
%CC% %CF% -w1 -c src\*.c
|
||||
@if errorlevel 1 goto error
|
||||
386lib %BLIB% -nobanner @b\dos32\highc.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% examples\dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% lzotest\lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,73 @@
|
|||
-create lzo1.obj
|
||||
-create lzo1_99.obj
|
||||
-create lzo1a.obj
|
||||
-create lzo1a_99.obj
|
||||
-create lzo1b_1.obj
|
||||
-create lzo1b_2.obj
|
||||
-create lzo1b_3.obj
|
||||
-create lzo1b_4.obj
|
||||
-create lzo1b_5.obj
|
||||
-create lzo1b_6.obj
|
||||
-create lzo1b_7.obj
|
||||
-create lzo1b_8.obj
|
||||
-create lzo1b_9.obj
|
||||
-create lzo1b_99.obj
|
||||
-create lzo1b_9x.obj
|
||||
-create lzo1b_cc.obj
|
||||
-create lzo1b_d1.obj
|
||||
-create lzo1b_d2.obj
|
||||
-create lzo1b_rr.obj
|
||||
-create lzo1b_xx.obj
|
||||
-create lzo1c_1.obj
|
||||
-create lzo1c_2.obj
|
||||
-create lzo1c_3.obj
|
||||
-create lzo1c_4.obj
|
||||
-create lzo1c_5.obj
|
||||
-create lzo1c_6.obj
|
||||
-create lzo1c_7.obj
|
||||
-create lzo1c_8.obj
|
||||
-create lzo1c_9.obj
|
||||
-create lzo1c_99.obj
|
||||
-create lzo1c_9x.obj
|
||||
-create lzo1c_cc.obj
|
||||
-create lzo1c_d1.obj
|
||||
-create lzo1c_d2.obj
|
||||
-create lzo1c_rr.obj
|
||||
-create lzo1c_xx.obj
|
||||
-create lzo1f_1.obj
|
||||
-create lzo1f_9x.obj
|
||||
-create lzo1f_d1.obj
|
||||
-create lzo1f_d2.obj
|
||||
-create lzo1x_1.obj
|
||||
-create lzo1x_1k.obj
|
||||
-create lzo1x_1l.obj
|
||||
-create lzo1x_1o.obj
|
||||
-create lzo1x_9x.obj
|
||||
-create lzo1x_d1.obj
|
||||
-create lzo1x_d2.obj
|
||||
-create lzo1x_d3.obj
|
||||
-create lzo1x_o.obj
|
||||
-create lzo1y_1.obj
|
||||
-create lzo1y_9x.obj
|
||||
-create lzo1y_d1.obj
|
||||
-create lzo1y_d2.obj
|
||||
-create lzo1y_d3.obj
|
||||
-create lzo1y_o.obj
|
||||
-create lzo1z_9x.obj
|
||||
-create lzo1z_d1.obj
|
||||
-create lzo1z_d2.obj
|
||||
-create lzo1z_d3.obj
|
||||
-create lzo2a_9x.obj
|
||||
-create lzo2a_d1.obj
|
||||
-create lzo2a_d2.obj
|
||||
-create lzo_crc.obj
|
||||
-create lzo_init.obj
|
||||
-create lzo_ptr.obj
|
||||
-create lzo_str.obj
|
||||
-create lzo_util.obj
|
||||
-create asm\i386\obj\omf32\lzo1c_s1.obj
|
||||
-create asm\i386\obj\omf32\lzo1f_f1.obj
|
||||
-create asm\i386\obj\omf32\lzo1x_f1.obj
|
||||
-create asm\i386\obj\omf32\lzo1x_s1.obj
|
||||
-create asm\i386\obj\omf32\lzo1y_f1.obj
|
||||
-create asm\i386\obj\omf32\lzo1y_s1.obj
|
|
@ -0,0 +1,40 @@
|
|||
@echo // Copyright (C) 1996-2017 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
|
||||
|
||||
|
||||
set CC=mx486
|
||||
set CF=-ansi -on %CFI%
|
||||
set LF=%BLIB% -bind -map
|
||||
|
||||
@REM %CC% %CF% -Isrc -c src\*.c
|
||||
for %%f in (src\*.c) do %CC% %CF% -Isrc -c %%f
|
||||
@if errorlevel 1 goto error
|
||||
ndplib %BLIB% @b\dos32\ndp.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -Iexamples examples\dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -Iexamples examples\lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -Iexamples examples\precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -Iexamples examples\precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -Iexamples examples\simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -Dconst= -Ilzotest lzotest\lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,67 @@
|
|||
-add lzo1.obj
|
||||
-add lzo1_99.obj
|
||||
-add lzo1a.obj
|
||||
-add lzo1a_99.obj
|
||||
-add lzo1b_1.obj
|
||||
-add lzo1b_2.obj
|
||||
-add lzo1b_3.obj
|
||||
-add lzo1b_4.obj
|
||||
-add lzo1b_5.obj
|
||||
-add lzo1b_6.obj
|
||||
-add lzo1b_7.obj
|
||||
-add lzo1b_8.obj
|
||||
-add lzo1b_9.obj
|
||||
-add lzo1b_99.obj
|
||||
-add lzo1b_9x.obj
|
||||
-add lzo1b_cc.obj
|
||||
-add lzo1b_d1.obj
|
||||
-add lzo1b_d2.obj
|
||||
-add lzo1b_rr.obj
|
||||
-add lzo1b_xx.obj
|
||||
-add lzo1c_1.obj
|
||||
-add lzo1c_2.obj
|
||||
-add lzo1c_3.obj
|
||||
-add lzo1c_4.obj
|
||||
-add lzo1c_5.obj
|
||||
-add lzo1c_6.obj
|
||||
-add lzo1c_7.obj
|
||||
-add lzo1c_8.obj
|
||||
-add lzo1c_9.obj
|
||||
-add lzo1c_99.obj
|
||||
-add lzo1c_9x.obj
|
||||
-add lzo1c_cc.obj
|
||||
-add lzo1c_d1.obj
|
||||
-add lzo1c_d2.obj
|
||||
-add lzo1c_rr.obj
|
||||
-add lzo1c_xx.obj
|
||||
-add lzo1f_1.obj
|
||||
-add lzo1f_9x.obj
|
||||
-add lzo1f_d1.obj
|
||||
-add lzo1f_d2.obj
|
||||
-add lzo1x_1.obj
|
||||
-add lzo1x_1k.obj
|
||||
-add lzo1x_1l.obj
|
||||
-add lzo1x_1o.obj
|
||||
-add lzo1x_9x.obj
|
||||
-add lzo1x_d1.obj
|
||||
-add lzo1x_d2.obj
|
||||
-add lzo1x_d3.obj
|
||||
-add lzo1x_o.obj
|
||||
-add lzo1y_1.obj
|
||||
-add lzo1y_9x.obj
|
||||
-add lzo1y_d1.obj
|
||||
-add lzo1y_d2.obj
|
||||
-add lzo1y_d3.obj
|
||||
-add lzo1y_o.obj
|
||||
-add lzo1z_9x.obj
|
||||
-add lzo1z_d1.obj
|
||||
-add lzo1z_d2.obj
|
||||
-add lzo1z_d3.obj
|
||||
-add lzo2a_9x.obj
|
||||
-add lzo2a_d1.obj
|
||||
-add lzo2a_d2.obj
|
||||
-add lzo_crc.obj
|
||||
-add lzo_init.obj
|
||||
-add lzo_ptr.obj
|
||||
-add lzo_str.obj
|
||||
-add lzo_util.obj
|
|
@ -0,0 +1,51 @@
|
|||
@echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer
|
||||
@echo //
|
||||
@echo // DOS 32-bit
|
||||
@echo // Symantec C/C++
|
||||
@echo //
|
||||
@call b\prepare.bat
|
||||
@if "%BECHO%"=="n" echo off
|
||||
|
||||
|
||||
set CC=sc -mx
|
||||
set CF=-o -w- %CFI% %CFASM%
|
||||
set LF=%BLIB%
|
||||
|
||||
%CC% %CF% -c @b\src.rsp
|
||||
@if errorlevel 1 goto error
|
||||
lib %BLIB% /b /c /n /noi @b\win32\bc.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -c examples\dict.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% dict.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -c examples\lzopack.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% lzopack.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -c examples\precomp.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% precomp.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -c examples\precomp2.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% precomp2.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -c examples\simple.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% simple.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -c lzotest\lzotest.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% lzotest.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,39 @@
|
|||
@echo // Copyright (C) 1996-2017 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 CC=wcl386 -zq -mf -5r -bt#dos -l#dos4g
|
||||
set CF=-ox -zc %CFI% %CFASM%
|
||||
set LF=%BLIB%
|
||||
|
||||
%CC% %CF% -c src\*.c
|
||||
@if errorlevel 1 goto error
|
||||
wlib -q -b -n -t %BLIB% @b\win32\wc.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% examples\dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% lzotest\lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,51 @@
|
|||
@echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer
|
||||
@echo //
|
||||
@echo // DOS 32-bit
|
||||
@echo // Zortech C/C++
|
||||
@echo //
|
||||
@call b\prepare.bat
|
||||
@if "%BECHO%"=="n" echo off
|
||||
|
||||
|
||||
set CC=ztc -b -v0 -mx
|
||||
set CF=-o -w- -r %CFI% %CFASM%
|
||||
set LF=%BLIB%
|
||||
|
||||
%CC% %CF% -Isrc -c @b\src.rsp
|
||||
@if errorlevel 1 goto error
|
||||
zorlib %BLIB% @b\win32\bc.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -c examples\dict.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% dict.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -c examples\lzopack.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% lzopack.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -c examples\precomp.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% precomp.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -c examples\precomp2.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% precomp2.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -c examples\simple.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% simple.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -c lzotest\lzotest.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% lzotest.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,91 @@
|
|||
# Copyright (C) 1996-2017 Markus F.X.J. Oberhumer
|
||||
#
|
||||
# this is modelled after build.sh; needs GNU make 3.80 or better
|
||||
|
||||
SHELL = /bin/sh
|
||||
|
||||
##
|
||||
## setup flags
|
||||
##
|
||||
|
||||
##top_srcdir ?= ../..
|
||||
top_srcdir ?= $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))../..
|
||||
AR ?= ar
|
||||
CC ?= cc
|
||||
CFLAGS ?= -O
|
||||
|
||||
CFI = -I$(top_srcdir)/include -I$(top_srcdir) -I$(top_srcdir)/src
|
||||
BNAME = lzo2
|
||||
BLIB = lib$(BNAME).a
|
||||
|
||||
CF = $(CPPFLAGS) $(CFI) $(CFLAGS)
|
||||
LF = $(LDFLAGS) $(LZO_EXTRA_LDFLAGS)
|
||||
LL = $(BLIB) $(LIBS) $(LZO_EXTRA_LIBS)
|
||||
|
||||
|
||||
##
|
||||
## setup files
|
||||
##
|
||||
|
||||
__map = $(foreach __map_v,$(2),$(call $(1),$(__map_v)))
|
||||
__object_filename = $(addsuffix .o,$(basename $(notdir $(1))))
|
||||
|
||||
BLIB_SOURCES := $(wildcard $(top_srcdir)/src/*.c)
|
||||
BLIB_SOURCES += $(LZO_EXTRA_SOURCES)
|
||||
BLIB_OBJECTS := $(call __map,__object_filename,$(BLIB_SOURCES))
|
||||
PROGRAMS = dict.out lzopack.out precomp.out precomp2.out simple.out lzotest.out
|
||||
|
||||
|
||||
##
|
||||
## rules
|
||||
##
|
||||
|
||||
all.targets ?= $(BLIB) $(PROGRAMS) testmini.out
|
||||
all: $(all.targets)
|
||||
|
||||
clean:
|
||||
rm -f *.d *.o $(BLIB) $(PROGRAMS) testmini.out
|
||||
|
||||
$(BLIB): $(BLIB_OBJECTS) $(LZO_EXTRA_OBJECTS)
|
||||
rm -f $@
|
||||
$(AR) rcs $@ $^
|
||||
|
||||
# dynamically construct object rules
|
||||
define BLIB_OBJECT_template
|
||||
$(call __object_filename,$(1)) : $(1) ; $$(CC) $$(CF) $$(LZO_EXTRA_CPPFLAGS) $$(LZO_EXTRA_CFLAGS) -c $$<
|
||||
endef
|
||||
$(foreach s,$(BLIB_SOURCES),$(eval $(call BLIB_OBJECT_template,$(s))))
|
||||
|
||||
dict.out: $(top_srcdir)/examples/dict.c
|
||||
$(CC) $(CF) $(LF) -o $@ $< $(LL)
|
||||
lzopack.out: $(top_srcdir)/examples/lzopack.c
|
||||
$(CC) $(CF) $(LF) -o $@ $< $(LL)
|
||||
precomp.out: $(top_srcdir)/examples/precomp.c
|
||||
$(CC) $(CF) $(LF) -o $@ $< $(LL)
|
||||
precomp2.out: $(top_srcdir)/examples/precomp2.c
|
||||
$(CC) $(CF) $(LF) -o $@ $< $(LL)
|
||||
simple.out: $(top_srcdir)/examples/simple.c
|
||||
$(CC) $(CF) $(LF) -o $@ $< $(LL)
|
||||
lzotest.out: $(top_srcdir)/lzotest/lzotest.c
|
||||
$(CC) $(CF) $(LF) -o $@ $< $(LL)
|
||||
|
||||
testmini.out: $(top_srcdir)/minilzo/testmini.c $(top_srcdir)/minilzo/minilzo.c
|
||||
$(CC) $(CF) $(LF) -I$(top_srcdir)/include/lzo -o $@ $^ $(LIBS)
|
||||
|
||||
|
||||
# dependencies
|
||||
$(PROGRAMS): $(BLIB)
|
||||
# object dependencies are generated via -MMD
|
||||
-include *.d
|
||||
|
||||
|
||||
# debug
|
||||
show_vars:
|
||||
@echo "BLIB_SOURCES = $(BLIB_SOURCES)"
|
||||
@echo "BLIB_OBJECTS = $(BLIB_OBJECTS)"
|
||||
@echo "PROGRAMS = $(PROGRAMS)"
|
||||
@echo "LZO_EXTRA_SOURCES = $(LZO_EXTRA_SOURCES)"
|
||||
@echo "LZO_EXTRA_OBJECTS = $(LZO_EXTRA_OBJECTS)"
|
||||
|
||||
.PHONY: all clean show_vars
|
||||
|
|
@ -0,0 +1,69 @@
|
|||
#! /bin/sh
|
||||
## vim:set ts=4 sw=4 et:
|
||||
set -e
|
||||
echo "// Copyright (C) 1996-2017 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${AR}" = X && AR="ar"
|
||||
test "X${CC}" = X && CC="cc"
|
||||
test "X${CFLAGS+set}" = Xset || CFLAGS="-O"
|
||||
# CPPFLAGS, LDFLAGS, LIBS
|
||||
# LZO_EXTRA_CPPFLAGS, LZO_EXTRA_CFLAGS, LZO_EXTRA_LDFLAGS
|
||||
# LZO_EXTRA_SOURCES, LZO_EXTRA_OBJECTS, LZO_EXTRA_LIBS
|
||||
|
||||
CFI="-I${top_srcdir}/include -I${top_srcdir} -I${top_srcdir}/src"
|
||||
BNAME=lzo2
|
||||
BLIB=lib${BNAME}.a
|
||||
|
||||
CF="$CPPFLAGS $CFI $CFLAGS"
|
||||
# info: we restrict ourselves to pure ANSI C library functions for the examples
|
||||
CF="-DLZO_LIBC_ISOC90=1 $CF"
|
||||
# info: we do not use _any_ external functions in freestanding mode
|
||||
test -z "$LZO_CFG_FREESTANDING" || CF="-DLZO_CFG_FREESTANDING=1 $CF"
|
||||
LF="$LDFLAGS $LZO_EXTRA_LDFLAGS"
|
||||
LL="$BLIB $LIBS $LZO_EXTRA_LIBS"
|
||||
|
||||
. $top_srcdir/B/generic/clean.sh
|
||||
|
||||
for f in $top_srcdir/src/*.c $LZO_EXTRA_SOURCES; do
|
||||
echo $CC $CF $LZO_EXTRA_CPPFLAGS $LZO_EXTRA_CFLAGS -c $f
|
||||
$CC $CF $LZO_EXTRA_CPPFLAGS $LZO_EXTRA_CFLAGS -c $f
|
||||
done
|
||||
|
||||
echo $AR rcs $BLIB *.o $LZO_EXTRA_OBJECTS
|
||||
$AR rcs $BLIB *.o $LZO_EXTRA_OBJECTS
|
||||
|
||||
|
||||
if test -n "$LZO_CFG_FREESTANDING"; then
|
||||
|
||||
echo "//"
|
||||
echo "// Building $BLIB in freestanding mode was successful. All done."
|
||||
echo "// Now try 'nm --extern-only $BLIB'"
|
||||
|
||||
else
|
||||
|
||||
for f in dict lzopack precomp precomp2 simple; do
|
||||
echo $CC $CF $LF -o $f.out $top_srcdir/examples/$f.c $LL
|
||||
$CC $CF $LF -o $f.out $top_srcdir/examples/$f.c $LL
|
||||
done
|
||||
echo $CC $CF $LF -o lzotest.out $top_srcdir/lzotest/lzotest.c $LL
|
||||
$CC $CF $LF -o lzotest.out $top_srcdir/lzotest/lzotest.c $LL
|
||||
|
||||
for f in minilzo.c testmini.c; do
|
||||
XF="-I$top_srcdir/include/lzo $CF $LZO_EXTRA_CPPFLAGS $LZO_EXTRA_CFLAGS"
|
||||
echo $CC $XF -c $top_srcdir/minilzo/$f
|
||||
$CC $XF -c $top_srcdir/minilzo/$f
|
||||
done
|
||||
echo $CC $CF $LF -o testmini.out testmini.o minilzo.o $LIBS $LZO_EXTRA_LIBS
|
||||
$CC $CF $LF -o testmini.out testmini.o minilzo.o $LIBS $LZO_EXTRA_LIBS
|
||||
|
||||
|
||||
echo "//"
|
||||
echo "// Building LZO was successful. All done."
|
||||
|
||||
fi
|
||||
true
|
|
@ -0,0 +1,8 @@
|
|||
#! /bin/sh
|
||||
## vim:set ts=4 sw=4 et:
|
||||
|
||||
test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../..
|
||||
|
||||
LZO_CFG_FREESTANDING=1
|
||||
|
||||
. $top_srcdir/B/generic/build.sh
|
|
@ -0,0 +1,25 @@
|
|||
#! /bin/sh
|
||||
## vim:set ts=4 sw=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"
|
||||
LZO_EXTRA_SOURCES=$top_srcdir/asm/i386/src_gas/*.S
|
||||
;;
|
||||
esac
|
||||
|
||||
. $top_srcdir/B/generic/build.sh
|
|
@ -0,0 +1,7 @@
|
|||
#! /bin/sh
|
||||
## vim:set ts=4 sw=4 et:
|
||||
# Copyright (C) 1996-2017 Markus F.X.J. Oberhumer
|
||||
|
||||
rm -f *.o liblzo2.a dict.out lzopack.out precomp.out precomp2.out simple.out lzotest.out testmini.out
|
||||
|
||||
true
|
|
@ -0,0 +1,45 @@
|
|||
@echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer
|
||||
@echo //
|
||||
@echo // OS/2 32-bit
|
||||
@echo // emx + gcc
|
||||
@echo //
|
||||
@call b\prepare.bat
|
||||
@if "%BECHO%"=="n" echo off
|
||||
|
||||
|
||||
set BLIB=%BNAME%.a
|
||||
set CC=gcc
|
||||
set CF=@b/dos32/dj2.opt %CFI% %CFASM%
|
||||
set LF=%BLIB% -s
|
||||
|
||||
%CC% %CF% -c @b\src.rsp
|
||||
@if errorlevel 1 goto error
|
||||
%CC% -x assembler-with-cpp -c asm/i386/src_gas/*.S
|
||||
@if errorlevel 1 goto error
|
||||
ar rcs %BLIB% @b/win32/cygwin.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -o dict.exe examples/dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o lzopack.exe examples/lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o precomp.exe examples/precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o precomp2.exe examples/precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o simple.exe examples/simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -o lzotest.exe lzotest/lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -Iinclude/lzo -o testmini.exe minilzo/testmini.c minilzo/minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,42 @@
|
|||
@echo // Copyright (C) 1996-2017 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 CC=wcl386 -zq -mf -5r -bt#os2 -l#os2v2
|
||||
set CF=-ox -zc %CFI% %CFASM%
|
||||
set LF=%BLIB%
|
||||
|
||||
%CC% %CF% -c src\*.c
|
||||
@if errorlevel 1 goto error
|
||||
wlib -q -b -n -t %BLIB% @b\win32\wc.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% examples\dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% lzotest\lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,51 @@
|
|||
@echo // Copyright (C) 1996-2017 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
|
||||
|
||||
|
||||
set CC=ztc -b -v0 -mf
|
||||
set CF=-o -w- -r %CFI% %CFASM%
|
||||
set LF=%BLIB%
|
||||
|
||||
%CC% %CF% -Isrc -c @b\src.rsp
|
||||
@if errorlevel 1 goto error
|
||||
zorlib %BLIB% @b\win32\bc.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -c examples\dict.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% dict.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -c examples\lzopack.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% lzopack.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -c examples\precomp.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% precomp.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -c examples\precomp2.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% precomp2.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -c examples\simple.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% simple.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -c lzotest\lzotest.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% lzotest.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,10 @@
|
|||
@call b\unset.bat
|
||||
@call b\clean.bat
|
||||
|
||||
@set CFI=-Iinclude -I. -Isrc
|
||||
@set CFASM=-DLZO_USE_ASM
|
||||
@set BNAME=lzo2
|
||||
@set BLIB=lzo2.lib
|
||||
@set BDLL=lzo2.dll
|
||||
|
||||
@echo Compiling, please be patient...
|
|
@ -0,0 +1,67 @@
|
|||
src/lzo1.c
|
||||
src/lzo1_99.c
|
||||
src/lzo1a.c
|
||||
src/lzo1a_99.c
|
||||
src/lzo1b_1.c
|
||||
src/lzo1b_2.c
|
||||
src/lzo1b_3.c
|
||||
src/lzo1b_4.c
|
||||
src/lzo1b_5.c
|
||||
src/lzo1b_6.c
|
||||
src/lzo1b_7.c
|
||||
src/lzo1b_8.c
|
||||
src/lzo1b_9.c
|
||||
src/lzo1b_99.c
|
||||
src/lzo1b_9x.c
|
||||
src/lzo1b_cc.c
|
||||
src/lzo1b_d1.c
|
||||
src/lzo1b_d2.c
|
||||
src/lzo1b_rr.c
|
||||
src/lzo1b_xx.c
|
||||
src/lzo1c_1.c
|
||||
src/lzo1c_2.c
|
||||
src/lzo1c_3.c
|
||||
src/lzo1c_4.c
|
||||
src/lzo1c_5.c
|
||||
src/lzo1c_6.c
|
||||
src/lzo1c_7.c
|
||||
src/lzo1c_8.c
|
||||
src/lzo1c_9.c
|
||||
src/lzo1c_99.c
|
||||
src/lzo1c_9x.c
|
||||
src/lzo1c_cc.c
|
||||
src/lzo1c_d1.c
|
||||
src/lzo1c_d2.c
|
||||
src/lzo1c_rr.c
|
||||
src/lzo1c_xx.c
|
||||
src/lzo1f_1.c
|
||||
src/lzo1f_9x.c
|
||||
src/lzo1f_d1.c
|
||||
src/lzo1f_d2.c
|
||||
src/lzo1x_1.c
|
||||
src/lzo1x_1k.c
|
||||
src/lzo1x_1l.c
|
||||
src/lzo1x_1o.c
|
||||
src/lzo1x_9x.c
|
||||
src/lzo1x_d1.c
|
||||
src/lzo1x_d2.c
|
||||
src/lzo1x_d3.c
|
||||
src/lzo1x_o.c
|
||||
src/lzo1y_1.c
|
||||
src/lzo1y_9x.c
|
||||
src/lzo1y_d1.c
|
||||
src/lzo1y_d2.c
|
||||
src/lzo1y_d3.c
|
||||
src/lzo1y_o.c
|
||||
src/lzo1z_9x.c
|
||||
src/lzo1z_d1.c
|
||||
src/lzo1z_d2.c
|
||||
src/lzo1z_d3.c
|
||||
src/lzo2a_9x.c
|
||||
src/lzo2a_d1.c
|
||||
src/lzo2a_d2.c
|
||||
src/lzo_crc.c
|
||||
src/lzo_init.c
|
||||
src/lzo_ptr.c
|
||||
src/lzo_str.c
|
||||
src/lzo_util.c
|
|
@ -0,0 +1,10 @@
|
|||
@set CC=
|
||||
@set CF=
|
||||
@set CFI=
|
||||
@set CFX=
|
||||
@set CFASM=
|
||||
@set LF=
|
||||
@set BNAME=
|
||||
@set BLIB=
|
||||
@set BDLL=
|
||||
@set BECHO=
|
|
@ -0,0 +1,42 @@
|
|||
@echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer
|
||||
@echo //
|
||||
@echo // Windows 32-bit
|
||||
@echo // Borland C/C++
|
||||
@echo //
|
||||
@call b\prepare.bat
|
||||
@if "%BECHO%"=="n" echo off
|
||||
|
||||
|
||||
set CC=bcc32
|
||||
set CF=-O2 -w -w-aus %CFI% -Iinclude\lzo %CFASM%
|
||||
set LF=%BLIB%
|
||||
|
||||
%CC% %CF% -Isrc -c @b\src.rsp
|
||||
@if errorlevel 1 goto error
|
||||
tlib %BLIB% @b\win32\bc.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -ls -Iexamples examples\dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -ls -Iexamples examples\lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -ls -Iexamples examples\precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -ls -Iexamples examples\precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -ls -Iexamples examples\simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -ls -Ilzotest lzotest\lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -ls -Iminilzo minilzo\testmini.c minilzo\minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,73 @@
|
|||
+lzo1.obj &
|
||||
+lzo1_99.obj &
|
||||
+lzo1a.obj &
|
||||
+lzo1a_99.obj &
|
||||
+lzo1b_1.obj &
|
||||
+lzo1b_2.obj &
|
||||
+lzo1b_3.obj &
|
||||
+lzo1b_4.obj &
|
||||
+lzo1b_5.obj &
|
||||
+lzo1b_6.obj &
|
||||
+lzo1b_7.obj &
|
||||
+lzo1b_8.obj &
|
||||
+lzo1b_9.obj &
|
||||
+lzo1b_99.obj &
|
||||
+lzo1b_9x.obj &
|
||||
+lzo1b_cc.obj &
|
||||
+lzo1b_d1.obj &
|
||||
+lzo1b_d2.obj &
|
||||
+lzo1b_rr.obj &
|
||||
+lzo1b_xx.obj &
|
||||
+lzo1c_1.obj &
|
||||
+lzo1c_2.obj &
|
||||
+lzo1c_3.obj &
|
||||
+lzo1c_4.obj &
|
||||
+lzo1c_5.obj &
|
||||
+lzo1c_6.obj &
|
||||
+lzo1c_7.obj &
|
||||
+lzo1c_8.obj &
|
||||
+lzo1c_9.obj &
|
||||
+lzo1c_99.obj &
|
||||
+lzo1c_9x.obj &
|
||||
+lzo1c_cc.obj &
|
||||
+lzo1c_d1.obj &
|
||||
+lzo1c_d2.obj &
|
||||
+lzo1c_rr.obj &
|
||||
+lzo1c_xx.obj &
|
||||
+lzo1f_1.obj &
|
||||
+lzo1f_9x.obj &
|
||||
+lzo1f_d1.obj &
|
||||
+lzo1f_d2.obj &
|
||||
+lzo1x_1.obj &
|
||||
+lzo1x_1k.obj &
|
||||
+lzo1x_1l.obj &
|
||||
+lzo1x_1o.obj &
|
||||
+lzo1x_9x.obj &
|
||||
+lzo1x_d1.obj &
|
||||
+lzo1x_d2.obj &
|
||||
+lzo1x_d3.obj &
|
||||
+lzo1x_o.obj &
|
||||
+lzo1y_1.obj &
|
||||
+lzo1y_9x.obj &
|
||||
+lzo1y_d1.obj &
|
||||
+lzo1y_d2.obj &
|
||||
+lzo1y_d3.obj &
|
||||
+lzo1y_o.obj &
|
||||
+lzo1z_9x.obj &
|
||||
+lzo1z_d1.obj &
|
||||
+lzo1z_d2.obj &
|
||||
+lzo1z_d3.obj &
|
||||
+lzo2a_9x.obj &
|
||||
+lzo2a_d1.obj &
|
||||
+lzo2a_d2.obj &
|
||||
+lzo_crc.obj &
|
||||
+lzo_init.obj &
|
||||
+lzo_ptr.obj &
|
||||
+lzo_str.obj &
|
||||
+lzo_util.obj &
|
||||
+asm\i386\obj\omf32\lzo1c_s1.obj &
|
||||
+asm\i386\obj\omf32\lzo1f_f1.obj &
|
||||
+asm\i386\obj\omf32\lzo1x_f1.obj &
|
||||
+asm\i386\obj\omf32\lzo1x_s1.obj &
|
||||
+asm\i386\obj\omf32\lzo1y_f1.obj &
|
||||
+asm\i386\obj\omf32\lzo1y_s1.obj
|
|
@ -0,0 +1,45 @@
|
|||
@echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer
|
||||
@echo //
|
||||
@echo // Windows 32-bit
|
||||
@echo // cygwin + gcc
|
||||
@echo //
|
||||
@call b\prepare.bat
|
||||
@if "%BECHO%"=="n" echo off
|
||||
|
||||
|
||||
set BLIB=lib%BNAME%.a
|
||||
set CC=gcc
|
||||
set CF=-O2 -fomit-frame-pointer -Wall %CFI% %CFASM%
|
||||
set LF=%BLIB% -lwinmm -s
|
||||
|
||||
%CC% %CF% -c src/*.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% -x assembler-with-cpp -c asm/i386/src_gas/*.S
|
||||
@if errorlevel 1 goto error
|
||||
ar rcs %BLIB% @b/win32/cygwin.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -o dict.exe examples/dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o lzopack.exe examples/lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o precomp.exe examples/precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o precomp2.exe examples/precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o simple.exe examples/simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -o lzotest.exe lzotest/lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -Iinclude/lzo -o testmini.exe minilzo/testmini.c minilzo/minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,73 @@
|
|||
lzo1.o
|
||||
lzo1_99.o
|
||||
lzo1a.o
|
||||
lzo1a_99.o
|
||||
lzo1b_1.o
|
||||
lzo1b_2.o
|
||||
lzo1b_3.o
|
||||
lzo1b_4.o
|
||||
lzo1b_5.o
|
||||
lzo1b_6.o
|
||||
lzo1b_7.o
|
||||
lzo1b_8.o
|
||||
lzo1b_9.o
|
||||
lzo1b_99.o
|
||||
lzo1b_9x.o
|
||||
lzo1b_cc.o
|
||||
lzo1b_d1.o
|
||||
lzo1b_d2.o
|
||||
lzo1b_rr.o
|
||||
lzo1b_xx.o
|
||||
lzo1c_1.o
|
||||
lzo1c_2.o
|
||||
lzo1c_3.o
|
||||
lzo1c_4.o
|
||||
lzo1c_5.o
|
||||
lzo1c_6.o
|
||||
lzo1c_7.o
|
||||
lzo1c_8.o
|
||||
lzo1c_9.o
|
||||
lzo1c_99.o
|
||||
lzo1c_9x.o
|
||||
lzo1c_cc.o
|
||||
lzo1c_d1.o
|
||||
lzo1c_d2.o
|
||||
lzo1c_rr.o
|
||||
lzo1c_xx.o
|
||||
lzo1f_1.o
|
||||
lzo1f_9x.o
|
||||
lzo1f_d1.o
|
||||
lzo1f_d2.o
|
||||
lzo1x_1.o
|
||||
lzo1x_1k.o
|
||||
lzo1x_1l.o
|
||||
lzo1x_1o.o
|
||||
lzo1x_9x.o
|
||||
lzo1x_d1.o
|
||||
lzo1x_d2.o
|
||||
lzo1x_d3.o
|
||||
lzo1x_o.o
|
||||
lzo1y_1.o
|
||||
lzo1y_9x.o
|
||||
lzo1y_d1.o
|
||||
lzo1y_d2.o
|
||||
lzo1y_d3.o
|
||||
lzo1y_o.o
|
||||
lzo1z_9x.o
|
||||
lzo1z_d1.o
|
||||
lzo1z_d2.o
|
||||
lzo1z_d3.o
|
||||
lzo2a_9x.o
|
||||
lzo2a_d1.o
|
||||
lzo2a_d2.o
|
||||
lzo_crc.o
|
||||
lzo_init.o
|
||||
lzo_ptr.o
|
||||
lzo_str.o
|
||||
lzo_util.o
|
||||
lzo1c_s1.o
|
||||
lzo1f_f1.o
|
||||
lzo1x_f1.o
|
||||
lzo1x_s1.o
|
||||
lzo1y_f1.o
|
||||
lzo1y_s1.o
|
|
@ -0,0 +1,42 @@
|
|||
@echo // Copyright (C) 1996-2017 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
|
||||
|
||||
|
||||
set CC=dmc -mn
|
||||
set CF=-o -w- %CFI% %CFASM%
|
||||
set LF=%BLIB%
|
||||
|
||||
%CC% %CF% -c @b\src.rsp
|
||||
@if errorlevel 1 goto error
|
||||
lib %BLIB% /b /c /n /noi @b\win32\bc.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% examples\dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% lzotest\lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,42 @@
|
|||
@echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer
|
||||
@echo //
|
||||
@echo // Windows 32-bit
|
||||
@echo // Intel C/C++
|
||||
@echo //
|
||||
@call b\prepare.bat
|
||||
@if "%BECHO%"=="n" echo off
|
||||
|
||||
|
||||
set CC=icl -nologo -MT
|
||||
set CF=-O2 -GF -W3 -Qvec-report0 %CFI% %CFASM%
|
||||
set LF=%BLIB%
|
||||
|
||||
%CC% %CF% -c @b\src.rsp
|
||||
@if errorlevel 1 goto error
|
||||
link -lib -nologo -out:%BLIB% @b\win32\vc.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% examples\dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% lzotest\lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,59 @@
|
|||
@echo // Copyright (C) 1996-2017 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
|
||||
|
||||
|
||||
set CC=lcc
|
||||
set CF=-O -A %CFI% -Iinclude\lzo %CFASM%
|
||||
set CF=-A %CFI% -Iinclude\lzo %CFASM%
|
||||
set LF=%BLIB% winmm.lib
|
||||
|
||||
for %%f in (src\*.c) do %CC% %CF% -c %%f
|
||||
@if errorlevel 1 goto error
|
||||
lcclib /out:%BLIB% @b\win32\vc.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% -c %CF% examples\dict.c
|
||||
@if errorlevel 1 goto error
|
||||
lc dict.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% -c %CF% examples\lzopack.c
|
||||
@if errorlevel 1 goto error
|
||||
lc lzopack.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% -c %CF% examples\precomp.c
|
||||
@if errorlevel 1 goto error
|
||||
lc precomp.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% -c %CF% examples\precomp2.c
|
||||
@if errorlevel 1 goto error
|
||||
lc precomp2.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% -c %CF% examples\simple.c
|
||||
@if errorlevel 1 goto error
|
||||
lc simple.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% -c %CF% lzotest\lzotest.c
|
||||
@if errorlevel 1 goto error
|
||||
lc lzotest.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% -c %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
lc testmini.obj minilzo.obj
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,45 @@
|
|||
@echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer
|
||||
@echo //
|
||||
@echo // Windows 32-bit
|
||||
@echo // MinGW + gcc
|
||||
@echo //
|
||||
@call b\prepare.bat
|
||||
@if "%BECHO%"=="n" echo off
|
||||
|
||||
|
||||
set BLIB=lib%BNAME%.a
|
||||
set CC=gcc
|
||||
set CF=-O2 -fomit-frame-pointer -Wall %CFI% %CFASM%
|
||||
set LF=%BLIB% -lwinmm -s
|
||||
|
||||
%CC% %CF% -c src/*.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% -x assembler-with-cpp -c asm/i386/src_gas/*.S
|
||||
@if errorlevel 1 goto error
|
||||
ar rcs %BLIB% *.o
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -o dict.exe examples/dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o lzopack.exe examples/lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o precomp.exe examples/precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o precomp2.exe examples/precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o simple.exe examples/simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -o lzotest.exe lzotest/lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -Iinclude/lzo -o testmini.exe minilzo/testmini.c minilzo/minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,42 @@
|
|||
@echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer
|
||||
@echo //
|
||||
@echo // Windows 32-bit
|
||||
@echo // Metrowerks CodeWarrior C/C++
|
||||
@echo //
|
||||
@call b\prepare.bat
|
||||
@if "%BECHO%"=="n" echo off
|
||||
|
||||
|
||||
set CC=mwcc -gccinc
|
||||
set CF=-opt full %CFI% %CFASM%
|
||||
set LF=%BLIB% -lwinmm.lib
|
||||
|
||||
%CC% -w on %CF% -w nounusedexpr -c @b\src.rsp
|
||||
@if errorlevel 1 goto error
|
||||
mwld -library -o %BLIB% @b\win32\vc.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% examples\dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% lzotest\lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,42 @@
|
|||
@echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer
|
||||
@echo //
|
||||
@echo // Windows 32-bit
|
||||
@echo // Pelles C
|
||||
@echo //
|
||||
@call b\prepare.bat
|
||||
@if "%BECHO%"=="n" echo off
|
||||
|
||||
|
||||
set CC=cc -Ze -Go
|
||||
set CF=-O2 -W2 %CFI% %CFASM%
|
||||
set LF=%BLIB%
|
||||
|
||||
%CC% %CF% -c src\*.c
|
||||
@if errorlevel 1 goto error
|
||||
polib -out:%BLIB% @b\win32\vc.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% examples\dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% lzotest\lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,43 @@
|
|||
@echo // Copyright (C) 1996-2017 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
|
||||
|
||||
|
||||
set BLIB=lib%BNAME%.a
|
||||
set CC=pgcc
|
||||
set CF=-fast %CFI% %CFASM%
|
||||
set LF=%BLIB% -lwinmm
|
||||
|
||||
%CC% %CF% -c src\*.c
|
||||
@if errorlevel 1 goto error
|
||||
ar rcs %BLIB% *.o asm/i386/obj/win32/*.obj
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -o dict.exe examples\dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o lzopack.exe examples\lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o precomp.exe examples\precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o precomp2.exe examples\precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o simple.exe examples\simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -o lzotest.exe lzotest\lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,45 @@
|
|||
@echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer
|
||||
@echo //
|
||||
@echo // Windows 32-bit
|
||||
@echo // PW32 + gcc
|
||||
@echo //
|
||||
@call b\prepare.bat
|
||||
@if "%BECHO%"=="n" echo off
|
||||
|
||||
|
||||
set BLIB=lib%BNAME%.a
|
||||
set CC=gcc
|
||||
set CF=-O2 -fomit-frame-pointer -Wall %CFI% %CFASM%
|
||||
set LF=%BLIB% -lwinmm -s
|
||||
|
||||
%CC% %CF% -c src/*.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% -x assembler-with-cpp -c asm/i386/src_gas/*.S
|
||||
@if errorlevel 1 goto error
|
||||
ar rcs %BLIB% *.o
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -o dict.exe examples/dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o lzopack.exe examples/lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o precomp.exe examples/precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o precomp2.exe examples/precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o simple.exe examples/simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -o lzotest.exe lzotest/lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -Iinclude/lzo -o testmini.exe minilzo/testmini.c minilzo/minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,45 @@
|
|||
@echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer
|
||||
@echo //
|
||||
@echo // Windows 32-bit
|
||||
@echo // rsxnt + gcc
|
||||
@echo //
|
||||
@call b\prepare.bat
|
||||
@if "%BECHO%"=="n" echo off
|
||||
|
||||
|
||||
set BLIB=%BNAME%.a
|
||||
set CC=gcc -Zwin32 -Zsys -mprobe
|
||||
set CF=@b/dos32/dj2.opt %CFI% %CFASM%
|
||||
set LF=%BLIB% -s
|
||||
|
||||
%CC% %CF% -c @b\src.rsp
|
||||
@if errorlevel 1 goto error
|
||||
%CC% -x assembler-with-cpp -c asm/i386/src_gas/*.S
|
||||
@if errorlevel 1 goto error
|
||||
ar rcs %BLIB% @b/win32/cygwin.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -o dict.exe examples/dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o lzopack.exe examples/lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o precomp.exe examples/precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o precomp2.exe examples/precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -o simple.exe examples/simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -o lzotest.exe lzotest/lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -Iinclude/lzo -o testmini.exe minilzo/testmini.c minilzo/minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,56 @@
|
|||
@echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer
|
||||
@echo //
|
||||
@echo // Windows 32-bit
|
||||
@echo // Symantec C/C++
|
||||
@echo //
|
||||
@call b\prepare.bat
|
||||
@if "%BECHO%"=="n" echo off
|
||||
|
||||
|
||||
set CC=sc -mn
|
||||
set CF=-o -w- %CFI% %CFASM%
|
||||
set LF=%BLIB%
|
||||
|
||||
%CC% %CF% -c @b\src.rsp
|
||||
@if errorlevel 1 goto error
|
||||
lib %BLIB% /b /c /n /noi @b\win32\bc.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -c examples\dict.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% dict.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -c examples\lzopack.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% lzopack.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -c examples\precomp.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% precomp.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -c examples\precomp2.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% precomp2.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% -c examples\simple.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% simple.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -c lzotest\lzotest.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% lzotest.obj %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -Iinclude\lzo -c minilzo\testmini.c minilzo\minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
%CC% testmini.obj minilzo.obj
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,42 @@
|
|||
@echo // Copyright (C) 1996-2017 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
|
||||
|
||||
|
||||
set CC=cl -nologo -MT
|
||||
set CF=-O2 -GF -W3 %CFI% %CFASM%
|
||||
set LF=%BLIB%
|
||||
|
||||
%CC% %CF% -c @b\src.rsp
|
||||
@if errorlevel 1 goto error
|
||||
link -lib -nologo -out:%BLIB% @b\win32\vc.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% examples\dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% lzotest\lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,73 @@
|
|||
.\lzo1.obj
|
||||
.\lzo1_99.obj
|
||||
.\lzo1a.obj
|
||||
.\lzo1a_99.obj
|
||||
.\lzo1b_1.obj
|
||||
.\lzo1b_2.obj
|
||||
.\lzo1b_3.obj
|
||||
.\lzo1b_4.obj
|
||||
.\lzo1b_5.obj
|
||||
.\lzo1b_6.obj
|
||||
.\lzo1b_7.obj
|
||||
.\lzo1b_8.obj
|
||||
.\lzo1b_9.obj
|
||||
.\lzo1b_99.obj
|
||||
.\lzo1b_9x.obj
|
||||
.\lzo1b_cc.obj
|
||||
.\lzo1b_d1.obj
|
||||
.\lzo1b_d2.obj
|
||||
.\lzo1b_rr.obj
|
||||
.\lzo1b_xx.obj
|
||||
.\lzo1c_1.obj
|
||||
.\lzo1c_2.obj
|
||||
.\lzo1c_3.obj
|
||||
.\lzo1c_4.obj
|
||||
.\lzo1c_5.obj
|
||||
.\lzo1c_6.obj
|
||||
.\lzo1c_7.obj
|
||||
.\lzo1c_8.obj
|
||||
.\lzo1c_9.obj
|
||||
.\lzo1c_99.obj
|
||||
.\lzo1c_9x.obj
|
||||
.\lzo1c_cc.obj
|
||||
.\lzo1c_d1.obj
|
||||
.\lzo1c_d2.obj
|
||||
.\lzo1c_rr.obj
|
||||
.\lzo1c_xx.obj
|
||||
.\lzo1f_1.obj
|
||||
.\lzo1f_9x.obj
|
||||
.\lzo1f_d1.obj
|
||||
.\lzo1f_d2.obj
|
||||
.\lzo1x_1.obj
|
||||
.\lzo1x_1k.obj
|
||||
.\lzo1x_1l.obj
|
||||
.\lzo1x_1o.obj
|
||||
.\lzo1x_9x.obj
|
||||
.\lzo1x_d1.obj
|
||||
.\lzo1x_d2.obj
|
||||
.\lzo1x_d3.obj
|
||||
.\lzo1x_o.obj
|
||||
.\lzo1y_1.obj
|
||||
.\lzo1y_9x.obj
|
||||
.\lzo1y_d1.obj
|
||||
.\lzo1y_d2.obj
|
||||
.\lzo1y_d3.obj
|
||||
.\lzo1y_o.obj
|
||||
.\lzo1z_9x.obj
|
||||
.\lzo1z_d1.obj
|
||||
.\lzo1z_d2.obj
|
||||
.\lzo1z_d3.obj
|
||||
.\lzo2a_9x.obj
|
||||
.\lzo2a_d1.obj
|
||||
.\lzo2a_d2.obj
|
||||
.\lzo_crc.obj
|
||||
.\lzo_init.obj
|
||||
.\lzo_ptr.obj
|
||||
.\lzo_str.obj
|
||||
.\lzo_util.obj
|
||||
.\asm\i386\obj\win32\lzo1c_s1.obj
|
||||
.\asm\i386\obj\win32\lzo1f_f1.obj
|
||||
.\asm\i386\obj\win32\lzo1x_f1.obj
|
||||
.\asm\i386\obj\win32\lzo1x_s1.obj
|
||||
.\asm\i386\obj\win32\lzo1y_f1.obj
|
||||
.\asm\i386\obj\win32\lzo1y_s1.obj
|
|
@ -0,0 +1,42 @@
|
|||
@echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer
|
||||
@echo //
|
||||
@echo // Windows 32-bit
|
||||
@echo // Microsoft Visual C/C++ (DLL)
|
||||
@echo //
|
||||
@call b\prepare.bat
|
||||
@if "%BECHO%"=="n" echo off
|
||||
|
||||
|
||||
set CC=cl -nologo -MT
|
||||
set CF=-O2 -GF -W3 %CFI% %CFASM%
|
||||
set LF=%BLIB%
|
||||
|
||||
%CC% %CF% -D__LZO_EXPORT1#__declspec(dllexport) -c @b\src.rsp
|
||||
@if errorlevel 1 goto error
|
||||
%CC% -LD -Fe%BDLL% @b\win32\vc.rsp /link /map /def:b\win32\vc_dll.def
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% examples\dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% lzotest\lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,7 @@
|
|||
EXPORTS
|
||||
lzo1c_decompress_asm
|
||||
lzo1f_decompress_asm_fast
|
||||
lzo1x_decompress_asm
|
||||
lzo1x_decompress_asm_fast
|
||||
lzo1y_decompress_asm
|
||||
lzo1y_decompress_asm_fast
|
|
@ -0,0 +1,39 @@
|
|||
@echo // Copyright (C) 1996-2017 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 CC=wcl386 -zq -mf -5r -bt#nt -l#nt
|
||||
set CF=-ox -zc %CFI% %CFASM%
|
||||
set LF=%BLIB%
|
||||
|
||||
%CC% %CF% -c src\*.c
|
||||
@if errorlevel 1 goto error
|
||||
wlib -q -b -n -t %BLIB% @b\win32\wc.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% examples\dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% lzotest\lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,73 @@
|
|||
+'lzo1.obj'
|
||||
+'lzo1_99.obj'
|
||||
+'lzo1a.obj'
|
||||
+'lzo1a_99.obj'
|
||||
+'lzo1b_1.obj'
|
||||
+'lzo1b_2.obj'
|
||||
+'lzo1b_3.obj'
|
||||
+'lzo1b_4.obj'
|
||||
+'lzo1b_5.obj'
|
||||
+'lzo1b_6.obj'
|
||||
+'lzo1b_7.obj'
|
||||
+'lzo1b_8.obj'
|
||||
+'lzo1b_9.obj'
|
||||
+'lzo1b_99.obj'
|
||||
+'lzo1b_9x.obj'
|
||||
+'lzo1b_cc.obj'
|
||||
+'lzo1b_d1.obj'
|
||||
+'lzo1b_d2.obj'
|
||||
+'lzo1b_rr.obj'
|
||||
+'lzo1b_xx.obj'
|
||||
+'lzo1c_1.obj'
|
||||
+'lzo1c_2.obj'
|
||||
+'lzo1c_3.obj'
|
||||
+'lzo1c_4.obj'
|
||||
+'lzo1c_5.obj'
|
||||
+'lzo1c_6.obj'
|
||||
+'lzo1c_7.obj'
|
||||
+'lzo1c_8.obj'
|
||||
+'lzo1c_9.obj'
|
||||
+'lzo1c_99.obj'
|
||||
+'lzo1c_9x.obj'
|
||||
+'lzo1c_cc.obj'
|
||||
+'lzo1c_d1.obj'
|
||||
+'lzo1c_d2.obj'
|
||||
+'lzo1c_rr.obj'
|
||||
+'lzo1c_xx.obj'
|
||||
+'lzo1f_1.obj'
|
||||
+'lzo1f_9x.obj'
|
||||
+'lzo1f_d1.obj'
|
||||
+'lzo1f_d2.obj'
|
||||
+'lzo1x_1.obj'
|
||||
+'lzo1x_1k.obj'
|
||||
+'lzo1x_1l.obj'
|
||||
+'lzo1x_1o.obj'
|
||||
+'lzo1x_9x.obj'
|
||||
+'lzo1x_d1.obj'
|
||||
+'lzo1x_d2.obj'
|
||||
+'lzo1x_d3.obj'
|
||||
+'lzo1x_o.obj'
|
||||
+'lzo1y_1.obj'
|
||||
+'lzo1y_9x.obj'
|
||||
+'lzo1y_d1.obj'
|
||||
+'lzo1y_d2.obj'
|
||||
+'lzo1y_d3.obj'
|
||||
+'lzo1y_o.obj'
|
||||
+'lzo1z_9x.obj'
|
||||
+'lzo1z_d1.obj'
|
||||
+'lzo1z_d2.obj'
|
||||
+'lzo1z_d3.obj'
|
||||
+'lzo2a_9x.obj'
|
||||
+'lzo2a_d1.obj'
|
||||
+'lzo2a_d2.obj'
|
||||
+'lzo_crc.obj'
|
||||
+'lzo_init.obj'
|
||||
+'lzo_ptr.obj'
|
||||
+'lzo_str.obj'
|
||||
+'lzo_util.obj'
|
||||
+'asm\i386\obj\omf32\lzo1c_s1.obj'
|
||||
+'asm\i386\obj\omf32\lzo1f_f1.obj'
|
||||
+'asm\i386\obj\omf32\lzo1x_f1.obj'
|
||||
+'asm\i386\obj\omf32\lzo1x_s1.obj'
|
||||
+'asm\i386\obj\omf32\lzo1y_f1.obj'
|
||||
+'asm\i386\obj\omf32\lzo1y_s1.obj'
|
|
@ -0,0 +1,42 @@
|
|||
@echo // Copyright (C) 1996-2017 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
|
||||
|
||||
|
||||
set CC=icl -nologo -MT
|
||||
set CF=-O2 -GF -W3 -Qvec-report0 %CFI%
|
||||
set LF=%BLIB%
|
||||
|
||||
%CC% %CF% -c @b\src.rsp
|
||||
@if errorlevel 1 goto error
|
||||
link -lib -nologo -out:%BLIB% @b\win64\vc.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% examples\dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% lzotest\lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,42 @@
|
|||
@echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer
|
||||
@echo //
|
||||
@echo // Windows 64-bit (Itanium)
|
||||
@echo // Intel C/C++ (DLL)
|
||||
@echo //
|
||||
@call b\prepare.bat
|
||||
@if "%BECHO%"=="n" echo off
|
||||
|
||||
|
||||
set CC=icl -nologo -MT
|
||||
set CF=-O2 -GF -W3 %CFI%
|
||||
set LF=%BLIB%
|
||||
|
||||
%CC% %CF% -D__LZO_EXPORT1#__declspec(dllexport) -c @b\src.rsp
|
||||
@if errorlevel 1 goto error
|
||||
%CC% -LD -Fe%BDLL% @b\win64\vc.rsp /link /map /def:b\win64\vc_dll.def
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% examples\dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% lzotest\lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,42 @@
|
|||
@echo // Copyright (C) 1996-2017 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
|
||||
|
||||
|
||||
set CC=cl -nologo -MT
|
||||
set CF=-O2 -GF -W3 %CFI%
|
||||
set LF=%BLIB%
|
||||
|
||||
%CC% %CF% -c @b\src.rsp
|
||||
@if errorlevel 1 goto error
|
||||
link -lib -nologo -out:%BLIB% @b\win64\vc.rsp
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% examples\dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% lzotest\lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1,67 @@
|
|||
.\lzo1.obj
|
||||
.\lzo1_99.obj
|
||||
.\lzo1a.obj
|
||||
.\lzo1a_99.obj
|
||||
.\lzo1b_1.obj
|
||||
.\lzo1b_2.obj
|
||||
.\lzo1b_3.obj
|
||||
.\lzo1b_4.obj
|
||||
.\lzo1b_5.obj
|
||||
.\lzo1b_6.obj
|
||||
.\lzo1b_7.obj
|
||||
.\lzo1b_8.obj
|
||||
.\lzo1b_9.obj
|
||||
.\lzo1b_99.obj
|
||||
.\lzo1b_9x.obj
|
||||
.\lzo1b_cc.obj
|
||||
.\lzo1b_d1.obj
|
||||
.\lzo1b_d2.obj
|
||||
.\lzo1b_rr.obj
|
||||
.\lzo1b_xx.obj
|
||||
.\lzo1c_1.obj
|
||||
.\lzo1c_2.obj
|
||||
.\lzo1c_3.obj
|
||||
.\lzo1c_4.obj
|
||||
.\lzo1c_5.obj
|
||||
.\lzo1c_6.obj
|
||||
.\lzo1c_7.obj
|
||||
.\lzo1c_8.obj
|
||||
.\lzo1c_9.obj
|
||||
.\lzo1c_99.obj
|
||||
.\lzo1c_9x.obj
|
||||
.\lzo1c_cc.obj
|
||||
.\lzo1c_d1.obj
|
||||
.\lzo1c_d2.obj
|
||||
.\lzo1c_rr.obj
|
||||
.\lzo1c_xx.obj
|
||||
.\lzo1f_1.obj
|
||||
.\lzo1f_9x.obj
|
||||
.\lzo1f_d1.obj
|
||||
.\lzo1f_d2.obj
|
||||
.\lzo1x_1.obj
|
||||
.\lzo1x_1k.obj
|
||||
.\lzo1x_1l.obj
|
||||
.\lzo1x_1o.obj
|
||||
.\lzo1x_9x.obj
|
||||
.\lzo1x_d1.obj
|
||||
.\lzo1x_d2.obj
|
||||
.\lzo1x_d3.obj
|
||||
.\lzo1x_o.obj
|
||||
.\lzo1y_1.obj
|
||||
.\lzo1y_9x.obj
|
||||
.\lzo1y_d1.obj
|
||||
.\lzo1y_d2.obj
|
||||
.\lzo1y_d3.obj
|
||||
.\lzo1y_o.obj
|
||||
.\lzo1z_9x.obj
|
||||
.\lzo1z_d1.obj
|
||||
.\lzo1z_d2.obj
|
||||
.\lzo1z_d3.obj
|
||||
.\lzo2a_9x.obj
|
||||
.\lzo2a_d1.obj
|
||||
.\lzo2a_d2.obj
|
||||
.\lzo_crc.obj
|
||||
.\lzo_init.obj
|
||||
.\lzo_ptr.obj
|
||||
.\lzo_str.obj
|
||||
.\lzo_util.obj
|
|
@ -0,0 +1,42 @@
|
|||
@echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer
|
||||
@echo //
|
||||
@echo // Windows 64-bit (AMD64 or Itanium)
|
||||
@echo // Microsoft Visual C/C++ (DLL)
|
||||
@echo //
|
||||
@call b\prepare.bat
|
||||
@if "%BECHO%"=="n" echo off
|
||||
|
||||
|
||||
set CC=cl -nologo -MT
|
||||
set CF=-O2 -GF -W3 %CFI%
|
||||
set LF=%BLIB%
|
||||
|
||||
%CC% %CF% -D__LZO_EXPORT1#__declspec(dllexport) -c @b\src.rsp
|
||||
@if errorlevel 1 goto error
|
||||
%CC% -LD -Fe%BDLL% @b\win64\vc.rsp /link /map /def:b\win64\vc_dll.def
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% examples\dict.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\lzopack.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\precomp2.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
%CC% %CF% examples\simple.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% lzotest\lzotest.c %LF%
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
%CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c
|
||||
@if errorlevel 1 goto error
|
||||
|
||||
|
||||
@call b\done.bat
|
||||
@goto end
|
||||
:error
|
||||
@echo ERROR during build!
|
||||
:end
|
||||
@call b\unset.bat
|
|
@ -0,0 +1 @@
|
|||
EXPORTS
|
|
@ -0,0 +1,21 @@
|
|||
============================================================================
|
||||
LZO -- a real-time data compression library
|
||||
============================================================================
|
||||
|
||||
LZO is free of any known bugs.
|
||||
|
||||
Nevertheless LZO has been reported to break the optimizer of some
|
||||
compilers including gcc 2.7.2 (AIX, IRIX) and Watcom C 9.5.
|
||||
|
||||
So if 'lzotest' reports data decompression errors you should recompile
|
||||
everything without optimizations and see if that fixes the problem.
|
||||
I'd like to hear about optimizer problems and possible workarounds.
|
||||
|
||||
|
||||
Known compiler problems:
|
||||
------------------------
|
||||
some versions of gcc use '-O2 -fno-strength-reduce'
|
||||
some versions of gcc use '-O2 -fno-schedule-insns -fno-schedule-insns2'
|
||||
Watcom C 9.5 compile with '-oneax' instead of '-oneatx'
|
||||
|
||||
|
|
@ -0,0 +1,314 @@
|
|||
#
|
||||
# CMakeLists.txt --- a "CMake" file for building LZO
|
||||
#
|
||||
# This file is part of the LZO data compression library.
|
||||
# http://www.oberhumer.com/opensource/lzo/
|
||||
#
|
||||
# Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer
|
||||
# All Rights Reserved.
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
|
||||
|
||||
#
|
||||
# simple usage example (Unix):
|
||||
# mkdir -p build && cd build && cmake .. && make
|
||||
#
|
||||
# simple usage example (Windows MSVC):
|
||||
# md build
|
||||
# cd build
|
||||
# cmake .. -G "NMake Makefiles"
|
||||
# nmake
|
||||
#
|
||||
# another usage example (Unix):
|
||||
# mkdir -p build/release-i686
|
||||
# cd build/release-i686
|
||||
# cmake ../.. -DENABLE_STATIC=0 -DENABLE_SHARED=1 \
|
||||
# -DCMAKE_C_COMPILER=gcc -DCMAKE_C_FLAGS="-m32 -march=i686" \
|
||||
# -DCMAKE_INSTALL_PREFIX=/opt/local/prefix-i686
|
||||
# make VERBOSE=1
|
||||
# make install
|
||||
#
|
||||
# see http://www.cmake.org/ for more info
|
||||
#
|
||||
|
||||
# /***********************************************************************
|
||||
# // init
|
||||
# ************************************************************************/
|
||||
|
||||
# Disallow in-source builds. Note that you will still have to manually
|
||||
# clean up a few files if you accidentally try an in-source build.
|
||||
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
|
||||
set(CMAKE_DISABLE_SOURCE_CHANGES ON)
|
||||
if(",${CMAKE_SOURCE_DIR}," STREQUAL ",${CMAKE_BINARY_DIR},")
|
||||
message(FATAL_ERROR "ERROR: In-source builds are not allowed.")
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
|
||||
endif()
|
||||
|
||||
project(lzo VERSION 2.10 LANGUAGES C)
|
||||
|
||||
# configuration options
|
||||
option(ENABLE_STATIC "Build static LZO library." ON)
|
||||
option(ENABLE_SHARED "Build shared LZO library." OFF)
|
||||
if(NOT ENABLE_STATIC AND NOT ENABLE_SHARED)
|
||||
set(ENABLE_STATIC ON)
|
||||
endif()
|
||||
if(ENABLE_SHARED AND WIN32)
|
||||
cmake_minimum_required(VERSION 3.4.3 FATAL_ERROR) # needed for WINDOWS_EXPORT_ALL_SYMBOLS
|
||||
endif()
|
||||
|
||||
# install directories
|
||||
if(NOT CMAKE_INSTALL_PREFIX)
|
||||
message(FATAL_ERROR "ERROR: CMAKE_INSTALL_PREFIX is not defined.")
|
||||
endif()
|
||||
include(FindPkgConfig QUIET)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
# /***********************************************************************
|
||||
# // targets
|
||||
# ************************************************************************/
|
||||
|
||||
file(GLOB lzo_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.c")
|
||||
list(SORT lzo_SOURCES)
|
||||
|
||||
# LZO library
|
||||
if(NOT DEFINED lzo_USE_OBJECT_LIB)
|
||||
if(ENABLE_STATIC AND ENABLE_SHARED)
|
||||
if(CMAKE_POSITION_INDEPENDENT_CODE OR MSVC)
|
||||
# all objects are PIC on this system => can share objects
|
||||
set(lzo_USE_OBJECT_LIB 1)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
set(lzo_COMPILE_TARGETS )
|
||||
if(lzo_USE_OBJECT_LIB)
|
||||
add_library(lzo_object_lib OBJECT ${lzo_SOURCES})
|
||||
list(APPEND lzo_COMPILE_TARGETS lzo_object_lib)
|
||||
set_property(TARGET lzo_object_lib PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
endif()
|
||||
if(ENABLE_STATIC)
|
||||
if(lzo_USE_OBJECT_LIB)
|
||||
add_library(lzo_static_lib STATIC $<TARGET_OBJECTS:lzo_object_lib>)
|
||||
else()
|
||||
add_library(lzo_static_lib STATIC ${lzo_SOURCES})
|
||||
list(APPEND lzo_COMPILE_TARGETS lzo_static_lib)
|
||||
endif()
|
||||
set_target_properties(lzo_static_lib PROPERTIES OUTPUT_NAME lzo2)
|
||||
endif()
|
||||
if(ENABLE_SHARED)
|
||||
if(lzo_USE_OBJECT_LIB)
|
||||
add_library(lzo_shared_lib SHARED $<TARGET_OBJECTS:lzo_object_lib>)
|
||||
else()
|
||||
add_library(lzo_shared_lib SHARED ${lzo_SOURCES})
|
||||
list(APPEND lzo_COMPILE_TARGETS lzo_shared_lib)
|
||||
endif()
|
||||
set_target_properties(lzo_shared_lib PROPERTIES OUTPUT_NAME lzo2)
|
||||
if(ENABLE_STATIC)
|
||||
# avoid name clash between static lzo2.lib and DLL import-lib lzo2.lib
|
||||
set_target_properties(lzo_shared_lib PROPERTIES ARCHIVE_OUTPUT_NAME lzo2_dllimport)
|
||||
endif()
|
||||
set_target_properties(lzo_shared_lib PROPERTIES SOVERSION 2 VERSION 2.0.0) # ABI version is 2.0.0 !
|
||||
set_target_properties(lzo_shared_lib PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||
endif()
|
||||
|
||||
# tests & examples
|
||||
macro(lzo_add_executable t)
|
||||
add_executable(${t} ${ARGN})
|
||||
if(ENABLE_STATIC)
|
||||
target_link_libraries(${t} lzo_static_lib)
|
||||
else()
|
||||
target_link_libraries(${t} lzo_shared_lib)
|
||||
if(DEFINED CMAKE_INSTALL_FULL_LIBDIR)
|
||||
set_target_properties(${t} PROPERTIES INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}")
|
||||
endif()
|
||||
endif()
|
||||
endmacro()
|
||||
# main test driver
|
||||
lzo_add_executable(lzotest lzotest/lzotest.c)
|
||||
# examples
|
||||
lzo_add_executable(dict examples/dict.c)
|
||||
lzo_add_executable(lzopack examples/lzopack.c)
|
||||
lzo_add_executable(overlap examples/overlap.c)
|
||||
lzo_add_executable(precomp examples/precomp.c)
|
||||
lzo_add_executable(precomp2 examples/precomp2.c)
|
||||
lzo_add_executable(simple examples/simple.c)
|
||||
# some boring internal test programs
|
||||
if(0)
|
||||
lzo_add_executable(align tests/align.c)
|
||||
lzo_add_executable(chksum tests/chksum.c)
|
||||
lzo_add_executable(promote tests/promote.c)
|
||||
lzo_add_executable(sizes tests/sizes.c)
|
||||
endif()
|
||||
|
||||
# miniLZO
|
||||
if(1)
|
||||
add_executable(testmini minilzo/testmini.c minilzo/minilzo.c)
|
||||
target_include_directories(testmini PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include/lzo") # needed for "lzoconf.h"
|
||||
endif()
|
||||
|
||||
# /***********************************************************************
|
||||
# // compilation flags
|
||||
# // this section currently mostly matches the Autoconf version
|
||||
# ************************************************************************/
|
||||
|
||||
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||
include_directories("${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
|
||||
include(CheckFunctionExists)
|
||||
include(CheckIncludeFile)
|
||||
include(CheckLibraryExists)
|
||||
include(CheckSymbolExists)
|
||||
include(CheckTypeSize)
|
||||
include(TestBigEndian)
|
||||
|
||||
if(MSVC)
|
||||
# disable silly warnings about using "deprecated" POSIX functions like fopen()
|
||||
add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
|
||||
add_definitions(-D_CRT_NONSTDC_NO_WARNINGS)
|
||||
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
||||
# Checks for header files
|
||||
macro(mfx_check_include_file f var)
|
||||
check_include_file("${f}" "mfx_${var}")
|
||||
if(NOT ",${mfx_${var}}," STREQUAL ",,")
|
||||
add_definitions(-D${var}=1)
|
||||
set(mfx_${var} 1)
|
||||
else()
|
||||
set(mfx_${var} 0)
|
||||
endif()
|
||||
endmacro()
|
||||
# mfx_ACC_CHECK_HEADERS
|
||||
set(l assert.h ctype.h dirent.h errno.h fcntl.h float.h limits.h malloc.h memory.h setjmp.h signal.h stdarg.h stddef.h stdint.h stdio.h stdlib.h string.h strings.h time.h unistd.h utime.h sys/mman.h sys/resource.h sys/stat.h sys/time.h sys/types.h sys/wait.h)
|
||||
foreach(f ${l})
|
||||
string(TOUPPER "${f}" var)
|
||||
string(REGEX REPLACE "[^0-9A-Z_]" "_" var "${var}")
|
||||
mfx_check_include_file("${f}" "HAVE_${var}")
|
||||
endforeach()
|
||||
|
||||
# Checks for typedefs and structures
|
||||
macro(mfx_check_type_size type var)
|
||||
check_type_size("${type}" "mfx_${var}")
|
||||
if("${mfx_${var}}" MATCHES "^[1-9][0-9]*$")
|
||||
add_definitions(-D${var}=${mfx_${var}})
|
||||
else()
|
||||
set(mfx_${var} 0)
|
||||
endif()
|
||||
endmacro()
|
||||
# mfx_ACC_CHECK_SIZEOF + mfx_CHECK_SIZEOF
|
||||
set(l short int long "long long" __int16 __int32 __int64 "void *" size_t ptrdiff_t intmax_t uintmax_t intptr_t uintptr_t float double "long double" dev_t fpos_t mode_t off_t ssize_t time_t)
|
||||
foreach(f ${l})
|
||||
string(TOUPPER "${f}" var)
|
||||
string(REGEX REPLACE " \\*" "_P" var "${var}")
|
||||
string(REGEX REPLACE "[^0-9A-Z_]" "_" var "${var}")
|
||||
mfx_check_type_size("${f}" "SIZEOF_${var}")
|
||||
endforeach()
|
||||
|
||||
# Checks for library functions
|
||||
macro(mfx_check_function_exists func var)
|
||||
check_function_exists("${func}" "mfx_${var}")
|
||||
if(NOT ",${mfx_${var}}," STREQUAL ",,")
|
||||
add_definitions(-D${var}=1)
|
||||
set(mfx_${var} 1)
|
||||
else()
|
||||
set(mfx_${var} 0)
|
||||
endif()
|
||||
endmacro()
|
||||
# mfx_ACC_CHECK_FUNCS
|
||||
set(l access alloca atexit atoi atol chmod chown clock_getcpuclockid clock_getres clock_gettime ctime difftime fstat getenv getpagesize getrusage gettimeofday gmtime isatty localtime longjmp lstat memcmp memcpy memmove memset mkdir mktime mmap mprotect munmap qsort raise rmdir setjmp signal snprintf strcasecmp strchr strdup strerror strftime stricmp strncasecmp strnicmp strrchr strstr time umask utime vsnprintf)
|
||||
foreach(f ${l})
|
||||
string(TOUPPER "${f}" var)
|
||||
string(REGEX REPLACE "[^0-9A-Z_]" "_" var "${var}")
|
||||
mfx_check_function_exists("${f}" "HAVE_${var}")
|
||||
endforeach()
|
||||
|
||||
# mfx_LZO_CHECK_ENDIAN
|
||||
TEST_BIG_ENDIAN(big_endian)
|
||||
if ("${big_endian}" MATCHES "^1$")
|
||||
add_definitions(-DLZO_ABI_BIG_ENDIAN=1)
|
||||
elseif ("${big_endian}" MATCHES "^0$")
|
||||
add_definitions(-DLZO_ABI_LITTLE_ENDIAN=1)
|
||||
else()
|
||||
message(FATAL_ERROR "ERROR: TEST_BIG_ENDIAN failed with result '${big_endian}'.")
|
||||
endif()
|
||||
|
||||
# LZO_HAVE_CONFIG_H
|
||||
add_definitions(-DLZO_CFG_NO_CONFIG_HEADER=1)
|
||||
|
||||
# warnings
|
||||
foreach(t ${lzo_COMPILE_TARGETS})
|
||||
if(CMAKE_C_COMPILER_ID MATCHES "^(Clang|GNU)$")
|
||||
target_compile_options(${t} PRIVATE -Wall -W -Wcast-qual)
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
# /***********************************************************************
|
||||
# // "make test"
|
||||
# ************************************************************************/
|
||||
|
||||
include(CTest)
|
||||
add_test(NAME simple COMMAND simple)
|
||||
add_test(NAME testmini COMMAND testmini)
|
||||
add_test(NAME lzotest-01 COMMAND lzotest -mlzo -n2 -q "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
|
||||
add_test(NAME lzotest-02 COMMAND lzotest -mavail -n10 -q "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
|
||||
add_test(NAME lzotest-03 COMMAND lzotest -mall -n10 -q "${CMAKE_CURRENT_SOURCE_DIR}/include/lzo/lzodefs.h")
|
||||
|
||||
# /***********************************************************************
|
||||
# // "make install"
|
||||
# ************************************************************************/
|
||||
|
||||
if(DEFINED CMAKE_INSTALL_FULL_LIBDIR)
|
||||
|
||||
set(f AUTHORS COPYING NEWS THANKS doc/LZO.FAQ doc/LZO.TXT doc/LZOAPI.TXT)
|
||||
install(FILES ${f} DESTINATION "${CMAKE_INSTALL_FULL_DOCDIR}")
|
||||
|
||||
set(f include/lzo/lzo1.h include/lzo/lzo1a.h include/lzo/lzo1b.h
|
||||
include/lzo/lzo1c.h include/lzo/lzo1f.h include/lzo/lzo1x.h
|
||||
include/lzo/lzo1y.h include/lzo/lzo1z.h include/lzo/lzo2a.h
|
||||
include/lzo/lzo_asm.h include/lzo/lzoconf.h include/lzo/lzodefs.h
|
||||
include/lzo/lzoutil.h
|
||||
)
|
||||
install(FILES ${f} DESTINATION "${CMAKE_INSTALL_FULL_INCLUDEDIR}/lzo")
|
||||
|
||||
if(ENABLE_STATIC)
|
||||
install(TARGETS lzo_static_lib ARCHIVE DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}")
|
||||
endif()
|
||||
if(ENABLE_SHARED)
|
||||
install(TARGETS lzo_shared_lib
|
||||
ARCHIVE DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}"
|
||||
LIBRARY DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}"
|
||||
RUNTIME DESTINATION "${CMAKE_INSTALL_FULL_BINDIR}"
|
||||
)
|
||||
endif()
|
||||
|
||||
if(1)
|
||||
set(f lzopack lzotest simple testmini) # examples
|
||||
install(TARGETS ${f} DESTINATION "${CMAKE_INSTALL_FULL_LIBEXECDIR}/lzo/examples")
|
||||
endif()
|
||||
|
||||
if(PKG_CONFIG_FOUND)
|
||||
configure_file(lzo2.pc.cmakein lzo2.pc @ONLY)
|
||||
#if(EXISTS "${CMAKE_INSTALL_FULL_LIBDIR}/pkgconfig")
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/lzo2.pc" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}/pkgconfig")
|
||||
#endif()
|
||||
endif()
|
||||
|
||||
endif() # CMAKE_INSTALL_FULL_LIBDIR
|
||||
|
||||
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.maint.txt")
|
||||
include("${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.maint.txt")
|
||||
endif()
|
||||
|
||||
# finally print some info about the build-type
|
||||
if(CMAKE_CONFIGURATION_TYPES)
|
||||
message(STATUS "CMAKE_CONFIGURATION_TYPES = ${CMAKE_CONFIGURATION_TYPES}")
|
||||
endif()
|
||||
if(CMAKE_BUILD_TYPE)
|
||||
message(STATUS "CMAKE_BUILD_TYPE = ${CMAKE_BUILD_TYPE}")
|
||||
endif()
|
||||
|
||||
# vim:set ft=cmake ts=4 sw=4 tw=0 et:
|
|
@ -0,0 +1,339 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
|
@ -0,0 +1,3 @@
|
|||
Sorry, no detailed ChangeLog available yet.
|
||||
|
||||
Please see the file NEWS for a list of user visible changes.
|
|
@ -0,0 +1,265 @@
|
|||
Introduction
|
||||
============
|
||||
|
||||
This installation guide is for POSIX (Autoconf) systems.
|
||||
For Win32, Win64, DOS and OS/2 please read the file B/00README.TXT.
|
||||
|
||||
Quick start
|
||||
-----------
|
||||
./configure
|
||||
make
|
||||
make check
|
||||
make test (run a full test)
|
||||
make install (when logged in as root)
|
||||
|
||||
Exotic machines
|
||||
---------------
|
||||
Instead of using Autoconf you may want to adapt the simple build
|
||||
script in B/generic/build.sh.
|
||||
|
||||
Shared libraries
|
||||
----------------
|
||||
LZO uses Libtool so that shared libraries are supported on many
|
||||
systems. If want to build shared libraries type you have to type
|
||||
`./configure --enable-shared' - building shared libraries is not
|
||||
enabled by default.
|
||||
|
||||
Assembler versions
|
||||
------------------
|
||||
On Intel i386 systems, the assembler versions of the decompressors are
|
||||
built and used by default. You can use `./configure --disable-asm' if
|
||||
for some reason they cause compilation problems on your system.
|
||||
|
||||
|
||||
|
||||
[ The standard Autoconf installation instructions follow below. ]
|
||||
|
||||
|
||||
|
||||
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is free documentation; the Free Software Foundation gives
|
||||
unlimited permission to copy, distribute and modify it.
|
||||
|
||||
Basic Installation
|
||||
==================
|
||||
|
||||
These are generic installation instructions.
|
||||
|
||||
The `configure' shell script attempts to guess correct values for
|
||||
various system-dependent variables used during compilation. It uses
|
||||
those values to create a `Makefile' in each directory of the package.
|
||||
It may also create one or more `.h' files containing system-dependent
|
||||
definitions. Finally, it creates a shell script `config.status' that
|
||||
you can run in the future to recreate the current configuration, and a
|
||||
file `config.log' containing compiler output (useful mainly for
|
||||
debugging `configure').
|
||||
|
||||
It can also use an optional file (typically called `config.cache'
|
||||
and enabled with `--cache-file=config.cache' or simply `-C') that saves
|
||||
the results of its tests to speed up reconfiguring. (Caching is
|
||||
disabled by default to prevent problems with accidental use of stale
|
||||
cache files.)
|
||||
|
||||
If you need to do unusual things to compile the package, please try
|
||||
to figure out how `configure' could check whether to do them, and mail
|
||||
diffs or instructions to the address given in the `README' so they can
|
||||
be considered for the next release. If you are using the cache, and at
|
||||
some point `config.cache' contains results you don't want to keep, you
|
||||
may remove or edit it.
|
||||
|
||||
The file `configure.ac' (or `configure.in') is used to create
|
||||
`configure' by a program called `autoconf'. You only need
|
||||
`configure.ac' if you want to change it or regenerate `configure' using
|
||||
a newer version of `autoconf'.
|
||||
|
||||
The simplest way to compile this package is:
|
||||
|
||||
1. `cd' to the directory containing the package's source code and type
|
||||
`./configure' to configure the package for your system. If you're
|
||||
using `csh' on an old version of System V, you might need to type
|
||||
`sh ./configure' instead to prevent `csh' from trying to execute
|
||||
`configure' itself.
|
||||
|
||||
Running `configure' takes awhile. While running, it prints some
|
||||
messages telling which features it is checking for.
|
||||
|
||||
2. Type `make' to compile the package.
|
||||
|
||||
3. Optionally, type `make check' to run any self-tests that come with
|
||||
the package.
|
||||
|
||||
4. Type `make install' to install the programs and any data files and
|
||||
documentation.
|
||||
|
||||
5. You can remove the program binaries and object files from the
|
||||
source code directory by typing `make clean'. To also remove the
|
||||
files that `configure' created (so you can compile the package for
|
||||
a different kind of computer), type `make distclean'. There is
|
||||
also a `make maintainer-clean' target, but that is intended mainly
|
||||
for the package's developers. If you use it, you may have to get
|
||||
all sorts of other programs in order to regenerate files that came
|
||||
with the distribution.
|
||||
|
||||
Compilers and Options
|
||||
=====================
|
||||
|
||||
Some systems require unusual options for compilation or linking that
|
||||
the `configure' script does not know about. Run `./configure --help'
|
||||
for details on some of the pertinent environment variables.
|
||||
|
||||
You can give `configure' initial values for configuration parameters
|
||||
by setting variables in the command line or in the environment. Here
|
||||
is an example:
|
||||
|
||||
./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
|
||||
|
||||
Compiling For Multiple Architectures
|
||||
====================================
|
||||
|
||||
You can compile the package for more than one kind of computer at the
|
||||
same time, by placing the object files for each architecture in their
|
||||
own directory. To do this, you must use a version of `make' that
|
||||
supports the `VPATH' variable, such as GNU `make'. `cd' to the
|
||||
directory where you want the object files and executables to go and run
|
||||
the `configure' script. `configure' automatically checks for the
|
||||
source code in the directory that `configure' is in and in `..'.
|
||||
|
||||
If you have to use a `make' that does not support the `VPATH'
|
||||
variable, you have to compile the package for one architecture at a
|
||||
time in the source code directory. After you have installed the
|
||||
package for one architecture, use `make distclean' before reconfiguring
|
||||
for another architecture.
|
||||
|
||||
Installation Names
|
||||
==================
|
||||
|
||||
By default, `make install' will install the package's files in
|
||||
`/usr/local/bin', `/usr/local/man', etc. You can specify an
|
||||
installation prefix other than `/usr/local' by giving `configure' the
|
||||
option `--prefix=PATH'.
|
||||
|
||||
You can specify separate installation prefixes for
|
||||
architecture-specific files and architecture-independent files. If you
|
||||
give `configure' the option `--exec-prefix=PATH', the package will use
|
||||
PATH as the prefix for installing programs and libraries.
|
||||
Documentation and other data files will still use the regular prefix.
|
||||
|
||||
In addition, if you use an unusual directory layout you can give
|
||||
options like `--bindir=PATH' to specify different values for particular
|
||||
kinds of files. Run `configure --help' for a list of the directories
|
||||
you can set and what kinds of files go in them.
|
||||
|
||||
If the package supports it, you can cause programs to be installed
|
||||
with an extra prefix or suffix on their names by giving `configure' the
|
||||
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
||||
|
||||
Optional Features
|
||||
=================
|
||||
|
||||
Some packages pay attention to `--enable-FEATURE' options to
|
||||
`configure', where FEATURE indicates an optional part of the package.
|
||||
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
||||
is something like `gnu-as' or `x' (for the X Window System). The
|
||||
`README' should mention any `--enable-' and `--with-' options that the
|
||||
package recognizes.
|
||||
|
||||
For packages that use the X Window System, `configure' can usually
|
||||
find the X include and library files automatically, but if it doesn't,
|
||||
you can use the `configure' options `--x-includes=DIR' and
|
||||
`--x-libraries=DIR' to specify their locations.
|
||||
|
||||
Specifying the System Type
|
||||
==========================
|
||||
|
||||
There may be some features `configure' cannot figure out
|
||||
automatically, but needs to determine by the type of machine the package
|
||||
will run on. Usually, assuming the package is built to be run on the
|
||||
_same_ architectures, `configure' can figure that out, but if it prints
|
||||
a message saying it cannot guess the machine type, give it the
|
||||
`--build=TYPE' option. TYPE can either be a short name for the system
|
||||
type, such as `sun4', or a canonical name which has the form:
|
||||
|
||||
CPU-COMPANY-SYSTEM
|
||||
|
||||
where SYSTEM can have one of these forms:
|
||||
|
||||
OS KERNEL-OS
|
||||
|
||||
See the file `config.sub' for the possible values of each field. If
|
||||
`config.sub' isn't included in this package, then this package doesn't
|
||||
need to know the machine type.
|
||||
|
||||
If you are _building_ compiler tools for cross-compiling, you should
|
||||
use the `--target=TYPE' option to select the type of system they will
|
||||
produce code for.
|
||||
|
||||
If you want to _use_ a cross compiler, that generates code for a
|
||||
platform different from the build platform, you should specify the
|
||||
"host" platform (i.e., that on which the generated programs will
|
||||
eventually be run) with `--host=TYPE'.
|
||||
|
||||
Sharing Defaults
|
||||
================
|
||||
|
||||
If you want to set default values for `configure' scripts to share,
|
||||
you can create a site shell script called `config.site' that gives
|
||||
default values for variables like `CC', `cache_file', and `prefix'.
|
||||
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
||||
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
||||
`CONFIG_SITE' environment variable to the location of the site script.
|
||||
A warning: not all `configure' scripts look for a site script.
|
||||
|
||||
Defining Variables
|
||||
==================
|
||||
|
||||
Variables not defined in a site shell script can be set in the
|
||||
environment passed to `configure'. However, some packages may run
|
||||
configure again during the build, and the customized values of these
|
||||
variables may be lost. In order to avoid this problem, you should set
|
||||
them in the `configure' command line, using `VAR=value'. For example:
|
||||
|
||||
./configure CC=/usr/local2/bin/gcc
|
||||
|
||||
will cause the specified gcc to be used as the C compiler (unless it is
|
||||
overridden in the site shell script).
|
||||
|
||||
`configure' Invocation
|
||||
======================
|
||||
|
||||
`configure' recognizes the following options to control how it
|
||||
operates.
|
||||
|
||||
`--help'
|
||||
`-h'
|
||||
Print a summary of the options to `configure', and exit.
|
||||
|
||||
`--version'
|
||||
`-V'
|
||||
Print the version of Autoconf used to generate the `configure'
|
||||
script, and exit.
|
||||
|
||||
`--cache-file=FILE'
|
||||
Enable the cache: use and save the results of the tests in FILE,
|
||||
traditionally `config.cache'. FILE defaults to `/dev/null' to
|
||||
disable caching.
|
||||
|
||||
`--config-cache'
|
||||
`-C'
|
||||
Alias for `--cache-file=config.cache'.
|
||||
|
||||
`--quiet'
|
||||
`--silent'
|
||||
`-q'
|
||||
Do not print messages saying which checks are being made. To
|
||||
suppress all normal output, redirect it to `/dev/null' (any error
|
||||
messages will still be shown).
|
||||
|
||||
`--srcdir=DIR'
|
||||
Look for the package's source code in directory DIR. Usually
|
||||
`configure' can determine that directory automatically.
|
||||
|
||||
`configure' also accepts some other, not widely useful, options. Run
|
||||
`configure --help' for more details.
|
||||
|
|
@ -0,0 +1,198 @@
|
|||
## Process this file with automake to create Makefile.in
|
||||
#
|
||||
# Makefile --- Makefile for building the LZO library
|
||||
#
|
||||
# This file is part of the LZO data compression library.
|
||||
# http://www.oberhumer.com/opensource/lzo/
|
||||
#
|
||||
# Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer
|
||||
# All Rights Reserved.
|
||||
#
|
||||
|
||||
EXTRA_DIST =
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)
|
||||
LDADD = src/liblzo2.la
|
||||
lib_LTLIBRARIES =
|
||||
noinst_PROGRAMS =
|
||||
pkgconfig_DATA = lzo2.pc
|
||||
|
||||
|
||||
##/***********************************************************************
|
||||
##// TOPDIR
|
||||
##************************************************************************/
|
||||
|
||||
doc_DATA = AUTHORS COPYING NEWS THANKS doc/LZO.FAQ doc/LZO.TXT doc/LZOAPI.TXT
|
||||
EXTRA_DIST += BUGS CMakeLists.txt lzo2.pc.cmakein autoconf/shtool
|
||||
|
||||
# hooks for Automake targets
|
||||
dist-hook: dist-hook-1
|
||||
dist-hook-1:
|
||||
cp -pR '$(srcdir)/B/' '$(srcdir)/asm/' '$(srcdir)/doc/' '$(srcdir)/util/' '$(distdir)/'
|
||||
-rm -f $(distdir)/util/*.dat
|
||||
|
||||
check-local: all-am
|
||||
./lzotest/lzotest$(EXEEXT) -mlzo -n2 -q '$(top_srcdir)/COPYING'
|
||||
@echo
|
||||
@echo "===== All checks passed. Type 'make test' for more exhaustive testing. ====="
|
||||
@echo
|
||||
|
||||
# special targets
|
||||
basic-test: all
|
||||
./lzotest/lzotest$(EXEEXT) -mlzo -n2 -q '$(top_srcdir)/COPYING'
|
||||
./tests/align$(EXEEXT)
|
||||
./tests/chksum$(EXEEXT)
|
||||
./examples/simple$(EXEEXT)
|
||||
./minilzo/testmini$(EXEEXT)
|
||||
|
||||
test: all
|
||||
./lzotest/lzotest$(EXEEXT) -mavail -n10 -q '$(top_srcdir)/COPYING'
|
||||
LZOTEST=./lzotest/lzotest$(EXEEXT) $(SHELL) '$(top_srcdir)/util/check.sh' '$(top_srcdir)'
|
||||
./tests/align$(EXEEXT)
|
||||
./tests/chksum$(EXEEXT)
|
||||
./examples/simple$(EXEEXT)
|
||||
./minilzo/testmini$(EXEEXT)
|
||||
@echo
|
||||
@echo "===== All tests passed. Now you are ready to install LZO. ====="
|
||||
@echo
|
||||
|
||||
|
||||
##/***********************************************************************
|
||||
##// SUBDIR include/lzo
|
||||
##************************************************************************/
|
||||
|
||||
pkginclude_HEADERS = \
|
||||
include/lzo/lzo1.h include/lzo/lzo1a.h include/lzo/lzo1b.h \
|
||||
include/lzo/lzo1c.h include/lzo/lzo1f.h include/lzo/lzo1x.h \
|
||||
include/lzo/lzo1y.h include/lzo/lzo1z.h include/lzo/lzo2a.h \
|
||||
include/lzo/lzo_asm.h include/lzo/lzoconf.h include/lzo/lzodefs.h \
|
||||
include/lzo/lzoutil.h
|
||||
|
||||
|
||||
##/***********************************************************************
|
||||
##// SUBDIR src
|
||||
##************************************************************************/
|
||||
|
||||
lib_LTLIBRARIES += src/liblzo2.la
|
||||
|
||||
src_liblzo2_la_LDFLAGS = -version-info 2:0:0 -no-undefined $(AM_LDFLAGS)
|
||||
|
||||
src_liblzo2_la_SOURCES = \
|
||||
src/lzo1.c src/lzo1_99.c src/lzo1a.c src/lzo1a_99.c src/lzo1b_1.c \
|
||||
src/lzo1b_2.c src/lzo1b_3.c src/lzo1b_4.c src/lzo1b_5.c src/lzo1b_6.c \
|
||||
src/lzo1b_7.c src/lzo1b_8.c src/lzo1b_9.c src/lzo1b_99.c src/lzo1b_9x.c \
|
||||
src/lzo1b_cc.c src/lzo1b_d1.c src/lzo1b_d2.c src/lzo1b_rr.c \
|
||||
src/lzo1b_xx.c src/lzo1c_1.c src/lzo1c_2.c src/lzo1c_3.c src/lzo1c_4.c \
|
||||
src/lzo1c_5.c src/lzo1c_6.c src/lzo1c_7.c src/lzo1c_8.c src/lzo1c_9.c \
|
||||
src/lzo1c_99.c src/lzo1c_9x.c src/lzo1c_cc.c src/lzo1c_d1.c \
|
||||
src/lzo1c_d2.c src/lzo1c_rr.c src/lzo1c_xx.c src/lzo1f_1.c \
|
||||
src/lzo1f_9x.c src/lzo1f_d1.c src/lzo1f_d2.c src/lzo1x_1.c \
|
||||
src/lzo1x_1k.c src/lzo1x_1l.c src/lzo1x_1o.c src/lzo1x_9x.c \
|
||||
src/lzo1x_d1.c src/lzo1x_d2.c src/lzo1x_d3.c src/lzo1x_o.c \
|
||||
src/lzo1y_1.c src/lzo1y_9x.c src/lzo1y_d1.c src/lzo1y_d2.c \
|
||||
src/lzo1y_d3.c src/lzo1y_o.c src/lzo1z_9x.c src/lzo1z_d1.c \
|
||||
src/lzo1z_d2.c src/lzo1z_d3.c src/lzo2a_9x.c src/lzo2a_d1.c \
|
||||
src/lzo2a_d2.c src/lzo_crc.c src/lzo_init.c src/lzo_ptr.c \
|
||||
src/lzo_str.c src/lzo_util.c
|
||||
|
||||
EXTRA_DIST += \
|
||||
src/compr1b.h src/compr1c.h src/config1.h src/config1a.h src/config1b.h \
|
||||
src/config1c.h src/config1f.h src/config1x.h src/config1y.h \
|
||||
src/config1z.h src/config2a.h src/lzo1_cm.ch src/lzo1_d.ch \
|
||||
src/lzo1a_cm.ch src/lzo1a_cr.ch src/lzo1a_de.h src/lzo1b_c.ch \
|
||||
src/lzo1b_cc.h src/lzo1b_cm.ch src/lzo1b_cr.ch src/lzo1b_d.ch \
|
||||
src/lzo1b_de.h src/lzo1b_r.ch src/lzo1b_sm.ch src/lzo1b_tm.ch \
|
||||
src/lzo1c_cc.h src/lzo1f_d.ch src/lzo1x_c.ch src/lzo1x_d.ch \
|
||||
src/lzo1x_oo.ch src/lzo2a_d.ch src/lzo_conf.h src/lzo_dict.h \
|
||||
src/lzo_dll.ch src/lzo_func.h src/lzo_mchw.ch src/lzo_ptr.h \
|
||||
src/lzo_supp.h src/lzo_swd.ch src/stats1a.h src/stats1b.h src/stats1c.h
|
||||
|
||||
LZO_ASM_SOURCES_i386_src_gas = \
|
||||
asm/i386/src_gas/lzo1c_s1.S \
|
||||
asm/i386/src_gas/lzo1f_f1.S \
|
||||
asm/i386/src_gas/lzo1x_f1.S \
|
||||
asm/i386/src_gas/lzo1x_s1.S \
|
||||
asm/i386/src_gas/lzo1y_f1.S \
|
||||
asm/i386/src_gas/lzo1y_s1.S
|
||||
LZO_ASM_OBJECTS_i386_obj_elf32 = \
|
||||
asm/i386/obj/elf32/lzo1c_s1.o \
|
||||
asm/i386/obj/elf32/lzo1f_f1.o \
|
||||
asm/i386/obj/elf32/lzo1x_f1.o \
|
||||
asm/i386/obj/elf32/lzo1x_s1.o \
|
||||
asm/i386/obj/elf32/lzo1y_f1.o \
|
||||
asm/i386/obj/elf32/lzo1y_s1.o
|
||||
if LZO_USE_ASM_i386_src_gas
|
||||
LZO_ASM_SOURCES = $(LZO_ASM_SOURCES_i386_src_gas)
|
||||
endif
|
||||
if LZO_USE_ASM_i386_obj_elf32
|
||||
LZO_ASM_OBJECTS = $(LZO_ASM_OBJECTS_i386_obj_elf32)
|
||||
endif
|
||||
nodist_src_liblzo2_la_SOURCES = $(LZO_ASM_SOURCES)
|
||||
src_liblzo2_la_LIBADD = $(LZO_ASM_OBJECTS)
|
||||
|
||||
|
||||
##/***********************************************************************
|
||||
##// SUBDIR examples
|
||||
##************************************************************************/
|
||||
|
||||
noinst_PROGRAMS += examples/dict
|
||||
noinst_PROGRAMS += examples/lzopack
|
||||
noinst_PROGRAMS += examples/overlap
|
||||
noinst_PROGRAMS += examples/precomp
|
||||
noinst_PROGRAMS += examples/precomp2
|
||||
noinst_PROGRAMS += examples/simple
|
||||
|
||||
examples_dict_SOURCES = examples/dict.c
|
||||
examples_lzopack_SOURCES = examples/lzopack.c
|
||||
examples_overlap_SOURCES = examples/overlap.c
|
||||
examples_precomp_SOURCES = examples/precomp.c
|
||||
examples_precomp2_SOURCES = examples/precomp2.c
|
||||
examples_simple_SOURCES = examples/simple.c
|
||||
|
||||
EXTRA_DIST += examples/portab.h examples/portab_a.h
|
||||
|
||||
|
||||
##/***********************************************************************
|
||||
##// SUBDIR lzotest
|
||||
##************************************************************************/
|
||||
|
||||
noinst_PROGRAMS += lzotest/lzotest
|
||||
|
||||
lzotest_lzotest_SOURCES = lzotest/lzotest.c
|
||||
|
||||
EXTRA_DIST += lzotest/asm.h lzotest/db.h lzotest/wrap.h lzotest/wrapmisc.h
|
||||
|
||||
|
||||
##/***********************************************************************
|
||||
##// SUBDIR tests
|
||||
##************************************************************************/
|
||||
|
||||
noinst_PROGRAMS += tests/align
|
||||
noinst_PROGRAMS += tests/chksum
|
||||
noinst_PROGRAMS += tests/promote
|
||||
noinst_PROGRAMS += tests/sizes
|
||||
|
||||
tests_align_SOURCES = tests/align.c
|
||||
tests_chksum_SOURCES = tests/chksum.c
|
||||
tests_promote_SOURCES = tests/promote.c
|
||||
tests_sizes_SOURCES = tests/sizes.c
|
||||
|
||||
tests_promote_LDADD =
|
||||
tests_sizes_LDADD =
|
||||
|
||||
|
||||
##/***********************************************************************
|
||||
##// SUBDIR minilzo
|
||||
##************************************************************************/
|
||||
|
||||
noinst_PROGRAMS += minilzo/testmini
|
||||
|
||||
minilzo_testmini_SOURCES = minilzo/testmini.c minilzo/minilzo.c
|
||||
minilzo_testmini_SHORTNAME = t
|
||||
minilzo_testmini_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
minilzo_testmini_CPPFLAGS += -DMINILZO_HAVE_CONFIG_H=1
|
||||
minilzo_testmini_CPPFLAGS += -I$(top_srcdir)/include/lzo
|
||||
minilzo_testmini_LDADD =
|
||||
|
||||
EXTRA_DIST += minilzo/Makefile.minilzo minilzo/README.LZO minilzo/minilzo.h
|
||||
|
||||
@MAINT@-include $(top_srcdir)/Makefile.maint
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,294 @@
|
|||
============================================================================
|
||||
User visible changes for LZO -- a real-time data compression library
|
||||
============================================================================
|
||||
|
||||
Changes in 2.10 (01 Mar 2017)
|
||||
* Improve CMake build support.
|
||||
* Add support for pkg-config.
|
||||
* Do not redefine "snprintf" so that the examples build with MSVC 2015.
|
||||
* Assorted cleanups.
|
||||
|
||||
Changes in 2.09 (04 Feb 2015)
|
||||
* Work around gcc bug #64516 that could affect architectures like
|
||||
armv4, armv5 and sparc.
|
||||
|
||||
Changes in 2.08 (29 Jun 2014)
|
||||
* Updated the Autoconf scripts to fix some reported build problems.
|
||||
* Added CMake build support.
|
||||
* Fixed lzo_init() on big-endian architectures like Sparc.
|
||||
|
||||
Changes in 2.07 (25 Jun 2014)
|
||||
* Fixed a potential integer overflow condition in the "safe" decompressor
|
||||
variants which could result in a possible buffer overrun when
|
||||
processing maliciously crafted compressed input data.
|
||||
|
||||
Note that this issue only affects 32-bit systems and also can only happen
|
||||
if you use uncommonly huge buffer sizes where you have to decompress more
|
||||
than 16 MiB (> 2^24 bytes) untrusted compressed bytes within a
|
||||
*single* function call, so the practical implications are limited.
|
||||
|
||||
POTENTIAL SECURITY ISSUE. CVE-2014-4607.
|
||||
|
||||
* Removed support for ancient configurations like 16-bit "huge" pointers -
|
||||
LZO now requires a flat 32-bit or 64-bit memory model.
|
||||
* Assorted cleanups.
|
||||
|
||||
Changes in 2.06 (12 Aug 2011)
|
||||
* Some minor optimizations for big-endian architectures.
|
||||
* Fixed overly strict malloc() misalignment check in examples.
|
||||
|
||||
Changes in 2.05 (23 Apr 2011)
|
||||
* Converted the configure system to non-recursive Automake.
|
||||
* Applied some overdue speed optimizations for modern x86/x64 architectures
|
||||
and current compilers like gcc 4.6 and MSVC 2010.
|
||||
|
||||
Changes in 2.04 (31 Oct 2010)
|
||||
* Fixed a gcc-4.5 aliasing issue in lzo_init().
|
||||
* Updated the configure system.
|
||||
* Assorted cleanups.
|
||||
|
||||
Changes in 2.03 (30 Apr 2008)
|
||||
* Updated the ELF assembler sources to mark the stack as non-executable.
|
||||
* Fixed a HP-UX 11 build issue with Itanium in ILP32 mode.
|
||||
* Updated the configure system.
|
||||
|
||||
Changes in 2.02 (17 Oct 2005)
|
||||
* Updated the build and Autoconf scripts to fix some reported
|
||||
compilation problems.
|
||||
|
||||
Changes in 2.01 (27 Jun 2005)
|
||||
* Changed the configure system to install the LZO library under the
|
||||
name "liblzo2" so that parallel installation with LZO v1 is possible.
|
||||
* Improved auto-configuration in miniLZO for some embedded targets like
|
||||
Blackfin and H8/300 processors.
|
||||
|
||||
Changes in 2.00 (30 May 2005)
|
||||
|
||||
[Library interface changes]
|
||||
* The 'lzo_uint' typedef has been changed to match 'size_t', which means
|
||||
it now is 64 bits on most 64-bit architectures. 32-bit machines
|
||||
are not affected by this change.
|
||||
* The formula for maximum expansion of incompressible data has changed.
|
||||
See doc/LZO.FAQ. This is needed for some upcoming speed improvements,
|
||||
and also for compatibility with our commercial LZO Professional product.
|
||||
* The progress indicator callback interface has been revamped.
|
||||
* All public header files now get installed into a "lzo" subdirectory, so
|
||||
your applications should use #include <lzo/lzoXXX.h>.
|
||||
* A number of (internal) macros have been renamed. See LZO_CFG_COMPAT
|
||||
in <lzo/lzoconf.h> if your code depends on these.
|
||||
|
||||
[Speed]
|
||||
* Small overall speedup by exploiting features like branch prediction
|
||||
hints and explicit inline control present in modern C/C++ compilers.
|
||||
* Significant speedup for 64-bit architectures like AMD64.
|
||||
|
||||
[Portability]
|
||||
* LZO now fully supports the LLP64 programming model.
|
||||
* LZO now fully supports the ILP64 and SILP64 programming models which
|
||||
are used on some supercomputing architectures.
|
||||
* Full Win64 support for AMD64 (aka x64) and IA64 (Itanium).
|
||||
* Full 16-bit support for ancient DOS 286 protected mode, OS/2 1.x
|
||||
and Windows 3.x.
|
||||
* The LZO library now compiles and works on completely freestanding or
|
||||
embedded systems as long as you have <limits.h> and <stddef.h> header
|
||||
files. See the B/generic/build_freestanding.sh build script.
|
||||
|
||||
[Misc]
|
||||
* The i386 assembler versions of the decompressors are now automatically
|
||||
built and installed. See also asm/i386/00README.TXT.
|
||||
* Added include file <lzo/lzo_asm.h> that provides prototypes for all
|
||||
assembler functions.
|
||||
* Under MacOS X, the configure script now will use the '-no-cpp-precomp'
|
||||
compiler option in order to work around bugs in some versions of
|
||||
Apple's native "smart" preprocessor.
|
||||
* Worked around a preprocessor bug that is present in all compilers which
|
||||
are based on the lcc compiler kit.
|
||||
* Added simple B/generic/build.sh build script family.
|
||||
* Added lots of new build scripts for various DOS/Windows compilers.
|
||||
|
||||
[Upgrade instructions from LZO v1 to LZO v2]
|
||||
* On 64-bit architectures, revisit all uses of lzo_uint.
|
||||
* Adapt for the maximum expansion change of incompressible data.
|
||||
* If you use the progress callback then adapt for the new interface.
|
||||
* Use #include <lzo/lzoXXX.h> or adjust your include path.
|
||||
* Check your code for use of deprecated macros. Add a
|
||||
#define LZO_CFG_COMPAT if necessary.
|
||||
* Other than that LZO v2 should be fully source-compatible with LZO v1.
|
||||
Of course, the compressed data is fully compatible as well.
|
||||
* Re-compile and re-link your application.
|
||||
* Enjoy the improvements!
|
||||
|
||||
----------------------------------------------------------------------------
|
||||
|
||||
Changes in 1.08 (12 Jul 2002)
|
||||
* Much better support for cross compiling.
|
||||
* Straighten out ANSI-conforming compiler checks.
|
||||
* Avoid harmless compiler warnings reported by -Wcast-align.
|
||||
* Fixed some sign extension problems on rather exotic machines where
|
||||
sizeof(size_t) < sizeof(ptrdiff_t) and sizeof(lzo_uint) == sizeof(size_t)
|
||||
* Updated the configure system to use the latest Autoconf, Automake
|
||||
and Libtool versions.
|
||||
|
||||
Changes in 1.07 (18 Oct 2000)
|
||||
* Default to '--disable-shared' (I'm getting tired of Libtool's
|
||||
shared library build problems, this time AIX was the culprit).
|
||||
* Avoid some harmless compiler warnings.
|
||||
|
||||
Changes in 1.06 (29 Nov 1999)
|
||||
* Updated the configure system to use Autoconf 2.13, Automake 1.4 and
|
||||
Libtool 1.3.3. This should hopefully fix the shared-library build
|
||||
problems that were reported on some machines.
|
||||
* Enhanced example programs a little bit.
|
||||
|
||||
Changes in 1.05 (14 Apr 1998)
|
||||
* Just a one-line change in the configure script to workaround
|
||||
a HPUX and IRIX build problem.
|
||||
|
||||
Changes in 1.04 (15 Mar 1998)
|
||||
* Worked around a bug in the cpp preprocessor under HPUX 10.20.
|
||||
* Adapted for Automake 1.2f and Libtool 1.1.
|
||||
|
||||
Changes in 1.03 (18 Jan 1998)
|
||||
* minor compression ratio improvement
|
||||
* extended example program to show how to do overlapping compression
|
||||
* assembler changes, added support for the nasm assembler
|
||||
* better support for cross compiling
|
||||
* some cleanups
|
||||
|
||||
Changes in 1.02 (07 Dec 1997)
|
||||
* improved LZO1X-999 and LZO1Y-999 compression ratio a little bit again
|
||||
* introduced compression levels for LZO1X-999 and LZO1Y-999
|
||||
* added support for preset dictionaries
|
||||
* implemented LZO1X-1(12): needs 16 KiB for compression
|
||||
* new algorithm LZO1Z: this is another variant of LZO1X
|
||||
* added example program: how to use preset dictionaries
|
||||
* added example program: how to do in-place decompression
|
||||
* added a little file-packer example program
|
||||
* LZO now works cleanly under checkergcc
|
||||
* strict 16-bit memory model is working (but not officially supported)
|
||||
* shared libraries are supported on many platforms
|
||||
* adapted for Automake 1.2d and Libtool 1.0h
|
||||
|
||||
Changes in 1.01 (10 Aug 1997)
|
||||
* improved LZO1X-999 and LZO1Y-999 compression ratio a little bit
|
||||
* i386+gcc: significant speedup of the C version of the LZO1, LZO1A,
|
||||
LZO1B and LZO1C decompressors
|
||||
* added example programs that show how to generate pre-compressed data
|
||||
* added Makefiles for DOS, Windows and OS/2 targets
|
||||
|
||||
Changes in 1.00 (13 Jul 1997)
|
||||
* added miniLZO - can be easily included in your project
|
||||
* improved documentation, added LZO.FAQ
|
||||
* added build scripts for many systems where Autoconf is not available:
|
||||
Windows 3.1 (LIB+DLL), Windows 95/NT (LIB+DLL), DOS (16+32 bit), OS/2
|
||||
* adapted for Automake 1.2 and Libtool 1.0
|
||||
|
||||
Changes in 0.90 (27 Jun 1997): never released
|
||||
* LZO now uses GNU Automake 1.0 - lots of configuration changes
|
||||
* added LZO1X-1(11): this version needs only 8 KiB for compression
|
||||
* implemented LZO1Y-1
|
||||
* added i386 assembler decompressors for MASM/TASM/WASM
|
||||
* the name of some assembler functions changed
|
||||
* the numeric value of some error codes changed
|
||||
* portability fixes
|
||||
|
||||
Changes in 0.29 (04 May 1997)
|
||||
* Linux ELF shared library support
|
||||
* workaround for gcc 2.7.2 optimizer bug under AIX
|
||||
* added lzo_crc32() checksum
|
||||
|
||||
Changes in 0.28 (22 Feb 1997)
|
||||
* new algorithm LZO1Y: LZO1Y-999 and LZO1Y decompressor
|
||||
* added lzo1x_optimize() and lzo1y_optimize()
|
||||
* minor speedup in assembler decompressors (i386+gcc)
|
||||
* ltest.c rewritten
|
||||
|
||||
Changes in 0.27 (19 Jan 1997)
|
||||
* fixed a bug in LZO1B-999 and LZO1C-999 that could produce
|
||||
invalid compressed data in very rare cases
|
||||
|
||||
Changes in 0.26 (18 Jan 1997): never released
|
||||
* implemented LZO1B-999
|
||||
* renamed LZO1D to LZO2A (also updated all docs)
|
||||
* some cleanups
|
||||
|
||||
Changes in 0.25 (28 Dec 1996): never released
|
||||
* some portability fixes (LZO now works on my old Atari ST :-)
|
||||
* adapted for Autoconf 2.12
|
||||
|
||||
Changes in 0.24 (30 Nov 1996): never released
|
||||
* improved performance of LZO1X assembler decompressor on a Pentium (i386+gcc)
|
||||
|
||||
Changes in 0.23 (23 Nov 1996)
|
||||
* added LZO1C, LZO1F and LZO1X decompressors in assembler (i386+gcc)
|
||||
* added corresponding LZO_PUBLIC to all LZO_EXTERN functions
|
||||
* added support for Microsoft C 7.0 (16-bit DOS)
|
||||
* introduced lzo_uint32. This could prove useful for a strict 16-bit
|
||||
version that doesn't use 'huge' pointers.
|
||||
* all algorithms use incremental hashing now
|
||||
* some cleanups and portability fixes
|
||||
|
||||
Changes in 0.22 (19 Sep 1996)
|
||||
* LZO1X: minor decompressor speedup, added some checks in safe decompressor
|
||||
* Autoconf: added detection of gcc strength-reduction bug
|
||||
* Makefile changes
|
||||
|
||||
Changes in 0.21 (08 Sep 1996)
|
||||
* LZO now uses GNU Autoconf 2.10 - lots of configuration changes
|
||||
* a few cosmetical changes
|
||||
|
||||
Changes in 0.20 (11 Aug 1996)
|
||||
* new algorithm LZO1X: LZO1X-1, LZO1X-999 and LZO1X decompressor
|
||||
* significantly speeded up LZO1B, LZO1C and LZO1F decompressors
|
||||
on CPUs which allow unaligned memory access (e.g. Intel i386)
|
||||
* greatly speeded up LZO2A-999 compressor at the cost of some memory
|
||||
* some cleanups, portability fixes and minor speedups
|
||||
|
||||
Changes in 0.16 (22 Jul 1996)
|
||||
* speeded up LZO1F decompressor a little bit
|
||||
* improved LZO1F-999 compression ratio
|
||||
|
||||
Changes in 0.15 (10 Jul 1996)
|
||||
* new algorithm LZO1F: LZO1F-1, LZO1F-999 and LZO1F decompressor
|
||||
* improved LZO2A-999 compression ratio
|
||||
* removed LZO1E as it is dominated by LZO1F
|
||||
|
||||
Changes in 0.14 (06 Jul 1996): never released
|
||||
* experimental algorithms: LZO1E and LZO1F
|
||||
* added LZO_EXTERN to all prototypes. Useful when building a DLL.
|
||||
* improved LZO1C-999 and LZO2A-999 compression ratio a little bit
|
||||
* fixed progress indicator callback (it was called only once)
|
||||
|
||||
Changes in 0.13 (20 Jun 1996)
|
||||
* some speed improvements in LZO1C-999 and LZO2A-999
|
||||
|
||||
Changes in 0.12 (18 Jun 1996): never released
|
||||
* added LZO1C-999, a slow but nearly optimal compressor
|
||||
intended for generating pre-compressed data
|
||||
* added tests for lookbehind-overrun in all safe decompressors
|
||||
* source tree completely rearranged, some filenames changed
|
||||
* extensions changed: a .ch file is a C source code that is included
|
||||
for reasons of code sharing
|
||||
* new algorithm LZO2A: LZO2A-999 and LZO2A decompressor. There is
|
||||
no fast compressor yet.
|
||||
* some cleanups
|
||||
|
||||
Changes in 0.11 (29 May 1996)
|
||||
* source tree rearranged
|
||||
* LZO now compiles fine as a C++ library (interface still has C linkage)
|
||||
* improved overall compression ratio a little bit
|
||||
* LZO1B-99/LZO1C-99 now search for longer matches
|
||||
* incremental hash is working, it's a little bit faster
|
||||
* Makefile changed
|
||||
* added lzo_uint and lzo_sizeof in some places
|
||||
* split LZO1B compressor into even more include-files
|
||||
|
||||
Changes in 0.10 (20 May 1996): first public release of the LZO library
|
||||
* includes LZO1, LZO1A, LZO1B and LZO1C algorithms
|
||||
(compression levels 1-9 and 99)
|
||||
|
||||
14 Mar 1996:
|
||||
* public release of the LZO1A algorithm
|
||||
|
||||
04 Mar 1996:
|
||||
* public release of the LZO1 algorithm
|
|
@ -0,0 +1,32 @@
|
|||
============================================================================
|
||||
LZO -- a real-time data compression library
|
||||
============================================================================
|
||||
|
||||
Please read the file doc/LZO.TXT for an introduction to LZO.
|
||||
See the file doc/LZO.FAQ for various tidbits of information.
|
||||
|
||||
See the file NEWS for a list of major changes in the current release.
|
||||
|
||||
See the file INSTALL for compilation and installation instructions.
|
||||
|
||||
For a quick start how to use LZO look at examples/lzopack.c.
|
||||
|
||||
|
||||
Directory overview:
|
||||
-------------------
|
||||
autoconf Autoconf configuration files (UNIX specific)
|
||||
B various support files for DOS, Windows, OS/2, ...
|
||||
doc documentation
|
||||
examples example programs
|
||||
include public header files
|
||||
minilzo a lightweight subset for easy inclusion in your project
|
||||
src library source
|
||||
tests more or less exotic test programs
|
||||
util some utility scripts
|
||||
|
||||
|
||||
Have fun,
|
||||
Markus
|
||||
|
||||
http://www.oberhumer.com/opensource/lzo/
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
I want to thank the following people for giving feedback, doing
|
||||
beta-testing or helping me some other way:
|
||||
|
||||
Charles W. Sandmann <sandmann@clio.rice.edu>
|
||||
Frank Donahoe <fdonahoe@wilkes1.wilkes.edu>
|
||||
Holger Berger <Holger.Berger@rus.uni-stuttgart.de>
|
||||
Jean-loup Gailly <jloup@gzip.org>
|
||||
Laszlo Molnar <ml1050@freemail.c3.hu>
|
||||
Mark Adler <madler@alumni.caltech.edu>
|
||||
Paul D. Eccles <pde@sd.inri.com>
|
||||
Rodolphe Ortalo <ortalo@laas.fr>
|
||||
William Magro <wmagro@TC.Cornell.EDU>
|
||||
Wolfgang Lugmayr <W.Lugmayr@infosys.tuwien.ac.at>
|
||||
Natascha
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,45 @@
|
|||
|
||||
Directory overview:
|
||||
===================
|
||||
|
||||
As writing portable assembler sources supporting different operating
|
||||
systems, compilers and assemblers has proven to be extremely painful,
|
||||
the assembler sources have been converted into a more portable 'db'
|
||||
format. Use these whenever possible.
|
||||
|
||||
src_gas sources converted for portable gcc/gas syntax
|
||||
src_masm sources converted for portable masm/tasm/wasm syntax
|
||||
src_nasm sources converted for portable nasm syntax
|
||||
|
||||
src assembler sources (you need the OpenSource nasm assembler)
|
||||
|
||||
obj pre-assembled object files
|
||||
|
||||
Also look 'src_XXX/all/asm_all.asm' which contains all assembler
|
||||
functions conveniently arranged into a single file.
|
||||
|
||||
|
||||
Notes:
|
||||
======
|
||||
|
||||
- The assembler sources are designed for a flat 32-bit memory model
|
||||
running in protected mode - they should work with all i386
|
||||
32-bit compilers around.
|
||||
|
||||
- All functions expect a 'cdecl' (C stack based) calling convention.
|
||||
The function return value will be placed into 'eax'.
|
||||
All other registers are preserved.
|
||||
|
||||
- Prototypes for the assembler functions can be found in <lzo/lzo_asm.h>.
|
||||
|
||||
- For reasons of speed all fast assembler decompressors (having '_fast'
|
||||
in their name) can access (write to) up to 3 bytes past the end of
|
||||
the decompressed (output) block. Data past the end of the compressed
|
||||
(input) block is never accessed (read from).
|
||||
[ technical note: because data is transferred in 32-bit units ]
|
||||
|
||||
- Finally you should test if the assembler versions are actually faster
|
||||
than the C version on your machine - some compilers can do a very good
|
||||
optimization job, and they also can optimize the code for a specific
|
||||
processor type.
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,74 @@
|
|||
/* enter.ash -- LZO assembler stuff
|
||||
|
||||
This file is part of the LZO real-time data compression library.
|
||||
|
||||
Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer
|
||||
All Rights Reserved.
|
||||
|
||||
The LZO library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License as
|
||||
published by the Free Software Foundation; either version 2 of
|
||||
the License, or (at your option) any later version.
|
||||
|
||||
The LZO library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with the LZO library; see the file COPYING.
|
||||
If not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
Markus F.X.J. Oberhumer
|
||||
<markus@oberhumer.com>
|
||||
http://www.oberhumer.com/opensource/lzo/
|
||||
*/
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
//
|
||||
************************************************************************/
|
||||
|
||||
pushl %ebp
|
||||
pushl %edi
|
||||
pushl %esi
|
||||
pushl %ebx
|
||||
pushl %ecx
|
||||
pushl %edx
|
||||
subl $12,%esp
|
||||
|
||||
cld
|
||||
|
||||
movl INP,%esi
|
||||
movl OUTP,%edi
|
||||
#if defined(N_3_EBP)
|
||||
movl $3,%ebp
|
||||
#endif
|
||||
#if defined(N_255_EBP)
|
||||
movl $255,%ebp
|
||||
#endif
|
||||
|
||||
#if defined(LZO_TEST_DECOMPRESS_OVERRUN_INPUT)
|
||||
#if defined(INIT_OVERRUN)
|
||||
INIT_OVERRUN
|
||||
# undef INIT_OVERRUN
|
||||
#endif
|
||||
leal -3(%esi),%eax /* 3 == length of EOF code */
|
||||
addl INS,%eax
|
||||
movl %eax,INEND
|
||||
#endif
|
||||
|
||||
#if defined(LZO_TEST_DECOMPRESS_OVERRUN_OUTPUT)
|
||||
#if defined(INIT_OVERRUN)
|
||||
INIT_OVERRUN
|
||||
# undef INIT_OVERRUN
|
||||
#endif
|
||||
movl %edi,%eax
|
||||
movl OUTS,%edx
|
||||
addl (%edx),%eax
|
||||
movl %eax,OUTEND
|
||||
#endif
|
||||
|
||||
|
||||
/* vim:set ts=4 sw=4 et: */
|
|
@ -0,0 +1,99 @@
|
|||
/* leave.ash -- LZO assembler stuff
|
||||
|
||||
This file is part of the LZO real-time data compression library.
|
||||
|
||||
Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer
|
||||
All Rights Reserved.
|
||||
|
||||
The LZO library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License as
|
||||
published by the Free Software Foundation; either version 2 of
|
||||
the License, or (at your option) any later version.
|
||||
|
||||
The LZO library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with the LZO library; see the file COPYING.
|
||||
If not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
Markus F.X.J. Oberhumer
|
||||
<markus@oberhumer.com>
|
||||
http://www.oberhumer.com/opensource/lzo/
|
||||
*/
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
//
|
||||
************************************************************************/
|
||||
|
||||
/* check uncompressed size */
|
||||
#if defined(LZO_TEST_DECOMPRESS_OVERRUN_OUTPUT)
|
||||
cmpl OUTEND,%edi
|
||||
ja .L_output_overrun
|
||||
#endif
|
||||
|
||||
/* check compressed size */
|
||||
movl INP,%edx
|
||||
addl INS,%edx
|
||||
cmpl %edx,%esi /* check compressed size */
|
||||
ja .L_input_overrun
|
||||
jb .L_input_not_consumed
|
||||
|
||||
.L_leave:
|
||||
subl OUTP,%edi /* write back the uncompressed size */
|
||||
movl OUTS,%edx
|
||||
movl %edi,(%edx)
|
||||
|
||||
negl %eax
|
||||
addl $12,%esp
|
||||
popl %edx
|
||||
popl %ecx
|
||||
popl %ebx
|
||||
popl %esi
|
||||
popl %edi
|
||||
popl %ebp
|
||||
#if 1
|
||||
ret
|
||||
#else
|
||||
jmp .L_end
|
||||
#endif
|
||||
|
||||
|
||||
.L_error:
|
||||
movl $1,%eax /* LZO_E_ERROR */
|
||||
jmp .L_leave
|
||||
|
||||
.L_input_not_consumed:
|
||||
movl $8,%eax /* LZO_E_INPUT_NOT_CONSUMED */
|
||||
jmp .L_leave
|
||||
|
||||
.L_input_overrun:
|
||||
movl $4,%eax /* LZO_E_INPUT_OVERRUN */
|
||||
jmp .L_leave
|
||||
|
||||
#if defined(LZO_TEST_DECOMPRESS_OVERRUN_OUTPUT)
|
||||
.L_output_overrun:
|
||||
movl $5,%eax /* LZO_E_OUTPUT_OVERRUN */
|
||||
jmp .L_leave
|
||||
#endif
|
||||
|
||||
#if defined(LZO_TEST_DECOMPRESS_OVERRUN_LOOKBEHIND)
|
||||
.L_lookbehind_overrun:
|
||||
movl $6,%eax /* LZO_E_LOOKBEHIND_OVERRUN */
|
||||
jmp .L_leave
|
||||
#endif
|
||||
|
||||
#if defined(LZO_DEBUG)
|
||||
.L_assert_fail:
|
||||
movl $99,%eax
|
||||
jmp .L_leave
|
||||
#endif
|
||||
|
||||
.L_end:
|
||||
|
||||
|
||||
/* vim:set ts=4 sw=4 et: */
|
|
@ -0,0 +1,169 @@
|
|||
/* lzo1c_d.ash -- assembler implementation of the LZO1C decompression algorithm
|
||||
|
||||
This file is part of the LZO real-time data compression library.
|
||||
|
||||
Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer
|
||||
All Rights Reserved.
|
||||
|
||||
The LZO library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License as
|
||||
published by the Free Software Foundation; either version 2 of
|
||||
the License, or (at your option) any later version.
|
||||
|
||||
The LZO library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with the LZO library; see the file COPYING.
|
||||
If not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
Markus F.X.J. Oberhumer
|
||||
<markus@oberhumer.com>
|
||||
http://www.oberhumer.com/opensource/lzo/
|
||||
*/
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
//
|
||||
************************************************************************/
|
||||
|
||||
ALIGN3
|
||||
.L1:
|
||||
xorl %eax,%eax
|
||||
movb (%esi),%al
|
||||
incl %esi
|
||||
cmpb $32,%al
|
||||
jnb .LMATCH
|
||||
|
||||
orb %al,%al
|
||||
jz .L12
|
||||
movl %eax,%ecx
|
||||
.LIT:
|
||||
TEST_OP((%edi,%ecx),%ebx)
|
||||
TEST_IP((%esi,%ecx),%ebx)
|
||||
rep
|
||||
movsb
|
||||
.LM1:
|
||||
movb (%esi),%al
|
||||
incl %esi
|
||||
|
||||
cmpb $32,%al
|
||||
jb .LM2
|
||||
.LMATCH:
|
||||
cmpb $64,%al
|
||||
jb .LN3
|
||||
|
||||
movl %eax,%ecx
|
||||
andb $31,%al
|
||||
leal -1(%edi),%edx
|
||||
shrl $5,%ecx
|
||||
subl %eax,%edx
|
||||
movb (%esi),%al
|
||||
incl %esi
|
||||
|
||||
shll $5,%eax
|
||||
subl %eax,%edx
|
||||
incl %ecx
|
||||
xchgl %esi,%edx
|
||||
TEST_LOOKBEHIND(%esi)
|
||||
TEST_OP((%edi,%ecx),%ebx)
|
||||
rep
|
||||
movsb
|
||||
movl %edx,%esi
|
||||
jmp .L1
|
||||
|
||||
ALIGN3
|
||||
.L12:
|
||||
LODSB
|
||||
leal 32(%eax),%ecx
|
||||
cmpb $248,%al
|
||||
jb .LIT
|
||||
|
||||
movl $280,%ecx
|
||||
subb $248,%al
|
||||
jz .L11
|
||||
xchgl %eax,%ecx
|
||||
xorb %al,%al
|
||||
shll %cl,%eax
|
||||
xchgl %eax,%ecx
|
||||
.L11:
|
||||
TEST_OP((%edi,%ecx),%ebx)
|
||||
TEST_IP((%esi,%ecx),%ebx)
|
||||
rep
|
||||
movsb
|
||||
jmp .L1
|
||||
|
||||
ALIGN3
|
||||
.LM2:
|
||||
leal -1(%edi),%edx
|
||||
subl %eax,%edx
|
||||
LODSB
|
||||
shll $5,%eax
|
||||
subl %eax,%edx
|
||||
xchgl %esi,%edx
|
||||
TEST_LOOKBEHIND(%esi)
|
||||
TEST_OP(4(%edi),%ebx)
|
||||
movsb
|
||||
movsb
|
||||
movsb
|
||||
movl %edx,%esi
|
||||
movsb
|
||||
xorl %eax,%eax
|
||||
jmp .LM1
|
||||
.LN3:
|
||||
andb $31,%al
|
||||
movl %eax,%ecx
|
||||
jnz .LN6
|
||||
movb $31,%cl
|
||||
.LN4:
|
||||
LODSB
|
||||
orb %al,%al
|
||||
jnz .LN5
|
||||
addl N_255,%ecx
|
||||
jmp .LN4
|
||||
|
||||
ALIGN3
|
||||
.LN5:
|
||||
addl %eax,%ecx
|
||||
.LN6:
|
||||
movb (%esi),%al
|
||||
incl %esi
|
||||
|
||||
movl %eax,%ebx
|
||||
andb $63,%al
|
||||
movl %edi,%edx
|
||||
subl %eax,%edx
|
||||
|
||||
movb (%esi),%al
|
||||
incl %esi
|
||||
|
||||
shll $6,%eax
|
||||
subl %eax,%edx
|
||||
cmpl %edi,%edx
|
||||
jz .LEOF
|
||||
|
||||
xchgl %edx,%esi
|
||||
leal 3(%ecx),%ecx
|
||||
TEST_LOOKBEHIND(%esi)
|
||||
TEST_OP((%edi,%ecx),%eax)
|
||||
rep
|
||||
movsb
|
||||
|
||||
movl %edx,%esi
|
||||
xorl %eax,%eax
|
||||
shrl $6,%ebx
|
||||
movl %ebx,%ecx
|
||||
jnz .LIT
|
||||
jmp .L1
|
||||
|
||||
.LEOF:
|
||||
/**** xorl %eax,%eax eax=0 from above */
|
||||
|
||||
cmpl $1,%ecx /* ecx must be 1 */
|
||||
setnz %al
|
||||
|
||||
|
||||
/* vim:set ts=4 sw=4 et: */
|
|
@ -0,0 +1,46 @@
|
|||
/* lzo1c_s1.S -- LZO1C decompression in assembler (i386 + gcc)
|
||||
|
||||
This file is part of the LZO real-time data compression library.
|
||||
|
||||
Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer
|
||||
All Rights Reserved.
|
||||
|
||||
The LZO library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License as
|
||||
published by the Free Software Foundation; either version 2 of
|
||||
the License, or (at your option) any later version.
|
||||
|
||||
The LZO library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with the LZO library; see the file COPYING.
|
||||
If not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
Markus F.X.J. Oberhumer
|
||||
<markus@oberhumer.com>
|
||||
http://www.oberhumer.com/opensource/lzo/
|
||||
*/
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
//
|
||||
************************************************************************/
|
||||
|
||||
#include "lzo_asm.h"
|
||||
|
||||
.text
|
||||
|
||||
LZO_PUBLIC(lzo1c_decompress_asm)
|
||||
|
||||
#include "enter.ash"
|
||||
#include "lzo1c_d.ash"
|
||||
#include "leave.ash"
|
||||
|
||||
LZO_PUBLIC_END(lzo1c_decompress_asm)
|
||||
|
||||
|
||||
/* vim:set ts=4 sw=4 et: */
|
|
@ -0,0 +1,161 @@
|
|||
/* lzo1f_d.ash -- assembler implementation of the LZO1F decompression algorithm
|
||||
|
||||
This file is part of the LZO real-time data compression library.
|
||||
|
||||
Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer
|
||||
All Rights Reserved.
|
||||
|
||||
The LZO library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License as
|
||||
published by the Free Software Foundation; either version 2 of
|
||||
the License, or (at your option) any later version.
|
||||
|
||||
The LZO library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with the LZO library; see the file COPYING.
|
||||
If not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
Markus F.X.J. Oberhumer
|
||||
<markus@oberhumer.com>
|
||||
http://www.oberhumer.com/opensource/lzo/
|
||||
*/
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
//
|
||||
************************************************************************/
|
||||
|
||||
ALIGN3
|
||||
.L0:
|
||||
xorl %eax,%eax
|
||||
movb (%esi),%al
|
||||
incl %esi
|
||||
cmpb $31,%al
|
||||
ja .LM2
|
||||
|
||||
orb %al,%al
|
||||
movl %eax,%ecx
|
||||
jnz .L2
|
||||
1:
|
||||
LODSB
|
||||
orb %al,%al
|
||||
jnz 2f
|
||||
addl N_255,%ecx
|
||||
jmp 1b
|
||||
2:
|
||||
lea 31(%eax,%ecx),%ecx
|
||||
.L2:
|
||||
TEST_OP((%edi,%ecx),%ebx)
|
||||
TEST_IP((%esi,%ecx),%ebx)
|
||||
movb %cl,%al
|
||||
shrl $2,%ecx
|
||||
rep
|
||||
movsl
|
||||
andb $3,%al
|
||||
jz 1f
|
||||
movl (%esi),%ebx
|
||||
addl %eax,%esi
|
||||
movl %ebx,(%edi)
|
||||
addl %eax,%edi
|
||||
1:
|
||||
movb (%esi),%al
|
||||
incl %esi
|
||||
.LM1:
|
||||
cmpb $31,%al
|
||||
jbe .LM21
|
||||
|
||||
.LM2:
|
||||
cmpb $223,%al
|
||||
ja .LM3
|
||||
|
||||
movl %eax,%ecx
|
||||
shrl $2,%eax
|
||||
lea -1(%edi),%edx
|
||||
andb $7,%al
|
||||
shrl $5,%ecx
|
||||
movl %eax,%ebx
|
||||
|
||||
movb (%esi),%al
|
||||
leal (%ebx,%eax,8),%eax
|
||||
incl %esi
|
||||
.LM5:
|
||||
subl %eax,%edx
|
||||
addl $2,%ecx
|
||||
xchgl %edx,%esi
|
||||
TEST_LOOKBEHIND(%esi)
|
||||
TEST_OP((%edi,%ecx),%ebx)
|
||||
cmpl $6,%ecx
|
||||
jb 1f
|
||||
cmpl $4,%eax
|
||||
jb 1f
|
||||
movb %cl,%al
|
||||
shrl $2,%ecx
|
||||
rep
|
||||
movsl
|
||||
andb $3,%al
|
||||
movb %al,%cl
|
||||
1:
|
||||
rep
|
||||
movsb
|
||||
movl %edx,%esi
|
||||
.LN1:
|
||||
movb -2(%esi),%cl
|
||||
andl $3,%ecx
|
||||
jz .L0
|
||||
movl (%esi),%eax
|
||||
addl %ecx,%esi
|
||||
movl %eax,(%edi)
|
||||
addl %ecx,%edi
|
||||
xorl %eax,%eax
|
||||
movb (%esi),%al
|
||||
incl %esi
|
||||
jmp .LM1
|
||||
.LM21:
|
||||
TEST_OP(3(%edi),%edx)
|
||||
shrl $2,%eax
|
||||
leal -0x801(%edi),%edx
|
||||
movl %eax,%ecx
|
||||
movb (%esi),%al
|
||||
incl %esi
|
||||
leal (%ecx,%eax,8),%eax
|
||||
subl %eax,%edx
|
||||
TEST_LOOKBEHIND(%edx)
|
||||
movl (%edx),%eax
|
||||
movl %eax,(%edi)
|
||||
addl $3,%edi
|
||||
jmp .LN1
|
||||
1:
|
||||
LODSB
|
||||
orb %al,%al
|
||||
jnz 2f
|
||||
addl N_255,%ecx
|
||||
jmp 1b
|
||||
2:
|
||||
lea 31(%eax,%ecx),%ecx
|
||||
jmp .LM4
|
||||
|
||||
ALIGN3
|
||||
.LM3:
|
||||
andb $31,%al
|
||||
movl %eax,%ecx
|
||||
jz 1b
|
||||
.LM4:
|
||||
movl %edi,%edx
|
||||
movw (%esi),%ax
|
||||
addl $2,%esi
|
||||
shrl $2,%eax
|
||||
jnz .LM5
|
||||
|
||||
.LEOF:
|
||||
/**** xorl %eax,%eax eax=0 from above */
|
||||
|
||||
cmpl $1,%ecx /* ecx must be 1 */
|
||||
setnz %al
|
||||
|
||||
|
||||
/* vim:set ts=4 sw=4 et: */
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue