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 /old/msdos | |
| 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 'old/msdos')
| -rw-r--r-- | old/msdos/Makefile.b32 | 104 | ||||
| -rw-r--r-- | old/msdos/Makefile.bor | 125 | ||||
| -rw-r--r-- | old/msdos/Makefile.dj2 | 100 | ||||
| -rw-r--r-- | old/msdos/Makefile.emx | 69 | ||||
| -rw-r--r-- | old/msdos/Makefile.msc | 121 | ||||
| -rw-r--r-- | old/msdos/Makefile.tc | 108 | ||||
| -rw-r--r-- | old/msdos/Makefile.w32 | 97 | ||||
| -rw-r--r-- | old/msdos/Makefile.wat | 103 | ||||
| -rw-r--r-- | old/msdos/zlib.def | 60 | ||||
| -rw-r--r-- | old/msdos/zlib.rc | 32 |
10 files changed, 919 insertions, 0 deletions
diff --git a/old/msdos/Makefile.b32 b/old/msdos/Makefile.b32 new file mode 100644 index 0000000..f476da9 --- /dev/null +++ b/old/msdos/Makefile.b32 | |||
| @@ -0,0 +1,104 @@ | |||
| 1 | # Makefile for zlib | ||
| 2 | # Borland C++ | ||
| 3 | |||
| 4 | # This version of the zlib makefile was adapted by Chris Young for use | ||
| 5 | # with Borland C 4.5x with the Dos Power Pack for a 32-bit protected mode | ||
| 6 | # flat memory model. It was created for use with POV-Ray ray tracer and | ||
| 7 | # you may choose to edit the CFLAGS to suit your needs but the | ||
| 8 | # switches -WX and -DMSDOS are required. | ||
| 9 | # -- Chris Young 76702.1655@compuserve.com | ||
| 10 | |||
| 11 | # To use, do "make -fmakefile.b32" | ||
| 12 | |||
| 13 | # See zconf.h for details about the memory requirements. | ||
| 14 | |||
| 15 | # ------------- Borland C++ ------------- | ||
| 16 | MODEL=-WX | ||
| 17 | CFLAGS= $(MODEL) -P-C -K -N- -k- -d -3 -r- -v- -f -DMSDOS | ||
| 18 | CC=bcc32 | ||
| 19 | LD=bcc32 | ||
| 20 | LIB=tlib | ||
| 21 | LDFLAGS= $(MODEL) | ||
| 22 | O=.obj | ||
| 23 | |||
| 24 | # variables | ||
| 25 | OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \ | ||
| 26 | trees$(O) | ||
| 27 | OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\ | ||
| 28 | trees$(O) | ||
| 29 | OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \ | ||
| 30 | infutil$(O) inffast$(O) | ||
| 31 | OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\ | ||
| 32 | infutil$(O)+inffast$(O) | ||
| 33 | |||
| 34 | all: test | ||
| 35 | |||
| 36 | adler32.obj: adler32.c zlib.h zconf.h | ||
| 37 | $(CC) -c $(CFLAGS) $*.c | ||
| 38 | |||
| 39 | compress.obj: compress.c zlib.h zconf.h | ||
| 40 | $(CC) -c $(CFLAGS) $*.c | ||
| 41 | |||
| 42 | crc32.obj: crc32.c zlib.h zconf.h | ||
| 43 | $(CC) -c $(CFLAGS) $*.c | ||
| 44 | |||
| 45 | deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h | ||
| 46 | $(CC) -c $(CFLAGS) $*.c | ||
| 47 | |||
| 48 | gzio.obj: gzio.c zutil.h zlib.h zconf.h | ||
| 49 | $(CC) -c $(CFLAGS) $*.c | ||
| 50 | |||
| 51 | infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\ | ||
| 52 | infcodes.h infutil.h | ||
| 53 | $(CC) -c $(CFLAGS) $*.c | ||
| 54 | |||
| 55 | infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\ | ||
| 56 | infcodes.h inffast.h | ||
| 57 | $(CC) -c $(CFLAGS) $*.c | ||
| 58 | |||
| 59 | inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h | ||
| 60 | $(CC) -c $(CFLAGS) $*.c | ||
| 61 | |||
| 62 | inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h | ||
| 63 | $(CC) -c $(CFLAGS) $*.c | ||
| 64 | |||
| 65 | infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h | ||
| 66 | $(CC) -c $(CFLAGS) $*.c | ||
| 67 | |||
| 68 | inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h | ||
| 69 | $(CC) -c $(CFLAGS) $*.c | ||
| 70 | |||
| 71 | trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h | ||
| 72 | $(CC) -c $(CFLAGS) $*.c | ||
| 73 | |||
| 74 | uncompr.obj: uncompr.c zlib.h zconf.h | ||
| 75 | $(CC) -c $(CFLAGS) $*.c | ||
| 76 | |||
| 77 | zutil.obj: zutil.c zutil.h zlib.h zconf.h | ||
| 78 | $(CC) -c $(CFLAGS) $*.c | ||
| 79 | |||
| 80 | example.obj: example.c zlib.h zconf.h | ||
| 81 | $(CC) -c $(CFLAGS) $*.c | ||
| 82 | |||
| 83 | minigzip.obj: minigzip.c zlib.h zconf.h | ||
| 84 | $(CC) -c $(CFLAGS) $*.c | ||
| 85 | |||
| 86 | # we must cut the command line to fit in the MS/DOS 128 byte limit: | ||
| 87 | zlib.lib: $(OBJ1) $(OBJ2) | ||
| 88 | del zlib.lib | ||
| 89 | $(LIB) zlib +$(OBJP1) | ||
| 90 | $(LIB) zlib +$(OBJP2) | ||
| 91 | |||
| 92 | example.exe: example.obj zlib.lib | ||
| 93 | $(LD) $(LDFLAGS) example.obj zlib.lib | ||
| 94 | |||
| 95 | minigzip.exe: minigzip.obj zlib.lib | ||
| 96 | $(LD) $(LDFLAGS) minigzip.obj zlib.lib | ||
| 97 | |||
| 98 | test: example.exe minigzip.exe | ||
| 99 | example | ||
| 100 | echo hello world | minigzip | minigzip -d | ||
| 101 | |||
| 102 | #clean: | ||
| 103 | # del *.obj | ||
| 104 | # del *.exe | ||
diff --git a/old/msdos/Makefile.bor b/old/msdos/Makefile.bor new file mode 100644 index 0000000..f5651b4 --- /dev/null +++ b/old/msdos/Makefile.bor | |||
| @@ -0,0 +1,125 @@ | |||
| 1 | # Makefile for zlib | ||
| 2 | # Borland C++ ************ UNTESTED *********** | ||
| 3 | |||
| 4 | # To use, do "make -fmakefile.bor" | ||
| 5 | # To compile in small model, set below: MODEL=s | ||
| 6 | |||
| 7 | # WARNING: the small model is supported but only for small values of | ||
| 8 | # MAX_WBITS and MAX_MEM_LEVEL. For example: | ||
| 9 | # -DMAX_WBITS=11 -DDEF_WBITS=11 -DMAX_MEM_LEVEL=3 | ||
| 10 | # If you wish to reduce the memory requirements (default 256K for big | ||
| 11 | # objects plus a few K), you can add to the LOC macro below: | ||
| 12 | # -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14 | ||
| 13 | # See zconf.h for details about the memory requirements. | ||
| 14 | |||
| 15 | # ------------- Turbo C++, Borland C++ ------------- | ||
| 16 | |||
| 17 | # Optional nonstandard preprocessor flags (e.g. -DMAX_MEM_LEVEL=7) | ||
| 18 | # should be added to the environment via "set LOCAL_ZLIB=-DFOO" or added | ||
| 19 | # to the declaration of LOC here: | ||
| 20 | LOC = $(LOCAL_ZLIB) | ||
| 21 | |||
| 22 | # Type for CPU required: 0: 8086, 1: 80186, 2: 80286, 3: 80386, etc. | ||
| 23 | CPU_TYP = 0 | ||
| 24 | |||
| 25 | # Memory model: one of s, m, c, l (small, medium, compact, large) | ||
| 26 | MODEL=l | ||
| 27 | |||
| 28 | CC=bcc | ||
| 29 | # replace bcc with tcc for Turbo C++ 1.0, with bcc32 for the 32 bit version | ||
| 30 | LD=$(CC) | ||
| 31 | AR=tlib | ||
| 32 | |||
| 33 | # compiler flags | ||
| 34 | CFLAGS=-O2 -Z -m$(MODEL) $(LOC) | ||
| 35 | # replace "-O2" by "-O -G -a -d" for Turbo C++ 1.0 | ||
| 36 | |||
| 37 | LDFLAGS=-m$(MODEL) | ||
| 38 | |||
| 39 | O=.obj | ||
| 40 | |||
| 41 | # variables | ||
| 42 | OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \ | ||
| 43 | trees$(O) | ||
| 44 | OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\ | ||
| 45 | trees$(O) | ||
| 46 | OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \ | ||
| 47 | infutil$(O) inffast$(O) | ||
| 48 | OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\ | ||
| 49 | infutil$(O)+inffast$(O) | ||
| 50 | |||
| 51 | ZLIB_H = zlib.h zconf.h | ||
| 52 | ZUTIL_H = zutil.h $(ZLIB_H) | ||
| 53 | |||
| 54 | ZLIB_LIB = zlib_$(MODEL).lib | ||
| 55 | |||
| 56 | all: test | ||
| 57 | |||
| 58 | # individual dependencies and action rules: | ||
| 59 | adler32.obj: adler32.c $(ZLIB_H) | ||
| 60 | $(CC) -c $(CFLAGS) $*.c | ||
| 61 | |||
| 62 | compress.obj: compress.c $(ZLIB_H) | ||
| 63 | $(CC) -c $(CFLAGS) $*.c | ||
| 64 | |||
| 65 | crc32.obj: crc32.c $(ZLIB_H) | ||
| 66 | $(CC) -c $(CFLAGS) $*.c | ||
| 67 | |||
| 68 | deflate.obj: deflate.c deflate.h $(ZUTIL_H) | ||
| 69 | $(CC) -c $(CFLAGS) $*.c | ||
| 70 | |||
| 71 | gzio.obj: gzio.c $(ZUTIL_H) | ||
| 72 | $(CC) -c $(CFLAGS) $*.c | ||
| 73 | |||
| 74 | infblock.obj: infblock.c $(ZUTIL_H) infblock.h inftrees.h infcodes.h infutil.h | ||
| 75 | $(CC) -c $(CFLAGS) $*.c | ||
| 76 | |||
| 77 | infcodes.obj: infcodes.c $(ZUTIL_H) inftrees.h infutil.h infcodes.h inffast.h | ||
| 78 | $(CC) -c $(CFLAGS) $*.c | ||
| 79 | |||
| 80 | inflate.obj: inflate.c $(ZUTIL_H) infblock.h | ||
| 81 | $(CC) -c $(CFLAGS) $*.c | ||
| 82 | |||
| 83 | inftrees.obj: inftrees.c $(ZUTIL_H) inftrees.h | ||
| 84 | $(CC) -c $(CFLAGS) $*.c | ||
| 85 | |||
| 86 | infutil.obj: infutil.c $(ZUTIL_H) inftrees.h infutil.h | ||
| 87 | $(CC) -c $(CFLAGS) $*.c | ||
| 88 | |||
| 89 | inffast.obj: inffast.c $(ZUTIL_H) inftrees.h infutil.h inffast.h | ||
| 90 | $(CC) -c $(CFLAGS) $*.c | ||
| 91 | |||
| 92 | trees.obj: trees.c deflate.h $(ZUTIL_H) | ||
| 93 | $(CC) -c $(CFLAGS) $*.c | ||
| 94 | |||
| 95 | uncompr.obj: uncompr.c $(ZLIB_H) | ||
| 96 | $(CC) -c $(CFLAGS) $*.c | ||
| 97 | |||
| 98 | zutil.obj: zutil.c $(ZUTIL_H) | ||
| 99 | $(CC) -c $(CFLAGS) $*.c | ||
| 100 | |||
| 101 | example.obj: example.c $(ZLIB_H) | ||
| 102 | $(CC) -c $(CFLAGS) $*.c | ||
| 103 | |||
| 104 | minigzip.obj: minigzip.c $(ZLIB_H) | ||
| 105 | $(CC) -c $(CFLAGS) $*.c | ||
| 106 | |||
| 107 | # we must cut the command line to fit in the MS/DOS 128 byte limit: | ||
| 108 | $(ZLIB_LIB): $(OBJ1) $(OBJ2) | ||
| 109 | del $(ZLIB_LIB) | ||
| 110 | $(AR) $(ZLIB_LIB) +$(OBJP1) | ||
| 111 | $(AR) $(ZLIB_LIB) +$(OBJP2) | ||
| 112 | |||
| 113 | example.exe: example.obj $(ZLIB_LIB) | ||
| 114 | $(LD) $(LDFLAGS) example.obj $(ZLIB_LIB) | ||
| 115 | |||
| 116 | minigzip.exe: minigzip.obj $(ZLIB_LIB) | ||
| 117 | $(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB) | ||
| 118 | |||
| 119 | test: example.exe minigzip.exe | ||
| 120 | example | ||
| 121 | echo hello world | minigzip | minigzip -d | ||
| 122 | |||
| 123 | #clean: | ||
| 124 | # del *.obj | ||
| 125 | # del *.exe | ||
diff --git a/old/msdos/Makefile.dj2 b/old/msdos/Makefile.dj2 new file mode 100644 index 0000000..0ab431c --- /dev/null +++ b/old/msdos/Makefile.dj2 | |||
| @@ -0,0 +1,100 @@ | |||
| 1 | # Makefile for zlib. Modified for djgpp v2.0 by F. J. Donahoe, 3/15/96. | ||
| 2 | # Copyright (C) 1995-1998 Jean-loup Gailly. | ||
| 3 | # For conditions of distribution and use, see copyright notice in zlib.h | ||
| 4 | |||
| 5 | # To compile, or to compile and test, type: | ||
| 6 | # | ||
| 7 | # make -fmakefile.dj2; make test -fmakefile.dj2 | ||
| 8 | # | ||
| 9 | # To install libz.a, zconf.h and zlib.h in the djgpp directories, type: | ||
| 10 | # | ||
| 11 | # make install -fmakefile.dj2 | ||
| 12 | # | ||
| 13 | # after first defining LIBRARY_PATH and INCLUDE_PATH in djgpp.env as | ||
| 14 | # in the sample below if the pattern of the DJGPP distribution is to | ||
| 15 | # be followed. Remember that, while <sp>'es around <=> are ignored in | ||
| 16 | # makefiles, they are *not* in batch files or in djgpp.env. | ||
| 17 | # - - - - - | ||
| 18 | # [make] | ||
| 19 | # INCLUDE_PATH=%\>;INCLUDE_PATH%%\DJDIR%\include | ||
| 20 | # LIBRARY_PATH=%\>;LIBRARY_PATH%%\DJDIR%\lib | ||
| 21 | # BUTT=-m486 | ||
| 22 | # - - - - - | ||
| 23 | # Alternately, these variables may be defined below, overriding the values | ||
| 24 | # in djgpp.env, as | ||
| 25 | # INCLUDE_PATH=c:\usr\include | ||
| 26 | # LIBRARY_PATH=c:\usr\lib | ||
| 27 | |||
| 28 | CC=gcc | ||
| 29 | |||
| 30 | #CFLAGS=-MMD -O | ||
| 31 | #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 | ||
| 32 | #CFLAGS=-MMD -g -DDEBUG | ||
| 33 | CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ | ||
| 34 | -Wstrict-prototypes -Wmissing-prototypes | ||
| 35 | |||
| 36 | # If cp.exe is available, replace "copy /Y" with "cp -fp" . | ||
| 37 | CP=copy /Y | ||
| 38 | # If gnu install.exe is available, replace $(CP) with ginstall. | ||
| 39 | INSTALL=$(CP) | ||
| 40 | # The default value of RM is "rm -f." If "rm.exe" is found, comment out: | ||
| 41 | RM=del | ||
| 42 | LDLIBS=-L. -lz | ||
| 43 | LD=$(CC) -s -o | ||
| 44 | LDSHARED=$(CC) | ||
| 45 | |||
| 46 | INCL=zlib.h zconf.h | ||
| 47 | LIBS=libz.a | ||
| 48 | |||
| 49 | AR=ar rcs | ||
| 50 | |||
| 51 | prefix=/usr/local | ||
| 52 | exec_prefix = $(prefix) | ||
| 53 | |||
| 54 | OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ | ||
| 55 | zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o | ||
| 56 | |||
| 57 | TEST_OBJS = example.o minigzip.o | ||
| 58 | |||
| 59 | all: example.exe minigzip.exe | ||
| 60 | |||
| 61 | test: all | ||
| 62 | ./example | ||
| 63 | echo hello world | .\minigzip | .\minigzip -d | ||
| 64 | |||
| 65 | %.o : %.c | ||
| 66 | $(CC) $(CFLAGS) -c $< -o $@ | ||
| 67 | |||
| 68 | libz.a: $(OBJS) | ||
| 69 | $(AR) $@ $(OBJS) | ||
| 70 | |||
| 71 | %.exe : %.o $(LIBS) | ||
| 72 | $(LD) $@ $< $(LDLIBS) | ||
| 73 | |||
| 74 | # INCLUDE_PATH and LIBRARY_PATH were set for [make] in djgpp.env . | ||
| 75 | |||
| 76 | .PHONY : uninstall clean | ||
| 77 | |||
| 78 | install: $(INCL) $(LIBS) | ||
| 79 | -@if not exist $(INCLUDE_PATH)\nul mkdir $(INCLUDE_PATH) | ||
| 80 | -@if not exist $(LIBRARY_PATH)\nul mkdir $(LIBRARY_PATH) | ||
| 81 | $(INSTALL) zlib.h $(INCLUDE_PATH) | ||
| 82 | $(INSTALL) zconf.h $(INCLUDE_PATH) | ||
| 83 | $(INSTALL) libz.a $(LIBRARY_PATH) | ||
| 84 | |||
| 85 | uninstall: | ||
| 86 | $(RM) $(INCLUDE_PATH)\zlib.h | ||
| 87 | $(RM) $(INCLUDE_PATH)\zconf.h | ||
| 88 | $(RM) $(LIBRARY_PATH)\libz.a | ||
| 89 | |||
| 90 | clean: | ||
| 91 | $(RM) *.d | ||
| 92 | $(RM) *.o | ||
| 93 | $(RM) *.exe | ||
| 94 | $(RM) libz.a | ||
| 95 | $(RM) foo.gz | ||
| 96 | |||
| 97 | DEPS := $(wildcard *.d) | ||
| 98 | ifneq ($(DEPS),) | ||
| 99 | include $(DEPS) | ||
| 100 | endif | ||
diff --git a/old/msdos/Makefile.emx b/old/msdos/Makefile.emx new file mode 100644 index 0000000..0e5e5cc --- /dev/null +++ b/old/msdos/Makefile.emx | |||
| @@ -0,0 +1,69 @@ | |||
| 1 | # Makefile for zlib. Modified for emx 0.9c by Chr. Spieler, 6/17/98. | ||
| 2 | # Copyright (C) 1995-1998 Jean-loup Gailly. | ||
| 3 | # For conditions of distribution and use, see copyright notice in zlib.h | ||
| 4 | |||
| 5 | # To compile, or to compile and test, type: | ||
| 6 | # | ||
| 7 | # make -fmakefile.emx; make test -fmakefile.emx | ||
| 8 | # | ||
| 9 | |||
| 10 | CC=gcc | ||
| 11 | |||
| 12 | #CFLAGS=-MMD -O | ||
| 13 | #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 | ||
| 14 | #CFLAGS=-MMD -g -DDEBUG | ||
| 15 | CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ | ||
| 16 | -Wstrict-prototypes -Wmissing-prototypes | ||
| 17 | |||
| 18 | # If cp.exe is available, replace "copy /Y" with "cp -fp" . | ||
| 19 | CP=copy /Y | ||
| 20 | # If gnu install.exe is available, replace $(CP) with ginstall. | ||
| 21 | INSTALL=$(CP) | ||
| 22 | # The default value of RM is "rm -f." If "rm.exe" is found, comment out: | ||
| 23 | RM=del | ||
| 24 | LDLIBS=-L. -lzlib | ||
| 25 | LD=$(CC) -s -o | ||
| 26 | LDSHARED=$(CC) | ||
| 27 | |||
| 28 | INCL=zlib.h zconf.h | ||
| 29 | LIBS=zlib.a | ||
| 30 | |||
| 31 | AR=ar rcs | ||
| 32 | |||
| 33 | prefix=/usr/local | ||
| 34 | exec_prefix = $(prefix) | ||
| 35 | |||
| 36 | OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ | ||
| 37 | zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o | ||
| 38 | |||
| 39 | TEST_OBJS = example.o minigzip.o | ||
| 40 | |||
| 41 | all: example.exe minigzip.exe | ||
| 42 | |||
| 43 | test: all | ||
| 44 | ./example | ||
| 45 | echo hello world | .\minigzip | .\minigzip -d | ||
| 46 | |||
| 47 | %.o : %.c | ||
| 48 | $(CC) $(CFLAGS) -c $< -o $@ | ||
| 49 | |||
| 50 | zlib.a: $(OBJS) | ||
| 51 | $(AR) $@ $(OBJS) | ||
| 52 | |||
| 53 | %.exe : %.o $(LIBS) | ||
| 54 | $(LD) $@ $< $(LDLIBS) | ||
| 55 | |||
| 56 | |||
| 57 | .PHONY : clean | ||
| 58 | |||
| 59 | clean: | ||
| 60 | $(RM) *.d | ||
| 61 | $(RM) *.o | ||
| 62 | $(RM) *.exe | ||
| 63 | $(RM) zlib.a | ||
| 64 | $(RM) foo.gz | ||
| 65 | |||
| 66 | DEPS := $(wildcard *.d) | ||
| 67 | ifneq ($(DEPS),) | ||
| 68 | include $(DEPS) | ||
| 69 | endif | ||
diff --git a/old/msdos/Makefile.msc b/old/msdos/Makefile.msc new file mode 100644 index 0000000..562201d --- /dev/null +++ b/old/msdos/Makefile.msc | |||
| @@ -0,0 +1,121 @@ | |||
| 1 | # Makefile for zlib | ||
| 2 | # Microsoft C 5.1 or later | ||
| 3 | |||
| 4 | # To use, do "make makefile.msc" | ||
| 5 | # To compile in small model, set below: MODEL=S | ||
| 6 | |||
| 7 | # If you wish to reduce the memory requirements (default 256K for big | ||
| 8 | # objects plus a few K), you can add to the LOC macro below: | ||
| 9 | # -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14 | ||
| 10 | # See zconf.h for details about the memory requirements. | ||
| 11 | |||
| 12 | # ------------- Microsoft C 5.1 and later ------------- | ||
| 13 | |||
| 14 | # Optional nonstandard preprocessor flags (e.g. -DMAX_MEM_LEVEL=7) | ||
| 15 | # should be added to the environment via "set LOCAL_ZLIB=-DFOO" or added | ||
| 16 | # to the declaration of LOC here: | ||
| 17 | LOC = $(LOCAL_ZLIB) | ||
| 18 | |||
| 19 | # Type for CPU required: 0: 8086, 1: 80186, 2: 80286, 3: 80386, etc. | ||
| 20 | CPU_TYP = 0 | ||
| 21 | |||
| 22 | # Memory model: one of S, M, C, L (small, medium, compact, large) | ||
| 23 | MODEL=L | ||
| 24 | |||
| 25 | CC=cl | ||
| 26 | CFLAGS=-nologo -A$(MODEL) -G$(CPU_TYP) -W3 -Oait -Gs $(LOC) | ||
| 27 | #-Ox generates bad code with MSC 5.1 | ||
| 28 | LIB_CFLAGS=-Zl $(CFLAGS) | ||
| 29 | |||
| 30 | LD=link | ||
| 31 | LDFLAGS=/noi/e/st:0x1500/noe/farcall/packcode | ||
| 32 | # "/farcall/packcode" are only useful for `large code' memory models | ||
| 33 | # but should be a "no-op" for small code models. | ||
| 34 | |||
| 35 | O=.obj | ||
| 36 | |||
| 37 | # variables | ||
| 38 | OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \ | ||
| 39 | trees$(O) | ||
| 40 | OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\ | ||
| 41 | trees$(O) | ||
| 42 | OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \ | ||
| 43 | infutil$(O) inffast$(O) | ||
| 44 | OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\ | ||
| 45 | infutil$(O)+inffast$(O) | ||
| 46 | |||
| 47 | ZLIB_H = zlib.h zconf.h | ||
| 48 | ZUTIL_H = zutil.h $(ZLIB_H) | ||
| 49 | |||
| 50 | ZLIB_LIB = zlib_$(MODEL).lib | ||
| 51 | |||
| 52 | all: $(ZLIB_LIB) example.exe minigzip.exe | ||
| 53 | |||
| 54 | # individual dependencies and action rules: | ||
| 55 | adler32.obj: adler32.c $(ZLIB_H) | ||
| 56 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 57 | |||
| 58 | compress.obj: compress.c $(ZLIB_H) | ||
| 59 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 60 | |||
| 61 | crc32.obj: crc32.c $(ZLIB_H) | ||
| 62 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 63 | |||
| 64 | deflate.obj: deflate.c deflate.h $(ZUTIL_H) | ||
| 65 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 66 | |||
| 67 | gzio.obj: gzio.c $(ZUTIL_H) | ||
| 68 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 69 | |||
| 70 | infblock.obj: infblock.c $(ZUTIL_H) infblock.h inftrees.h infcodes.h infutil.h | ||
| 71 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 72 | |||
| 73 | infcodes.obj: infcodes.c $(ZUTIL_H) inftrees.h infutil.h infcodes.h inffast.h | ||
| 74 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 75 | |||
| 76 | inflate.obj: inflate.c $(ZUTIL_H) infblock.h | ||
| 77 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 78 | |||
| 79 | inftrees.obj: inftrees.c $(ZUTIL_H) inftrees.h | ||
| 80 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 81 | |||
| 82 | infutil.obj: infutil.c $(ZUTIL_H) inftrees.h infutil.h | ||
| 83 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 84 | |||
| 85 | inffast.obj: inffast.c $(ZUTIL_H) inftrees.h infutil.h inffast.h | ||
| 86 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 87 | |||
| 88 | trees.obj: trees.c deflate.h $(ZUTIL_H) | ||
| 89 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 90 | |||
| 91 | uncompr.obj: uncompr.c $(ZLIB_H) | ||
| 92 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 93 | |||
| 94 | zutil.obj: zutil.c $(ZUTIL_H) | ||
| 95 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
| 96 | |||
| 97 | example.obj: example.c $(ZLIB_H) | ||
| 98 | $(CC) -c $(CFLAGS) $*.c | ||
| 99 | |||
| 100 | minigzip.obj: minigzip.c $(ZLIB_H) | ||
| 101 | $(CC) -c $(CFLAGS) $*.c | ||
| 102 | |||
| 103 | # we must cut the command line to fit in the MS/DOS 128 byte limit: | ||
| 104 | $(ZLIB_LIB): $(OBJ1) $(OBJ2) | ||
| 105 | if exist $(ZLIB_LIB) del $(ZLIB_LIB) | ||
| 106 | lib $(ZLIB_LIB) $(OBJ1); | ||
| 107 | lib $(ZLIB_LIB) $(OBJ2); | ||
| 108 | |||
| 109 | example.exe: example.obj $(ZLIB_LIB) | ||
| 110 | $(LD) $(LDFLAGS) example.obj,,,$(ZLIB_LIB); | ||
| 111 | |||
| 112 | minigzip.exe: minigzip.obj $(ZLIB_LIB) | ||
| 113 | $(LD) $(LDFLAGS) minigzip.obj,,,$(ZLIB_LIB); | ||
| 114 | |||
| 115 | test: example.exe minigzip.exe | ||
| 116 | example | ||
| 117 | echo hello world | minigzip | minigzip -d | ||
| 118 | |||
| 119 | #clean: | ||
| 120 | # del *.obj | ||
| 121 | # del *.exe | ||
diff --git a/old/msdos/Makefile.tc b/old/msdos/Makefile.tc new file mode 100644 index 0000000..63e0550 --- /dev/null +++ b/old/msdos/Makefile.tc | |||
| @@ -0,0 +1,108 @@ | |||
| 1 | # Makefile for zlib | ||
| 2 | # TurboC 2.0 | ||
| 3 | |||
| 4 | # To use, do "make -fmakefile.tc" | ||
| 5 | # To compile in small model, set below: MODEL=-ms | ||
| 6 | |||
| 7 | # WARNING: the small model is supported but only for small values of | ||
| 8 | # MAX_WBITS and MAX_MEM_LEVEL. For example: | ||
| 9 | # -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3 | ||
| 10 | # If you wish to reduce the memory requirements (default 256K for big | ||
| 11 | # objects plus a few K), you can add to CFLAGS below: | ||
| 12 | # -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14 | ||
| 13 | # See zconf.h for details about the memory requirements. | ||
| 14 | |||
| 15 | # ------------- Turbo C 2.0 ------------- | ||
| 16 | MODEL=l | ||
| 17 | # CFLAGS=-O2 -G -Z -m$(MODEL) -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3 | ||
| 18 | CFLAGS=-O2 -G -Z -m$(MODEL) | ||
| 19 | CC=tcc -I\tc\include | ||
| 20 | LD=tcc -L\tc\lib | ||
| 21 | AR=tlib | ||
| 22 | LDFLAGS=-m$(MODEL) -f- | ||
| 23 | O=.obj | ||
| 24 | |||
| 25 | # variables | ||
| 26 | OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \ | ||
| 27 | trees$(O) | ||
| 28 | OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\ | ||
| 29 | trees$(O) | ||
| 30 | OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \ | ||
| 31 | infutil$(O) inffast$(O) | ||
| 32 | OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\ | ||
| 33 | infutil$(O)+inffast$(O) | ||
| 34 | |||
| 35 | ZLIB_H = zlib.h zconf.h | ||
| 36 | ZUTIL_H = zutil.h $(ZLIB_H) | ||
| 37 | |||
| 38 | ZLIB_LIB = zlib_$(MODEL).lib | ||
| 39 | |||
| 40 | all: test | ||
| 41 | |||
| 42 | adler32.obj: adler32.c $(ZLIB_H) | ||
| 43 | $(CC) -c $(CFLAGS) $*.c | ||
| 44 | |||
| 45 | compress.obj: compress.c $(ZLIB_H) | ||
| 46 | $(CC) -c $(CFLAGS) $*.c | ||
| 47 | |||
| 48 | crc32.obj: crc32.c $(ZLIB_H) | ||
| 49 | $(CC) -c $(CFLAGS) $*.c | ||
| 50 | |||
| 51 | deflate.obj: deflate.c deflate.h $(ZUTIL_H) | ||
| 52 | $(CC) -c $(CFLAGS) $*.c | ||
| 53 | |||
| 54 | gzio.obj: gzio.c $(ZUTIL_H) | ||
| 55 | $(CC) -c $(CFLAGS) $*.c | ||
| 56 | |||
| 57 | infblock.obj: infblock.c $(ZUTIL_H) infblock.h inftrees.h infcodes.h infutil.h | ||
| 58 | $(CC) -c $(CFLAGS) $*.c | ||
| 59 | |||
| 60 | infcodes.obj: infcodes.c $(ZUTIL_H) inftrees.h infutil.h infcodes.h inffast.h | ||
| 61 | $(CC) -c $(CFLAGS) $*.c | ||
| 62 | |||
| 63 | inflate.obj: inflate.c $(ZUTIL_H) infblock.h | ||
| 64 | $(CC) -c $(CFLAGS) $*.c | ||
| 65 | |||
| 66 | inftrees.obj: inftrees.c $(ZUTIL_H) inftrees.h | ||
| 67 | $(CC) -c $(CFLAGS) $*.c | ||
| 68 | |||
| 69 | infutil.obj: infutil.c $(ZUTIL_H) inftrees.h infutil.h | ||
| 70 | $(CC) -c $(CFLAGS) $*.c | ||
| 71 | |||
| 72 | inffast.obj: inffast.c $(ZUTIL_H) inftrees.h infutil.h inffast.h | ||
| 73 | $(CC) -c $(CFLAGS) $*.c | ||
| 74 | |||
| 75 | trees.obj: trees.c deflate.h $(ZUTIL_H) | ||
| 76 | $(CC) -c $(CFLAGS) $*.c | ||
| 77 | |||
| 78 | uncompr.obj: uncompr.c $(ZLIB_H) | ||
| 79 | $(CC) -c $(CFLAGS) $*.c | ||
| 80 | |||
| 81 | zutil.obj: zutil.c $(ZUTIL_H) | ||
| 82 | $(CC) -c $(CFLAGS) $*.c | ||
| 83 | |||
| 84 | example.obj: example.c $(ZLIB_H) | ||
| 85 | $(CC) -c $(CFLAGS) $*.c | ||
| 86 | |||
| 87 | minigzip.obj: minigzip.c $(ZLIB_H) | ||
| 88 | $(CC) -c $(CFLAGS) $*.c | ||
| 89 | |||
| 90 | # we must cut the command line to fit in the MS/DOS 128 byte limit: | ||
| 91 | $(ZLIB_LIB): $(OBJ1) $(OBJ2) | ||
| 92 | del $(ZLIB_LIB) | ||
| 93 | $(AR) $(ZLIB_LIB) +$(OBJP1) | ||
| 94 | $(AR) $(ZLIB_LIB) +$(OBJP2) | ||
| 95 | |||
| 96 | example.exe: example.obj $(ZLIB_LIB) | ||
| 97 | $(LD) $(LDFLAGS) -eexample.exe example.obj $(ZLIB_LIB) | ||
| 98 | |||
| 99 | minigzip.exe: minigzip.obj $(ZLIB_LIB) | ||
| 100 | $(LD) $(LDFLAGS) -eminigzip.exe minigzip.obj $(ZLIB_LIB) | ||
| 101 | |||
| 102 | test: example.exe minigzip.exe | ||
| 103 | example | ||
| 104 | echo hello world | minigzip | minigzip -d | ||
| 105 | |||
| 106 | #clean: | ||
| 107 | # del *.obj | ||
| 108 | # del *.exe | ||
diff --git a/old/msdos/Makefile.w32 b/old/msdos/Makefile.w32 new file mode 100644 index 0000000..0a05fa9 --- /dev/null +++ b/old/msdos/Makefile.w32 | |||
| @@ -0,0 +1,97 @@ | |||
| 1 | # Makefile for zlib | ||
| 2 | # Microsoft 32-bit Visual C++ 4.0 or later (may work on earlier versions) | ||
| 3 | |||
| 4 | # To use, do "nmake /f makefile.w32" | ||
| 5 | |||
| 6 | # If you wish to reduce the memory requirements (default 256K for big | ||
| 7 | # objects plus a few K), you can add to CFLAGS below: | ||
| 8 | # -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14 | ||
| 9 | # See zconf.h for details about the memory requirements. | ||
| 10 | |||
| 11 | # ------------- Microsoft Visual C++ 4.0 and later ------------- | ||
| 12 | MODEL= | ||
| 13 | CFLAGS=-Ox -GA3s -nologo -W3 | ||
| 14 | CC=cl | ||
| 15 | LD=link | ||
| 16 | LDFLAGS= | ||
| 17 | O=.obj | ||
| 18 | |||
| 19 | # variables | ||
| 20 | OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \ | ||
| 21 | trees$(O) | ||
| 22 | OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\ | ||
| 23 | trees$(O) | ||
| 24 | OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \ | ||
| 25 | infutil$(O) inffast$(O) | ||
| 26 | OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\ | ||
| 27 | infutil$(O)+inffast$(O) | ||
| 28 | |||
| 29 | all: zlib.lib example.exe minigzip.exe | ||
| 30 | |||
| 31 | adler32.obj: adler32.c zlib.h zconf.h | ||
| 32 | $(CC) -c $(CFLAGS) $*.c | ||
| 33 | |||
| 34 | compress.obj: compress.c zlib.h zconf.h | ||
| 35 | $(CC) -c $(CFLAGS) $*.c | ||
| 36 | |||
| 37 | crc32.obj: crc32.c zlib.h zconf.h | ||
| 38 | $(CC) -c $(CFLAGS) $*.c | ||
| 39 | |||
| 40 | deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h | ||
| 41 | $(CC) -c $(CFLAGS) $*.c | ||
| 42 | |||
| 43 | gzio.obj: gzio.c zutil.h zlib.h zconf.h | ||
| 44 | $(CC) -c $(CFLAGS) $*.c | ||
| 45 | |||
| 46 | infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\ | ||
| 47 | infcodes.h infutil.h | ||
| 48 | $(CC) -c $(CFLAGS) $*.c | ||
| 49 | |||
| 50 | infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\ | ||
| 51 | infcodes.h inffast.h | ||
| 52 | $(CC) -c $(CFLAGS) $*.c | ||
| 53 | |||
| 54 | inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h | ||
| 55 | $(CC) -c $(CFLAGS) $*.c | ||
| 56 | |||
| 57 | inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h | ||
| 58 | $(CC) -c $(CFLAGS) $*.c | ||
| 59 | |||
| 60 | infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h | ||
| 61 | $(CC) -c $(CFLAGS) $*.c | ||
| 62 | |||
| 63 | inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h | ||
| 64 | $(CC) -c $(CFLAGS) $*.c | ||
| 65 | |||
| 66 | trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h | ||
| 67 | $(CC) -c $(CFLAGS) $*.c | ||
| 68 | |||
| 69 | uncompr.obj: uncompr.c zlib.h zconf.h | ||
| 70 | $(CC) -c $(CFLAGS) $*.c | ||
| 71 | |||
| 72 | zutil.obj: zutil.c zutil.h zlib.h zconf.h | ||
| 73 | $(CC) -c $(CFLAGS) $*.c | ||
| 74 | |||
| 75 | example.obj: example.c zlib.h zconf.h | ||
| 76 | $(CC) -c $(CFLAGS) $*.c | ||
| 77 | |||
| 78 | minigzip.obj: minigzip.c zlib.h zconf.h | ||
| 79 | $(CC) -c $(CFLAGS) $*.c | ||
| 80 | |||
| 81 | zlib.lib: $(OBJ1) $(OBJ2) | ||
| 82 | if exist zlib.lib del zlib.lib | ||
| 83 | lib /OUT:zlib.lib $(OBJ1) $(OBJ2) | ||
| 84 | |||
| 85 | example.exe: example.obj zlib.lib | ||
| 86 | $(LD) $(LDFLAGS) example.obj zlib.lib /OUT:example.exe /SUBSYSTEM:CONSOLE | ||
| 87 | |||
| 88 | minigzip.exe: minigzip.obj zlib.lib | ||
| 89 | $(LD) $(LDFLAGS) minigzip.obj zlib.lib /OUT:minigzip.exe /SUBSYSTEM:CONSOLE | ||
| 90 | |||
| 91 | test: example.exe minigzip.exe | ||
| 92 | example | ||
| 93 | echo hello world | minigzip | minigzip -d | ||
| 94 | |||
| 95 | #clean: | ||
| 96 | # del *.obj | ||
| 97 | # del *.exe | ||
diff --git a/old/msdos/Makefile.wat b/old/msdos/Makefile.wat new file mode 100644 index 0000000..44bf860 --- /dev/null +++ b/old/msdos/Makefile.wat | |||
| @@ -0,0 +1,103 @@ | |||
| 1 | # Makefile for zlib | ||
| 2 | # Watcom 10a | ||
| 3 | |||
| 4 | # This version of the zlib makefile was adapted by Chris Young for use | ||
| 5 | # with Watcom 10a 32-bit protected mode flat memory model. It was created | ||
| 6 | # for use with POV-Ray ray tracer and you may choose to edit the CFLAGS to | ||
| 7 | # suit your needs but the -DMSDOS is required. | ||
| 8 | # -- Chris Young 76702.1655@compuserve.com | ||
| 9 | |||
| 10 | # To use, do "wmake -f makefile.wat" | ||
| 11 | |||
| 12 | # See zconf.h for details about the memory requirements. | ||
| 13 | |||
| 14 | # ------------- Watcom 10a ------------- | ||
| 15 | MODEL=-mf | ||
| 16 | CFLAGS= $(MODEL) -fpi87 -fp5 -zp4 -5r -w5 -oneatx -DMSDOS | ||
| 17 | CC=wcc386 | ||
| 18 | LD=wcl386 | ||
| 19 | LIB=wlib -b -c | ||
| 20 | LDFLAGS= | ||
| 21 | O=.obj | ||
| 22 | |||
| 23 | # variables | ||
| 24 | OBJ1=adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) | ||
| 25 | OBJ2=trees$(O) zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) | ||
| 26 | OBJ3=infutil$(O) inffast$(O) | ||
| 27 | OBJP1=adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O) | ||
| 28 | OBJP2=trees$(O)+zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O) | ||
| 29 | OBJP3=infutil$(O)+inffast$(O) | ||
| 30 | |||
| 31 | all: test | ||
| 32 | |||
| 33 | adler32.obj: adler32.c zlib.h zconf.h | ||
| 34 | $(CC) $(CFLAGS) $*.c | ||
| 35 | |||
| 36 | compress.obj: compress.c zlib.h zconf.h | ||
| 37 | $(CC) $(CFLAGS) $*.c | ||
| 38 | |||
| 39 | crc32.obj: crc32.c zlib.h zconf.h | ||
| 40 | $(CC) $(CFLAGS) $*.c | ||
| 41 | |||
| 42 | deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h | ||
| 43 | $(CC) $(CFLAGS) $*.c | ||
| 44 | |||
| 45 | gzio.obj: gzio.c zutil.h zlib.h zconf.h | ||
| 46 | $(CC) $(CFLAGS) $*.c | ||
| 47 | |||
| 48 | infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h & | ||
| 49 | infcodes.h infutil.h | ||
| 50 | $(CC) $(CFLAGS) $*.c | ||
| 51 | |||
| 52 | infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h & | ||
| 53 | infcodes.h inffast.h | ||
| 54 | $(CC) $(CFLAGS) $*.c | ||
| 55 | |||
| 56 | inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h | ||
| 57 | $(CC) $(CFLAGS) $*.c | ||
| 58 | |||
| 59 | inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h | ||
| 60 | $(CC) $(CFLAGS) $*.c | ||
| 61 | |||
| 62 | infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h | ||
| 63 | $(CC) $(CFLAGS) $*.c | ||
| 64 | |||
| 65 | inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h | ||
| 66 | $(CC) $(CFLAGS) $*.c | ||
| 67 | |||
| 68 | trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h | ||
| 69 | $(CC) $(CFLAGS) $*.c | ||
| 70 | |||
| 71 | uncompr.obj: uncompr.c zlib.h zconf.h | ||
| 72 | $(CC) $(CFLAGS) $*.c | ||
| 73 | |||
| 74 | zutil.obj: zutil.c zutil.h zlib.h zconf.h | ||
| 75 | $(CC) $(CFLAGS) $*.c | ||
| 76 | |||
| 77 | example.obj: example.c zlib.h zconf.h | ||
| 78 | $(CC) $(CFLAGS) $*.c | ||
| 79 | |||
| 80 | minigzip.obj: minigzip.c zlib.h zconf.h | ||
| 81 | $(CC) $(CFLAGS) $*.c | ||
| 82 | |||
| 83 | # we must cut the command line to fit in the MS/DOS 128 byte limit: | ||
| 84 | zlib.lib: $(OBJ1) $(OBJ2) $(OBJ3) | ||
| 85 | del zlib.lib | ||
| 86 | $(LIB) zlib.lib +$(OBJP1) | ||
| 87 | $(LIB) zlib.lib +$(OBJP2) | ||
| 88 | $(LIB) zlib.lib +$(OBJP3) | ||
| 89 | |||
| 90 | example.exe: example.obj zlib.lib | ||
| 91 | $(LD) $(LDFLAGS) example.obj zlib.lib | ||
| 92 | |||
| 93 | minigzip.exe: minigzip.obj zlib.lib | ||
| 94 | $(LD) $(LDFLAGS) minigzip.obj zlib.lib | ||
| 95 | |||
| 96 | test: minigzip.exe example.exe | ||
| 97 | example | ||
| 98 | echo hello world | minigzip | minigzip -d >test | ||
| 99 | type test | ||
| 100 | |||
| 101 | #clean: | ||
| 102 | # del *.obj | ||
| 103 | # del *.exe | ||
diff --git a/old/msdos/zlib.def b/old/msdos/zlib.def new file mode 100644 index 0000000..6c04412 --- /dev/null +++ b/old/msdos/zlib.def | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | LIBRARY "zlib" | ||
| 2 | |||
| 3 | DESCRIPTION '"""zlib data compression library"""' | ||
| 4 | |||
| 5 | EXETYPE NT | ||
| 6 | |||
| 7 | SUBSYSTEM WINDOWS | ||
| 8 | |||
| 9 | STUB 'WINSTUB.EXE' | ||
| 10 | |||
| 11 | VERSION 1.13 | ||
| 12 | |||
| 13 | CODE EXECUTE READ | ||
| 14 | |||
| 15 | DATA READ WRITE | ||
| 16 | |||
| 17 | HEAPSIZE 1048576,4096 | ||
| 18 | |||
| 19 | EXPORTS | ||
| 20 | adler32 @1 | ||
| 21 | compress @2 | ||
| 22 | crc32 @3 | ||
| 23 | deflate @4 | ||
| 24 | deflateCopy @5 | ||
| 25 | deflateEnd @6 | ||
| 26 | deflateInit2_ @7 | ||
| 27 | deflateInit_ @8 | ||
| 28 | deflateParams @9 | ||
| 29 | deflateReset @10 | ||
| 30 | deflateSetDictionary @11 | ||
| 31 | gzclose @12 | ||
| 32 | gzdopen @13 | ||
| 33 | gzerror @14 | ||
| 34 | gzflush @15 | ||
| 35 | gzopen @16 | ||
| 36 | gzread @17 | ||
| 37 | gzwrite @18 | ||
| 38 | inflate @19 | ||
| 39 | inflateEnd @20 | ||
| 40 | inflateInit2_ @21 | ||
| 41 | inflateInit_ @22 | ||
| 42 | inflateReset @23 | ||
| 43 | inflateSetDictionary @24 | ||
| 44 | inflateSync @25 | ||
| 45 | uncompress @26 | ||
| 46 | zlibVersion @27 | ||
| 47 | gzprintf @28 | ||
| 48 | gzputc @29 | ||
| 49 | gzgetc @30 | ||
| 50 | gzseek @31 | ||
| 51 | gzrewind @32 | ||
| 52 | gztell @33 | ||
| 53 | gzeof @34 | ||
| 54 | gzsetparams @35 | ||
| 55 | zError @36 | ||
| 56 | inflateSyncPoint @37 | ||
| 57 | get_crc_table @38 | ||
| 58 | compress2 @39 | ||
| 59 | gzputs @40 | ||
| 60 | gzgets @41 | ||
diff --git a/old/msdos/zlib.rc b/old/msdos/zlib.rc new file mode 100644 index 0000000..556d4ff --- /dev/null +++ b/old/msdos/zlib.rc | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | #include <windows.h> | ||
| 2 | |||
| 3 | #define IDR_VERSION1 1 | ||
| 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE | ||
| 5 | FILEVERSION 1,1,3,0 | ||
| 6 | PRODUCTVERSION 1,1,3,0 | ||
| 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK | ||
| 8 | FILEFLAGS 0 | ||
| 9 | FILEOS VOS_DOS_WINDOWS32 | ||
| 10 | FILETYPE VFT_DLL | ||
| 11 | FILESUBTYPE 0 // not used | ||
| 12 | BEGIN | ||
| 13 | BLOCK "StringFileInfo" | ||
| 14 | BEGIN | ||
| 15 | BLOCK "040904E4" | ||
| 16 | //language ID = U.S. English, char set = Windows, Multilingual | ||
| 17 | |||
| 18 | BEGIN | ||
| 19 | VALUE "FileDescription", "zlib data compression library\0" | ||
| 20 | VALUE "FileVersion", "1.1.3\0" | ||
| 21 | VALUE "InternalName", "zlib\0" | ||
| 22 | VALUE "OriginalFilename", "zlib.dll\0" | ||
| 23 | VALUE "ProductName", "ZLib.DLL\0" | ||
| 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" | ||
| 25 | VALUE "LegalCopyright", "(C) 1995-1998 Jean-loup Gailly & Mark Adler\0" | ||
| 26 | END | ||
| 27 | END | ||
| 28 | BLOCK "VarFileInfo" | ||
| 29 | BEGIN | ||
| 30 | VALUE "Translation", 0x0409, 1252 | ||
| 31 | END | ||
| 32 | END | ||
