aboutsummaryrefslogtreecommitdiff
path: root/msdos
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:21:57 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:21:57 -0700
commit13a294f044ef0a89b2dcbfbb5d4d4c792673348e (patch)
treed9b377b4d8c00633c3da4e96659bfba9b08287f2 /msdos
parent7c2a874e50b871d04fbd19501f7b42cff55e5abc (diff)
downloadzlib-13a294f044ef0a89b2dcbfbb5d4d4c792673348e.tar.gz
zlib-13a294f044ef0a89b2dcbfbb5d4d4c792673348e.tar.bz2
zlib-13a294f044ef0a89b2dcbfbb5d4d4c792673348e.zip
zlib 1.2.0.1v1.2.0.1
Diffstat (limited to 'msdos')
-rw-r--r--msdos/Makefile.bor109
-rw-r--r--msdos/Makefile.tc94
2 files changed, 203 insertions, 0 deletions
diff --git a/msdos/Makefile.bor b/msdos/Makefile.bor
new file mode 100644
index 0000000..4ad4061
--- /dev/null
+++ b/msdos/Makefile.bor
@@ -0,0 +1,109 @@
1# Makefile for zlib
2# Borland C++
3# Updated for zlib-1.2.x by Cosmin Truta, 15-Mar-2003.
4
5# To use, do "make -fmakefile.bor"
6# To compile in small model, set below: MODEL=s
7
8# WARNING: the small model is supported but only for small values of
9# MAX_WBITS and MAX_MEM_LEVEL. For example:
10# -DMAX_WBITS=11 -DDEF_WBITS=11 -DMAX_MEM_LEVEL=3
11# If you wish to reduce the memory requirements (default 256K for big
12# objects plus a few K), you can add to the LOC macro below:
13# -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14
14# See zconf.h for details about the memory requirements.
15
16# ------------ Turbo C++, Borland C++ ------------
17
18# Optional nonstandard preprocessor flags (e.g. -DMAX_MEM_LEVEL=7)
19# should be added to the environment via "set LOCAL_ZLIB=-DFOO" or added
20# to the declaration of LOC here:
21LOC = $(LOCAL_ZLIB)
22
23# type for CPU required: 0: 8086, 1: 80186, 2: 80286, 3: 80386, etc.
24CPU_TYP = 0
25
26# memory model: one of s, m, c, l (small, medium, compact, large)
27MODEL=l
28
29# replace bcc with tcc for Turbo C++ 1.0, with bcc32 for the 32 bit version
30CC=bcc
31LD=bcc
32AR=tlib
33
34# compiler flags
35# replace "-O2" by "-O -G -a -d" for Turbo C++ 1.0
36CFLAGS=-O2 -Z -m$(MODEL) $(LOC)
37
38LDFLAGS=-m$(MODEL) -f-
39
40
41# variables
42ZLIB_LIB = zlib_$(MODEL).lib
43
44OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzio.obj infback.obj
45OBJ2 = inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
46OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzio.obj+infback.obj
47OBJP2 = +inffast.obj+inflate.obj+inftrees.obj+trees.obj+uncompr.obj+zutil.obj
48
49
50# targets
51all: $(ZLIB_LIB) example.exe minigzip.exe
52
53.c.obj:
54 $(CC) -c $(CFLAGS) $*.c
55
56adler32.obj: adler32.c zlib.h zconf.h
57
58compress.obj: compress.c zlib.h zconf.h
59
60crc32.obj: crc32.c zlib.h zconf.h crc32.h
61
62deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
63
64gzio.obj: gzio.c zutil.h zlib.h zconf.h
65
66infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
67 inffast.h inffixed.h
68
69inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
70 inffast.h
71
72inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
73 inffast.h inffixed.h
74
75inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
76
77trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h
78
79uncompr.obj: uncompr.c zlib.h zconf.h
80
81zutil.obj: zutil.c zutil.h zlib.h zconf.h
82
83example.obj: example.c zlib.h zconf.h
84
85minigzip.obj: minigzip.c zlib.h zconf.h
86
87
88# the command line is cut to fit in the MS-DOS 128 byte limit:
89$(ZLIB_LIB): $(OBJ1) $(OBJ2)
90 -del $(ZLIB_LIB)
91 $(AR) $(ZLIB_LIB) $(OBJP1)
92 $(AR) $(ZLIB_LIB) $(OBJP2)
93
94example.exe: example.obj $(ZLIB_LIB)
95 $(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)
96
97minigzip.exe: minigzip.obj $(ZLIB_LIB)
98 $(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB)
99
100test: example.exe minigzip.exe
101 example
102 echo hello world | minigzip | minigzip -d
103
104clean:
105 -del *.obj
106 -del *.exe
107 -del *.lib
108 -del zlib_$(MODEL).bak
109 -del foo.gz
diff --git a/msdos/Makefile.tc b/msdos/Makefile.tc
new file mode 100644
index 0000000..d0a7864
--- /dev/null
+++ b/msdos/Makefile.tc
@@ -0,0 +1,94 @@
1# Makefile for zlib
2# Turbo C 2.01, Turbo C++ 1.01
3# Updated for zlib-1.2.x by Cosmin Truta, 15-Mar-2003.
4
5# To use, do "make -fmakefile.tc"
6# To compile in small model, set below: MODEL=s
7
8# WARNING: the small model is supported but only for small values of
9# MAX_WBITS and MAX_MEM_LEVEL. For example:
10# -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3
11# If you wish to reduce the memory requirements (default 256K for big
12# objects plus a few K), you can add to CFLAGS below:
13# -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14
14# See zconf.h for details about the memory requirements.
15
16# ------------ Turbo C 2.01, Turbo C++ 1.01 ------------
17MODEL=l
18CC=tcc
19LD=tcc
20AR=tlib
21# CFLAGS=-O2 -G -Z -m$(MODEL) -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3
22CFLAGS=-O2 -G -Z -m$(MODEL)
23LDFLAGS=-m$(MODEL) -f-
24
25
26# variables
27ZLIB_LIB = zlib_$(MODEL).lib
28
29OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzio.obj infback.obj
30OBJ2 = inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
31OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzio.obj+infback.obj
32OBJP2 = +inffast.obj+inflate.obj+inftrees.obj+trees.obj+uncompr.obj+zutil.obj
33
34
35# targets
36all: $(ZLIB_LIB) example.exe minigzip.exe
37
38.c.obj:
39 $(CC) -c $(CFLAGS) $*.c
40
41adler32.obj: adler32.c zlib.h zconf.h
42
43compress.obj: compress.c zlib.h zconf.h
44
45crc32.obj: crc32.c zlib.h zconf.h crc32.h
46
47deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
48
49gzio.obj: gzio.c zutil.h zlib.h zconf.h
50
51infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
52 inffast.h inffixed.h
53
54inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
55 inffast.h
56
57inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
58 inffast.h inffixed.h
59
60inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
61
62trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h
63
64uncompr.obj: uncompr.c zlib.h zconf.h
65
66zutil.obj: zutil.c zutil.h zlib.h zconf.h
67
68example.obj: example.c zlib.h zconf.h
69
70minigzip.obj: minigzip.c zlib.h zconf.h
71
72
73# the command line is cut to fit in the MS-DOS 128 byte limit:
74$(ZLIB_LIB): $(OBJ1) $(OBJ2)
75 -del $(ZLIB_LIB)
76 $(AR) $(ZLIB_LIB) $(OBJP1)
77 $(AR) $(ZLIB_LIB) $(OBJP2)
78
79example.exe: example.obj $(ZLIB_LIB)
80 $(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)
81
82minigzip.exe: minigzip.obj $(ZLIB_LIB)
83 $(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB)
84
85test: example.exe minigzip.exe
86 example
87 echo hello world | minigzip | minigzip -d
88
89clean:
90 -del *.obj
91 -del *.exe
92 -del *.lib
93 -del zlib_$(MODEL).bak
94 -del foo.gz