summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:34:30 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:34:30 -0700
commit7147f24cd7b27dd95f6e841851a111cb311a9c07 (patch)
tree1492bbbb8828513c8ad129adff414b2ba724aa03 /win32
parent05d47d2627a68a15ba23fb10b17fbc73551aeec1 (diff)
downloadzlib-1.2.4.2.tar.gz
zlib-1.2.4.2.tar.bz2
zlib-1.2.4.2.zip
zlib 1.2.4.2v1.2.4.2
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile.msc34
-rw-r--r--win32/README-WIN32.txt6
2 files changed, 29 insertions, 11 deletions
diff --git a/win32/Makefile.msc b/win32/Makefile.msc
index a731c0c..fa10a1a 100644
--- a/win32/Makefile.msc
+++ b/win32/Makefile.msc
@@ -2,15 +2,16 @@
2# zlib is copyright (C) 1995-2006 Jean-loup Gailly and Mark Adler 2# zlib is copyright (C) 1995-2006 Jean-loup Gailly and Mark Adler
3# 3#
4# Usage: 4# Usage:
5# nmake -f win32/Makefile.msc (standard build) 5# nmake -f win32/Makefile.msc (standard build)
6# nmake -f win32/Makefile.msc LOC=-DFOO (nonstandard build) 6# nmake -f win32/Makefile.msc LOC=-DFOO (nonstandard build)
7# nmake -f win32/Makefile.msc LOC=-DASMV OBJA=match.obj (use ASM code) 7# nmake -f win32/Makefile.msc LOC="-DASMV -DASMINF" \
8 8# OBJA="inffas32.obj match686.obj" (use ASM code, x86)
9# nmake -f win32/Makefile.msc AS=ml64 LOC="-DASMV -DASMINF" \
10# OBJA="inffasx64.obj gvmat64.obj inffas8664.c" (use ASM code, x64)
9 11
10# optional build flags 12# optional build flags
11LOC = 13LOC =
12 14
13
14# variables 15# variables
15STATICLIB = zlib.lib 16STATICLIB = zlib.lib
16SHAREDLIB = zlib1.dll 17SHAREDLIB = zlib1.dll
@@ -23,13 +24,13 @@ AR = lib
23RC = rc 24RC = rc
24CFLAGS = -nologo -MD -W3 -O2 -Oy- -Zi -Fd"zlib" $(LOC) 25CFLAGS = -nologo -MD -W3 -O2 -Oy- -Zi -Fd"zlib" $(LOC)
25WFLAGS = -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE 26WFLAGS = -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE
26ASFLAGS = -coff -Zi 27ASFLAGS = -coff -Zi $(LOC)
27LDFLAGS = -nologo -debug -incremental:no -opt:ref 28LDFLAGS = -nologo -debug -incremental:no -opt:ref
28ARFLAGS = -nologo 29ARFLAGS = -nologo
29RCFLAGS = /dWIN32 /r 30RCFLAGS = /dWIN32 /r
30 31
31OBJS = adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj \ 32OBJS = adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj \
32 gzwrite.obj infback.obj inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj 33 gzwrite.obj infback.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
33OBJA = 34OBJA =
34 35
35 36
@@ -71,7 +72,13 @@ minigzip_d.exe: minigzip.obj $(IMPLIB)
71.c.obj: 72.c.obj:
72 $(CC) -c $(WFLAGS) $(CFLAGS) $< 73 $(CC) -c $(WFLAGS) $(CFLAGS) $<
73 74
74.asm.obj: 75{contrib/masmx64}.c.obj:
76 $(CC) -c $(WFLAGS) $(CFLAGS) $<
77
78{contrib/masmx64}.asm.obj:
79 $(AS) -c $(ASFLAGS) $<
80
81{contrib/masmx86}.asm.obj:
75 $(AS) -c $(ASFLAGS) $< 82 $(AS) -c $(ASFLAGS) $<
76 83
77adler32.obj: adler32.c zlib.h zconf.h 84adler32.obj: adler32.c zlib.h zconf.h
@@ -107,6 +114,17 @@ uncompr.obj: uncompr.c zlib.h zconf.h
107 114
108zutil.obj: zutil.c zutil.h zlib.h zconf.h 115zutil.obj: zutil.c zutil.h zlib.h zconf.h
109 116
117gvmat64.obj: contrib\masmx64\gvmat64.asm
118
119inffasx64.obj: contrib\masmx64\inffasx64.asm
120
121inffas8664.obj: contrib\masmx64\inffas8664.c zutil.h zlib.h zconf.h \
122 inftrees.h inflate.h inffast.h
123
124inffas32.obj: contrib\masmx86\inffas32.asm
125
126match686.obj: contrib\masmx86\match686.asm
127
110example.obj: example.c zlib.h zconf.h 128example.obj: example.c zlib.h zconf.h
111 129
112minigzip.obj: minigzip.c zlib.h zconf.h 130minigzip.obj: minigzip.c zlib.h zconf.h
diff --git a/win32/README-WIN32.txt b/win32/README-WIN32.txt
index 35062cd..1e4c093 100644
--- a/win32/README-WIN32.txt
+++ b/win32/README-WIN32.txt
@@ -47,9 +47,9 @@ The package zlib-1.2.4-win32-x86.zip contains the following files:
47 zdll.lib Install these files into the compilers' LIB path if linking 47 zdll.lib Install these files into the compilers' LIB path if linking
48 zdll.exp a compiled program to the zlib1.dll binary 48 zdll.exp a compiled program to the zlib1.dll binary
49 49
50 zlib.lib Install these files into the compilers' LIB path if linking 50 zlib.lib Install these files into the compilers' LIB path to link zlib
51 zlib.pdb a compiled program to the zlib1.dll binary (zlib.pdb ensures 51 zlib.pdb into compiled programs, without zlib1.dll runtime dependency
52 that the resulting program may be debugged) 52 (zlib.pdb provides debugging info to the compile time linker)
53 53
54 zlib1.dll Install this binary shared library into the system PATH, or 54 zlib1.dll Install this binary shared library into the system PATH, or
55 the program's runtime directory (where the .exe resides) 55 the program's runtime directory (where the .exe resides)