diff options
| author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:20:29 -0700 |
|---|---|---|
| committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:20:29 -0700 |
| commit | 14763ac7c6c03bca62c39e35c03cf5bfc7728802 (patch) | |
| tree | f1055d11ef7b282b698ce7c40e1a9c061413cbdf /Makefile | |
| parent | c34c1fcbb19852ca35216ad66276f4f86af3fc22 (diff) | |
| download | zlib-1.1.3.tar.gz zlib-1.1.3.tar.bz2 zlib-1.1.3.zip | |
zlib 1.1.3v1.1.3
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 54 | ||||
| -rw-r--r-- | Makefile.in | 54 | ||||
| -rw-r--r-- | Makefile.riscos | 145 |
3 files changed, 193 insertions, 60 deletions
| @@ -22,8 +22,9 @@ CFLAGS=-O | |||
| 22 | 22 | ||
| 23 | LDFLAGS=-L. -lz | 23 | LDFLAGS=-L. -lz |
| 24 | LDSHARED=$(CC) | 24 | LDSHARED=$(CC) |
| 25 | CPP=$(CC) -E | ||
| 25 | 26 | ||
| 26 | VER=1.1.2 | 27 | VER=1.1.3 |
| 27 | LIBS=libz.a | 28 | LIBS=libz.a |
| 28 | SHAREDLIB=libz.so | 29 | SHAREDLIB=libz.so |
| 29 | 30 | ||
| @@ -34,21 +35,27 @@ SHELL=/bin/sh | |||
| 34 | 35 | ||
| 35 | prefix = /usr/local | 36 | prefix = /usr/local |
| 36 | exec_prefix = ${prefix} | 37 | exec_prefix = ${prefix} |
| 38 | libdir = ${exec_prefix}/lib | ||
| 39 | includedir = ${prefix}/include | ||
| 37 | 40 | ||
| 38 | 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 \ |
| 39 | zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o | 42 | zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o |
| 40 | 43 | ||
| 44 | OBJA = | ||
| 45 | # to use the asm code: make OBJA=match.o | ||
| 46 | |||
| 41 | TEST_OBJS = example.o minigzip.o | 47 | TEST_OBJS = example.o minigzip.o |
| 42 | 48 | ||
| 43 | DISTFILES = README INDEX ChangeLog configure Make*[a-z0-9] *.[ch] descrip.mms \ | 49 | DISTFILES = README FAQ INDEX ChangeLog configure Make*[a-z0-9] *.[ch] *.mms \ |
| 44 | algorithm.txt zlib.3 msdos/Make*[a-z0-9] msdos/zlib.def msdos/zlib.rc \ | 50 | algorithm.txt zlib.3 msdos/Make*[a-z0-9] msdos/zlib.def msdos/zlib.rc \ |
| 45 | nt/Makefile.nt nt/zlib.dnt amiga/Make*.??? contrib/README.contrib \ | 51 | nt/Make*[a-z0-9] nt/zlib.dnt amiga/Make*.??? os2/M*.os2 os2/zlib.def \ |
| 46 | contrib/*.txt contrib/asm386/*.asm contrib/asm386/*.c \ | 52 | contrib/RE*.contrib contrib/*.txt contrib/asm386/*.asm contrib/asm386/*.c \ |
| 47 | contrib/asm386/*.bat contrib/asm386/zlibvc.d?? contrib/iostream/*.cpp \ | 53 | contrib/asm386/*.bat contrib/asm386/zlibvc.d?? contrib/asm[56]86/*.?86 \ |
| 54 | contrib/asm[56]86/*.S contrib/iostream/*.cpp \ | ||
| 48 | contrib/iostream/*.h contrib/iostream2/*.h contrib/iostream2/*.cpp \ | 55 | contrib/iostream/*.h contrib/iostream2/*.h contrib/iostream2/*.cpp \ |
| 49 | contrib/untgz/Makefile contrib/untgz/*.c contrib/untgz/*.w32 \ | 56 | contrib/untgz/Makefile contrib/untgz/*.c contrib/untgz/*.w32 \ |
| 50 | contrib/minizip/[CM]*[pe] contrib/minizip/*.[ch] contrib/minizip/*.[td]?? | 57 | contrib/minizip/[CM]*[pe] contrib/minizip/*.[ch] contrib/minizip/*.[td]?? \ |
| 51 | 58 | contrib/delphi*/*.??? | |
| 52 | 59 | ||
| 53 | all: example minigzip | 60 | all: example minigzip |
| 54 | 61 | ||
| @@ -62,10 +69,16 @@ test: all | |||
| 62 | echo ' *** zlib test FAILED ***'; \ | 69 | echo ' *** zlib test FAILED ***'; \ |
| 63 | fi | 70 | fi |
| 64 | 71 | ||
| 65 | libz.a: $(OBJS) | 72 | libz.a: $(OBJS) $(OBJA) |
| 66 | $(AR) $@ $(OBJS) | 73 | $(AR) $@ $(OBJS) $(OBJA) |
| 67 | -@ ($(RANLIB) $@ || true) >/dev/null 2>&1 | 74 | -@ ($(RANLIB) $@ || true) >/dev/null 2>&1 |
| 68 | 75 | ||
| 76 | match.o: match.S | ||
| 77 | $(CPP) match.S > _match.s | ||
| 78 | $(CC) -c _match.s | ||
| 79 | mv _match.o match.o | ||
| 80 | rm -f _match.s | ||
| 81 | |||
| 69 | $(SHAREDLIB).$(VER): $(OBJS) | 82 | $(SHAREDLIB).$(VER): $(OBJS) |
| 70 | $(LDSHARED) -o $@ $(OBJS) | 83 | $(LDSHARED) -o $@ $(OBJS) |
| 71 | rm -f $(SHAREDLIB) $(SHAREDLIB).1 | 84 | rm -f $(SHAREDLIB) $(SHAREDLIB).1 |
| @@ -79,14 +92,14 @@ minigzip: minigzip.o $(LIBS) | |||
| 79 | $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS) | 92 | $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS) |
| 80 | 93 | ||
| 81 | install: $(LIBS) | 94 | install: $(LIBS) |
| 82 | -@if [ ! -d $(prefix)/include ]; then mkdir $(prefix)/include; fi | 95 | -@if [ ! -d $(includedir) ]; then mkdir $(includedir); fi |
| 83 | -@if [ ! -d $(exec_prefix)/lib ]; then mkdir $(exec_prefix)/lib; fi | 96 | -@if [ ! -d $(libdir) ]; then mkdir $(libdir); fi |
| 84 | cp zlib.h zconf.h $(prefix)/include | 97 | cp zlib.h zconf.h $(includedir) |
| 85 | chmod 644 $(prefix)/include/zlib.h $(prefix)/include/zconf.h | 98 | chmod 644 $(includedir)/zlib.h $(includedir)/zconf.h |
| 86 | cp $(LIBS) $(exec_prefix)/lib | 99 | cp $(LIBS) $(libdir) |
| 87 | cd $(exec_prefix)/lib; chmod 755 $(LIBS) | 100 | cd $(libdir); chmod 755 $(LIBS) |
| 88 | -@(cd $(exec_prefix)/lib; $(RANLIB) libz.a || true) >/dev/null 2>&1 | 101 | -@(cd $(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1 |
| 89 | cd $(exec_prefix)/lib; if test -f $(SHAREDLIB).$(VER); then \ | 102 | cd $(libdir); if test -f $(SHAREDLIB).$(VER); then \ |
| 90 | rm -f $(SHAREDLIB) $(SHAREDLIB).1; \ | 103 | rm -f $(SHAREDLIB) $(SHAREDLIB).1; \ |
| 91 | ln -s $(SHAREDLIB).$(VER) $(SHAREDLIB); \ | 104 | ln -s $(SHAREDLIB).$(VER) $(SHAREDLIB); \ |
| 92 | ln -s $(SHAREDLIB).$(VER) $(SHAREDLIB).1; \ | 105 | ln -s $(SHAREDLIB).$(VER) $(SHAREDLIB).1; \ |
| @@ -96,19 +109,20 @@ install: $(LIBS) | |||
| 96 | # ldconfig is for Linux | 109 | # ldconfig is for Linux |
| 97 | 110 | ||
| 98 | uninstall: | 111 | uninstall: |
| 99 | cd $(prefix)/include; \ | 112 | cd $(includedir); \ |
| 100 | v=$(VER); \ | 113 | v=$(VER); \ |
| 101 | if test -f zlib.h; then \ | 114 | if test -f zlib.h; then \ |
| 102 | v=`sed -n '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`; \ | 115 | v=`sed -n '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`; \ |
| 103 | rm -f zlib.h zconf.h; \ | 116 | rm -f zlib.h zconf.h; \ |
| 104 | fi; \ | 117 | fi; \ |
| 105 | cd $(exec_prefix)/lib; rm -f libz.a; \ | 118 | cd $(libdir); rm -f libz.a; \ |
| 106 | if test -f $(SHAREDLIB).$$v; then \ | 119 | if test -f $(SHAREDLIB).$$v; then \ |
| 107 | rm -f $(SHAREDLIB).$$v $(SHAREDLIB) $(SHAREDLIB).1; \ | 120 | rm -f $(SHAREDLIB).$$v $(SHAREDLIB) $(SHAREDLIB).1; \ |
| 108 | fi | 121 | fi |
| 109 | 122 | ||
| 110 | clean: | 123 | clean: |
| 111 | rm -f *.o *~ example minigzip libz.a libz.so* foo.gz | 124 | rm -f *.o *~ example minigzip libz.a libz.so* foo.gz so_locations \ |
| 125 | _match.s maketree | ||
| 112 | 126 | ||
| 113 | distclean: clean | 127 | distclean: clean |
| 114 | 128 | ||
diff --git a/Makefile.in b/Makefile.in index c8bb6e9..3a3b116 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -22,8 +22,9 @@ CFLAGS=-O | |||
| 22 | 22 | ||
| 23 | LDFLAGS=-L. -lz | 23 | LDFLAGS=-L. -lz |
| 24 | LDSHARED=$(CC) | 24 | LDSHARED=$(CC) |
| 25 | CPP=$(CC) -E | ||
| 25 | 26 | ||
| 26 | VER=1.1.2 | 27 | VER=1.1.3 |
| 27 | LIBS=libz.a | 28 | LIBS=libz.a |
| 28 | SHAREDLIB=libz.so | 29 | SHAREDLIB=libz.so |
| 29 | 30 | ||
| @@ -34,21 +35,27 @@ SHELL=/bin/sh | |||
| 34 | 35 | ||
| 35 | prefix = /usr/local | 36 | prefix = /usr/local |
| 36 | exec_prefix = ${prefix} | 37 | exec_prefix = ${prefix} |
| 38 | libdir = ${exec_prefix}/lib | ||
| 39 | includedir = ${prefix}/include | ||
| 37 | 40 | ||
| 38 | 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 \ |
| 39 | zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o | 42 | zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o |
| 40 | 43 | ||
| 44 | OBJA = | ||
| 45 | # to use the asm code: make OBJA=match.o | ||
| 46 | |||
| 41 | TEST_OBJS = example.o minigzip.o | 47 | TEST_OBJS = example.o minigzip.o |
| 42 | 48 | ||
| 43 | DISTFILES = README INDEX ChangeLog configure Make*[a-z0-9] *.[ch] descrip.mms \ | 49 | DISTFILES = README FAQ INDEX ChangeLog configure Make*[a-z0-9] *.[ch] *.mms \ |
| 44 | algorithm.txt zlib.3 msdos/Make*[a-z0-9] msdos/zlib.def msdos/zlib.rc \ | 50 | algorithm.txt zlib.3 msdos/Make*[a-z0-9] msdos/zlib.def msdos/zlib.rc \ |
| 45 | nt/Makefile.nt nt/zlib.dnt amiga/Make*.??? contrib/README.contrib \ | 51 | nt/Make*[a-z0-9] nt/zlib.dnt amiga/Make*.??? os2/M*.os2 os2/zlib.def \ |
| 46 | contrib/*.txt contrib/asm386/*.asm contrib/asm386/*.c \ | 52 | contrib/RE*.contrib contrib/*.txt contrib/asm386/*.asm contrib/asm386/*.c \ |
| 47 | contrib/asm386/*.bat contrib/asm386/zlibvc.d?? contrib/iostream/*.cpp \ | 53 | contrib/asm386/*.bat contrib/asm386/zlibvc.d?? contrib/asm[56]86/*.?86 \ |
| 54 | contrib/asm[56]86/*.S contrib/iostream/*.cpp \ | ||
| 48 | contrib/iostream/*.h contrib/iostream2/*.h contrib/iostream2/*.cpp \ | 55 | contrib/iostream/*.h contrib/iostream2/*.h contrib/iostream2/*.cpp \ |
| 49 | contrib/untgz/Makefile contrib/untgz/*.c contrib/untgz/*.w32 \ | 56 | contrib/untgz/Makefile contrib/untgz/*.c contrib/untgz/*.w32 \ |
| 50 | contrib/minizip/[CM]*[pe] contrib/minizip/*.[ch] contrib/minizip/*.[td]?? | 57 | contrib/minizip/[CM]*[pe] contrib/minizip/*.[ch] contrib/minizip/*.[td]?? \ |
| 51 | 58 | contrib/delphi*/*.??? | |
| 52 | 59 | ||
| 53 | all: example minigzip | 60 | all: example minigzip |
| 54 | 61 | ||
| @@ -62,10 +69,16 @@ test: all | |||
| 62 | echo ' *** zlib test FAILED ***'; \ | 69 | echo ' *** zlib test FAILED ***'; \ |
| 63 | fi | 70 | fi |
| 64 | 71 | ||
| 65 | libz.a: $(OBJS) | 72 | libz.a: $(OBJS) $(OBJA) |
| 66 | $(AR) $@ $(OBJS) | 73 | $(AR) $@ $(OBJS) $(OBJA) |
| 67 | -@ ($(RANLIB) $@ || true) >/dev/null 2>&1 | 74 | -@ ($(RANLIB) $@ || true) >/dev/null 2>&1 |
| 68 | 75 | ||
| 76 | match.o: match.S | ||
| 77 | $(CPP) match.S > _match.s | ||
| 78 | $(CC) -c _match.s | ||
| 79 | mv _match.o match.o | ||
| 80 | rm -f _match.s | ||
| 81 | |||
| 69 | $(SHAREDLIB).$(VER): $(OBJS) | 82 | $(SHAREDLIB).$(VER): $(OBJS) |
| 70 | $(LDSHARED) -o $@ $(OBJS) | 83 | $(LDSHARED) -o $@ $(OBJS) |
| 71 | rm -f $(SHAREDLIB) $(SHAREDLIB).1 | 84 | rm -f $(SHAREDLIB) $(SHAREDLIB).1 |
| @@ -79,14 +92,14 @@ minigzip: minigzip.o $(LIBS) | |||
| 79 | $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS) | 92 | $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS) |
| 80 | 93 | ||
| 81 | install: $(LIBS) | 94 | install: $(LIBS) |
| 82 | -@if [ ! -d $(prefix)/include ]; then mkdir $(prefix)/include; fi | 95 | -@if [ ! -d $(includedir) ]; then mkdir $(includedir); fi |
| 83 | -@if [ ! -d $(exec_prefix)/lib ]; then mkdir $(exec_prefix)/lib; fi | 96 | -@if [ ! -d $(libdir) ]; then mkdir $(libdir); fi |
| 84 | cp zlib.h zconf.h $(prefix)/include | 97 | cp zlib.h zconf.h $(includedir) |
| 85 | chmod 644 $(prefix)/include/zlib.h $(prefix)/include/zconf.h | 98 | chmod 644 $(includedir)/zlib.h $(includedir)/zconf.h |
| 86 | cp $(LIBS) $(exec_prefix)/lib | 99 | cp $(LIBS) $(libdir) |
| 87 | cd $(exec_prefix)/lib; chmod 755 $(LIBS) | 100 | cd $(libdir); chmod 755 $(LIBS) |
| 88 | -@(cd $(exec_prefix)/lib; $(RANLIB) libz.a || true) >/dev/null 2>&1 | 101 | -@(cd $(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1 |
| 89 | cd $(exec_prefix)/lib; if test -f $(SHAREDLIB).$(VER); then \ | 102 | cd $(libdir); if test -f $(SHAREDLIB).$(VER); then \ |
| 90 | rm -f $(SHAREDLIB) $(SHAREDLIB).1; \ | 103 | rm -f $(SHAREDLIB) $(SHAREDLIB).1; \ |
| 91 | ln -s $(SHAREDLIB).$(VER) $(SHAREDLIB); \ | 104 | ln -s $(SHAREDLIB).$(VER) $(SHAREDLIB); \ |
| 92 | ln -s $(SHAREDLIB).$(VER) $(SHAREDLIB).1; \ | 105 | ln -s $(SHAREDLIB).$(VER) $(SHAREDLIB).1; \ |
| @@ -96,19 +109,20 @@ install: $(LIBS) | |||
| 96 | # ldconfig is for Linux | 109 | # ldconfig is for Linux |
| 97 | 110 | ||
| 98 | uninstall: | 111 | uninstall: |
| 99 | cd $(prefix)/include; \ | 112 | cd $(includedir); \ |
| 100 | v=$(VER); \ | 113 | v=$(VER); \ |
| 101 | if test -f zlib.h; then \ | 114 | if test -f zlib.h; then \ |
| 102 | v=`sed -n '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`; \ | 115 | v=`sed -n '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`; \ |
| 103 | rm -f zlib.h zconf.h; \ | 116 | rm -f zlib.h zconf.h; \ |
| 104 | fi; \ | 117 | fi; \ |
| 105 | cd $(exec_prefix)/lib; rm -f libz.a; \ | 118 | cd $(libdir); rm -f libz.a; \ |
| 106 | if test -f $(SHAREDLIB).$$v; then \ | 119 | if test -f $(SHAREDLIB).$$v; then \ |
| 107 | rm -f $(SHAREDLIB).$$v $(SHAREDLIB) $(SHAREDLIB).1; \ | 120 | rm -f $(SHAREDLIB).$$v $(SHAREDLIB) $(SHAREDLIB).1; \ |
| 108 | fi | 121 | fi |
| 109 | 122 | ||
| 110 | clean: | 123 | clean: |
| 111 | rm -f *.o *~ example minigzip libz.a libz.so* foo.gz | 124 | rm -f *.o *~ example minigzip libz.a libz.so* foo.gz so_locations \ |
| 125 | _match.s maketree | ||
| 112 | 126 | ||
| 113 | distclean: clean | 127 | distclean: clean |
| 114 | 128 | ||
diff --git a/Makefile.riscos b/Makefile.riscos index 0f10aa8..d97f449 100644 --- a/Makefile.riscos +++ b/Makefile.riscos | |||
| @@ -1,8 +1,9 @@ | |||
| 1 | # Project: zlib_1_03 | 1 | # Project: zlib_1_03 |
| 2 | 2 | # Patched for zlib 1.1.2 rw@shadow.org.uk 19980430 | |
| 3 | # test works out-of-the-box, installs `somewhere' on demand | ||
| 3 | 4 | ||
| 4 | # Toolflags: | 5 | # Toolflags: |
| 5 | CCflags = -c -depend !Depend -IC: -g -throwback -DRISCOS -fnah | 6 | CCflags = -c -depend !Depend -IC: -g -throwback -DRISCOS -fah |
| 6 | C++flags = -c -depend !Depend -IC: -throwback | 7 | C++flags = -c -depend !Depend -IC: -throwback |
| 7 | Linkflags = -aif -c++ -o $@ | 8 | Linkflags = -aif -c++ -o $@ |
| 8 | ObjAsmflags = -throwback -NoCache -depend !Depend | 9 | ObjAsmflags = -throwback -NoCache -depend !Depend |
| @@ -10,37 +11,141 @@ CMHGflags = | |||
| 10 | LibFileflags = -c -l -o $@ | 11 | LibFileflags = -c -l -o $@ |
| 11 | Squeezeflags = -o $@ | 12 | Squeezeflags = -o $@ |
| 12 | 13 | ||
| 14 | # change the line below to where _you_ want the library installed. | ||
| 15 | libdest = lib:zlib | ||
| 13 | 16 | ||
| 14 | # Final targets: | 17 | # Final targets: |
| 15 | @.zlib_lib: @.o.adler32 @.o.compress @.o.crc32 @.o.deflate @.o.gzio \ | 18 | @.lib: @.o.adler32 @.o.compress @.o.crc32 @.o.deflate @.o.gzio \ |
| 16 | @.o.infblock @.o.infcodes @.o.inffast @.o.inflate @.o.inftrees @.o.infutil @.o.trees \ | 19 | @.o.infblock @.o.infcodes @.o.inffast @.o.inflate @.o.inftrees @.o.infutil @.o.trees \ |
| 17 | @.o.uncompress @.o.zutil | 20 | @.o.uncompr @.o.zutil |
| 18 | LibFile $(LibFileflags) @.o.adler32 @.o.compress @.o.crc32 @.o.deflate \ | 21 | LibFile $(LibFileflags) @.o.adler32 @.o.compress @.o.crc32 @.o.deflate \ |
| 19 | @.o.gzio @.o.infblock @.o.infcodes @.o.inffast @.o.inflate @.o.inftrees @.o.infutil \ | 22 | @.o.gzio @.o.infblock @.o.infcodes @.o.inffast @.o.inflate @.o.inftrees @.o.infutil \ |
| 20 | @.o.trees @.o.uncompress @.o.zutil | 23 | @.o.trees @.o.uncompr @.o.zutil |
| 21 | @.test: @.tests.minigzip @.tests.example | 24 | test: @.minigzip @.example @.lib |
| 22 | echo Please run "Test" in directory tests | 25 | @copy @.lib @.libc A~C~DF~L~N~P~Q~RS~TV |
| 23 | @.tests.minigzip: @.o.minigzip @.zlib_lib C:o.Stubs | 26 | @echo running tests: hang on. |
| 24 | Link $(Linkflags) @.o.minigzip @.zlib_lib C:o.Stubs | 27 | @/@.minigzip -f -9 libc |
| 25 | @.tests.example: @.o.example @.zlib_lib C:o.Stubs | 28 | @/@.minigzip -d libc-gz |
| 26 | Link $(Linkflags) @.o.example @.zlib_lib C:o.Stubs | 29 | @/@.minigzip -f -1 libc |
| 30 | @/@.minigzip -d libc-gz | ||
| 31 | @/@.minigzip -h -9 libc | ||
| 32 | @/@.minigzip -d libc-gz | ||
| 33 | @/@.minigzip -h -1 libc | ||
| 34 | @/@.minigzip -d libc-gz | ||
| 35 | @/@.minigzip -9 libc | ||
| 36 | @/@.minigzip -d libc-gz | ||
| 37 | @/@.minigzip -1 libc | ||
| 38 | @/@.minigzip -d libc-gz | ||
| 39 | @diff @.lib @.libc | ||
| 40 | @echo that should have reported '@.lib and @.libc identical' if you have diff. | ||
| 41 | @/@.example @.fred @.fred | ||
| 42 | @echo that will have given lots of hello!'s. | ||
| 43 | |||
| 44 | @.minigzip: @.o.minigzip @.lib C:o.Stubs | ||
| 45 | Link $(Linkflags) @.o.minigzip @.lib C:o.Stubs | ||
| 46 | @.example: @.o.example @.lib C:o.Stubs | ||
| 47 | Link $(Linkflags) @.o.example @.lib C:o.Stubs | ||
| 27 | 48 | ||
| 49 | install: @.lib | ||
| 50 | cdir $(libdest) | ||
| 51 | cdir $(libdest).h | ||
| 52 | @copy @.h.zlib $(libdest).h.zlib A~C~DF~L~N~P~Q~RS~TV | ||
| 53 | @copy @.h.zconf $(libdest).h.zconf A~C~DF~L~N~P~Q~RS~TV | ||
| 54 | @copy @.lib $(libdest).lib A~C~DF~L~N~P~Q~RS~TV | ||
| 55 | @echo okay, installed zlib in $(libdest) | ||
| 56 | |||
| 57 | clean:; remove @.minigzip | ||
| 58 | remove @.example | ||
| 59 | remove @.libc | ||
| 60 | -wipe @.o.* F~r~cV | ||
| 61 | remove @.fred | ||
| 28 | 62 | ||
| 29 | # User-editable dependencies: | 63 | # User-editable dependencies: |
| 30 | .c.o: | 64 | .c.o: |
| 31 | cc $(ccflags) -o $@ $< | 65 | cc $(ccflags) -o $@ $< |
| 32 | 66 | ||
| 33 | # Static dependencies: | 67 | # Static dependencies: |
| 34 | @.o.example: @.tests.c.example | ||
| 35 | cc $(ccflags) -o @.o.example @.tests.c.example | ||
| 36 | @.o.minigzip: @.tests.c.minigzip | ||
| 37 | cc $(ccflags) -o @.o.minigzip @.tests.c.minigzip | ||
| 38 | |||
| 39 | 68 | ||
| 40 | # Dynamic dependencies: | 69 | # Dynamic dependencies: |
| 41 | o.minigzip: tests.c.minigzip | 70 | o.example: c.example |
| 42 | o.minigzip: h.zlib | ||
| 43 | o.minigzip: h.zconf | ||
| 44 | o.example: tests.c.example | ||
| 45 | o.example: h.zlib | 71 | o.example: h.zlib |
| 46 | o.example: h.zconf | 72 | o.example: h.zconf |
| 73 | o.minigzip: c.minigzip | ||
| 74 | o.minigzip: h.zlib | ||
| 75 | o.minigzip: h.zconf | ||
| 76 | o.adler32: c.adler32 | ||
| 77 | o.adler32: h.zlib | ||
| 78 | o.adler32: h.zconf | ||
| 79 | o.compress: c.compress | ||
| 80 | o.compress: h.zlib | ||
| 81 | o.compress: h.zconf | ||
| 82 | o.crc32: c.crc32 | ||
| 83 | o.crc32: h.zlib | ||
| 84 | o.crc32: h.zconf | ||
| 85 | o.deflate: c.deflate | ||
| 86 | o.deflate: h.deflate | ||
| 87 | o.deflate: h.zutil | ||
| 88 | o.deflate: h.zlib | ||
| 89 | o.deflate: h.zconf | ||
| 90 | o.gzio: c.gzio | ||
| 91 | o.gzio: h.zutil | ||
| 92 | o.gzio: h.zlib | ||
| 93 | o.gzio: h.zconf | ||
| 94 | o.infblock: c.infblock | ||
| 95 | o.infblock: h.zutil | ||
| 96 | o.infblock: h.zlib | ||
| 97 | o.infblock: h.zconf | ||
| 98 | o.infblock: h.infblock | ||
| 99 | o.infblock: h.inftrees | ||
| 100 | o.infblock: h.infcodes | ||
| 101 | o.infblock: h.infutil | ||
| 102 | o.infcodes: c.infcodes | ||
| 103 | o.infcodes: h.zutil | ||
| 104 | o.infcodes: h.zlib | ||
| 105 | o.infcodes: h.zconf | ||
| 106 | o.infcodes: h.inftrees | ||
| 107 | o.infcodes: h.infblock | ||
| 108 | o.infcodes: h.infcodes | ||
| 109 | o.infcodes: h.infutil | ||
| 110 | o.infcodes: h.inffast | ||
| 111 | o.inffast: c.inffast | ||
| 112 | o.inffast: h.zutil | ||
| 113 | o.inffast: h.zlib | ||
| 114 | o.inffast: h.zconf | ||
| 115 | o.inffast: h.inftrees | ||
| 116 | o.inffast: h.infblock | ||
| 117 | o.inffast: h.infcodes | ||
| 118 | o.inffast: h.infutil | ||
| 119 | o.inffast: h.inffast | ||
| 120 | o.inflate: c.inflate | ||
| 121 | o.inflate: h.zutil | ||
| 122 | o.inflate: h.zlib | ||
| 123 | o.inflate: h.zconf | ||
| 124 | o.inflate: h.infblock | ||
| 125 | o.inftrees: c.inftrees | ||
| 126 | o.inftrees: h.zutil | ||
| 127 | o.inftrees: h.zlib | ||
| 128 | o.inftrees: h.zconf | ||
| 129 | o.inftrees: h.inftrees | ||
| 130 | o.inftrees: h.inffixed | ||
| 131 | o.infutil: c.infutil | ||
| 132 | o.infutil: h.zutil | ||
| 133 | o.infutil: h.zlib | ||
| 134 | o.infutil: h.zconf | ||
| 135 | o.infutil: h.infblock | ||
| 136 | o.infutil: h.inftrees | ||
| 137 | o.infutil: h.infcodes | ||
| 138 | o.infutil: h.infutil | ||
| 139 | o.trees: c.trees | ||
| 140 | o.trees: h.deflate | ||
| 141 | o.trees: h.zutil | ||
| 142 | o.trees: h.zlib | ||
| 143 | o.trees: h.zconf | ||
| 144 | o.trees: h.trees | ||
| 145 | o.uncompr: c.uncompr | ||
| 146 | o.uncompr: h.zlib | ||
| 147 | o.uncompr: h.zconf | ||
| 148 | o.zutil: c.zutil | ||
| 149 | o.zutil: h.zutil | ||
| 150 | o.zutil: h.zlib | ||
| 151 | o.zutil: h.zconf | ||
