aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:22:37 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:22:37 -0700
commit4b5a43a219d51066c01ff2ab86af18b967f2d0dd (patch)
tree4dcaf0cd18751d04cf638a9a6ec521990d4f2e90 /Makefile
parent086e982175da84b3db958191031380794315f95f (diff)
downloadzlib-4b5a43a219d51066c01ff2ab86af18b967f2d0dd.tar.gz
zlib-4b5a43a219d51066c01ff2ab86af18b967f2d0dd.tar.bz2
zlib-4b5a43a219d51066c01ff2ab86af18b967f2d0dd.zip
zlib 1.2.0.5v1.2.0.5
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile32
1 files changed, 22 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 425ad35..ac69ed9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,16 @@
1# Makefile for zlib 1# Makefile for zlib
2# Copyright (C) 1995-2003 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:
6# ./configure; make test 6# ./configure; make test
7# The call of configure is optional if you don't have special requirements 7# The call of configure is optional if you don't have special requirements
8# If you wish to build zlib as a shared library, use: ./configure -s 8# If you wish to build zlib as a shared library, use: ./configure -s
9 9
10# To use the asm code, type:
11# cp contrib/asm?86/match.S ./match.S
12# make LOC=-DASMV OBJA=match.o
13
10# To install /usr/local/lib/libz.* and /usr/local/include/zlib.h, type: 14# To install /usr/local/lib/libz.* and /usr/local/include/zlib.h, type:
11# make install 15# make install
12# To install in $HOME instead of /usr/local, use: 16# To install in $HOME instead of /usr/local, use:
@@ -24,7 +28,7 @@ LDFLAGS=libz.a
24LDSHARED=$(CC) 28LDSHARED=$(CC)
25CPP=$(CC) -E 29CPP=$(CC) -E
26 30
27VER=1.2.0.4 31VER=1.2.0.5
28LIBS=libz.a 32LIBS=libz.a
29SHAREDLIB=libz.so 33SHAREDLIB=libz.so
30 34
@@ -37,6 +41,8 @@ prefix = /usr/local
37exec_prefix = ${prefix} 41exec_prefix = ${prefix}
38libdir = ${exec_prefix}/lib 42libdir = ${exec_prefix}/lib
39includedir = ${prefix}/include 43includedir = ${prefix}/include
44mandir = ${prefix}/share/man
45man3dir = ${mandir}/man3
40 46
41OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ 47OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
42 zutil.o inflate.o infback.o inftrees.o inffast.o 48 zutil.o inflate.o infback.o inftrees.o inffast.o
@@ -46,7 +52,7 @@ OBJA =
46 52
47TEST_OBJS = example.o minigzip.o 53TEST_OBJS = example.o minigzip.o
48 54
49# Note: this hasn't been updated for zlib 1.2.0 55# Note: this has not been updated for zlib 1.2.0
50DISTFILES = README FAQ INDEX ChangeLog configure Make*[a-z0-9] *.[ch] *.mms \ 56DISTFILES = README FAQ INDEX ChangeLog configure Make*[a-z0-9] *.[ch] *.mms \
51 algorithm.txt zlib.3 zlib.html \ 57 algorithm.txt zlib.3 zlib.html \
52 msdos/Make*[a-z0-9] msdos/zlib.def msdos/zlib.rc \ 58 msdos/Make*[a-z0-9] msdos/zlib.def msdos/zlib.rc \
@@ -97,7 +103,8 @@ minigzip: minigzip.o $(LIBS)
97install: $(LIBS) 103install: $(LIBS)
98 -@if [ ! -d $(exec_prefix) ]; then mkdir $(exec_prefix); fi 104 -@if [ ! -d $(exec_prefix) ]; then mkdir $(exec_prefix); fi
99 -@if [ ! -d $(includedir) ]; then mkdir $(includedir); fi 105 -@if [ ! -d $(includedir) ]; then mkdir $(includedir); fi
100 -@if [ ! -d $(libdir) ]; then mkdir $(libdir); fi 106 -@if [ ! -d $(libdir) ]; then mkdir $(libdir); fi
107 -@if [ ! -d $(man3dir) ]; then mkdir $(man3dir); fi
101 cp zlib.h zconf.h $(includedir) 108 cp zlib.h zconf.h $(includedir)
102 chmod 644 $(includedir)/zlib.h $(includedir)/zconf.h 109 chmod 644 $(includedir)/zlib.h $(includedir)/zconf.h
103 cp $(LIBS) $(libdir) 110 cp $(LIBS) $(libdir)
@@ -109,6 +116,8 @@ install: $(LIBS)
109 ln -s $(SHAREDLIB).$(VER) $(SHAREDLIB).1; \ 116 ln -s $(SHAREDLIB).$(VER) $(SHAREDLIB).1; \
110 (ldconfig || true) >/dev/null 2>&1; \ 117 (ldconfig || true) >/dev/null 2>&1; \
111 fi 118 fi
119 cp zlib.3 $(man3dir)
120 chmod 644 $(man3dir)/zlib.3
112# The ranlib in install is needed on NeXTSTEP which checks file times 121# The ranlib in install is needed on NeXTSTEP which checks file times
113# ldconfig is for Linux 122# ldconfig is for Linux
114 123
@@ -123,6 +132,7 @@ uninstall:
123 if test -f $(SHAREDLIB).$$v; then \ 132 if test -f $(SHAREDLIB).$$v; then \
124 rm -f $(SHAREDLIB).$$v $(SHAREDLIB) $(SHAREDLIB).1; \ 133 rm -f $(SHAREDLIB).$$v $(SHAREDLIB) $(SHAREDLIB).1; \
125 fi 134 fi
135 cd $(man3dir); rm -f zlib.3
126 136
127mostlyclean: clean 137mostlyclean: clean
128clean: 138clean:
@@ -130,11 +140,13 @@ clean:
130 _match.s maketree 140 _match.s maketree
131 141
132maintainer-clean: distclean 142maintainer-clean: distclean
133distclean: clean 143distclean: clean
134 cp -p Makefile.in Makefile 144 cp -p Makefile.in Makefile
135 cp -p zconf.in.h zconf.h 145 cp -p zconf.in.h zconf.h
146 rm -f .DS_Store
136 147
137zip: 148zip:
149 echo Warning: this has not been updated for zlib 1.2.0 -- do not use
138 mv Makefile Makefile~; cp -p Makefile.in Makefile 150 mv Makefile Makefile~; cp -p Makefile.in Makefile
139 rm -f test.c ztest*.c contrib/minizip/test.zip 151 rm -f test.c ztest*.c contrib/minizip/test.zip
140 v=`sed -n -e 's/\.//g' -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`;\ 152 v=`sed -n -e 's/\.//g' -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`;\
@@ -142,7 +154,7 @@ zip:
142 mv Makefile~ Makefile 154 mv Makefile~ Makefile
143 155
144dist: 156dist:
145 echo Warning: this hasn't been updated for zlib 1.2.0 -- don't use 157 echo Warning: this has not been updated for zlib 1.2.0 -- do not use
146 mv Makefile Makefile~; cp -p Makefile.in Makefile 158 mv Makefile Makefile~; cp -p Makefile.in Makefile
147 rm -f test.c ztest*.c contrib/minizip/test.zip 159 rm -f test.c ztest*.c contrib/minizip/test.zip
148 d=zlib-`sed -n '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`;\ 160 d=zlib-`sed -n '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`;\
@@ -155,7 +167,7 @@ dist:
155 if test ! -d $$d; then rm -f $$d; fi 167 if test ! -d $$d; then rm -f $$d; fi
156 mv Makefile~ Makefile 168 mv Makefile~ Makefile
157 169
158tags: 170tags:
159 etags *.[ch] 171 etags *.[ch]
160 172
161depend: 173depend:
@@ -173,7 +185,7 @@ inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
173inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h 185inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
174infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h 186infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
175inftrees.o: zutil.h zlib.h zconf.h inftrees.h 187inftrees.o: zutil.h zlib.h zconf.h inftrees.h
176minigzip.o: zlib.h zconf.h 188minigzip.o: zlib.h zconf.h
177trees.o: deflate.h zutil.h zlib.h zconf.h trees.h 189trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
178uncompr.o: zlib.h zconf.h 190uncompr.o: zlib.h zconf.h
179zutil.o: zutil.h zlib.h zconf.h 191zutil.o: zutil.h zlib.h zconf.h