diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:22:37 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:22:37 -0700 |
commit | 4b5a43a219d51066c01ff2ab86af18b967f2d0dd (patch) | |
tree | 4dcaf0cd18751d04cf638a9a6ec521990d4f2e90 /Makefile | |
parent | 086e982175da84b3db958191031380794315f95f (diff) | |
download | zlib-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-- | Makefile | 32 |
1 files changed, 22 insertions, 10 deletions
@@ -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 | |||
24 | LDSHARED=$(CC) | 28 | LDSHARED=$(CC) |
25 | CPP=$(CC) -E | 29 | CPP=$(CC) -E |
26 | 30 | ||
27 | VER=1.2.0.4 | 31 | VER=1.2.0.5 |
28 | LIBS=libz.a | 32 | LIBS=libz.a |
29 | SHAREDLIB=libz.so | 33 | SHAREDLIB=libz.so |
30 | 34 | ||
@@ -37,6 +41,8 @@ prefix = /usr/local | |||
37 | exec_prefix = ${prefix} | 41 | exec_prefix = ${prefix} |
38 | libdir = ${exec_prefix}/lib | 42 | libdir = ${exec_prefix}/lib |
39 | includedir = ${prefix}/include | 43 | includedir = ${prefix}/include |
44 | mandir = ${prefix}/share/man | ||
45 | man3dir = ${mandir}/man3 | ||
40 | 46 | ||
41 | OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ | 47 | OBJS = 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 | ||
47 | TEST_OBJS = example.o minigzip.o | 53 | TEST_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 |
50 | DISTFILES = README FAQ INDEX ChangeLog configure Make*[a-z0-9] *.[ch] *.mms \ | 56 | DISTFILES = 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) | |||
97 | install: $(LIBS) | 103 | install: $(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 | ||
127 | mostlyclean: clean | 137 | mostlyclean: clean |
128 | clean: | 138 | clean: |
@@ -130,11 +140,13 @@ clean: | |||
130 | _match.s maketree | 140 | _match.s maketree |
131 | 141 | ||
132 | maintainer-clean: distclean | 142 | maintainer-clean: distclean |
133 | distclean: clean | 143 | distclean: 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 | ||
137 | zip: | 148 | zip: |
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 | ||
144 | dist: | 156 | dist: |
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 | ||
158 | tags: | 170 | tags: |
159 | etags *.[ch] | 171 | etags *.[ch] |
160 | 172 | ||
161 | depend: | 173 | depend: |
@@ -173,7 +185,7 @@ inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h | |||
173 | inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h | 185 | inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h |
174 | infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h | 186 | infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h |
175 | inftrees.o: zutil.h zlib.h zconf.h inftrees.h | 187 | inftrees.o: zutil.h zlib.h zconf.h inftrees.h |
176 | minigzip.o: zlib.h zconf.h | 188 | minigzip.o: zlib.h zconf.h |
177 | trees.o: deflate.h zutil.h zlib.h zconf.h trees.h | 189 | trees.o: deflate.h zutil.h zlib.h zconf.h trees.h |
178 | uncompr.o: zlib.h zconf.h | 190 | uncompr.o: zlib.h zconf.h |
179 | zutil.o: zutil.h zlib.h zconf.h | 191 | zutil.o: zutil.h zlib.h zconf.h |