diff options
Diffstat (limited to 'nt')
| -rw-r--r-- | nt/Makefile.emx | 138 | ||||
| -rw-r--r-- | nt/Makefile.gcc | 87 |
2 files changed, 225 insertions, 0 deletions
diff --git a/nt/Makefile.emx b/nt/Makefile.emx new file mode 100644 index 0000000..2d475b1 --- /dev/null +++ b/nt/Makefile.emx | |||
| @@ -0,0 +1,138 @@ | |||
| 1 | # Makefile for zlib. Modified for emx/rsxnt by Chr. Spieler, 6/16/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 -Zwin32 | ||
| 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 infblock.o inftrees.o infcodes.o infutil.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 | ||
| 70 | # Makefile for zlib. Modified for emx 0.9c by Chr. Spieler, 6/17/98. | ||
| 71 | # Copyright (C) 1995-1998 Jean-loup Gailly. | ||
| 72 | # For conditions of distribution and use, see copyright notice in zlib.h | ||
| 73 | |||
| 74 | # To compile, or to compile and test, type: | ||
| 75 | # | ||
| 76 | # make -fmakefile.emx; make test -fmakefile.emx | ||
| 77 | # | ||
| 78 | |||
| 79 | CC=gcc | ||
| 80 | |||
| 81 | #CFLAGS=-MMD -O | ||
| 82 | #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 | ||
| 83 | #CFLAGS=-MMD -g -DDEBUG | ||
| 84 | CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ | ||
| 85 | -Wstrict-prototypes -Wmissing-prototypes | ||
| 86 | |||
| 87 | # If cp.exe is available, replace "copy /Y" with "cp -fp" . | ||
| 88 | CP=copy /Y | ||
| 89 | # If gnu install.exe is available, replace $(CP) with ginstall. | ||
| 90 | INSTALL=$(CP) | ||
| 91 | # The default value of RM is "rm -f." If "rm.exe" is found, comment out: | ||
| 92 | RM=del | ||
| 93 | LDLIBS=-L. -lzlib | ||
| 94 | LD=$(CC) -s -o | ||
| 95 | LDSHARED=$(CC) | ||
| 96 | |||
| 97 | INCL=zlib.h zconf.h | ||
| 98 | LIBS=zlib.a | ||
| 99 | |||
| 100 | AR=ar rcs | ||
| 101 | |||
| 102 | prefix=/usr/local | ||
| 103 | exec_prefix = $(prefix) | ||
| 104 | |||
| 105 | OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ | ||
| 106 | zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o | ||
| 107 | |||
| 108 | TEST_OBJS = example.o minigzip.o | ||
| 109 | |||
| 110 | all: example.exe minigzip.exe | ||
| 111 | |||
| 112 | test: all | ||
| 113 | ./example | ||
| 114 | echo hello world | .\minigzip | .\minigzip -d | ||
| 115 | |||
| 116 | %.o : %.c | ||
| 117 | $(CC) $(CFLAGS) -c $< -o $@ | ||
| 118 | |||
| 119 | zlib.a: $(OBJS) | ||
| 120 | $(AR) $@ $(OBJS) | ||
| 121 | |||
| 122 | %.exe : %.o $(LIBS) | ||
| 123 | $(LD) $@ $< $(LDLIBS) | ||
| 124 | |||
| 125 | |||
| 126 | .PHONY : clean | ||
| 127 | |||
| 128 | clean: | ||
| 129 | $(RM) *.d | ||
| 130 | $(RM) *.o | ||
| 131 | $(RM) *.exe | ||
| 132 | $(RM) zlib.a | ||
| 133 | $(RM) foo.gz | ||
| 134 | |||
| 135 | DEPS := $(wildcard *.d) | ||
| 136 | ifneq ($(DEPS),) | ||
| 137 | include $(DEPS) | ||
| 138 | endif | ||
diff --git a/nt/Makefile.gcc b/nt/Makefile.gcc new file mode 100644 index 0000000..cdd652f --- /dev/null +++ b/nt/Makefile.gcc | |||
| @@ -0,0 +1,87 @@ | |||
| 1 | # Makefile for zlib. Modified for mingw32 by C. Spieler, 6/16/98. | ||
| 2 | # (This Makefile is directly derived from Makefile.dj2) | ||
| 3 | # Copyright (C) 1995-1998 Jean-loup Gailly. | ||
| 4 | # For conditions of distribution and use, see copyright notice in zlib.h | ||
| 5 | |||
| 6 | # To compile, or to compile and test, type: | ||
| 7 | # | ||
| 8 | # make -fmakefile.gcc; make test -fmakefile.gcc | ||
| 9 | # | ||
| 10 | # To install libz.a, zconf.h and zlib.h in the mingw32 directories, type: | ||
| 11 | # | ||
| 12 | # make install -fmakefile.gcc | ||
| 13 | # | ||
| 14 | |||
| 15 | CC=gcc | ||
| 16 | |||
| 17 | #CFLAGS=-MMD -O | ||
| 18 | #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 | ||
| 19 | #CFLAGS=-MMD -g -DDEBUG | ||
| 20 | CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ | ||
| 21 | -Wstrict-prototypes -Wmissing-prototypes | ||
| 22 | |||
| 23 | # If cp.exe is available, replace "copy /Y" with "cp -fp" . | ||
| 24 | CP=copy /Y | ||
| 25 | # If gnu install.exe is available, replace $(CP) with ginstall. | ||
| 26 | INSTALL=$(CP) | ||
| 27 | # The default value of RM is "rm -f." If "rm.exe" is found, comment out: | ||
| 28 | RM=del | ||
| 29 | LDLIBS=-L. -lz | ||
| 30 | LD=$(CC) -s -o | ||
| 31 | LDSHARED=$(CC) | ||
| 32 | |||
| 33 | INCL=zlib.h zconf.h | ||
| 34 | LIBS=libz.a | ||
| 35 | |||
| 36 | AR=ar rcs | ||
| 37 | |||
| 38 | prefix=/usr/local | ||
| 39 | exec_prefix = $(prefix) | ||
| 40 | |||
| 41 | OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ | ||
| 42 | zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o | ||
| 43 | |||
| 44 | TEST_OBJS = example.o minigzip.o | ||
| 45 | |||
| 46 | all: example.exe minigzip.exe | ||
| 47 | |||
| 48 | test: all | ||
| 49 | ./example | ||
| 50 | echo hello world | .\minigzip | .\minigzip -d | ||
| 51 | |||
| 52 | %.o : %.c | ||
| 53 | $(CC) $(CFLAGS) -c $< -o $@ | ||
| 54 | |||
| 55 | libz.a: $(OBJS) | ||
| 56 | $(AR) $@ $(OBJS) | ||
| 57 | |||
| 58 | %.exe : %.o $(LIBS) | ||
| 59 | $(LD) $@ $< $(LDLIBS) | ||
| 60 | |||
| 61 | # INCLUDE_PATH and LIBRARY_PATH were set for [make] in djgpp.env . | ||
| 62 | |||
| 63 | .PHONY : uninstall clean | ||
| 64 | |||
| 65 | install: $(INCL) $(LIBS) | ||
| 66 | -@if not exist $(INCLUDE_PATH)\nul mkdir $(INCLUDE_PATH) | ||
| 67 | -@if not exist $(LIBRARY_PATH)\nul mkdir $(LIBRARY_PATH) | ||
| 68 | $(INSTALL) zlib.h $(INCLUDE_PATH) | ||
| 69 | $(INSTALL) zconf.h $(INCLUDE_PATH) | ||
| 70 | $(INSTALL) libz.a $(LIBRARY_PATH) | ||
| 71 | |||
| 72 | uninstall: | ||
| 73 | $(RM) $(INCLUDE_PATH)\zlib.h | ||
| 74 | $(RM) $(INCLUDE_PATH)\zconf.h | ||
| 75 | $(RM) $(LIBRARY_PATH)\libz.a | ||
| 76 | |||
| 77 | clean: | ||
| 78 | $(RM) *.d | ||
| 79 | $(RM) *.o | ||
| 80 | $(RM) *.exe | ||
| 81 | $(RM) libz.a | ||
| 82 | $(RM) foo.gz | ||
| 83 | |||
| 84 | DEPS := $(wildcard *.d) | ||
| 85 | ifneq ($(DEPS),) | ||
| 86 | include $(DEPS) | ||
| 87 | endif | ||
