Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Rebase onto 1.3 #42

Open
wants to merge 88 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
41fda48
Change version number on develop branch to 1.2.13.1.
madler Oct 15, 2022
76820e4
Update broken article link in README.
madler Nov 8, 2022
e554695
Fix bug in deflateBound() for level 0 and memLevel 9.
madler Dec 15, 2022
02a6049
Fix crash when gzsetparams() attempted for transparent write.
madler Dec 27, 2022
a9b4c1d
Update zlib_how.html to match the web page, and add a license.
madler Jan 25, 2023
fa8cd50
Make z_size_t 64 bits when compiling on Windows with Z_SOLO.
madler Jan 26, 2023
12b345c
Assure that inflatePrime() can't shift a 32-bit integer by 32 bits.
madler Feb 17, 2023
eb0e038
Rewrite of zran in examples. See version history in zran.c.
madler Feb 19, 2023
7e6dc42
Add a NOPRIME #define to zran.c to not use inflatePrime().
madler Apr 13, 2023
5799c14
Turn off C2X warning about deprecated K&R function syntax.
madler Apr 14, 2023
e9d5486
Remove K&R function definitions from zlib.
madler Apr 14, 2023
c4aa356
Remove K&R function definitions from infback9.
madler Apr 15, 2023
bf2578b
Remove K&R function definitions from contrib/minizip.
madler Apr 15, 2023
6658868
Remove use of OF() from contrib/untgz and render it compilable.
madler Apr 15, 2023
9b962a4
No include file is needed for __int64 type on Windows.
madler Apr 17, 2023
05527a1
Fix cast in minizip's ioapi.c for Windows.
madler Apr 17, 2023
3365464
Fix warnings on test/infcover.c.
madler Apr 18, 2023
b8a8373
Fix test/example.c to work with FORCE_STORED.
madler Apr 18, 2023
904016e
Update Java and Perl links in README.
madler May 1, 2023
48c3741
Remove duplicate "the" in zlib.h.
pmqs May 1, 2023
263a982
Correct comment in zlib.h on os setting in gzip header.
madler May 17, 2023
a88f727
Document in zlib.h the initialization of stream fields by the Init
madler Jul 10, 2023
a566e15
Avoid compiler complaints if _TIME_BITS defined when building zlib.
madler Jul 30, 2023
f209ca7
minizip: Fix being unable to open empty zip file
RedworkDE Feb 15, 2023
7b28ecc
Remove duplicated code #806
gvollant Jul 29, 2023
e0bd0ad
Fix reading disk number start on zip64 files in minizip.
madler Jul 30, 2023
379bbda
Fix typos found by codespell in minizip
DimitriPapadopoulos Feb 2, 2023
3061e50
Fix logic error in minizip argument processing.
madler Jul 30, 2023
dcd0d86
Match sign of printf directive to sign of argument in minizip.
madler Jul 30, 2023
b3f23f7
Match sign of printf directive to sign of argument in testzlib.
madler Jul 30, 2023
f679a93
Correct dummy filetime() prototype in minizip.c.
xiaoxiang781216 Sep 8, 2022
aa154e3
Support Haiku in minizip.
gvollant Jul 29, 2023
be7aa11
Read multiple bytes instead of byte-by-byte in minizip unzip.c.
eugenegff Aug 3, 2023
2bcc748
Add minizip testing to Makefile.
madler Aug 3, 2023
c7ddcc2
Fix some spelling errors.
DimitriPapadopoulos Feb 2, 2023
7dd6aa7
Fix bug when gzungetc() is used immediately after gzopen().
madler Aug 11, 2023
1411cca
Add memory sanitizer to configure (--memory).
madler Aug 12, 2023
981ee75
Suppress MSAN detections in deflate's slide_hash().
ahunt Jun 4, 2021
c97a8f1
Replace gcc-9 with gcc-11 for macOS testing.
DimitriPapadopoulos Aug 6, 2023
384e50e
Remove TRYFREE macro from minizip.
madler Aug 14, 2023
89ef46b
Remove redundant includes in minizip.
madler Aug 14, 2023
6951bc6
Fix typos in contrib/ada.
DimitriPapadopoulos Aug 6, 2023
d982514
Fix bug when using gzflush() with a very small buffer.
madler Aug 15, 2023
d524e2a
zlib now uses ANSI C function prototypes, so zlib2ansi not needed.
madler Aug 17, 2023
efc9c7b
Add license to contrib/untgz.
bgermann Nov 14, 2022
5f52b25
Move load flags before object file in Makefile.in for Z/OS.
madler Aug 17, 2023
22fc208
Clarify requirement in zlib.h to avoid multiple flush markers.
madler Aug 17, 2023
9889e98
Avoid cmake deprecation warning.
bmarques1995 Mar 14, 2023
daf27ae
Look for a cross-compile libtool first in configure.
Un1q32 Mar 5, 2023
f5ae600
Revert flipping of load flags in Makefile.in for z/OS.
madler Aug 18, 2023
e13289e
Fix typo in preceding reversion commit.
madler Aug 18, 2023
25bbd7f
Avoid uninitialized and unused warnings in contrib/minizip.
madler Aug 18, 2023
899ffef
Use original make and options when Makefile runs make.
madler Aug 18, 2023
09155ea
zlib 1.3
madler Aug 18, 2023
a8f595e
For x86, add CPUID check.
jtkukunas Sep 16, 2013
3e8e158
zutil.h: add zlikely/zunlikely macros
jtkukunas Jun 21, 2018
e35d424
zutil.h: add zalign macro
jtkukunas Jun 21, 2018
7eb121b
enable 16-bit longest_match for x86
jtkukunas Nov 6, 2017
b7d7c93
Add preprocessor define to tune Adler32 loop unrolling.
jtkukunas Jul 17, 2013
20cfcbe
Adds SSE2 optimized slide_hash
jtkukunas Jun 21, 2018
e19607b
adds SSE4.2 optimized hash function
jtkukunas Jun 21, 2018
cee371c
add PCLMULQDQ optimized CRC folding
jtkukunas Jul 11, 2013
65b5b63
crc_folding: Fix potential out-of-bounds access
NicolasT Mar 3, 2016
e35b500
crc_folding: use temp buffer for partial stores
jtkukunas Dec 8, 2016
ec458a3
deflate: add new deflate_quick strategy for level 1
jtkukunas Jun 21, 2018
30c425d
deflate.c fix for window bits > 13
Apr 17, 2016
960eb54
deflate: add new deflate_medium strategy
jtkukunas Dec 8, 2016
e272cef
deflate: avoid use of uninitialized variable
nathankidd May 22, 2014
1307fa5
check whether match or orig go too far back
jtkukunas May 27, 2014
7d2cf54
Include wmmintrin.h in configure test and crc_folding.c aid clang com…
mp15 Jun 10, 2014
bd7ddb9
Reorganize inflate window layout
jtkukunas Dec 1, 2016
e187440
in the case of overlap copy mempcy dist bytes then byte by byte for a…
Nov 21, 2013
3e6deab
Add Intel's optimized RTE memcpy
Dec 8, 2016
e2737e2
integrate Intel's RTE memcpy with zmemcpy
Dec 8, 2016
468ea13
infcover: remove OoM test for SetDictionary since we don't lazy alloc
jtkukunas Dec 5, 2016
0087e7a
update gitignore
jtkukunas Oct 5, 2018
6196de0
reorganize longest_match
jtkukunas Oct 5, 2018
c32ad24
add zalways_inline for msvc and gcc
jtkukunas Oct 10, 2018
a0b9f7c
force inline std2_longest_match
jtkukunas Oct 10, 2018
df5fdcd
inflate: fix MSVC compiler warnings
vkvenkat Nov 9, 2018
9eb7d84
inflate: handle windowBits == 16
jtkukunas Feb 1, 2019
56ccda7
deflate_medium: add dist -1 to hash even for long matches
jtkukunas Apr 9, 2019
5255fe6
deflate_medium: avoid emitting a suboptimal literal in the restart case
jtkukunas Apr 9, 2019
e266ac1
Help VC++ Code Analysis
AaronRobinsonMSFT Mar 19, 2021
a8b70db
Replaced constant MAX_DIST2 with MAX_DIST which takes into account th…
Apr 23, 2021
826c220
default_medium: avoid out-of-bounds read
phmccarty May 14, 2021
e14e9fb
Fix CMakeLists.txt to add the source files.
busykai Dec 1, 2022
e23cb78
CI: remove the platforms we don't support.
busykai Dec 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:

- name: macOS GCC
os: macos-latest
compiler: gcc-9
compiler: gcc-11

steps:
- name: Checkout repository
Expand Down
124 changes: 62 additions & 62 deletions .github/workflows/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,71 +21,71 @@ jobs:
build-dir: ../build
src-dir: ../zlib

- name: Ubuntu GCC ARM SF
os: ubuntu-latest
compiler: arm-linux-gnueabi-gcc
configure-args: --warn
chost: arm-linux-gnueabi
packages: qemu qemu-user gcc-arm-linux-gnueabi libc-dev-armel-cross
qemu-run: qemu-arm -L /usr/arm-linux-gnueabi

- name: Ubuntu GCC ARM HF
os: ubuntu-latest
compiler: arm-linux-gnueabihf-gcc
configure-args: --warn
chost: arm-linux-gnueabihf
packages: qemu qemu-user gcc-arm-linux-gnueabihf libc-dev-armhf-cross
qemu-run: qemu-arm -L /usr/arm-linux-gnueabihf

- name: Ubuntu GCC AARCH64
os: ubuntu-latest
compiler: aarch64-linux-gnu-gcc
configure-args: --warn
chost: aarch64-linux-gnu
packages: qemu qemu-user gcc-aarch64-linux-gnu libc-dev-arm64-cross
qemu-run: qemu-aarch64 -L /usr/aarch64-linux-gnu

- name: Ubuntu GCC PPC
os: ubuntu-latest
compiler: powerpc-linux-gnu-gcc
configure-args: --warn --static
chost: powerpc-linux-gnu
packages: qemu qemu-user gcc-powerpc-linux-gnu libc-dev-powerpc-cross
qemu-run: qemu-ppc -L /usr/powerpc-linux-gnu
cflags: -static
ldflags: -static

- name: Ubuntu GCC PPC64
os: ubuntu-latest
compiler: powerpc64-linux-gnu-gcc
configure-args: --warn --static
chost: powerpc-linux-gnu
packages: qemu qemu-user gcc-powerpc64-linux-gnu libc-dev-ppc64-cross
qemu-run: qemu-ppc64 -L /usr/powerpc64-linux-gnu
cflags: -static
ldflags: -static

- name: Ubuntu GCC PPC64LE
os: ubuntu-latest
compiler: powerpc64le-linux-gnu-gcc
configure-args: --warn
chost: powerpc64le-linux-gnu
packages: qemu qemu-user gcc-powerpc64le-linux-gnu libc-dev-ppc64el-cross
qemu-run: qemu-ppc64le -L /usr/powerpc64le-linux-gnu

- name: Ubuntu GCC S390X
os: ubuntu-latest
compiler: s390x-linux-gnu-gcc
configure-args: --warn --static
chost: s390x-linux-gnu
packages: qemu qemu-user gcc-s390x-linux-gnu libc-dev-s390x-cross
qemu-run: qemu-s390x -L /usr/s390x-linux-gnu
cflags: -static
ldflags: -static
# - name: Ubuntu GCC ARM SF
# os: ubuntu-latest
# compiler: arm-linux-gnueabi-gcc
# configure-args: --warn
# chost: arm-linux-gnueabi
# packages: qemu qemu-user gcc-arm-linux-gnueabi libc-dev-armel-cross
# qemu-run: qemu-arm -L /usr/arm-linux-gnueabi
#
# - name: Ubuntu GCC ARM HF
# os: ubuntu-latest
# compiler: arm-linux-gnueabihf-gcc
# configure-args: --warn
# chost: arm-linux-gnueabihf
# packages: qemu qemu-user gcc-arm-linux-gnueabihf libc-dev-armhf-cross
# qemu-run: qemu-arm -L /usr/arm-linux-gnueabihf
#
# - name: Ubuntu GCC AARCH64
# os: ubuntu-latest
# compiler: aarch64-linux-gnu-gcc
# configure-args: --warn
# chost: aarch64-linux-gnu
# packages: qemu qemu-user gcc-aarch64-linux-gnu libc-dev-arm64-cross
# qemu-run: qemu-aarch64 -L /usr/aarch64-linux-gnu
#
# - name: Ubuntu GCC PPC
# os: ubuntu-latest
# compiler: powerpc-linux-gnu-gcc
# configure-args: --warn --static
# chost: powerpc-linux-gnu
# packages: qemu qemu-user gcc-powerpc-linux-gnu libc-dev-powerpc-cross
# qemu-run: qemu-ppc -L /usr/powerpc-linux-gnu
# cflags: -static
# ldflags: -static
#
# - name: Ubuntu GCC PPC64
# os: ubuntu-latest
# compiler: powerpc64-linux-gnu-gcc
# configure-args: --warn --static
# chost: powerpc-linux-gnu
# packages: qemu qemu-user gcc-powerpc64-linux-gnu libc-dev-ppc64-cross
# qemu-run: qemu-ppc64 -L /usr/powerpc64-linux-gnu
# cflags: -static
# ldflags: -static
#
# - name: Ubuntu GCC PPC64LE
# os: ubuntu-latest
# compiler: powerpc64le-linux-gnu-gcc
# configure-args: --warn
# chost: powerpc64le-linux-gnu
# packages: qemu qemu-user gcc-powerpc64le-linux-gnu libc-dev-ppc64el-cross
# qemu-run: qemu-ppc64le -L /usr/powerpc64le-linux-gnu
#
# - name: Ubuntu GCC S390X
# os: ubuntu-latest
# compiler: s390x-linux-gnu-gcc
# configure-args: --warn --static
# chost: s390x-linux-gnu
# packages: qemu qemu-user gcc-s390x-linux-gnu libc-dev-s390x-cross
# qemu-run: qemu-s390x -L /usr/s390x-linux-gnu
# cflags: -static
# ldflags: -static

- name: macOS GCC
os: macos-latest
compiler: gcc-9
compiler: gcc-11
configure-args: --warn

- name: macOS Clang
Expand Down
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,14 @@
/zlib.pc
/configure.log

*.obj
*.lib
*.pdb
*.exp
*.dll
*.exe
*.res

*.swp

.DS_Store
22 changes: 18 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
cmake_minimum_required(VERSION 2.4.4)
cmake_minimum_required(VERSION 2.4.4...3.15.0)
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)

project(zlib C)

set(VERSION "1.2.13")
set(VERSION "1.3")

set(INSTALL_BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Installation directory for executables")
set(INSTALL_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib" CACHE PATH "Installation directory for libraries")
Expand Down Expand Up @@ -100,26 +100,40 @@ set(ZLIB_PRIVATE_HDRS
inflate.h
inftrees.h
trees.h
x86.h
zutil.h
)
set(ZLIB_SRCS
adler32.c
compress.c
crc32.c
crc_folding.c
deflate.c
deflate_medium.c
deflate_quick.c
gzclose.c
gzlib.c
gzread.c
gzwrite.c
inflate.c
infback.c
inftrees.c
inffast.c
inflate.c
inftrees.c
match.c
slide_sse.c
trees.c
uncompr.c
x86.c
zutil.c
)

if (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang"
OR CMAKE_C_COMPILER_ID STREQUAL "AppleClang")
set_source_files_properties(crc_folding.c PROPERTIES COMPILE_OPTIONS "-mpclmul;-msse4")
set_source_files_properties(slide_sse.c PROPERTIES COMPILE_OPTIONS -msse2)
set_source_files_properties(deflate_quick.c PROPERTIES COMPILE_OPTIONS -msse4)
endif()

if(NOT MINGW)
set(ZLIB_DLL_SRCS
win32/zlib1.rc # If present will override custom build rule below.
Expand Down
20 changes: 19 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@

ChangeLog file for zlib

Changes in 1.3 (18 Aug 2023)
- Remove K&R function definitions and zlib2ansi
- Fix bug in deflateBound() for level 0 and memLevel 9
- Fix bug when gzungetc() is used immediately after gzopen()
- Fix bug when using gzflush() with a very small buffer
- Fix crash when gzsetparams() attempted for transparent write
- Fix test/example.c to work with FORCE_STORED
- Rewrite of zran in examples (see zran.c version history)
- Fix minizip to allow it to open an empty zip file
- Fix reading disk number start on zip64 files in minizip
- Fix logic error in minizip argument processing
- Add minizip testing to Makefile
- Read multiple bytes instead of byte-by-byte in minizip unzip.c
- Add memory sanitizer to configure (--memory)
- Various portability improvements
- Various documentation improvements
- Various spelling and typo corrections

Changes in 1.2.13 (13 Oct 2022)
- Fix configure issue that discarded provided CC definition
- Correct incorrect inputs provided to the CRC functions
Expand Down Expand Up @@ -1445,7 +1463,7 @@ Changes in 0.99 (27 Jan 96)
- fix typo in Make_vms.com (f$trnlnm -> f$getsyi)
- in fcalloc, normalize pointer if size > 65520 bytes
- don't use special fcalloc for 32 bit Borland C++
- use STDC instead of __GO32__ to avoid redeclaring exit, calloc, etc...
- use STDC instead of __GO32__ to avoid redeclaring exit, calloc, etc.
- use Z_BINARY instead of BINARY
- document that gzclose after gzdopen will close the file
- allow "a" as mode in gzopen
Expand Down
2 changes: 1 addition & 1 deletion FAQ
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

If your question is not there, please check the zlib home page
http://zlib.net/ which may have more recent information.
The lastest zlib FAQ is at http://zlib.net/zlib_faq.html
The latest zlib FAQ is at http://zlib.net/zlib_faq.html


1. Is zlib Y2K-compliant?
Expand Down
74 changes: 58 additions & 16 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ CPP=$(CC) -E

STATICLIB=libz.a
SHAREDLIB=libz.so
SHAREDLIBV=libz.so.1.2.13
SHAREDLIBV=libz.so.1.3
SHAREDLIBM=libz.so.1
LIBS=$(STATICLIB) $(SHAREDLIBV)

Expand All @@ -53,11 +53,11 @@ SRCDIR=
ZINC=
ZINCOUT=-I.

OBJZ = adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o
OBJZ = adler32.o crc32.o crc_folding.o deflate_quick.o deflate_medium.o deflate.o infback.o inffast.o inflate.o inftrees.o match.o slide_sse.o trees.o x86.o zutil.o
OBJG = compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o
OBJC = $(OBJZ) $(OBJG)

PIC_OBJZ = adler32.lo crc32.lo deflate.lo infback.lo inffast.lo inflate.lo inftrees.lo trees.lo zutil.lo
PIC_OBJZ = adler32.lo crc32.lo crc_folding.lo deflate_quick.lo deflate_medium.lo deflate.lo infback.lo inffast.lo inflate.lo inftrees.lo match.lo slide_sse.lo trees.lo x86.lo zutil.lo
PIC_OBJG = compress.lo uncompr.lo gzclose.lo gzlib.lo gzread.lo gzwrite.lo
PIC_OBJC = $(PIC_OBJZ) $(PIC_OBJG)

Expand Down Expand Up @@ -127,18 +127,6 @@ libz.a: $(OBJS)
$(AR) $(ARFLAGS) $@ $(OBJS)
-@ ($(RANLIB) $@ || true) >/dev/null 2>&1

match.o: match.S
$(CPP) match.S > _match.s
$(CC) -c _match.s
mv _match.o match.o
rm -f _match.s

match.lo: match.S
$(CPP) match.S > _match.s
$(CC) -c -fPIC _match.s
mv _match.o match.lo
rm -f _match.s

example.o: $(SRCDIR)test/example.c $(SRCDIR)zlib.h zconf.h
$(CC) $(CFLAGS) $(ZINCOUT) -c -o $@ $(SRCDIR)test/example.c

Expand Down Expand Up @@ -197,6 +185,23 @@ gzread.o: $(SRCDIR)gzread.c
gzwrite.o: $(SRCDIR)gzwrite.c
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)gzwrite.c

x86.o: $(SRCDIR)x86.c
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)x86.c

slide_sse.o: $(SRCDIR)slide_sse.c
$(CC) $(CFLAGS) $(ZINC) -msse2 -c -o $@ $(SRCDIR)slide_sse.c

crc_folding.o: $(SRCDIR)crc_folding.c
$(CC) $(CFLAGS) $(ZINC) -mpclmul -msse4 -c -o $@ $(SRCDIR)crc_folding.c

deflate_quick.o: $(SRCDIR)deflate_quick.c
$(CC) $(CFLAGS) $(ZINC) -msse4 -c -o $@ $(SRCDIR)deflate_quick.c

deflate_medium.o: $(SRCDIR)deflate_medium.c
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)deflate_medium.c

match.o: $(SRCDIR)match.c
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)match.c

adler32.lo: $(SRCDIR)adler32.c
-@mkdir objs 2>/dev/null || test -d objs
Expand Down Expand Up @@ -273,6 +278,35 @@ gzwrite.lo: $(SRCDIR)gzwrite.c
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/gzwrite.o $(SRCDIR)gzwrite.c
-@mv objs/gzwrite.o $@

x86.lo: $(SRCDIR)x86.c
-@mkdir objs 2>/dev/null || test -d objs
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/x86.o $(SRCDIR)x86.c
-@mv objs/x86.o $@

slide_sse.lo: $(SRCDIR)slide_sse.c
-@mkdir objs 2>/dev/null || test -d objs
$(CC) $(SFLAGS) $(ZINC) -msse2 -DPIC -c -o objs/slide_sse.o $(SRCDIR)slide_sse.c
-@mv objs/slide_sse.o $@

crc_folding.lo: $(SRCDIR)crc_folding.c
-@mkdir objs 2>/dev/null || test -d objs
$(CC) $(SFLAGS) $(ZINC) -mpclmul -msse4 -DPIC -c -o objs/crc_folding.o $(SRCDIR)crc_folding.c
-@mv objs/crc_folding.o $@

deflate_quick.lo: $(SRCDIR)deflate_quick.c
-@mkdir objs 2>/dev/null || test -d objs
$(CC) $(SFLAGS) $(ZINC) -msse4 -DPIC -c -o objs/deflate_quick.o $(SRCDIR)deflate_quick.c
-@mv objs/deflate_quick.o $@

deflate_medium.lo: $(SRCDIR)deflate_medium.c
-@mkdir objs 2>/dev/null || test -d objs
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/deflate_medium.o $(SRCDIR)deflate_medium.c
-@mv objs/deflate_medium.o $@

match.lo: $(SRCDIR)match.c
-@mkdir objs 2>/dev/null || test -d objs
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/match.o $(SRCDIR)match.c
-@mv objs/match.o $@

placebo $(SHAREDLIBV): $(PIC_OBJS) libz.a
$(LDSHARED) $(SFLAGS) -o $@ $(PIC_OBJS) $(LDSHAREDLIBC) $(LDFLAGS)
Expand Down Expand Up @@ -359,8 +393,14 @@ zconf.h.cmakein: $(SRCDIR)zconf.h.in
zconf: $(SRCDIR)zconf.h.in
cp -p $(SRCDIR)zconf.h.in zconf.h

minizip-test: static
cd contrib/minizip && { CFLAGS="$(CFLAGS)" $(MAKE) test ; cd ../.. ; }

minizip-clean:
cd contrib/minizip && { $(MAKE) clean ; cd ../.. ; }

mostlyclean: clean
clean:
clean: minizip-clean
rm -f *.o *.lo *~ \
example$(EXE) minigzip$(EXE) examplesh$(EXE) minigzipsh$(EXE) \
example64$(EXE) minigzip64$(EXE) \
Expand Down Expand Up @@ -392,6 +432,7 @@ infback.o inflate.o: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)inftrees.
inffast.o: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)inftrees.h $(SRCDIR)inflate.h $(SRCDIR)inffast.h
inftrees.o: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)inftrees.h
trees.o: $(SRCDIR)deflate.h $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)trees.h
x86.o: $(SRCDIR)x86.h

adler32.lo zutil.lo: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h
gzclose.lo gzlib.lo gzread.lo gzwrite.lo: $(SRCDIR)zlib.h zconf.h $(SRCDIR)gzguts.h
Expand All @@ -402,3 +443,4 @@ infback.lo inflate.lo: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)inftree
inffast.lo: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)inftrees.h $(SRCDIR)inflate.h $(SRCDIR)inffast.h
inftrees.lo: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)inftrees.h
trees.lo: $(SRCDIR)deflate.h $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)trees.h
x86.lo: $(SRCDIR)x86.h
Loading