diff options
Diffstat (limited to 'win32')
| -rw-r--r-- | win32/Makefile.msc | 34 | ||||
| -rw-r--r-- | win32/README-WIN32.txt | 6 |
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 |
| 11 | LOC = | 13 | LOC = |
| 12 | 14 | ||
| 13 | |||
| 14 | # variables | 15 | # variables |
| 15 | STATICLIB = zlib.lib | 16 | STATICLIB = zlib.lib |
| 16 | SHAREDLIB = zlib1.dll | 17 | SHAREDLIB = zlib1.dll |
| @@ -23,13 +24,13 @@ AR = lib | |||
| 23 | RC = rc | 24 | RC = rc |
| 24 | CFLAGS = -nologo -MD -W3 -O2 -Oy- -Zi -Fd"zlib" $(LOC) | 25 | CFLAGS = -nologo -MD -W3 -O2 -Oy- -Zi -Fd"zlib" $(LOC) |
| 25 | WFLAGS = -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE | 26 | WFLAGS = -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE |
| 26 | ASFLAGS = -coff -Zi | 27 | ASFLAGS = -coff -Zi $(LOC) |
| 27 | LDFLAGS = -nologo -debug -incremental:no -opt:ref | 28 | LDFLAGS = -nologo -debug -incremental:no -opt:ref |
| 28 | ARFLAGS = -nologo | 29 | ARFLAGS = -nologo |
| 29 | RCFLAGS = /dWIN32 /r | 30 | RCFLAGS = /dWIN32 /r |
| 30 | 31 | ||
| 31 | OBJS = adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj \ | 32 | OBJS = 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 |
| 33 | OBJA = | 34 | OBJA = |
| 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 | ||
| 77 | adler32.obj: adler32.c zlib.h zconf.h | 84 | adler32.obj: adler32.c zlib.h zconf.h |
| @@ -107,6 +114,17 @@ uncompr.obj: uncompr.c zlib.h zconf.h | |||
| 107 | 114 | ||
| 108 | zutil.obj: zutil.c zutil.h zlib.h zconf.h | 115 | zutil.obj: zutil.c zutil.h zlib.h zconf.h |
| 109 | 116 | ||
| 117 | gvmat64.obj: contrib\masmx64\gvmat64.asm | ||
| 118 | |||
| 119 | inffasx64.obj: contrib\masmx64\inffasx64.asm | ||
| 120 | |||
| 121 | inffas8664.obj: contrib\masmx64\inffas8664.c zutil.h zlib.h zconf.h \ | ||
| 122 | inftrees.h inflate.h inffast.h | ||
| 123 | |||
| 124 | inffas32.obj: contrib\masmx86\inffas32.asm | ||
| 125 | |||
| 126 | match686.obj: contrib\masmx86\match686.asm | ||
| 127 | |||
| 110 | example.obj: example.c zlib.h zconf.h | 128 | example.obj: example.c zlib.h zconf.h |
| 111 | 129 | ||
| 112 | minigzip.obj: minigzip.c zlib.h zconf.h | 130 | minigzip.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) |
