diff options
Diffstat (limited to 'win32')
| -rw-r--r-- | win32/DLL_FAQ.txt | 8 | ||||
| -rw-r--r-- | win32/Makefile.bor | 5 | ||||
| -rw-r--r-- | win32/Makefile.msc | 29 | ||||
| -rw-r--r-- | win32/zlib.def | 3 | ||||
| -rw-r--r-- | win32/zlib1.rc | 17 |
5 files changed, 35 insertions, 27 deletions
diff --git a/win32/DLL_FAQ.txt b/win32/DLL_FAQ.txt index fb18e07..12c0090 100644 --- a/win32/DLL_FAQ.txt +++ b/win32/DLL_FAQ.txt | |||
| @@ -16,7 +16,7 @@ in the zlib distribution, or at the following location: | |||
| 16 | 16 | ||
| 17 | Pointers to a precompiled ZLIB1.DLL can be found in the zlib | 17 | Pointers to a precompiled ZLIB1.DLL can be found in the zlib |
| 18 | web site at: | 18 | web site at: |
| 19 | http://www.zlib.org/ | 19 | http://www.zlib.net/ |
| 20 | 20 | ||
| 21 | Applications that link to ZLIB1.DLL can rely on the following | 21 | Applications that link to ZLIB1.DLL can rely on the following |
| 22 | specification: | 22 | specification: |
| @@ -350,9 +350,9 @@ in the zlib distribution, or at the following location: | |||
| 350 | your build is unofficial. You should give it a different file | 350 | your build is unofficial. You should give it a different file |
| 351 | name, and/or install it in a private directory that can be | 351 | name, and/or install it in a private directory that can be |
| 352 | accessed by your application only, and is not visible to the | 352 | accessed by your application only, and is not visible to the |
| 353 | others (e.g. it's not in the SYSTEM or the SYSTEM32 directory, | 353 | others (i.e. it's neither in the PATH, nor in the SYSTEM or |
| 354 | and it's not in the PATH). Otherwise, your build may clash | 354 | SYSTEM32 directories). Otherwise, your build may clash with |
| 355 | with applications that link to the official build. | 355 | applications that link to the official build. |
| 356 | 356 | ||
| 357 | For example, in Cygwin, zlib is linked to the Cygwin runtime | 357 | For example, in Cygwin, zlib is linked to the Cygwin runtime |
| 358 | CYGWIN1.DLL, and it is distributed under the name CYGZ.DLL. | 358 | CYGWIN1.DLL, and it is distributed under the name CYGZ.DLL. |
diff --git a/win32/Makefile.bor b/win32/Makefile.bor index b802519..67dafaa 100644 --- a/win32/Makefile.bor +++ b/win32/Makefile.bor | |||
| @@ -1,9 +1,6 @@ | |||
| 1 | # Makefile for zlib | 1 | # Makefile for zlib |
| 2 | # Borland C++ for Win32 | 2 | # Borland C++ for Win32 |
| 3 | # | 3 | # |
| 4 | # Updated for zlib 1.2.x by Cosmin Truta, 11-Mar-2003 | ||
| 5 | # Last updated: 28-Aug-2003 | ||
| 6 | # | ||
| 7 | # Usage: | 4 | # Usage: |
| 8 | # make -f win32/Makefile.bor | 5 | # make -f win32/Makefile.bor |
| 9 | # make -f win32/Makefile.bor LOCAL_ZLIB=-DASMV OBJA=match.obj OBJPA=+match.obj | 6 | # make -f win32/Makefile.bor LOCAL_ZLIB=-DASMV OBJA=match.obj OBJPA=+match.obj |
| @@ -99,8 +96,8 @@ minigzip.exe: minigzip.obj $(ZLIB_LIB) | |||
| 99 | 96 | ||
| 100 | # cleanup | 97 | # cleanup |
| 101 | clean: | 98 | clean: |
| 99 | -del $(ZLIB_LIB) | ||
| 102 | -del *.obj | 100 | -del *.obj |
| 103 | -del *.lib | ||
| 104 | -del *.exe | 101 | -del *.exe |
| 105 | -del *.tds | 102 | -del *.tds |
| 106 | -del zlib.bak | 103 | -del zlib.bak |
diff --git a/win32/Makefile.msc b/win32/Makefile.msc index 528ecaa..5900d66 100644 --- a/win32/Makefile.msc +++ b/win32/Makefile.msc | |||
| @@ -1,11 +1,5 @@ | |||
| 1 | # Makefile for zlib -- Microsoft (Visual) C | 1 | # Makefile for zlib using Microsoft (Visual) C |
| 2 | # | 2 | # zlib is copyright (C) 1995-2006 Jean-loup Gailly and Mark Adler |
| 3 | # Authors: | ||
| 4 | # Cosmin Truta, 11-Mar-2003 | ||
| 5 | # Christian Spieler, 19-Mar-2003 | ||
| 6 | # | ||
| 7 | # Last updated: | ||
| 8 | # Cosmin Truta, 27-Aug-2003 | ||
| 9 | # | 3 | # |
| 10 | # Usage: | 4 | # Usage: |
| 11 | # nmake -f win32/Makefile.msc (standard build) | 5 | # nmake -f win32/Makefile.msc (standard build) |
| @@ -27,9 +21,10 @@ AS = ml | |||
| 27 | LD = link | 21 | LD = link |
| 28 | AR = lib | 22 | AR = lib |
| 29 | RC = rc | 23 | RC = rc |
| 30 | CFLAGS = -nologo -MD -O2 $(LOC) | 24 | CFLAGS = -nologo -MD -O2 -Oy- $(LOC) |
| 25 | WFLAGS = -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE | ||
| 31 | ASFLAGS = -coff | 26 | ASFLAGS = -coff |
| 32 | LDFLAGS = -nologo -release | 27 | LDFLAGS = -nologo -debug -release |
| 33 | ARFLAGS = -nologo | 28 | ARFLAGS = -nologo |
| 34 | RCFLAGS = /dWIN32 /r | 29 | RCFLAGS = /dWIN32 /r |
| 35 | 30 | ||
| @@ -50,21 +45,31 @@ $(IMPLIB): $(SHAREDLIB) | |||
| 50 | $(SHAREDLIB): win32/zlib.def $(OBJS) $(OBJA) zlib1.res | 45 | $(SHAREDLIB): win32/zlib.def $(OBJS) $(OBJA) zlib1.res |
| 51 | $(LD) $(LDFLAGS) -def:win32/zlib.def -dll -implib:$(IMPLIB) \ | 46 | $(LD) $(LDFLAGS) -def:win32/zlib.def -dll -implib:$(IMPLIB) \ |
| 52 | -out:$@ $(OBJS) $(OBJA) zlib1.res | 47 | -out:$@ $(OBJS) $(OBJA) zlib1.res |
| 48 | if exist $@.manifest \ | ||
| 49 | mt -nologo -manifest $@.manifest -outputresource:$@;2 | ||
| 53 | 50 | ||
| 54 | example.exe: example.obj $(STATICLIB) | 51 | example.exe: example.obj $(STATICLIB) |
| 55 | $(LD) $(LDFLAGS) example.obj $(STATICLIB) | 52 | $(LD) $(LDFLAGS) example.obj $(STATICLIB) |
| 53 | if exist $@.manifest \ | ||
| 54 | mt -nologo -manifest $@.manifest -outputresource:$@;1 | ||
| 56 | 55 | ||
| 57 | minigzip.exe: minigzip.obj $(STATICLIB) | 56 | minigzip.exe: minigzip.obj $(STATICLIB) |
| 58 | $(LD) $(LDFLAGS) minigzip.obj $(STATICLIB) | 57 | $(LD) $(LDFLAGS) minigzip.obj $(STATICLIB) |
| 58 | if exist $@.manifest \ | ||
| 59 | mt -nologo -manifest $@.manifest -outputresource:$@;1 | ||
| 59 | 60 | ||
| 60 | example_d.exe: example.obj $(IMPLIB) | 61 | example_d.exe: example.obj $(IMPLIB) |
| 61 | $(LD) $(LDFLAGS) -out:$@ example.obj $(IMPLIB) | 62 | $(LD) $(LDFLAGS) -out:$@ example.obj $(IMPLIB) |
| 63 | if exist $@.manifest \ | ||
| 64 | mt -nologo -manifest $@.manifest -outputresource:$@;1 | ||
| 62 | 65 | ||
| 63 | minigzip_d.exe: minigzip.obj $(IMPLIB) | 66 | minigzip_d.exe: minigzip.obj $(IMPLIB) |
| 64 | $(LD) $(LDFLAGS) -out:$@ minigzip.obj $(IMPLIB) | 67 | $(LD) $(LDFLAGS) -out:$@ minigzip.obj $(IMPLIB) |
| 68 | if exist $@.manifest \ | ||
| 69 | mt -nologo -manifest $@.manifest -outputresource:$@;1 | ||
| 65 | 70 | ||
| 66 | .c.obj: | 71 | .c.obj: |
| 67 | $(CC) -c $(CFLAGS) $< | 72 | $(CC) -c $(WFLAGS) $(CFLAGS) $< |
| 68 | 73 | ||
| 69 | .asm.obj: | 74 | .asm.obj: |
| 70 | $(AS) -c $(ASFLAGS) $< | 75 | $(AS) -c $(ASFLAGS) $< |
| @@ -123,4 +128,6 @@ clean: | |||
| 123 | -del *.res | 128 | -del *.res |
| 124 | -del *.exp | 129 | -del *.exp |
| 125 | -del *.exe | 130 | -del *.exe |
| 131 | -del *.pdb | ||
| 132 | -del *.manifest | ||
| 126 | -del foo.gz | 133 | -del foo.gz |
diff --git a/win32/zlib.def b/win32/zlib.def index a47cbc1..dbea9c5 100644 --- a/win32/zlib.def +++ b/win32/zlib.def | |||
| @@ -43,12 +43,15 @@ EXPORTS | |||
| 43 | gzrewind | 43 | gzrewind |
| 44 | gztell | 44 | gztell |
| 45 | gzeof | 45 | gzeof |
| 46 | gzdirect | ||
| 46 | gzclose | 47 | gzclose |
| 47 | gzerror | 48 | gzerror |
| 48 | gzclearerr | 49 | gzclearerr |
| 49 | ; checksum functions | 50 | ; checksum functions |
| 50 | adler32 | 51 | adler32 |
| 52 | adler32_combine | ||
| 51 | crc32 | 53 | crc32 |
| 54 | crc32_combine | ||
| 52 | ; various hacks, don't look :) | 55 | ; various hacks, don't look :) |
| 53 | deflateInit_ | 56 | deflateInit_ |
| 54 | deflateInit2_ | 57 | deflateInit2_ |
diff --git a/win32/zlib1.rc b/win32/zlib1.rc index 99025c9..0d1d7ff 100644 --- a/win32/zlib1.rc +++ b/win32/zlib1.rc | |||
| @@ -1,19 +1,20 @@ | |||
| 1 | #include <windows.h> | 1 | #include <winver.h> |
| 2 | #include "../zlib.h" | ||
| 2 | 3 | ||
| 3 | #ifdef GCC_WINDRES | 4 | #ifdef GCC_WINDRES |
| 4 | VS_VERSION_INFO VERSIONINFO | 5 | VS_VERSION_INFO VERSIONINFO |
| 5 | #else | 6 | #else |
| 6 | VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE | 7 | VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE |
| 7 | #endif | 8 | #endif |
| 8 | FILEVERSION 1,2,2,0 | 9 | FILEVERSION ZLIB_VER_MAJOR,ZLIB_VER_MINOR,ZLIB_VER_REVISION,0 |
| 9 | PRODUCTVERSION 1,2,2,0 | 10 | PRODUCTVERSION ZLIB_VER_MAJOR,ZLIB_VER_MINOR,ZLIB_VER_REVISION,0 |
| 10 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK | 11 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK |
| 11 | #ifdef _DEBUG | 12 | #ifdef _DEBUG |
| 12 | FILEFLAGS 1 | 13 | FILEFLAGS 1 |
| 13 | #else | 14 | #else |
| 14 | FILEFLAGS 0 | 15 | FILEFLAGS 0 |
| 15 | #endif | 16 | #endif |
| 16 | FILEOS VOS_DOS_WINDOWS32 | 17 | FILEOS VOS__WINDOWS32 |
| 17 | FILETYPE VFT_DLL | 18 | FILETYPE VFT_DLL |
| 18 | FILESUBTYPE 0 // not used | 19 | FILESUBTYPE 0 // not used |
| 19 | BEGIN | 20 | BEGIN |
| @@ -23,13 +24,13 @@ BEGIN | |||
| 23 | //language ID = U.S. English, char set = Windows, Multilingual | 24 | //language ID = U.S. English, char set = Windows, Multilingual |
| 24 | BEGIN | 25 | BEGIN |
| 25 | VALUE "FileDescription", "zlib data compression library\0" | 26 | VALUE "FileDescription", "zlib data compression library\0" |
| 26 | VALUE "FileVersion", "1.2.3\0" | 27 | VALUE "FileVersion", ZLIB_VERSION "\0" |
| 27 | VALUE "InternalName", "zlib1.dll\0" | 28 | VALUE "InternalName", "zlib1.dll\0" |
| 28 | VALUE "LegalCopyright", "(C) 1995-2004 Jean-loup Gailly & Mark Adler\0" | 29 | VALUE "LegalCopyright", "(C) 1995-2006 Jean-loup Gailly & Mark Adler\0" |
| 29 | VALUE "OriginalFilename", "zlib1.dll\0" | 30 | VALUE "OriginalFilename", "zlib1.dll\0" |
| 30 | VALUE "ProductName", "zlib\0" | 31 | VALUE "ProductName", "zlib\0" |
| 31 | VALUE "ProductVersion", "1.2.3\0" | 32 | VALUE "ProductVersion", ZLIB_VERSION "\0" |
| 32 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" | 33 | VALUE "Comments", "For more information visit http://www.zlib.net/\0" |
| 33 | END | 34 | END |
| 34 | END | 35 | END |
| 35 | BLOCK "VarFileInfo" | 36 | BLOCK "VarFileInfo" |
