diff options
Diffstat (limited to '')
-rw-r--r-- | win32/Makefile.gcc | 13 | ||||
-rw-r--r-- | win32/README-WIN32.txt | 103 |
2 files changed, 110 insertions, 6 deletions
diff --git a/win32/Makefile.gcc b/win32/Makefile.gcc index abe3d5a..0e16190 100644 --- a/win32/Makefile.gcc +++ b/win32/Makefile.gcc | |||
@@ -30,7 +30,8 @@ IMPLIB = libzdll.a | |||
30 | #LOC = -DASMV | 30 | #LOC = -DASMV |
31 | #LOC = -DDEBUG -g | 31 | #LOC = -DDEBUG -g |
32 | 32 | ||
33 | CC = gcc | 33 | PREFIX = |
34 | CC = $(PREFIX)gcc | ||
34 | CFLAGS = $(LOC) -O3 -Wall | 35 | CFLAGS = $(LOC) -O3 -Wall |
35 | 36 | ||
36 | AS = $(CC) | 37 | AS = $(CC) |
@@ -39,13 +40,13 @@ ASFLAGS = $(LOC) -Wall | |||
39 | LD = $(CC) | 40 | LD = $(CC) |
40 | LDFLAGS = $(LOC) -s | 41 | LDFLAGS = $(LOC) -s |
41 | 42 | ||
42 | AR = ar | 43 | AR = $(PREFIX)ar |
43 | ARFLAGS = rcs | 44 | ARFLAGS = rcs |
44 | 45 | ||
45 | RC = windres | 46 | RC = $(PREFIX)windres |
46 | RCFLAGS = --define GCC_WINDRES | 47 | RCFLAGS = --define GCC_WINDRES |
47 | 48 | ||
48 | STRIP = strip | 49 | STRIP = $(PREFIX)strip |
49 | 50 | ||
50 | CP = cp -fp | 51 | CP = cp -fp |
51 | # If GNU install is available, replace $(CP) with install. | 52 | # If GNU install is available, replace $(CP) with install. |
@@ -106,8 +107,8 @@ zlibrc.o: win32/zlib1.rc | |||
106 | .PHONY: install uninstall clean | 107 | .PHONY: install uninstall clean |
107 | 108 | ||
108 | install: zlib.h zconf.h $(LIB) | 109 | install: zlib.h zconf.h $(LIB) |
109 | -@if not exist $(INCLUDE_PATH)/nul mkdir $(INCLUDE_PATH) | 110 | -@mkdir -p $(INCLUDE_PATH) |
110 | -@if not exist $(LIBRARY_PATH)/nul mkdir $(LIBRARY_PATH) | 111 | -@mkdir -p $(LIBRARY_PATH) |
111 | -$(INSTALL) zlib.h $(INCLUDE_PATH) | 112 | -$(INSTALL) zlib.h $(INCLUDE_PATH) |
112 | -$(INSTALL) zconf.h $(INCLUDE_PATH) | 113 | -$(INSTALL) zconf.h $(INCLUDE_PATH) |
113 | -$(INSTALL) $(STATICLIB) $(LIBRARY_PATH) | 114 | -$(INSTALL) $(STATICLIB) $(LIBRARY_PATH) |
diff --git a/win32/README-WIN32.txt b/win32/README-WIN32.txt new file mode 100644 index 0000000..35062cd --- /dev/null +++ b/win32/README-WIN32.txt | |||
@@ -0,0 +1,103 @@ | |||
1 | ZLIB DATA COMPRESSION LIBRARY | ||
2 | |||
3 | zlib 1.2.4 is a general purpose data compression library. All the code is | ||
4 | thread safe. The data format used by the zlib library is described by RFCs | ||
5 | (Request for Comments) 1950 to 1952 in the files | ||
6 | http://www.ietf.org/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format) | ||
7 | and rfc1952.txt (gzip format). | ||
8 | |||
9 | All functions of the compression library are documented in the file zlib.h | ||
10 | (volunteer to write man pages welcome, contact zlib@gzip.org). Two compiled | ||
11 | examples are distributed in this package, example and minigzip. The example_d | ||
12 | and minigzip_d flavors validate that the zlib1.dll file is working correctly. | ||
13 | |||
14 | Questions about zlib should be sent to <zlib@gzip.org>. The zlib home page | ||
15 | is http://zlib.net/ . Before reporting a problem, please check this site to | ||
16 | verify that you have the latest version of zlib; otherwise get the latest | ||
17 | version and check whether the problem still exists or not. | ||
18 | |||
19 | PLEASE read DLL_FAQ.txt, and the the zlib FAQ http://zlib.net/zlib_faq.html | ||
20 | before asking for help. | ||
21 | |||
22 | |||
23 | Manifest: | ||
24 | |||
25 | The package zlib-1.2.4-win32-x86.zip contains the following files: | ||
26 | |||
27 | README-WIN32.txt This document | ||
28 | ChangeLog Changes since previous zlib packages | ||
29 | DLL_FAQ.txt Frequently asked questions about zlib1.dll | ||
30 | zlib.3.pdf Documentation of this library in Adobe Acrobat format | ||
31 | |||
32 | example.exe A statically-bound example (using zlib.lib, not the dll) | ||
33 | example.pdb Symbolic information for debugging example.exe | ||
34 | |||
35 | example_d.exe A zlib1.dll bound example (using zdll.lib) | ||
36 | example_d.pdb Symbolic information for debugging example_d.exe | ||
37 | |||
38 | minigzip.exe A statically-bound test program (using zlib.lib, not the dll) | ||
39 | minigzip.pdb Symbolic information for debugging minigzip.exe | ||
40 | |||
41 | minigzip_d.exe A zlib1.dll bound test program (using zdll.lib) | ||
42 | minigzip_d.pdb Symbolic information for debugging minigzip_d.exe | ||
43 | |||
44 | zlib.h Install these files into the compilers' INCLUDE path to | ||
45 | zconf.h compile programs which use zlib.lib or zdll.lib | ||
46 | |||
47 | zdll.lib Install these files into the compilers' LIB path if linking | ||
48 | zdll.exp a compiled program to the zlib1.dll binary | ||
49 | |||
50 | zlib.lib Install these files into the compilers' LIB path if linking | ||
51 | zlib.pdb a compiled program to the zlib1.dll binary (zlib.pdb ensures | ||
52 | that the resulting program may be debugged) | ||
53 | |||
54 | zlib1.dll Install this binary shared library into the system PATH, or | ||
55 | the program's runtime directory (where the .exe resides) | ||
56 | zlib1.pdb Install in the same directory as zlib1.dll, in order to debug | ||
57 | an application crash using WinDbg or similar tools. | ||
58 | |||
59 | All .pdb files above are entirely optional, but are very useful to a developer | ||
60 | attempting to diagnose program misbehavior or a crash. Many additional | ||
61 | important files for developers can be found in the zlib124.zip source package | ||
62 | available from http://zlib.net/ - review that package's README file for details. | ||
63 | |||
64 | |||
65 | Acknowledgments: | ||
66 | |||
67 | The deflate format used by zlib was defined by Phil Katz. The deflate and | ||
68 | zlib specifications were written by L. Peter Deutsch. Thanks to all the | ||
69 | people who reported problems and suggested various improvements in zlib; they | ||
70 | are too numerous to cite here. | ||
71 | |||
72 | |||
73 | Copyright notice: | ||
74 | |||
75 | (C) 1995-2010 Jean-loup Gailly and Mark Adler | ||
76 | |||
77 | This software is provided 'as-is', without any express or implied | ||
78 | warranty. In no event will the authors be held liable for any damages | ||
79 | arising from the use of this software. | ||
80 | |||
81 | Permission is granted to anyone to use this software for any purpose, | ||
82 | including commercial applications, and to alter it and redistribute it | ||
83 | freely, subject to the following restrictions: | ||
84 | |||
85 | 1. The origin of this software must not be misrepresented; you must not | ||
86 | claim that you wrote the original software. If you use this software | ||
87 | in a product, an acknowledgment in the product documentation would be | ||
88 | appreciated but is not required. | ||
89 | 2. Altered source versions must be plainly marked as such, and must not be | ||
90 | misrepresented as being the original software. | ||
91 | 3. This notice may not be removed or altered from any source distribution. | ||
92 | |||
93 | Jean-loup Gailly Mark Adler | ||
94 | jloup@gzip.org madler@alumni.caltech.edu | ||
95 | |||
96 | If you use the zlib library in a product, we would appreciate *not* receiving | ||
97 | lengthy legal documents to sign. The sources are provided for free but without | ||
98 | warranty of any kind. The library has been entirely written by Jean-loup | ||
99 | Gailly and Mark Adler; it does not include third-party code. | ||
100 | |||
101 | If you redistribute modified sources, we would appreciate that you include in | ||
102 | the file ChangeLog history information documenting your changes. Please read | ||
103 | the FAQ for more information on the distribution of modified source versions. | ||