aboutsummaryrefslogtreecommitdiff
path: root/msdos
diff options
context:
space:
mode:
Diffstat (limited to 'msdos')
-rw-r--r--msdos/Makefile.b32104
-rw-r--r--msdos/Makefile.bor125
-rw-r--r--msdos/Makefile.dj2100
-rw-r--r--msdos/Makefile.emx69
-rw-r--r--msdos/Makefile.msc121
-rw-r--r--msdos/Makefile.tc108
-rw-r--r--msdos/Makefile.w3297
-rw-r--r--msdos/Makefile.wat103
-rw-r--r--msdos/zlib.def60
-rw-r--r--msdos/zlib.rc32
10 files changed, 0 insertions, 919 deletions
diff --git a/msdos/Makefile.b32 b/msdos/Makefile.b32
deleted file mode 100644
index f476da9..0000000
--- a/msdos/Makefile.b32
+++ /dev/null
@@ -1,104 +0,0 @@
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++ -------------
16MODEL=-WX
17CFLAGS= $(MODEL) -P-C -K -N- -k- -d -3 -r- -v- -f -DMSDOS
18CC=bcc32
19LD=bcc32
20LIB=tlib
21LDFLAGS= $(MODEL)
22O=.obj
23
24# variables
25OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \
26 trees$(O)
27OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\
28 trees$(O)
29OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
30 infutil$(O) inffast$(O)
31OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\
32 infutil$(O)+inffast$(O)
33
34all: test
35
36adler32.obj: adler32.c zlib.h zconf.h
37 $(CC) -c $(CFLAGS) $*.c
38
39compress.obj: compress.c zlib.h zconf.h
40 $(CC) -c $(CFLAGS) $*.c
41
42crc32.obj: crc32.c zlib.h zconf.h
43 $(CC) -c $(CFLAGS) $*.c
44
45deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
46 $(CC) -c $(CFLAGS) $*.c
47
48gzio.obj: gzio.c zutil.h zlib.h zconf.h
49 $(CC) -c $(CFLAGS) $*.c
50
51infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\
52 infcodes.h infutil.h
53 $(CC) -c $(CFLAGS) $*.c
54
55infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\
56 infcodes.h inffast.h
57 $(CC) -c $(CFLAGS) $*.c
58
59inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
60 $(CC) -c $(CFLAGS) $*.c
61
62inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
63 $(CC) -c $(CFLAGS) $*.c
64
65infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h
66 $(CC) -c $(CFLAGS) $*.c
67
68inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
69 $(CC) -c $(CFLAGS) $*.c
70
71trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
72 $(CC) -c $(CFLAGS) $*.c
73
74uncompr.obj: uncompr.c zlib.h zconf.h
75 $(CC) -c $(CFLAGS) $*.c
76
77zutil.obj: zutil.c zutil.h zlib.h zconf.h
78 $(CC) -c $(CFLAGS) $*.c
79
80example.obj: example.c zlib.h zconf.h
81 $(CC) -c $(CFLAGS) $*.c
82
83minigzip.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:
87zlib.lib: $(OBJ1) $(OBJ2)
88 del zlib.lib
89 $(LIB) zlib +$(OBJP1)
90 $(LIB) zlib +$(OBJP2)
91
92example.exe: example.obj zlib.lib
93 $(LD) $(LDFLAGS) example.obj zlib.lib
94
95minigzip.exe: minigzip.obj zlib.lib
96 $(LD) $(LDFLAGS) minigzip.obj zlib.lib
97
98test: 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/msdos/Makefile.bor b/msdos/Makefile.bor
deleted file mode 100644
index f5651b4..0000000
--- a/msdos/Makefile.bor
+++ /dev/null
@@ -1,125 +0,0 @@
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:
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
28CC=bcc
29# replace bcc with tcc for Turbo C++ 1.0, with bcc32 for the 32 bit version
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
39O=.obj
40
41# variables
42OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \
43 trees$(O)
44OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\
45 trees$(O)
46OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
47 infutil$(O) inffast$(O)
48OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\
49 infutil$(O)+inffast$(O)
50
51ZLIB_H = zlib.h zconf.h
52ZUTIL_H = zutil.h $(ZLIB_H)
53
54ZLIB_LIB = zlib_$(MODEL).lib
55
56all: test
57
58# individual dependencies and action rules:
59adler32.obj: adler32.c $(ZLIB_H)
60 $(CC) -c $(CFLAGS) $*.c
61
62compress.obj: compress.c $(ZLIB_H)
63 $(CC) -c $(CFLAGS) $*.c
64
65crc32.obj: crc32.c $(ZLIB_H)
66 $(CC) -c $(CFLAGS) $*.c
67
68deflate.obj: deflate.c deflate.h $(ZUTIL_H)
69 $(CC) -c $(CFLAGS) $*.c
70
71gzio.obj: gzio.c $(ZUTIL_H)
72 $(CC) -c $(CFLAGS) $*.c
73
74infblock.obj: infblock.c $(ZUTIL_H) infblock.h inftrees.h infcodes.h infutil.h
75 $(CC) -c $(CFLAGS) $*.c
76
77infcodes.obj: infcodes.c $(ZUTIL_H) inftrees.h infutil.h infcodes.h inffast.h
78 $(CC) -c $(CFLAGS) $*.c
79
80inflate.obj: inflate.c $(ZUTIL_H) infblock.h
81 $(CC) -c $(CFLAGS) $*.c
82
83inftrees.obj: inftrees.c $(ZUTIL_H) inftrees.h
84 $(CC) -c $(CFLAGS) $*.c
85
86infutil.obj: infutil.c $(ZUTIL_H) inftrees.h infutil.h
87 $(CC) -c $(CFLAGS) $*.c
88
89inffast.obj: inffast.c $(ZUTIL_H) inftrees.h infutil.h inffast.h
90 $(CC) -c $(CFLAGS) $*.c
91
92trees.obj: trees.c deflate.h $(ZUTIL_H)
93 $(CC) -c $(CFLAGS) $*.c
94
95uncompr.obj: uncompr.c $(ZLIB_H)
96 $(CC) -c $(CFLAGS) $*.c
97
98zutil.obj: zutil.c $(ZUTIL_H)
99 $(CC) -c $(CFLAGS) $*.c
100
101example.obj: example.c $(ZLIB_H)
102 $(CC) -c $(CFLAGS) $*.c
103
104minigzip.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
113example.exe: example.obj $(ZLIB_LIB)
114 $(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)
115
116minigzip.exe: minigzip.obj $(ZLIB_LIB)
117 $(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB)
118
119test: 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/msdos/Makefile.dj2 b/msdos/Makefile.dj2
deleted file mode 100644
index 0ab431c..0000000
--- a/msdos/Makefile.dj2
+++ /dev/null
@@ -1,100 +0,0 @@
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
28CC=gcc
29
30#CFLAGS=-MMD -O
31#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
32#CFLAGS=-MMD -g -DDEBUG
33CFLAGS=-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" .
37CP=copy /Y
38# If gnu install.exe is available, replace $(CP) with ginstall.
39INSTALL=$(CP)
40# The default value of RM is "rm -f." If "rm.exe" is found, comment out:
41RM=del
42LDLIBS=-L. -lz
43LD=$(CC) -s -o
44LDSHARED=$(CC)
45
46INCL=zlib.h zconf.h
47LIBS=libz.a
48
49AR=ar rcs
50
51prefix=/usr/local
52exec_prefix = $(prefix)
53
54OBJS = 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
57TEST_OBJS = example.o minigzip.o
58
59all: example.exe minigzip.exe
60
61test: all
62 ./example
63 echo hello world | .\minigzip | .\minigzip -d
64
65%.o : %.c
66 $(CC) $(CFLAGS) -c $< -o $@
67
68libz.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
78install: $(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
85uninstall:
86 $(RM) $(INCLUDE_PATH)\zlib.h
87 $(RM) $(INCLUDE_PATH)\zconf.h
88 $(RM) $(LIBRARY_PATH)\libz.a
89
90clean:
91 $(RM) *.d
92 $(RM) *.o
93 $(RM) *.exe
94 $(RM) libz.a
95 $(RM) foo.gz
96
97DEPS := $(wildcard *.d)
98ifneq ($(DEPS),)
99include $(DEPS)
100endif
diff --git a/msdos/Makefile.emx b/msdos/Makefile.emx
deleted file mode 100644
index 0e5e5cc..0000000
--- a/msdos/Makefile.emx
+++ /dev/null
@@ -1,69 +0,0 @@
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
deleted file mode 100644
index 562201d..0000000
--- a/msdos/Makefile.msc
+++ /dev/null
@@ -1,121 +0,0 @@
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:
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
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
30LD=link
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
35O=.obj
36
37# variables
38OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \
39 trees$(O)
40OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\
41 trees$(O)
42OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
43 infutil$(O) inffast$(O)
44OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\
45 infutil$(O)+inffast$(O)
46
47ZLIB_H = zlib.h zconf.h
48ZUTIL_H = zutil.h $(ZLIB_H)
49
50ZLIB_LIB = zlib_$(MODEL).lib
51
52all: $(ZLIB_LIB) example.exe minigzip.exe
53
54# individual dependencies and action rules:
55adler32.obj: adler32.c $(ZLIB_H)
56 $(CC) -c $(LIB_CFLAGS) $*.c
57
58compress.obj: compress.c $(ZLIB_H)
59 $(CC) -c $(LIB_CFLAGS) $*.c
60
61crc32.obj: crc32.c $(ZLIB_H)
62 $(CC) -c $(LIB_CFLAGS) $*.c
63
64deflate.obj: deflate.c deflate.h $(ZUTIL_H)
65 $(CC) -c $(LIB_CFLAGS) $*.c
66
67gzio.obj: gzio.c $(ZUTIL_H)
68 $(CC) -c $(LIB_CFLAGS) $*.c
69
70infblock.obj: infblock.c $(ZUTIL_H) infblock.h inftrees.h infcodes.h infutil.h
71 $(CC) -c $(LIB_CFLAGS) $*.c
72
73infcodes.obj: infcodes.c $(ZUTIL_H) inftrees.h infutil.h infcodes.h inffast.h
74 $(CC) -c $(LIB_CFLAGS) $*.c
75
76inflate.obj: inflate.c $(ZUTIL_H) infblock.h
77 $(CC) -c $(LIB_CFLAGS) $*.c
78
79inftrees.obj: inftrees.c $(ZUTIL_H) inftrees.h
80 $(CC) -c $(LIB_CFLAGS) $*.c
81
82infutil.obj: infutil.c $(ZUTIL_H) inftrees.h infutil.h
83 $(CC) -c $(LIB_CFLAGS) $*.c
84
85inffast.obj: inffast.c $(ZUTIL_H) inftrees.h infutil.h inffast.h
86 $(CC) -c $(LIB_CFLAGS) $*.c
87
88trees.obj: trees.c deflate.h $(ZUTIL_H)
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
96
97example.obj: example.c $(ZLIB_H)
98 $(CC) -c $(CFLAGS) $*.c
99
100minigzip.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
109example.exe: example.obj $(ZLIB_LIB)
110 $(LD) $(LDFLAGS) example.obj,,,$(ZLIB_LIB);
111
112minigzip.exe: minigzip.obj $(ZLIB_LIB)
113 $(LD) $(LDFLAGS) minigzip.obj,,,$(ZLIB_LIB);
114
115test: 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/msdos/Makefile.tc b/msdos/Makefile.tc
deleted file mode 100644
index 63e0550..0000000
--- a/msdos/Makefile.tc
+++ /dev/null
@@ -1,108 +0,0 @@
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 -------------
16MODEL=l
17# CFLAGS=-O2 -G -Z -m$(MODEL) -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3
18CFLAGS=-O2 -G -Z -m$(MODEL)
19CC=tcc -I\tc\include
20LD=tcc -L\tc\lib
21AR=tlib
22LDFLAGS=-m$(MODEL) -f-
23O=.obj
24
25# variables
26OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \
27 trees$(O)
28OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\
29 trees$(O)
30OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
31 infutil$(O) inffast$(O)
32OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\
33 infutil$(O)+inffast$(O)
34
35ZLIB_H = zlib.h zconf.h
36ZUTIL_H = zutil.h $(ZLIB_H)
37
38ZLIB_LIB = zlib_$(MODEL).lib
39
40all: test
41
42adler32.obj: adler32.c $(ZLIB_H)
43 $(CC) -c $(CFLAGS) $*.c
44
45compress.obj: compress.c $(ZLIB_H)
46 $(CC) -c $(CFLAGS) $*.c
47
48crc32.obj: crc32.c $(ZLIB_H)
49 $(CC) -c $(CFLAGS) $*.c
50
51deflate.obj: deflate.c deflate.h $(ZUTIL_H)
52 $(CC) -c $(CFLAGS) $*.c
53
54gzio.obj: gzio.c $(ZUTIL_H)
55 $(CC) -c $(CFLAGS) $*.c
56
57infblock.obj: infblock.c $(ZUTIL_H) infblock.h inftrees.h infcodes.h infutil.h
58 $(CC) -c $(CFLAGS) $*.c
59
60infcodes.obj: infcodes.c $(ZUTIL_H) inftrees.h infutil.h infcodes.h inffast.h
61 $(CC) -c $(CFLAGS) $*.c
62
63inflate.obj: inflate.c $(ZUTIL_H) infblock.h
64 $(CC) -c $(CFLAGS) $*.c
65
66inftrees.obj: inftrees.c $(ZUTIL_H) inftrees.h
67 $(CC) -c $(CFLAGS) $*.c
68
69infutil.obj: infutil.c $(ZUTIL_H) inftrees.h infutil.h
70 $(CC) -c $(CFLAGS) $*.c
71
72inffast.obj: inffast.c $(ZUTIL_H) inftrees.h infutil.h inffast.h
73 $(CC) -c $(CFLAGS) $*.c
74
75trees.obj: trees.c deflate.h $(ZUTIL_H)
76 $(CC) -c $(CFLAGS) $*.c
77
78uncompr.obj: uncompr.c $(ZLIB_H)
79 $(CC) -c $(CFLAGS) $*.c
80
81zutil.obj: zutil.c $(ZUTIL_H)
82 $(CC) -c $(CFLAGS) $*.c
83
84example.obj: example.c $(ZLIB_H)
85 $(CC) -c $(CFLAGS) $*.c
86
87minigzip.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
96example.exe: example.obj $(ZLIB_LIB)
97 $(LD) $(LDFLAGS) -eexample.exe example.obj $(ZLIB_LIB)
98
99minigzip.exe: minigzip.obj $(ZLIB_LIB)
100 $(LD) $(LDFLAGS) -eminigzip.exe minigzip.obj $(ZLIB_LIB)
101
102test: 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/msdos/Makefile.w32 b/msdos/Makefile.w32
deleted file mode 100644
index 0a05fa9..0000000
--- a/msdos/Makefile.w32
+++ /dev/null
@@ -1,97 +0,0 @@
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 -------------
12MODEL=
13CFLAGS=-Ox -GA3s -nologo -W3
14CC=cl
15LD=link
16LDFLAGS=
17O=.obj
18
19# variables
20OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \
21 trees$(O)
22OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\
23 trees$(O)
24OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
25 infutil$(O) inffast$(O)
26OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\
27 infutil$(O)+inffast$(O)
28
29all: zlib.lib example.exe minigzip.exe
30
31adler32.obj: adler32.c zlib.h zconf.h
32 $(CC) -c $(CFLAGS) $*.c
33
34compress.obj: compress.c zlib.h zconf.h
35 $(CC) -c $(CFLAGS) $*.c
36
37crc32.obj: crc32.c zlib.h zconf.h
38 $(CC) -c $(CFLAGS) $*.c
39
40deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
41 $(CC) -c $(CFLAGS) $*.c
42
43gzio.obj: gzio.c zutil.h zlib.h zconf.h
44 $(CC) -c $(CFLAGS) $*.c
45
46infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\
47 infcodes.h infutil.h
48 $(CC) -c $(CFLAGS) $*.c
49
50infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\
51 infcodes.h inffast.h
52 $(CC) -c $(CFLAGS) $*.c
53
54inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
55 $(CC) -c $(CFLAGS) $*.c
56
57inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
58 $(CC) -c $(CFLAGS) $*.c
59
60infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h
61 $(CC) -c $(CFLAGS) $*.c
62
63inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
64 $(CC) -c $(CFLAGS) $*.c
65
66trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
67 $(CC) -c $(CFLAGS) $*.c
68
69uncompr.obj: uncompr.c zlib.h zconf.h
70 $(CC) -c $(CFLAGS) $*.c
71
72zutil.obj: zutil.c zutil.h zlib.h zconf.h
73 $(CC) -c $(CFLAGS) $*.c
74
75example.obj: example.c zlib.h zconf.h
76 $(CC) -c $(CFLAGS) $*.c
77
78minigzip.obj: minigzip.c zlib.h zconf.h
79 $(CC) -c $(CFLAGS) $*.c
80
81zlib.lib: $(OBJ1) $(OBJ2)
82 if exist zlib.lib del zlib.lib
83 lib /OUT:zlib.lib $(OBJ1) $(OBJ2)
84
85example.exe: example.obj zlib.lib
86 $(LD) $(LDFLAGS) example.obj zlib.lib /OUT:example.exe /SUBSYSTEM:CONSOLE
87
88minigzip.exe: minigzip.obj zlib.lib
89 $(LD) $(LDFLAGS) minigzip.obj zlib.lib /OUT:minigzip.exe /SUBSYSTEM:CONSOLE
90
91test: 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/msdos/Makefile.wat b/msdos/Makefile.wat
deleted file mode 100644
index 44bf860..0000000
--- a/msdos/Makefile.wat
+++ /dev/null
@@ -1,103 +0,0 @@
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 -------------
15MODEL=-mf
16CFLAGS= $(MODEL) -fpi87 -fp5 -zp4 -5r -w5 -oneatx -DMSDOS
17CC=wcc386
18LD=wcl386
19LIB=wlib -b -c
20LDFLAGS=
21O=.obj
22
23# variables
24OBJ1=adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O)
25OBJ2=trees$(O) zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O)
26OBJ3=infutil$(O) inffast$(O)
27OBJP1=adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)
28OBJP2=trees$(O)+zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)
29OBJP3=infutil$(O)+inffast$(O)
30
31all: test
32
33adler32.obj: adler32.c zlib.h zconf.h
34 $(CC) $(CFLAGS) $*.c
35
36compress.obj: compress.c zlib.h zconf.h
37 $(CC) $(CFLAGS) $*.c
38
39crc32.obj: crc32.c zlib.h zconf.h
40 $(CC) $(CFLAGS) $*.c
41
42deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
43 $(CC) $(CFLAGS) $*.c
44
45gzio.obj: gzio.c zutil.h zlib.h zconf.h
46 $(CC) $(CFLAGS) $*.c
47
48infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h &
49 infcodes.h infutil.h
50 $(CC) $(CFLAGS) $*.c
51
52infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h &
53 infcodes.h inffast.h
54 $(CC) $(CFLAGS) $*.c
55
56inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
57 $(CC) $(CFLAGS) $*.c
58
59inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
60 $(CC) $(CFLAGS) $*.c
61
62infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h
63 $(CC) $(CFLAGS) $*.c
64
65inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
66 $(CC) $(CFLAGS) $*.c
67
68trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
69 $(CC) $(CFLAGS) $*.c
70
71uncompr.obj: uncompr.c zlib.h zconf.h
72 $(CC) $(CFLAGS) $*.c
73
74zutil.obj: zutil.c zutil.h zlib.h zconf.h
75 $(CC) $(CFLAGS) $*.c
76
77example.obj: example.c zlib.h zconf.h
78 $(CC) $(CFLAGS) $*.c
79
80minigzip.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:
84zlib.lib: $(OBJ1) $(OBJ2) $(OBJ3)
85 del zlib.lib
86 $(LIB) zlib.lib +$(OBJP1)
87 $(LIB) zlib.lib +$(OBJP2)
88 $(LIB) zlib.lib +$(OBJP3)
89
90example.exe: example.obj zlib.lib
91 $(LD) $(LDFLAGS) example.obj zlib.lib
92
93minigzip.exe: minigzip.obj zlib.lib
94 $(LD) $(LDFLAGS) minigzip.obj zlib.lib
95
96test: 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/msdos/zlib.def b/msdos/zlib.def
deleted file mode 100644
index 6c04412..0000000
--- a/msdos/zlib.def
+++ /dev/null
@@ -1,60 +0,0 @@
1LIBRARY "zlib"
2
3DESCRIPTION '"""zlib data compression library"""'
4
5EXETYPE NT
6
7SUBSYSTEM WINDOWS
8
9STUB 'WINSTUB.EXE'
10
11VERSION 1.13
12
13CODE EXECUTE READ
14
15DATA READ WRITE
16
17HEAPSIZE 1048576,4096
18
19EXPORTS
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/msdos/zlib.rc b/msdos/zlib.rc
deleted file mode 100644
index 556d4ff..0000000
--- a/msdos/zlib.rc
+++ /dev/null
@@ -1,32 +0,0 @@
1#include <windows.h>
2
3#define IDR_VERSION1 1
4IDR_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
12BEGIN
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
32END