aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:21:47 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:21:47 -0700
commit7c2a874e50b871d04fbd19501f7b42cff55e5abc (patch)
tree1879cd29182ababb17cde77cee5ce74505db4006 /Makefile
parenta383133c4e7b93113cee912f213cf9502d785fa7 (diff)
downloadzlib-7c2a874e50b871d04fbd19501f7b42cff55e5abc.tar.gz
zlib-7c2a874e50b871d04fbd19501f7b42cff55e5abc.tar.bz2
zlib-7c2a874e50b871d04fbd19501f7b42cff55e5abc.zip
zlib 1.2.0v1.2.0
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 13 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 531562b..087e388 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
1# Makefile for zlib 1# Makefile for zlib
2# Copyright (C) 1995-2002 Jean-loup Gailly. 2# Copyright (C) 1995-2003 Jean-loup Gailly.
3# For conditions of distribution and use, see copyright notice in zlib.h 3# For conditions of distribution and use, see copyright notice in zlib.h
4 4
5# To compile and test, type: 5# To compile and test, type:
@@ -20,11 +20,11 @@ CFLAGS=-O
20#CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ 20#CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
21# -Wstrict-prototypes -Wmissing-prototypes 21# -Wstrict-prototypes -Wmissing-prototypes
22 22
23LDFLAGS=-L. -lz 23LDFLAGS=libz.a
24LDSHARED=$(CC) 24LDSHARED=$(CC)
25CPP=$(CC) -E 25CPP=$(CC) -E
26 26
27VER=1.1.4 27VER=1.2.0
28LIBS=libz.a 28LIBS=libz.a
29SHAREDLIB=libz.so 29SHAREDLIB=libz.so
30 30
@@ -39,13 +39,14 @@ libdir = ${exec_prefix}/lib
39includedir = ${prefix}/include 39includedir = ${prefix}/include
40 40
41OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ 41OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
42 zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o 42 zutil.o inflate.o infback.o inftrees.o inffast.o
43 43
44OBJA = 44OBJA =
45# to use the asm code: make OBJA=match.o 45# to use the asm code: make OBJA=match.o
46 46
47TEST_OBJS = example.o minigzip.o 47TEST_OBJS = example.o minigzip.o
48 48
49# Note: this hasn't been updated for zlib 1.2.0
49DISTFILES = README FAQ INDEX ChangeLog configure Make*[a-z0-9] *.[ch] *.mms \ 50DISTFILES = README FAQ INDEX ChangeLog configure Make*[a-z0-9] *.[ch] *.mms \
50 algorithm.txt zlib.3 zlib.html \ 51 algorithm.txt zlib.3 zlib.html \
51 msdos/Make*[a-z0-9] msdos/zlib.def msdos/zlib.rc \ 52 msdos/Make*[a-z0-9] msdos/zlib.def msdos/zlib.rc \
@@ -93,6 +94,7 @@ minigzip: minigzip.o $(LIBS)
93 $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS) 94 $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS)
94 95
95install: $(LIBS) 96install: $(LIBS)
97 -@if [ ! -d $(exec_prefix) ]; then mkdir $(exec_prefix); fi
96 -@if [ ! -d $(includedir) ]; then mkdir $(includedir); fi 98 -@if [ ! -d $(includedir) ]; then mkdir $(includedir); fi
97 -@if [ ! -d $(libdir) ]; then mkdir $(libdir); fi 99 -@if [ ! -d $(libdir) ]; then mkdir $(libdir); fi
98 cp zlib.h zconf.h $(includedir) 100 cp zlib.h zconf.h $(includedir)
@@ -126,6 +128,8 @@ clean:
126 _match.s maketree 128 _match.s maketree
127 129
128distclean: clean 130distclean: clean
131 cp -p Makefile.in Makefile
132 cp -p zconf.in.h zconf.h
129 133
130zip: 134zip:
131 mv Makefile Makefile~; cp -p Makefile.in Makefile 135 mv Makefile Makefile~; cp -p Makefile.in Makefile
@@ -135,6 +139,7 @@ zip:
135 mv Makefile~ Makefile 139 mv Makefile~ Makefile
136 140
137dist: 141dist:
142 echo Warning: this hasn't been updated for zlib 1.2.0 -- don't use
138 mv Makefile Makefile~; cp -p Makefile.in Makefile 143 mv Makefile Makefile~; cp -p Makefile.in Makefile
139 rm -f test.c ztest*.c contrib/minizip/test.zip 144 rm -f test.c ztest*.c contrib/minizip/test.zip
140 d=zlib-`sed -n '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`;\ 145 d=zlib-`sed -n '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`;\
@@ -157,18 +162,14 @@ depend:
157 162
158adler32.o: zlib.h zconf.h 163adler32.o: zlib.h zconf.h
159compress.o: zlib.h zconf.h 164compress.o: zlib.h zconf.h
160crc32.o: zlib.h zconf.h 165crc32.o: crc32.h zlib.h zconf.h
161deflate.o: deflate.h zutil.h zlib.h zconf.h 166deflate.o: deflate.h zutil.h zlib.h zconf.h
162example.o: zlib.h zconf.h 167example.o: zlib.h zconf.h
163gzio.o: zutil.h zlib.h zconf.h 168gzio.o: zutil.h zlib.h zconf.h
164infblock.o: infblock.h inftrees.h infcodes.h infutil.h zutil.h zlib.h zconf.h 169inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
165infcodes.o: zutil.h zlib.h zconf.h 170inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
166infcodes.o: inftrees.h infblock.h infcodes.h infutil.h inffast.h 171infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
167inffast.o: zutil.h zlib.h zconf.h inftrees.h
168inffast.o: infblock.h infcodes.h infutil.h inffast.h
169inflate.o: zutil.h zlib.h zconf.h infblock.h
170inftrees.o: zutil.h zlib.h zconf.h inftrees.h 172inftrees.o: zutil.h zlib.h zconf.h inftrees.h
171infutil.o: zutil.h zlib.h zconf.h infblock.h inftrees.h infcodes.h infutil.h
172minigzip.o: zlib.h zconf.h 173minigzip.o: zlib.h zconf.h
173trees.o: deflate.h zutil.h zlib.h zconf.h trees.h 174trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
174uncompr.o: zlib.h zconf.h 175uncompr.o: zlib.h zconf.h