diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:22:37 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:22:37 -0700 |
commit | 4b5a43a219d51066c01ff2ab86af18b967f2d0dd (patch) | |
tree | 4dcaf0cd18751d04cf638a9a6ec521990d4f2e90 /msdos | |
parent | 086e982175da84b3db958191031380794315f95f (diff) | |
download | zlib-1.2.0.5.tar.gz zlib-1.2.0.5.tar.bz2 zlib-1.2.0.5.zip |
zlib 1.2.0.5v1.2.0.5
Diffstat (limited to '')
-rw-r--r-- | msdos/Makefile.bor | 6 | ||||
-rw-r--r-- | msdos/Makefile.dj2 (renamed from old/msdos/Makefile.dj2) | 22 | ||||
-rw-r--r-- | msdos/Makefile.emx (renamed from old/msdos/Makefile.emx) | 10 | ||||
-rw-r--r-- | msdos/Makefile.msc | 106 | ||||
-rw-r--r-- | msdos/Makefile.tc | 6 |
5 files changed, 130 insertions, 20 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 | ||
104 | clean: | 104 | clean: |
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/old/msdos/Makefile.dj2 b/msdos/Makefile.dj2 index 0ab431c..283d1d9 100644 --- a/old/msdos/Makefile.dj2 +++ b/msdos/Makefile.dj2 | |||
@@ -1,15 +1,15 @@ | |||
1 | # Makefile for zlib. Modified for djgpp v2.0 by F. J. Donahoe, 3/15/96. | 1 | # Makefile for zlib. Modified for djgpp v2.0 by F. J. Donahoe, 3/15/96. |
2 | # Copyright (C) 1995-1998 Jean-loup Gailly. | 2 | # Copyright (C) 1995-1998 Jean-loup Gailly. |
3 | # For conditions of distribution and use, see copyright notice in zlib.h | 3 | # For conditions of distribution and use, see copyright notice in zlib.h |
4 | 4 | ||
5 | # To compile, or to compile and test, type: | 5 | # To compile, or to compile and test, type: |
6 | # | 6 | # |
7 | # make -fmakefile.dj2; make test -fmakefile.dj2 | 7 | # make -fmakefile.dj2; make test -fmakefile.dj2 |
8 | # | 8 | # |
9 | # To install libz.a, zconf.h and zlib.h in the djgpp directories, type: | 9 | # To install libz.a, zconf.h and zlib.h in the djgpp directories, type: |
10 | # | 10 | # |
11 | # make install -fmakefile.dj2 | 11 | # make install -fmakefile.dj2 |
12 | # | 12 | # |
13 | # after first defining LIBRARY_PATH and INCLUDE_PATH in djgpp.env as | 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 | 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 | 15 | # be followed. Remember that, while <sp>'es around <=> are ignored in |
@@ -52,21 +52,25 @@ prefix=/usr/local | |||
52 | exec_prefix = $(prefix) | 52 | exec_prefix = $(prefix) |
53 | 53 | ||
54 | OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ | 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 | 55 | zutil.o inflate.o infback.o inftrees.o inffast.o |
56 | |||
57 | OBJA = | ||
58 | # to use the asm code: make OBJA=match.o | ||
56 | 59 | ||
57 | TEST_OBJS = example.o minigzip.o | 60 | TEST_OBJS = example.o minigzip.o |
58 | 61 | ||
59 | all: example.exe minigzip.exe | 62 | all: example.exe minigzip.exe |
60 | 63 | ||
64 | check: test | ||
61 | test: all | 65 | test: all |
62 | ./example | 66 | ./example |
63 | echo hello world | .\minigzip | .\minigzip -d | 67 | echo hello world | .\minigzip | .\minigzip -d |
64 | 68 | ||
65 | %.o : %.c | 69 | %.o : %.c |
66 | $(CC) $(CFLAGS) -c $< -o $@ | 70 | $(CC) $(CFLAGS) -c $< -o $@ |
67 | 71 | ||
68 | libz.a: $(OBJS) | 72 | libz.a: $(OBJS) $(OBJA) |
69 | $(AR) $@ $(OBJS) | 73 | $(AR) $@ $(OBJS) $(OBJA) |
70 | 74 | ||
71 | %.exe : %.o $(LIBS) | 75 | %.exe : %.o $(LIBS) |
72 | $(LD) $@ $< $(LDLIBS) | 76 | $(LD) $@ $< $(LDLIBS) |
diff --git a/old/msdos/Makefile.emx b/msdos/Makefile.emx index 0e5e5cc..ed4c31f 100644 --- a/old/msdos/Makefile.emx +++ b/msdos/Makefile.emx | |||
@@ -1,11 +1,11 @@ | |||
1 | # Makefile for zlib. Modified for emx 0.9c by Chr. Spieler, 6/17/98. | 1 | # Makefile for zlib. Modified for emx 0.9c by Chr. Spieler, 6/17/98. |
2 | # Copyright (C) 1995-1998 Jean-loup Gailly. | 2 | # Copyright (C) 1995-1998 Jean-loup Gailly. |
3 | # For conditions of distribution and use, see copyright notice in zlib.h | 3 | # For conditions of distribution and use, see copyright notice in zlib.h |
4 | 4 | ||
5 | # To compile, or to compile and test, type: | 5 | # To compile, or to compile and test, type: |
6 | # | 6 | # |
7 | # make -fmakefile.emx; make test -fmakefile.emx | 7 | # make -fmakefile.emx; make test -fmakefile.emx |
8 | # | 8 | # |
9 | 9 | ||
10 | CC=gcc | 10 | CC=gcc |
11 | 11 | ||
@@ -34,7 +34,7 @@ prefix=/usr/local | |||
34 | exec_prefix = $(prefix) | 34 | exec_prefix = $(prefix) |
35 | 35 | ||
36 | OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ | 36 | OBJS = 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 | 37 | zutil.o inflate.o infback.o inftrees.o inffast.o |
38 | 38 | ||
39 | TEST_OBJS = example.o minigzip.o | 39 | TEST_OBJS = example.o minigzip.o |
40 | 40 | ||
@@ -42,7 +42,7 @@ all: example.exe minigzip.exe | |||
42 | 42 | ||
43 | test: all | 43 | test: all |
44 | ./example | 44 | ./example |
45 | echo hello world | .\minigzip | .\minigzip -d | 45 | echo hello world | .\minigzip | .\minigzip -d |
46 | 46 | ||
47 | %.o : %.c | 47 | %.o : %.c |
48 | $(CC) $(CFLAGS) -c $< -o $@ | 48 | $(CC) $(CFLAGS) -c $< -o $@ |
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: | ||
18 | LOC = $(LOCAL_ZLIB) | ||
19 | |||
20 | # Type for CPU required: 0: 8086, 1: 80186, 2: 80286, 3: 80386, etc. | ||
21 | CPU_TYP = 0 | ||
22 | |||
23 | # Memory model: one of S, M, C, L (small, medium, compact, large) | ||
24 | MODEL=L | ||
25 | |||
26 | CC=cl | ||
27 | CFLAGS=-nologo -A$(MODEL) -G$(CPU_TYP) -W3 -Oait -Gs $(LOC) | ||
28 | #-Ox generates bad code with MSC 5.1 | ||
29 | LIB_CFLAGS=-Zl $(CFLAGS) | ||
30 | |||
31 | LD=link | ||
32 | LDFLAGS=/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 | ||
38 | ZLIB_LIB = zlib_$(MODEL).lib | ||
39 | |||
40 | OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzio.obj infback.obj | ||
41 | OBJ2 = inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj | ||
42 | |||
43 | |||
44 | # targets | ||
45 | all: $(ZLIB_LIB) example.exe minigzip.exe | ||
46 | |||
47 | .c.obj: | ||
48 | $(CC) -c $(LIB_CFLAGS) $*.c | ||
49 | |||
50 | adler32.obj: adler32.c zlib.h zconf.h | ||
51 | |||
52 | compress.obj: compress.c zlib.h zconf.h | ||
53 | |||
54 | crc32.obj: crc32.c zlib.h zconf.h crc32.h | ||
55 | |||
56 | deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h | ||
57 | |||
58 | gzio.obj: gzio.c zutil.h zlib.h zconf.h | ||
59 | |||
60 | infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \ | ||
61 | inffast.h inffixed.h | ||
62 | |||
63 | inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \ | ||
64 | inffast.h | ||
65 | |||
66 | inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \ | ||
67 | inffast.h inffixed.h | ||
68 | |||
69 | inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h | ||
70 | |||
71 | trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h | ||
72 | |||
73 | uncompr.obj: uncompr.c zlib.h zconf.h | ||
74 | |||
75 | zutil.obj: zutil.c zutil.h zlib.h zconf.h | ||
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 | |||
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 | |||
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: example.exe minigzip.exe | ||
97 | example | ||
98 | echo hello world | minigzip | minigzip -d | ||
99 | |||
100 | clean: | ||
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 | ||
89 | clean: | 89 | clean: |
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 |