aboutsummaryrefslogtreecommitdiff
path: root/old
diff options
context:
space:
mode:
Diffstat (limited to 'old')
-rw-r--r--old/msdos/Makefile.bor125
-rw-r--r--old/msdos/Makefile.tc108
2 files changed, 0 insertions, 233 deletions
diff --git a/old/msdos/Makefile.bor b/old/msdos/Makefile.bor
deleted file mode 100644
index f5651b4..0000000
--- a/old/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/old/msdos/Makefile.tc b/old/msdos/Makefile.tc
deleted file mode 100644
index 63e0550..0000000
--- a/old/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