aboutsummaryrefslogtreecommitdiff
path: root/msdos
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:22:37 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:22:37 -0700
commit4b5a43a219d51066c01ff2ab86af18b967f2d0dd (patch)
tree4dcaf0cd18751d04cf638a9a6ec521990d4f2e90 /msdos
parent086e982175da84b3db958191031380794315f95f (diff)
downloadzlib-4b5a43a219d51066c01ff2ab86af18b967f2d0dd.tar.gz
zlib-4b5a43a219d51066c01ff2ab86af18b967f2d0dd.tar.bz2
zlib-4b5a43a219d51066c01ff2ab86af18b967f2d0dd.zip
zlib 1.2.0.5v1.2.0.5
Diffstat (limited to 'msdos')
-rw-r--r--msdos/Makefile.bor6
-rw-r--r--msdos/Makefile.dj2104
-rw-r--r--msdos/Makefile.emx69
-rw-r--r--msdos/Makefile.msc106
-rw-r--r--msdos/Makefile.tc6
5 files changed, 285 insertions, 6 deletions
diff --git a/msdos/Makefile.bor b/msdos/Makefile.bor
index 4ad4061..8f8132d 100644
--- a/msdos/Makefile.bor
+++ b/msdos/Makefile.bor
@@ -1,6 +1,6 @@
1# Makefile for zlib 1# Makefile for zlib
2# Borland C++ 2# Borland C++
3# Updated for zlib-1.2.x by Cosmin Truta, 15-Mar-2003. 3# Last updated: 15-Mar-2003
4 4
5# To use, do "make -fmakefile.bor" 5# To use, do "make -fmakefile.bor"
6# To compile in small model, set below: MODEL=s 6# To compile in small model, set below: MODEL=s
@@ -103,7 +103,7 @@ test: example.exe minigzip.exe
103 103
104clean: 104clean:
105 -del *.obj 105 -del *.obj
106 -del *.exe
107 -del *.lib 106 -del *.lib
108 -del zlib_$(MODEL).bak 107 -del *.exe
108 -del zlib_*.bak
109 -del foo.gz 109 -del foo.gz
diff --git a/msdos/Makefile.dj2 b/msdos/Makefile.dj2
new file mode 100644
index 0000000..283d1d9
--- /dev/null
+++ b/msdos/Makefile.dj2
@@ -0,0 +1,104 @@
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 infback.o inftrees.o inffast.o
56
57OBJA =
58# to use the asm code: make OBJA=match.o
59
60TEST_OBJS = example.o minigzip.o
61
62all: example.exe minigzip.exe
63
64check: test
65test: all
66 ./example
67 echo hello world | .\minigzip | .\minigzip -d
68
69%.o : %.c
70 $(CC) $(CFLAGS) -c $< -o $@
71
72libz.a: $(OBJS) $(OBJA)
73 $(AR) $@ $(OBJS) $(OBJA)
74
75%.exe : %.o $(LIBS)
76 $(LD) $@ $< $(LDLIBS)
77
78# INCLUDE_PATH and LIBRARY_PATH were set for [make] in djgpp.env .
79
80.PHONY : uninstall clean
81
82install: $(INCL) $(LIBS)
83 -@if not exist $(INCLUDE_PATH)\nul mkdir $(INCLUDE_PATH)
84 -@if not exist $(LIBRARY_PATH)\nul mkdir $(LIBRARY_PATH)
85 $(INSTALL) zlib.h $(INCLUDE_PATH)
86 $(INSTALL) zconf.h $(INCLUDE_PATH)
87 $(INSTALL) libz.a $(LIBRARY_PATH)
88
89uninstall:
90 $(RM) $(INCLUDE_PATH)\zlib.h
91 $(RM) $(INCLUDE_PATH)\zconf.h
92 $(RM) $(LIBRARY_PATH)\libz.a
93
94clean:
95 $(RM) *.d
96 $(RM) *.o
97 $(RM) *.exe
98 $(RM) libz.a
99 $(RM) foo.gz
100
101DEPS := $(wildcard *.d)
102ifneq ($(DEPS),)
103include $(DEPS)
104endif
diff --git a/msdos/Makefile.emx b/msdos/Makefile.emx
new file mode 100644
index 0000000..ed4c31f
--- /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 infback.o inftrees.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
new file mode 100644
index 0000000..b8fc665
--- /dev/null
+++ b/msdos/Makefile.msc
@@ -0,0 +1,106 @@
1# Makefile for zlib
2# Microsoft C 5.1 or later
3# Last updated: 19-Mar-2003
4
5# To use, do "make makefile.msc"
6# To compile in small model, set below: MODEL=S
7
8# If you wish to reduce the memory requirements (default 256K for big
9# objects plus a few K), you can add to the LOC macro below:
10# -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14
11# See zconf.h for details about the memory requirements.
12
13# ------------- Microsoft C 5.1 and later -------------
14
15# Optional nonstandard preprocessor flags (e.g. -DMAX_MEM_LEVEL=7)
16# should be added to the environment via "set LOCAL_ZLIB=-DFOO" or added
17# to the declaration of LOC here:
18LOC = $(LOCAL_ZLIB)
19
20# Type for CPU required: 0: 8086, 1: 80186, 2: 80286, 3: 80386, etc.
21CPU_TYP = 0
22
23# Memory model: one of S, M, C, L (small, medium, compact, large)
24MODEL=L
25
26CC=cl
27CFLAGS=-nologo -A$(MODEL) -G$(CPU_TYP) -W3 -Oait -Gs $(LOC)
28#-Ox generates bad code with MSC 5.1
29LIB_CFLAGS=-Zl $(CFLAGS)
30
31LD=link
32LDFLAGS=/noi/e/st:0x1500/noe/farcall/packcode
33# "/farcall/packcode" are only useful for `large code' memory models
34# but should be a "no-op" for small code models.
35
36
37# variables
38ZLIB_LIB = zlib_$(MODEL).lib
39
40OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzio.obj infback.obj
41OBJ2 = inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
42
43
44# targets
45all: $(ZLIB_LIB) example.exe minigzip.exe
46
47.c.obj:
48 $(CC) -c $(LIB_CFLAGS) $*.c
49
50adler32.obj: adler32.c zlib.h zconf.h
51
52compress.obj: compress.c zlib.h zconf.h
53
54crc32.obj: crc32.c zlib.h zconf.h crc32.h
55
56deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
57
58gzio.obj: gzio.c zutil.h zlib.h zconf.h
59
60infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
61 inffast.h inffixed.h
62
63inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
64 inffast.h
65
66inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
67 inffast.h inffixed.h
68
69inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
70
71trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h
72
73uncompr.obj: uncompr.c zlib.h zconf.h
74
75zutil.obj: zutil.c zutil.h zlib.h zconf.h
76
77example.obj: example.c zlib.h zconf.h
78 $(CC) -c $(CFLAGS) $*.c
79
80minigzip.obj: minigzip.c zlib.h zconf.h
81 $(CC) -c $(CFLAGS) $*.c
82
83
84# the command line is cut to fit in the MS-DOS 128 byte limit:
85$(ZLIB_LIB): $(OBJ1) $(OBJ2)
86 if exist $(ZLIB_LIB) del $(ZLIB_LIB)
87 lib $(ZLIB_LIB) $(OBJ1);
88 lib $(ZLIB_LIB) $(OBJ2);
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: example.exe minigzip.exe
97 example
98 echo hello world | minigzip | minigzip -d
99
100clean:
101 -del *.obj
102 -del *.lib
103 -del *.exe
104 -del *.map
105 -del zlib_*.bak
106 -del foo.gz
diff --git a/msdos/Makefile.tc b/msdos/Makefile.tc
index d0a7864..480750a 100644
--- a/msdos/Makefile.tc
+++ b/msdos/Makefile.tc
@@ -1,6 +1,6 @@
1# Makefile for zlib 1# Makefile for zlib
2# Turbo C 2.01, Turbo C++ 1.01 2# Turbo C 2.01, Turbo C++ 1.01
3# Updated for zlib-1.2.x by Cosmin Truta, 15-Mar-2003. 3# Last updated: 15-Mar-2003
4 4
5# To use, do "make -fmakefile.tc" 5# To use, do "make -fmakefile.tc"
6# To compile in small model, set below: MODEL=s 6# To compile in small model, set below: MODEL=s
@@ -88,7 +88,7 @@ test: example.exe minigzip.exe
88 88
89clean: 89clean:
90 -del *.obj 90 -del *.obj
91 -del *.exe
92 -del *.lib 91 -del *.lib
93 -del zlib_$(MODEL).bak 92 -del *.exe
93 -del zlib_*.bak
94 -del foo.gz 94 -del foo.gz