Skip to content

Commit 94f7c8f

Browse files
committed
Update zlib makefile.
1 parent d96a4da commit 94f7c8f

File tree

2 files changed

+52
-19
lines changed

2 files changed

+52
-19
lines changed

zlib/Dependencies

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# DO NOT DELETE
2+
3+
adler32.o: zutil.h zlib.h zconf.h
4+
compress.o: zlib.h zconf.h
5+
crc32.o: zutil.h zlib.h zconf.h crc32.h
6+
deflate.o: deflate.h zutil.h zlib.h zconf.h
7+
gzclose.o: gzguts.h zlib.h zconf.h
8+
gzlib.o: gzguts.h zlib.h zconf.h
9+
gzread.o: gzguts.h zlib.h zconf.h
10+
gzwrite.o: gzguts.h zlib.h zconf.h
11+
infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h inffixed.h
12+
inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
13+
inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h inffixed.h
14+
inftrees.o: zutil.h zlib.h zconf.h inftrees.h
15+
trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
16+
uncompr.o: zlib.h zconf.h
17+
zutil.o: zutil.h zlib.h zconf.h

zlib/Makefile

Lines changed: 35 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
#
22
# "$Id$"
33
#
4-
# ZIP library Makefile for the HTMLDOC software.
4+
# ZIP library Makefile for the HTMLDOC software.
55
#
6-
# ZIP library copyright 1995-1998 Jean-loup Gailly.
7-
# For conditions of distribution and use, see copyright notice in zlib.h
6+
# Copyright 2011 by Michael R Sweet.
7+
# Copyright 1997-2010 by Easy Software Products.
88
#
9-
# Copyright 2011 by Michael R Sweet.
10-
# Copyright 1997-2010 by Easy Software Products.
11-
#
12-
# This program is free software. Distribution and use rights are outlined in
13-
# the file "COPYING.txt".
9+
# This program is free software. Distribution and use rights are outlined in
10+
# the file "COPYING.txt".
1411
#
1512

1613
include ../Makedefs
@@ -19,15 +16,31 @@ include ../Makedefs
1916
# Object files...
2017
#
2118

22-
OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o \
23-
trees.o zutil.o inflate.o inftrees.o inffast.o
19+
OBJS = \
20+
adler32.o \
21+
compress.o \
22+
crc32.o \
23+
deflate.o \
24+
gzclose.o \
25+
gzlib.o \
26+
gzread.o \
27+
gzwrite.o \
28+
infback.o \
29+
inffast.o \
30+
inflate.o \
31+
inftrees.o \
32+
trees.o \
33+
uncompr.o \
34+
zutil.o
35+
2436

2537
#
2638
# Make all targets...
2739
#
2840

2941
all: libz.a
3042

43+
3144
#
3245
# Clean all targets and object files...
3346
#
@@ -36,6 +49,15 @@ clean:
3649
$(RM) $(OBJS)
3750
$(RM) libz.a
3851

52+
53+
#
54+
# Update dependencies...
55+
#
56+
57+
depend:
58+
makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
59+
60+
3961
#
4062
# libz.a
4163
#
@@ -46,15 +68,9 @@ libz.a: $(OBJS)
4668
$(AR) $(ARFLAGS) $@ $(OBJS)
4769
$(RANLIB) $@
4870

49-
$(OBJS): zlib.h zconf.h ../Makedefs
50-
crc32.o: zutil.h crc32.h
51-
gzio.o: zutil.h
52-
deflate.o: deflate.h zutil.h
53-
trees.o: deflate.h zutil.h trees.h
54-
zutil.o: zutil.h
55-
inflate.o: zutil.h inftrees.h inflate.h inffast.h inffixed.h
56-
inftrees.o: zutil.h inftrees.h
57-
inffast.o: zutil.h inftrees.h inflate.h inffast.h
71+
$(OBJS): ../Makedefs
72+
include Dependencies
73+
5874

5975
#
6076
# End of "$Id$".

0 commit comments

Comments
 (0)