aboutsummaryrefslogtreecommitdiff
path: root/msdos
diff options
context:
space:
mode:
Diffstat (limited to 'msdos')
-rw-r--r--msdos/Makefile.b324
-rw-r--r--msdos/Makefile.bor86
-rw-r--r--msdos/Makefile.emx69
-rw-r--r--msdos/Makefile.msc114
-rw-r--r--msdos/Makefile.tc67
-rw-r--r--msdos/Makefile.w324
-rw-r--r--msdos/Makefile.wat4
-rw-r--r--msdos/zlib.def2
-rw-r--r--msdos/zlib.rc6
9 files changed, 234 insertions, 122 deletions
diff --git a/msdos/Makefile.b32 b/msdos/Makefile.b32
index fc3ac68..f476da9 100644
--- a/msdos/Makefile.b32
+++ b/msdos/Makefile.b32
@@ -33,13 +33,13 @@ OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\
33 33
34all: test 34all: test
35 35
36adler32.obj: adler32.c zutil.h zlib.h zconf.h 36adler32.obj: adler32.c zlib.h zconf.h
37 $(CC) -c $(CFLAGS) $*.c 37 $(CC) -c $(CFLAGS) $*.c
38 38
39compress.obj: compress.c zlib.h zconf.h 39compress.obj: compress.c zlib.h zconf.h
40 $(CC) -c $(CFLAGS) $*.c 40 $(CC) -c $(CFLAGS) $*.c
41 41
42crc32.obj: crc32.c zutil.h zlib.h zconf.h 42crc32.obj: crc32.c zlib.h zconf.h
43 $(CC) -c $(CFLAGS) $*.c 43 $(CC) -c $(CFLAGS) $*.c
44 44
45deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h 45deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
diff --git a/msdos/Makefile.bor b/msdos/Makefile.bor
index 2116563..f5651b4 100644
--- a/msdos/Makefile.bor
+++ b/msdos/Makefile.bor
@@ -2,24 +2,40 @@
2# Borland C++ ************ UNTESTED *********** 2# Borland C++ ************ UNTESTED ***********
3 3
4# To use, do "make -fmakefile.bor" 4# To use, do "make -fmakefile.bor"
5# To compile in small model, set below: MODEL=-ms 5# To compile in small model, set below: MODEL=s
6 6
7# WARNING: the small model is supported but only for small values of 7# WARNING: the small model is supported but only for small values of
8# MAX_WBITS and MAX_MEM_LEVEL. For example: 8# MAX_WBITS and MAX_MEM_LEVEL. For example:
9# -DMAX_WBITS=11 -DDEF_WBITS=11 -DMAX_MEM_LEVEL=3 9# -DMAX_WBITS=11 -DDEF_WBITS=11 -DMAX_MEM_LEVEL=3
10# If you wish to reduce the memory requirements (default 256K for big 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: 11# objects plus a few K), you can add to the LOC macro below:
12# -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14 12# -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14
13# See zconf.h for details about the memory requirements. 13# See zconf.h for details about the memory requirements.
14 14
15# ------------- Turbo C++, Borland C++ ------------- 15# ------------- Turbo C++, Borland C++ -------------
16MODEL=-ml 16
17CFLAGS=-O2 -Z $(MODEL) 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:
20LOC = $(LOCAL_ZLIB)
21
22# Type for CPU required: 0: 8086, 1: 80186, 2: 80286, 3: 80386, etc.
23CPU_TYP = 0
24
25# Memory model: one of s, m, c, l (small, medium, compact, large)
26MODEL=l
27
18CC=bcc 28CC=bcc
19LD=bcc
20LIB=tlib
21# replace bcc with tcc for Turbo C++ 1.0, with bcc32 for the 32 bit version 29# replace bcc with tcc for Turbo C++ 1.0, with bcc32 for the 32 bit version
22LDFLAGS=$(MODEL) 30LD=$(CC)
31AR=tlib
32
33# compiler flags
34CFLAGS=-O2 -Z -m$(MODEL) $(LOC)
35# replace "-O2" by "-O -G -a -d" for Turbo C++ 1.0
36
37LDFLAGS=-m$(MODEL)
38
23O=.obj 39O=.obj
24 40
25# variables 41# variables
@@ -32,69 +48,73 @@ OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
32OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\ 48OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\
33 infutil$(O)+inffast$(O) 49 infutil$(O)+inffast$(O)
34 50
51ZLIB_H = zlib.h zconf.h
52ZUTIL_H = zutil.h $(ZLIB_H)
53
54ZLIB_LIB = zlib_$(MODEL).lib
55
35all: test 56all: test
36 57
37adler32.obj: adler32.c zutil.h zlib.h zconf.h 58# individual dependencies and action rules:
59adler32.obj: adler32.c $(ZLIB_H)
38 $(CC) -c $(CFLAGS) $*.c 60 $(CC) -c $(CFLAGS) $*.c
39 61
40compress.obj: compress.c zlib.h zconf.h 62compress.obj: compress.c $(ZLIB_H)
41 $(CC) -c $(CFLAGS) $*.c 63 $(CC) -c $(CFLAGS) $*.c
42 64
43crc32.obj: crc32.c zutil.h zlib.h zconf.h 65crc32.obj: crc32.c $(ZLIB_H)
44 $(CC) -c $(CFLAGS) $*.c 66 $(CC) -c $(CFLAGS) $*.c
45 67
46deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h 68deflate.obj: deflate.c deflate.h $(ZUTIL_H)
47 $(CC) -c $(CFLAGS) $*.c 69 $(CC) -c $(CFLAGS) $*.c
48 70
49gzio.obj: gzio.c zutil.h zlib.h zconf.h 71gzio.obj: gzio.c $(ZUTIL_H)
50 $(CC) -c $(CFLAGS) $*.c 72 $(CC) -c $(CFLAGS) $*.c
51 73
52infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\ 74infblock.obj: infblock.c $(ZUTIL_H) infblock.h inftrees.h infcodes.h infutil.h
53 infcodes.h infutil.h
54 $(CC) -c $(CFLAGS) $*.c 75 $(CC) -c $(CFLAGS) $*.c
55 76
56infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\ 77infcodes.obj: infcodes.c $(ZUTIL_H) inftrees.h infutil.h infcodes.h inffast.h
57 infcodes.h inffast.h
58 $(CC) -c $(CFLAGS) $*.c 78 $(CC) -c $(CFLAGS) $*.c
59 79
60inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h 80inflate.obj: inflate.c $(ZUTIL_H) infblock.h
61 $(CC) -c $(CFLAGS) $*.c 81 $(CC) -c $(CFLAGS) $*.c
62 82
63inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h 83inftrees.obj: inftrees.c $(ZUTIL_H) inftrees.h
64 $(CC) -c $(CFLAGS) $*.c 84 $(CC) -c $(CFLAGS) $*.c
65 85
66infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h 86infutil.obj: infutil.c $(ZUTIL_H) inftrees.h infutil.h
67 $(CC) -c $(CFLAGS) $*.c 87 $(CC) -c $(CFLAGS) $*.c
68 88
69inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h 89inffast.obj: inffast.c $(ZUTIL_H) inftrees.h infutil.h inffast.h
70 $(CC) -c $(CFLAGS) $*.c 90 $(CC) -c $(CFLAGS) $*.c
71 91
72trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h 92trees.obj: trees.c deflate.h $(ZUTIL_H)
73 $(CC) -c $(CFLAGS) $*.c 93 $(CC) -c $(CFLAGS) $*.c
74 94
75uncompr.obj: uncompr.c zlib.h zconf.h 95uncompr.obj: uncompr.c $(ZLIB_H)
76 $(CC) -c $(CFLAGS) $*.c 96 $(CC) -c $(CFLAGS) $*.c
77 97
78zutil.obj: zutil.c zutil.h zlib.h zconf.h 98zutil.obj: zutil.c $(ZUTIL_H)
79 $(CC) -c $(CFLAGS) $*.c 99 $(CC) -c $(CFLAGS) $*.c
80 100
81example.obj: example.c zlib.h zconf.h 101example.obj: example.c $(ZLIB_H)
82 $(CC) -c $(CFLAGS) $*.c 102 $(CC) -c $(CFLAGS) $*.c
83 103
84minigzip.obj: minigzip.c zlib.h zconf.h 104minigzip.obj: minigzip.c $(ZLIB_H)
85 $(CC) -c $(CFLAGS) $*.c 105 $(CC) -c $(CFLAGS) $*.c
86 106
87# we must cut the command line to fit in the MS/DOS 128 byte limit: 107# we must cut the command line to fit in the MS/DOS 128 byte limit:
88zlib.lib: $(OBJ1) $(OBJ2) 108$(ZLIB_LIB): $(OBJ1) $(OBJ2)
89 del zlib.lib 109 del $(ZLIB_LIB)
90 $(LIB) zlib +$(OBJP1) 110 $(AR) $(ZLIB_LIB) +$(OBJP1)
91 $(LIB) zlib +$(OBJP2) 111 $(AR) $(ZLIB_LIB) +$(OBJP2)
92 112
93example.exe: example.obj zlib.lib 113example.exe: example.obj $(ZLIB_LIB)
94 $(LD) $(LDFLAGS) example.obj zlib.lib 114 $(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)
95 115
96minigzip.exe: minigzip.obj zlib.lib 116minigzip.exe: minigzip.obj $(ZLIB_LIB)
97 $(LD) $(LDFLAGS) minigzip.obj zlib.lib 117 $(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB)
98 118
99test: example.exe minigzip.exe 119test: example.exe minigzip.exe
100 example 120 example
diff --git a/msdos/Makefile.emx b/msdos/Makefile.emx
new file mode 100644
index 0000000..0e5e5cc
--- /dev/null
+++ b/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
10CC=gcc
11
12#CFLAGS=-MMD -O
13#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
14#CFLAGS=-MMD -g -DDEBUG
15CFLAGS=-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" .
19CP=copy /Y
20# If gnu install.exe is available, replace $(CP) with ginstall.
21INSTALL=$(CP)
22# The default value of RM is "rm -f." If "rm.exe" is found, comment out:
23RM=del
24LDLIBS=-L. -lzlib
25LD=$(CC) -s -o
26LDSHARED=$(CC)
27
28INCL=zlib.h zconf.h
29LIBS=zlib.a
30
31AR=ar rcs
32
33prefix=/usr/local
34exec_prefix = $(prefix)
35
36OBJS = 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
39TEST_OBJS = example.o minigzip.o
40
41all: example.exe minigzip.exe
42
43test: all
44 ./example
45 echo hello world | .\minigzip | .\minigzip -d
46
47%.o : %.c
48 $(CC) $(CFLAGS) -c $< -o $@
49
50zlib.a: $(OBJS)
51 $(AR) $@ $(OBJS)
52
53%.exe : %.o $(LIBS)
54 $(LD) $@ $< $(LDLIBS)
55
56
57.PHONY : clean
58
59clean:
60 $(RM) *.d
61 $(RM) *.o
62 $(RM) *.exe
63 $(RM) zlib.a
64 $(RM) foo.gz
65
66DEPS := $(wildcard *.d)
67ifneq ($(DEPS),)
68include $(DEPS)
69endif
diff --git a/msdos/Makefile.msc b/msdos/Makefile.msc
index 1a6d663..562201d 100644
--- a/msdos/Makefile.msc
+++ b/msdos/Makefile.msc
@@ -2,20 +2,36 @@
2# Microsoft C 5.1 or later 2# Microsoft C 5.1 or later
3 3
4# To use, do "make makefile.msc" 4# To use, do "make makefile.msc"
5# To compile in small model, set below: MODEL=-AS 5# To compile in small model, set below: MODEL=S
6 6
7# If you wish to reduce the memory requirements (default 256K for big 7# If you wish to reduce the memory requirements (default 256K for big
8# objects plus a few K), you can add to CFLAGS below: 8# objects plus a few K), you can add to the LOC macro below:
9# -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14 9# -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14
10# See zconf.h for details about the memory requirements. 10# See zconf.h for details about the memory requirements.
11 11
12# ------------- Microsoft C 5.1 and later ------------- 12# ------------- Microsoft C 5.1 and later -------------
13MODEL=-AL 13
14CFLAGS=-Oait -Gs -nologo -W3 $(MODEL) 14# Optional nonstandard preprocessor flags (e.g. -DMAX_MEM_LEVEL=7)
15#-Ox generates bad code with MSC 5.1 15# should be added to the environment via "set LOCAL_ZLIB=-DFOO" or added
16# to the declaration of LOC here:
17LOC = $(LOCAL_ZLIB)
18
19# Type for CPU required: 0: 8086, 1: 80186, 2: 80286, 3: 80386, etc.
20CPU_TYP = 0
21
22# Memory model: one of S, M, C, L (small, medium, compact, large)
23MODEL=L
24
16CC=cl 25CC=cl
26CFLAGS=-nologo -A$(MODEL) -G$(CPU_TYP) -W3 -Oait -Gs $(LOC)
27#-Ox generates bad code with MSC 5.1
28LIB_CFLAGS=-Zl $(CFLAGS)
29
17LD=link 30LD=link
18LDFLAGS=/e/st:0x1500/noe 31LDFLAGS=/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
19O=.obj 35O=.obj
20 36
21# variables 37# variables
@@ -28,69 +44,73 @@ OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
28OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\ 44OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\
29 infutil$(O)+inffast$(O) 45 infutil$(O)+inffast$(O)
30 46
31all: zlib.lib example.exe minigzip.exe 47ZLIB_H = zlib.h zconf.h
48ZUTIL_H = zutil.h $(ZLIB_H)
32 49
33adler32.obj: adler32.c zutil.h zlib.h zconf.h 50ZLIB_LIB = zlib_$(MODEL).lib
34 $(CC) -c $(CFLAGS) $*.c
35 51
36compress.obj: compress.c zlib.h zconf.h 52all: $(ZLIB_LIB) example.exe minigzip.exe
37 $(CC) -c $(CFLAGS) $*.c
38 53
39crc32.obj: crc32.c zutil.h zlib.h zconf.h 54# individual dependencies and action rules:
40 $(CC) -c $(CFLAGS) $*.c 55adler32.obj: adler32.c $(ZLIB_H)
56 $(CC) -c $(LIB_CFLAGS) $*.c
41 57
42deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h 58compress.obj: compress.c $(ZLIB_H)
43 $(CC) -c $(CFLAGS) $*.c 59 $(CC) -c $(LIB_CFLAGS) $*.c
44 60
45gzio.obj: gzio.c zutil.h zlib.h zconf.h 61crc32.obj: crc32.c $(ZLIB_H)
46 $(CC) -c $(CFLAGS) $*.c 62 $(CC) -c $(LIB_CFLAGS) $*.c
47 63
48infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\ 64deflate.obj: deflate.c deflate.h $(ZUTIL_H)
49 infcodes.h infutil.h 65 $(CC) -c $(LIB_CFLAGS) $*.c
50 $(CC) -c $(CFLAGS) $*.c
51 66
52infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\ 67gzio.obj: gzio.c $(ZUTIL_H)
53 infcodes.h inffast.h 68 $(CC) -c $(LIB_CFLAGS) $*.c
54 $(CC) -c $(CFLAGS) $*.c
55 69
56inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h 70infblock.obj: infblock.c $(ZUTIL_H) infblock.h inftrees.h infcodes.h infutil.h
57 $(CC) -c $(CFLAGS) $*.c 71 $(CC) -c $(LIB_CFLAGS) $*.c
58 72
59inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h 73infcodes.obj: infcodes.c $(ZUTIL_H) inftrees.h infutil.h infcodes.h inffast.h
60 $(CC) -c $(CFLAGS) $*.c 74 $(CC) -c $(LIB_CFLAGS) $*.c
61 75
62infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h 76inflate.obj: inflate.c $(ZUTIL_H) infblock.h
63 $(CC) -c $(CFLAGS) $*.c 77 $(CC) -c $(LIB_CFLAGS) $*.c
64 78
65inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h 79inftrees.obj: inftrees.c $(ZUTIL_H) inftrees.h
66 $(CC) -c $(CFLAGS) $*.c 80 $(CC) -c $(LIB_CFLAGS) $*.c
67 81
68trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h 82infutil.obj: infutil.c $(ZUTIL_H) inftrees.h infutil.h
69 $(CC) -c $(CFLAGS) $*.c 83 $(CC) -c $(LIB_CFLAGS) $*.c
70 84
71uncompr.obj: uncompr.c zlib.h zconf.h 85inffast.obj: inffast.c $(ZUTIL_H) inftrees.h infutil.h inffast.h
72 $(CC) -c $(CFLAGS) $*.c 86 $(CC) -c $(LIB_CFLAGS) $*.c
73 87
74zutil.obj: zutil.c zutil.h zlib.h zconf.h 88trees.obj: trees.c deflate.h $(ZUTIL_H)
75 $(CC) -c $(CFLAGS) $*.c 89 $(CC) -c $(LIB_CFLAGS) $*.c
90
91uncompr.obj: uncompr.c $(ZLIB_H)
92 $(CC) -c $(LIB_CFLAGS) $*.c
93
94zutil.obj: zutil.c $(ZUTIL_H)
95 $(CC) -c $(LIB_CFLAGS) $*.c
76 96
77example.obj: example.c zlib.h zconf.h 97example.obj: example.c $(ZLIB_H)
78 $(CC) -c $(CFLAGS) $*.c 98 $(CC) -c $(CFLAGS) $*.c
79 99
80minigzip.obj: minigzip.c zlib.h zconf.h 100minigzip.obj: minigzip.c $(ZLIB_H)
81 $(CC) -c $(CFLAGS) $*.c 101 $(CC) -c $(CFLAGS) $*.c
82 102
83# we must cut the command line to fit in the MS/DOS 128 byte limit: 103# we must cut the command line to fit in the MS/DOS 128 byte limit:
84zlib.lib: $(OBJ1) $(OBJ2) 104$(ZLIB_LIB): $(OBJ1) $(OBJ2)
85 if exist zlib.lib del zlib.lib 105 if exist $(ZLIB_LIB) del $(ZLIB_LIB)
86 lib zlib $(OBJ1); 106 lib $(ZLIB_LIB) $(OBJ1);
87 lib zlib $(OBJ2); 107 lib $(ZLIB_LIB) $(OBJ2);
88 108
89example.exe: example.obj zlib.lib 109example.exe: example.obj $(ZLIB_LIB)
90 $(LD) $(LDFLAGS) example.obj,,,zlib.lib; 110 $(LD) $(LDFLAGS) example.obj,,,$(ZLIB_LIB);
91 111
92minigzip.exe: minigzip.obj zlib.lib 112minigzip.exe: minigzip.obj $(ZLIB_LIB)
93 $(LD) $(LDFLAGS) minigzip.obj,,,zlib.lib; 113 $(LD) $(LDFLAGS) minigzip.obj,,,$(ZLIB_LIB);
94 114
95test: example.exe minigzip.exe 115test: example.exe minigzip.exe
96 example 116 example
diff --git a/msdos/Makefile.tc b/msdos/Makefile.tc
index a46ce73..63e0550 100644
--- a/msdos/Makefile.tc
+++ b/msdos/Makefile.tc
@@ -8,18 +8,18 @@
8# MAX_WBITS and MAX_MEM_LEVEL. For example: 8# MAX_WBITS and MAX_MEM_LEVEL. For example:
9# -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3 9# -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3
10# If you wish to reduce the memory requirements (default 256K for big 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: 11# objects plus a few K), you can add to CFLAGS below:
12# -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14 12# -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14
13# See zconf.h for details about the memory requirements. 13# See zconf.h for details about the memory requirements.
14 14
15# ------------- Turbo C 2.0 ------------- 15# ------------- Turbo C 2.0 -------------
16MODEL=-ml 16MODEL=l
17# CFLAGS=-O2 -G -Z $(MODEL) -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3 17# CFLAGS=-O2 -G -Z -m$(MODEL) -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3
18CFLAGS=-O2 -G -Z $(MODEL) 18CFLAGS=-O2 -G -Z -m$(MODEL)
19CC=tcc -I\tc\include 19CC=tcc -I\tc\include
20LD=tcc -L\tc\lib 20LD=tcc -L\tc\lib
21LIB=tlib 21AR=tlib
22LDFLAGS=$(MODEL) -f- 22LDFLAGS=-m$(MODEL) -f-
23O=.obj 23O=.obj
24 24
25# variables 25# variables
@@ -32,69 +32,72 @@ OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
32OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\ 32OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\
33 infutil$(O)+inffast$(O) 33 infutil$(O)+inffast$(O)
34 34
35ZLIB_H = zlib.h zconf.h
36ZUTIL_H = zutil.h $(ZLIB_H)
37
38ZLIB_LIB = zlib_$(MODEL).lib
39
35all: test 40all: test
36 41
37adler32.obj: adler32.c zutil.h zlib.h zconf.h 42adler32.obj: adler32.c $(ZLIB_H)
38 $(CC) -c $(CFLAGS) $*.c 43 $(CC) -c $(CFLAGS) $*.c
39 44
40compress.obj: compress.c zlib.h zconf.h 45compress.obj: compress.c $(ZLIB_H)
41 $(CC) -c $(CFLAGS) $*.c 46 $(CC) -c $(CFLAGS) $*.c
42 47
43crc32.obj: crc32.c zutil.h zlib.h zconf.h 48crc32.obj: crc32.c $(ZLIB_H)
44 $(CC) -c $(CFLAGS) $*.c 49 $(CC) -c $(CFLAGS) $*.c
45 50
46deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h 51deflate.obj: deflate.c deflate.h $(ZUTIL_H)
47 $(CC) -c $(CFLAGS) $*.c 52 $(CC) -c $(CFLAGS) $*.c
48 53
49gzio.obj: gzio.c zutil.h zlib.h zconf.h 54gzio.obj: gzio.c $(ZUTIL_H)
50 $(CC) -c $(CFLAGS) $*.c 55 $(CC) -c $(CFLAGS) $*.c
51 56
52infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\ 57infblock.obj: infblock.c $(ZUTIL_H) infblock.h inftrees.h infcodes.h infutil.h
53 infcodes.h infutil.h
54 $(CC) -c $(CFLAGS) $*.c 58 $(CC) -c $(CFLAGS) $*.c
55 59
56infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\ 60infcodes.obj: infcodes.c $(ZUTIL_H) inftrees.h infutil.h infcodes.h inffast.h
57 infcodes.h inffast.h
58 $(CC) -c $(CFLAGS) $*.c 61 $(CC) -c $(CFLAGS) $*.c
59 62
60inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h 63inflate.obj: inflate.c $(ZUTIL_H) infblock.h
61 $(CC) -c $(CFLAGS) $*.c 64 $(CC) -c $(CFLAGS) $*.c
62 65
63inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h 66inftrees.obj: inftrees.c $(ZUTIL_H) inftrees.h
64 $(CC) -c $(CFLAGS) $*.c 67 $(CC) -c $(CFLAGS) $*.c
65 68
66infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h 69infutil.obj: infutil.c $(ZUTIL_H) inftrees.h infutil.h
67 $(CC) -c $(CFLAGS) $*.c 70 $(CC) -c $(CFLAGS) $*.c
68 71
69inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h 72inffast.obj: inffast.c $(ZUTIL_H) inftrees.h infutil.h inffast.h
70 $(CC) -c $(CFLAGS) $*.c 73 $(CC) -c $(CFLAGS) $*.c
71 74
72trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h 75trees.obj: trees.c deflate.h $(ZUTIL_H)
73 $(CC) -c $(CFLAGS) $*.c 76 $(CC) -c $(CFLAGS) $*.c
74 77
75uncompr.obj: uncompr.c zlib.h zconf.h 78uncompr.obj: uncompr.c $(ZLIB_H)
76 $(CC) -c $(CFLAGS) $*.c 79 $(CC) -c $(CFLAGS) $*.c
77 80
78zutil.obj: zutil.c zutil.h zlib.h zconf.h 81zutil.obj: zutil.c $(ZUTIL_H)
79 $(CC) -c $(CFLAGS) $*.c 82 $(CC) -c $(CFLAGS) $*.c
80 83
81example.obj: example.c zlib.h zconf.h 84example.obj: example.c $(ZLIB_H)
82 $(CC) -c $(CFLAGS) $*.c 85 $(CC) -c $(CFLAGS) $*.c
83 86
84minigzip.obj: minigzip.c zlib.h zconf.h 87minigzip.obj: minigzip.c $(ZLIB_H)
85 $(CC) -c $(CFLAGS) $*.c 88 $(CC) -c $(CFLAGS) $*.c
86 89
87# we must cut the command line to fit in the MS/DOS 128 byte limit: 90# we must cut the command line to fit in the MS/DOS 128 byte limit:
88zlib.lib: $(OBJ1) $(OBJ2) 91$(ZLIB_LIB): $(OBJ1) $(OBJ2)
89 del zlib.lib 92 del $(ZLIB_LIB)
90 $(LIB) zlib +$(OBJP1) 93 $(AR) $(ZLIB_LIB) +$(OBJP1)
91 $(LIB) zlib +$(OBJP2) 94 $(AR) $(ZLIB_LIB) +$(OBJP2)
92 95
93example.exe: example.obj zlib.lib 96example.exe: example.obj $(ZLIB_LIB)
94 $(LD) $(LDFLAGS) -eexample.exe example.obj zlib.lib 97 $(LD) $(LDFLAGS) -eexample.exe example.obj $(ZLIB_LIB)
95 98
96minigzip.exe: minigzip.obj zlib.lib 99minigzip.exe: minigzip.obj $(ZLIB_LIB)
97 $(LD) $(LDFLAGS) -eminigzip.exe minigzip.obj zlib.lib 100 $(LD) $(LDFLAGS) -eminigzip.exe minigzip.obj $(ZLIB_LIB)
98 101
99test: example.exe minigzip.exe 102test: example.exe minigzip.exe
100 example 103 example
diff --git a/msdos/Makefile.w32 b/msdos/Makefile.w32
index d513c81..0a05fa9 100644
--- a/msdos/Makefile.w32
+++ b/msdos/Makefile.w32
@@ -28,13 +28,13 @@ OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\
28 28
29all: zlib.lib example.exe minigzip.exe 29all: zlib.lib example.exe minigzip.exe
30 30
31adler32.obj: adler32.c zutil.h zlib.h zconf.h 31adler32.obj: adler32.c zlib.h zconf.h
32 $(CC) -c $(CFLAGS) $*.c 32 $(CC) -c $(CFLAGS) $*.c
33 33
34compress.obj: compress.c zlib.h zconf.h 34compress.obj: compress.c zlib.h zconf.h
35 $(CC) -c $(CFLAGS) $*.c 35 $(CC) -c $(CFLAGS) $*.c
36 36
37crc32.obj: crc32.c zutil.h zlib.h zconf.h 37crc32.obj: crc32.c zlib.h zconf.h
38 $(CC) -c $(CFLAGS) $*.c 38 $(CC) -c $(CFLAGS) $*.c
39 39
40deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h 40deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
diff --git a/msdos/Makefile.wat b/msdos/Makefile.wat
index 2a3b629..44bf860 100644
--- a/msdos/Makefile.wat
+++ b/msdos/Makefile.wat
@@ -30,13 +30,13 @@ OBJP3=infutil$(O)+inffast$(O)
30 30
31all: test 31all: test
32 32
33adler32.obj: adler32.c zutil.h zlib.h zconf.h 33adler32.obj: adler32.c zlib.h zconf.h
34 $(CC) $(CFLAGS) $*.c 34 $(CC) $(CFLAGS) $*.c
35 35
36compress.obj: compress.c zlib.h zconf.h 36compress.obj: compress.c zlib.h zconf.h
37 $(CC) $(CFLAGS) $*.c 37 $(CC) $(CFLAGS) $*.c
38 38
39crc32.obj: crc32.c zutil.h zlib.h zconf.h 39crc32.obj: crc32.c zlib.h zconf.h
40 $(CC) $(CFLAGS) $*.c 40 $(CC) $(CFLAGS) $*.c
41 41
42deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h 42deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
diff --git a/msdos/zlib.def b/msdos/zlib.def
index e4edaad..6c04412 100644
--- a/msdos/zlib.def
+++ b/msdos/zlib.def
@@ -8,7 +8,7 @@ SUBSYSTEM WINDOWS
8 8
9STUB 'WINSTUB.EXE' 9STUB 'WINSTUB.EXE'
10 10
11VERSION 1.11 11VERSION 1.13
12 12
13CODE EXECUTE READ 13CODE EXECUTE READ
14 14
diff --git a/msdos/zlib.rc b/msdos/zlib.rc
index 0a38186..556d4ff 100644
--- a/msdos/zlib.rc
+++ b/msdos/zlib.rc
@@ -2,8 +2,8 @@
2 2
3#define IDR_VERSION1 1 3#define IDR_VERSION1 1
4IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 4IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
5 FILEVERSION 1,1,2,0 5 FILEVERSION 1,1,3,0
6 PRODUCTVERSION 1,1,2,0 6 PRODUCTVERSION 1,1,3,0
7 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 7 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
8 FILEFLAGS 0 8 FILEFLAGS 0
9 FILEOS VOS_DOS_WINDOWS32 9 FILEOS VOS_DOS_WINDOWS32
@@ -17,7 +17,7 @@ BEGIN
17 17
18 BEGIN 18 BEGIN
19 VALUE "FileDescription", "zlib data compression library\0" 19 VALUE "FileDescription", "zlib data compression library\0"
20 VALUE "FileVersion", "1.1.2\0" 20 VALUE "FileVersion", "1.1.3\0"
21 VALUE "InternalName", "zlib\0" 21 VALUE "InternalName", "zlib\0"
22 VALUE "OriginalFilename", "zlib.dll\0" 22 VALUE "OriginalFilename", "zlib.dll\0"
23 VALUE "ProductName", "ZLib.DLL\0" 23 VALUE "ProductName", "ZLib.DLL\0"