summaryrefslogtreecommitdiff
path: root/win32/Makefile.msc
diff options
context:
space:
mode:
Diffstat (limited to 'win32/Makefile.msc')
-rw-r--r--win32/Makefile.msc29
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
27LD = link 21LD = link
28AR = lib 22AR = lib
29RC = rc 23RC = rc
30CFLAGS = -nologo -MD -O2 $(LOC) 24CFLAGS = -nologo -MD -O2 -Oy- $(LOC)
25WFLAGS = -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE
31ASFLAGS = -coff 26ASFLAGS = -coff
32LDFLAGS = -nologo -release 27LDFLAGS = -nologo -debug -release
33ARFLAGS = -nologo 28ARFLAGS = -nologo
34RCFLAGS = /dWIN32 /r 29RCFLAGS = /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
54example.exe: example.obj $(STATICLIB) 51example.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
57minigzip.exe: minigzip.obj $(STATICLIB) 56minigzip.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
60example_d.exe: example.obj $(IMPLIB) 61example_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
63minigzip_d.exe: minigzip.obj $(IMPLIB) 66minigzip_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