diff options
Diffstat (limited to 'win32/Makefile.msc')
-rw-r--r-- | win32/Makefile.msc | 29 |
1 files changed, 18 insertions, 11 deletions
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 |