diff options
| author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:21:47 -0700 |
|---|---|---|
| committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:21:47 -0700 |
| commit | 7c2a874e50b871d04fbd19501f7b42cff55e5abc (patch) | |
| tree | 1879cd29182ababb17cde77cee5ce74505db4006 /Makefile | |
| parent | a383133c4e7b93113cee912f213cf9502d785fa7 (diff) | |
| download | zlib-1.2.0.tar.gz zlib-1.2.0.tar.bz2 zlib-1.2.0.zip | |
zlib 1.2.0v1.2.0
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 25 |
1 files changed, 13 insertions, 12 deletions
| @@ -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 | ||
| 23 | LDFLAGS=-L. -lz | 23 | LDFLAGS=libz.a |
| 24 | LDSHARED=$(CC) | 24 | LDSHARED=$(CC) |
| 25 | CPP=$(CC) -E | 25 | CPP=$(CC) -E |
| 26 | 26 | ||
| 27 | VER=1.1.4 | 27 | VER=1.2.0 |
| 28 | LIBS=libz.a | 28 | LIBS=libz.a |
| 29 | SHAREDLIB=libz.so | 29 | SHAREDLIB=libz.so |
| 30 | 30 | ||
| @@ -39,13 +39,14 @@ libdir = ${exec_prefix}/lib | |||
| 39 | includedir = ${prefix}/include | 39 | includedir = ${prefix}/include |
| 40 | 40 | ||
| 41 | OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ | 41 | OBJS = 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 | ||
| 44 | OBJA = | 44 | OBJA = |
| 45 | # to use the asm code: make OBJA=match.o | 45 | # to use the asm code: make OBJA=match.o |
| 46 | 46 | ||
| 47 | TEST_OBJS = example.o minigzip.o | 47 | TEST_OBJS = example.o minigzip.o |
| 48 | 48 | ||
| 49 | # Note: this hasn't been updated for zlib 1.2.0 | ||
| 49 | DISTFILES = README FAQ INDEX ChangeLog configure Make*[a-z0-9] *.[ch] *.mms \ | 50 | DISTFILES = 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 | ||
| 95 | install: $(LIBS) | 96 | install: $(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 | ||
| 128 | distclean: clean | 130 | distclean: clean |
| 131 | cp -p Makefile.in Makefile | ||
| 132 | cp -p zconf.in.h zconf.h | ||
| 129 | 133 | ||
| 130 | zip: | 134 | zip: |
| 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 | ||
| 137 | dist: | 141 | dist: |
| 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 | ||
| 158 | adler32.o: zlib.h zconf.h | 163 | adler32.o: zlib.h zconf.h |
| 159 | compress.o: zlib.h zconf.h | 164 | compress.o: zlib.h zconf.h |
| 160 | crc32.o: zlib.h zconf.h | 165 | crc32.o: crc32.h zlib.h zconf.h |
| 161 | deflate.o: deflate.h zutil.h zlib.h zconf.h | 166 | deflate.o: deflate.h zutil.h zlib.h zconf.h |
| 162 | example.o: zlib.h zconf.h | 167 | example.o: zlib.h zconf.h |
| 163 | gzio.o: zutil.h zlib.h zconf.h | 168 | gzio.o: zutil.h zlib.h zconf.h |
| 164 | infblock.o: infblock.h inftrees.h infcodes.h infutil.h zutil.h zlib.h zconf.h | 169 | inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h |
| 165 | infcodes.o: zutil.h zlib.h zconf.h | 170 | inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h |
| 166 | infcodes.o: inftrees.h infblock.h infcodes.h infutil.h inffast.h | 171 | infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h |
| 167 | inffast.o: zutil.h zlib.h zconf.h inftrees.h | ||
| 168 | inffast.o: infblock.h infcodes.h infutil.h inffast.h | ||
| 169 | inflate.o: zutil.h zlib.h zconf.h infblock.h | ||
| 170 | inftrees.o: zutil.h zlib.h zconf.h inftrees.h | 172 | inftrees.o: zutil.h zlib.h zconf.h inftrees.h |
| 171 | infutil.o: zutil.h zlib.h zconf.h infblock.h inftrees.h infcodes.h infutil.h | ||
| 172 | minigzip.o: zlib.h zconf.h | 173 | minigzip.o: zlib.h zconf.h |
| 173 | trees.o: deflate.h zutil.h zlib.h zconf.h trees.h | 174 | trees.o: deflate.h zutil.h zlib.h zconf.h trees.h |
| 174 | uncompr.o: zlib.h zconf.h | 175 | uncompr.o: zlib.h zconf.h |
