diff options
Diffstat (limited to 'msdos')
| -rw-r--r-- | msdos/Makefile.bor | 6 | ||||
| -rw-r--r-- | msdos/Makefile.dj2 | 104 | ||||
| -rw-r--r-- | msdos/Makefile.emx | 69 | ||||
| -rw-r--r-- | msdos/Makefile.msc | 106 | ||||
| -rw-r--r-- | msdos/Makefile.tc | 6 |
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 | ||
| 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/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 | |||
| 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 infback.o inftrees.o inffast.o | ||
| 56 | |||
| 57 | OBJA = | ||
| 58 | # to use the asm code: make OBJA=match.o | ||
| 59 | |||
| 60 | TEST_OBJS = example.o minigzip.o | ||
| 61 | |||
| 62 | all: example.exe minigzip.exe | ||
| 63 | |||
| 64 | check: test | ||
| 65 | test: all | ||
| 66 | ./example | ||
| 67 | echo hello world | .\minigzip | .\minigzip -d | ||
| 68 | |||
| 69 | %.o : %.c | ||
| 70 | $(CC) $(CFLAGS) -c $< -o $@ | ||
| 71 | |||
| 72 | libz.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 | |||
| 82 | install: $(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 | |||
| 89 | uninstall: | ||
| 90 | $(RM) $(INCLUDE_PATH)\zlib.h | ||
| 91 | $(RM) $(INCLUDE_PATH)\zconf.h | ||
| 92 | $(RM) $(LIBRARY_PATH)\libz.a | ||
| 93 | |||
| 94 | clean: | ||
| 95 | $(RM) *.d | ||
| 96 | $(RM) *.o | ||
| 97 | $(RM) *.exe | ||
| 98 | $(RM) libz.a | ||
| 99 | $(RM) foo.gz | ||
| 100 | |||
| 101 | DEPS := $(wildcard *.d) | ||
| 102 | ifneq ($(DEPS),) | ||
| 103 | include $(DEPS) | ||
| 104 | endif | ||
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 | |||
| 10 | CC=gcc | ||
| 11 | |||
| 12 | #CFLAGS=-MMD -O | ||
| 13 | #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 | ||
| 14 | #CFLAGS=-MMD -g -DDEBUG | ||
| 15 | CFLAGS=-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" . | ||
| 19 | CP=copy /Y | ||
| 20 | # If gnu install.exe is available, replace $(CP) with ginstall. | ||
| 21 | INSTALL=$(CP) | ||
| 22 | # The default value of RM is "rm -f." If "rm.exe" is found, comment out: | ||
| 23 | RM=del | ||
| 24 | LDLIBS=-L. -lzlib | ||
| 25 | LD=$(CC) -s -o | ||
| 26 | LDSHARED=$(CC) | ||
| 27 | |||
| 28 | INCL=zlib.h zconf.h | ||
| 29 | LIBS=zlib.a | ||
| 30 | |||
| 31 | AR=ar rcs | ||
| 32 | |||
| 33 | prefix=/usr/local | ||
| 34 | exec_prefix = $(prefix) | ||
| 35 | |||
| 36 | OBJS = 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 | |||
| 39 | TEST_OBJS = example.o minigzip.o | ||
| 40 | |||
| 41 | all: example.exe minigzip.exe | ||
| 42 | |||
| 43 | test: all | ||
| 44 | ./example | ||
| 45 | echo hello world | .\minigzip | .\minigzip -d | ||
| 46 | |||
| 47 | %.o : %.c | ||
| 48 | $(CC) $(CFLAGS) -c $< -o $@ | ||
| 49 | |||
| 50 | zlib.a: $(OBJS) | ||
| 51 | $(AR) $@ $(OBJS) | ||
| 52 | |||
| 53 | %.exe : %.o $(LIBS) | ||
| 54 | $(LD) $@ $< $(LDLIBS) | ||
| 55 | |||
| 56 | |||
| 57 | .PHONY : clean | ||
| 58 | |||
| 59 | clean: | ||
| 60 | $(RM) *.d | ||
| 61 | $(RM) *.o | ||
| 62 | $(RM) *.exe | ||
| 63 | $(RM) zlib.a | ||
| 64 | $(RM) foo.gz | ||
| 65 | |||
| 66 | DEPS := $(wildcard *.d) | ||
| 67 | ifneq ($(DEPS),) | ||
| 68 | include $(DEPS) | ||
| 69 | endif | ||
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 |
