diff options
Diffstat (limited to 'msdos')
-rw-r--r-- | msdos/Makefile.b32 | 104 | ||||
-rw-r--r-- | msdos/Makefile.bor | 105 | ||||
-rw-r--r-- | msdos/Makefile.dj2 | 100 | ||||
-rw-r--r-- | msdos/Makefile.msc | 101 | ||||
-rw-r--r-- | msdos/Makefile.tc | 105 | ||||
-rw-r--r-- | msdos/Makefile.wat | 103 | ||||
-rw-r--r-- | msdos/zlib.def | 57 | ||||
-rw-r--r-- | msdos/zlib.rc | 32 |
8 files changed, 707 insertions, 0 deletions
diff --git a/msdos/Makefile.b32 b/msdos/Makefile.b32 new file mode 100644 index 0000000..fc3ac68 --- /dev/null +++ b/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 zutil.h 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 zutil.h 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/msdos/Makefile.bor b/msdos/Makefile.bor new file mode 100644 index 0000000..2116563 --- /dev/null +++ b/msdos/Makefile.bor | |||
@@ -0,0 +1,105 @@ | |||
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=-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 -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 CFLAGS 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 | MODEL=-ml | ||
17 | CFLAGS=-O2 -Z $(MODEL) | ||
18 | CC=bcc | ||
19 | LD=bcc | ||
20 | LIB=tlib | ||
21 | # replace bcc with tcc for Turbo C++ 1.0, with bcc32 for the 32 bit version | ||
22 | LDFLAGS=$(MODEL) | ||
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 | all: test | ||
36 | |||
37 | adler32.obj: adler32.c zutil.h zlib.h zconf.h | ||
38 | $(CC) -c $(CFLAGS) $*.c | ||
39 | |||
40 | compress.obj: compress.c zlib.h zconf.h | ||
41 | $(CC) -c $(CFLAGS) $*.c | ||
42 | |||
43 | crc32.obj: crc32.c zutil.h zlib.h zconf.h | ||
44 | $(CC) -c $(CFLAGS) $*.c | ||
45 | |||
46 | deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h | ||
47 | $(CC) -c $(CFLAGS) $*.c | ||
48 | |||
49 | gzio.obj: gzio.c zutil.h zlib.h zconf.h | ||
50 | $(CC) -c $(CFLAGS) $*.c | ||
51 | |||
52 | infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\ | ||
53 | infcodes.h infutil.h | ||
54 | $(CC) -c $(CFLAGS) $*.c | ||
55 | |||
56 | infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\ | ||
57 | infcodes.h inffast.h | ||
58 | $(CC) -c $(CFLAGS) $*.c | ||
59 | |||
60 | inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h | ||
61 | $(CC) -c $(CFLAGS) $*.c | ||
62 | |||
63 | inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h | ||
64 | $(CC) -c $(CFLAGS) $*.c | ||
65 | |||
66 | infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h | ||
67 | $(CC) -c $(CFLAGS) $*.c | ||
68 | |||
69 | inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h | ||
70 | $(CC) -c $(CFLAGS) $*.c | ||
71 | |||
72 | trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h | ||
73 | $(CC) -c $(CFLAGS) $*.c | ||
74 | |||
75 | uncompr.obj: uncompr.c zlib.h zconf.h | ||
76 | $(CC) -c $(CFLAGS) $*.c | ||
77 | |||
78 | zutil.obj: zutil.c zutil.h zlib.h zconf.h | ||
79 | $(CC) -c $(CFLAGS) $*.c | ||
80 | |||
81 | example.obj: example.c zlib.h zconf.h | ||
82 | $(CC) -c $(CFLAGS) $*.c | ||
83 | |||
84 | minigzip.obj: minigzip.c zlib.h zconf.h | ||
85 | $(CC) -c $(CFLAGS) $*.c | ||
86 | |||
87 | # we must cut the command line to fit in the MS/DOS 128 byte limit: | ||
88 | zlib.lib: $(OBJ1) $(OBJ2) | ||
89 | del zlib.lib | ||
90 | $(LIB) zlib +$(OBJP1) | ||
91 | $(LIB) zlib +$(OBJP2) | ||
92 | |||
93 | example.exe: example.obj zlib.lib | ||
94 | $(LD) $(LDFLAGS) example.obj zlib.lib | ||
95 | |||
96 | minigzip.exe: minigzip.obj zlib.lib | ||
97 | $(LD) $(LDFLAGS) minigzip.obj zlib.lib | ||
98 | |||
99 | test: example.exe minigzip.exe | ||
100 | example | ||
101 | echo hello world | minigzip | minigzip -d | ||
102 | |||
103 | #clean: | ||
104 | # del *.obj | ||
105 | # del *.exe | ||
diff --git a/msdos/Makefile.dj2 b/msdos/Makefile.dj2 new file mode 100644 index 0000000..0ab431c --- /dev/null +++ b/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/msdos/Makefile.msc b/msdos/Makefile.msc new file mode 100644 index 0000000..1a6d663 --- /dev/null +++ b/msdos/Makefile.msc | |||
@@ -0,0 +1,101 @@ | |||
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=-AS | ||
6 | |||
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: | ||
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 | MODEL=-AL | ||
14 | CFLAGS=-Oait -Gs -nologo -W3 $(MODEL) | ||
15 | #-Ox generates bad code with MSC 5.1 | ||
16 | CC=cl | ||
17 | LD=link | ||
18 | LDFLAGS=/e/st:0x1500/noe | ||
19 | O=.obj | ||
20 | |||
21 | # variables | ||
22 | OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \ | ||
23 | trees$(O) | ||
24 | OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\ | ||
25 | trees$(O) | ||
26 | OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \ | ||
27 | infutil$(O) inffast$(O) | ||
28 | OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\ | ||
29 | infutil$(O)+inffast$(O) | ||
30 | |||
31 | all: zlib.lib example.exe minigzip.exe | ||
32 | |||
33 | adler32.obj: adler32.c zutil.h zlib.h zconf.h | ||
34 | $(CC) -c $(CFLAGS) $*.c | ||
35 | |||
36 | compress.obj: compress.c zlib.h zconf.h | ||
37 | $(CC) -c $(CFLAGS) $*.c | ||
38 | |||
39 | crc32.obj: crc32.c zutil.h zlib.h zconf.h | ||
40 | $(CC) -c $(CFLAGS) $*.c | ||
41 | |||
42 | deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h | ||
43 | $(CC) -c $(CFLAGS) $*.c | ||
44 | |||
45 | gzio.obj: gzio.c zutil.h zlib.h zconf.h | ||
46 | $(CC) -c $(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) -c $(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) -c $(CFLAGS) $*.c | ||
55 | |||
56 | inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h | ||
57 | $(CC) -c $(CFLAGS) $*.c | ||
58 | |||
59 | inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h | ||
60 | $(CC) -c $(CFLAGS) $*.c | ||
61 | |||
62 | infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h | ||
63 | $(CC) -c $(CFLAGS) $*.c | ||
64 | |||
65 | inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h | ||
66 | $(CC) -c $(CFLAGS) $*.c | ||
67 | |||
68 | trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h | ||
69 | $(CC) -c $(CFLAGS) $*.c | ||
70 | |||
71 | uncompr.obj: uncompr.c zlib.h zconf.h | ||
72 | $(CC) -c $(CFLAGS) $*.c | ||
73 | |||
74 | zutil.obj: zutil.c zutil.h zlib.h zconf.h | ||
75 | $(CC) -c $(CFLAGS) $*.c | ||
76 | |||
77 | example.obj: example.c zlib.h zconf.h | ||
78 | $(CC) -c $(CFLAGS) $*.c | ||
79 | |||
80 | minigzip.obj: minigzip.c zlib.h zconf.h | ||
81 | $(CC) -c $(CFLAGS) $*.c | ||
82 | |||
83 | # we must cut the command line to fit in the MS/DOS 128 byte limit: | ||
84 | zlib.lib: $(OBJ1) $(OBJ2) | ||
85 | if exist zlib.lib del zlib.lib | ||
86 | lib zlib $(OBJ1); | ||
87 | lib zlib $(OBJ2); | ||
88 | |||
89 | example.exe: example.obj zlib.lib | ||
90 | $(LD) $(LDFLAGS) example.obj,,,zlib.lib; | ||
91 | |||
92 | minigzip.exe: minigzip.obj zlib.lib | ||
93 | $(LD) $(LDFLAGS) minigzip.obj,,,zlib.lib; | ||
94 | |||
95 | test: example.exe minigzip.exe | ||
96 | example | ||
97 | echo hello world | minigzip | minigzip -d | ||
98 | |||
99 | #clean: | ||
100 | # del *.obj | ||
101 | # del *.exe | ||
diff --git a/msdos/Makefile.tc b/msdos/Makefile.tc new file mode 100644 index 0000000..a46ce73 --- /dev/null +++ b/msdos/Makefile.tc | |||
@@ -0,0 +1,105 @@ | |||
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=-ml | ||
17 | # CFLAGS=-O2 -G -Z $(MODEL) -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3 | ||
18 | CFLAGS=-O2 -G -Z $(MODEL) | ||
19 | CC=tcc -I\tc\include | ||
20 | LD=tcc -L\tc\lib | ||
21 | LIB=tlib | ||
22 | LDFLAGS=$(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 | all: test | ||
36 | |||
37 | adler32.obj: adler32.c zutil.h zlib.h zconf.h | ||
38 | $(CC) -c $(CFLAGS) $*.c | ||
39 | |||
40 | compress.obj: compress.c zlib.h zconf.h | ||
41 | $(CC) -c $(CFLAGS) $*.c | ||
42 | |||
43 | crc32.obj: crc32.c zutil.h zlib.h zconf.h | ||
44 | $(CC) -c $(CFLAGS) $*.c | ||
45 | |||
46 | deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h | ||
47 | $(CC) -c $(CFLAGS) $*.c | ||
48 | |||
49 | gzio.obj: gzio.c zutil.h zlib.h zconf.h | ||
50 | $(CC) -c $(CFLAGS) $*.c | ||
51 | |||
52 | infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\ | ||
53 | infcodes.h infutil.h | ||
54 | $(CC) -c $(CFLAGS) $*.c | ||
55 | |||
56 | infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\ | ||
57 | infcodes.h inffast.h | ||
58 | $(CC) -c $(CFLAGS) $*.c | ||
59 | |||
60 | inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h | ||
61 | $(CC) -c $(CFLAGS) $*.c | ||
62 | |||
63 | inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h | ||
64 | $(CC) -c $(CFLAGS) $*.c | ||
65 | |||
66 | infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h | ||
67 | $(CC) -c $(CFLAGS) $*.c | ||
68 | |||
69 | inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h | ||
70 | $(CC) -c $(CFLAGS) $*.c | ||
71 | |||
72 | trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h | ||
73 | $(CC) -c $(CFLAGS) $*.c | ||
74 | |||
75 | uncompr.obj: uncompr.c zlib.h zconf.h | ||
76 | $(CC) -c $(CFLAGS) $*.c | ||
77 | |||
78 | zutil.obj: zutil.c zutil.h zlib.h zconf.h | ||
79 | $(CC) -c $(CFLAGS) $*.c | ||
80 | |||
81 | example.obj: example.c zlib.h zconf.h | ||
82 | $(CC) -c $(CFLAGS) $*.c | ||
83 | |||
84 | minigzip.obj: minigzip.c zlib.h zconf.h | ||
85 | $(CC) -c $(CFLAGS) $*.c | ||
86 | |||
87 | # we must cut the command line to fit in the MS/DOS 128 byte limit: | ||
88 | zlib.lib: $(OBJ1) $(OBJ2) | ||
89 | del zlib.lib | ||
90 | $(LIB) zlib +$(OBJP1) | ||
91 | $(LIB) zlib +$(OBJP2) | ||
92 | |||
93 | example.exe: example.obj zlib.lib | ||
94 | $(LD) $(LDFLAGS) -eexample.exe example.obj zlib.lib | ||
95 | |||
96 | minigzip.exe: minigzip.obj zlib.lib | ||
97 | $(LD) $(LDFLAGS) -eminigzip.exe minigzip.obj zlib.lib | ||
98 | |||
99 | test: example.exe minigzip.exe | ||
100 | example | ||
101 | echo hello world | minigzip | minigzip -d | ||
102 | |||
103 | #clean: | ||
104 | # del *.obj | ||
105 | # del *.exe | ||
diff --git a/msdos/Makefile.wat b/msdos/Makefile.wat new file mode 100644 index 0000000..2a3b629 --- /dev/null +++ b/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 zutil.h 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 zutil.h 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/msdos/zlib.def b/msdos/zlib.def new file mode 100644 index 0000000..346cce7 --- /dev/null +++ b/msdos/zlib.def | |||
@@ -0,0 +1,57 @@ | |||
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.07 | ||
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 | ||
diff --git a/msdos/zlib.rc b/msdos/zlib.rc new file mode 100644 index 0000000..a5a9fcb --- /dev/null +++ b/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,0,7,0 | ||
6 | PRODUCTVERSION 1,0,7,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.0.7\0" | ||
21 | VALUE "InternalName", "zlib\0" | ||
22 | VALUE "OriginalFilename", "zlib.lib\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 | ||