comparison src/Make_mvc.mak @ 4446:8d6bb2338a58 v7.3.971

updated for version 7.3.971 Problem: No support for VS2012 static code analysis. Solution: Add the ANALYZE option. (Mike Williams)
author Bram Moolenaar <bram@vim.org>
date Sun, 19 May 2013 21:03:54 +0200
parents ccecb03e5e8b
children 450e13fe1621
comparison
equal deleted inserted replaced
4445:7665a4ccc813 4446:8d6bb2338a58
18 # For MSVC 11 you need to specify where the Win32.mak file is, e.g.: 18 # For MSVC 11 you need to specify where the Win32.mak file is, e.g.:
19 # SDK_INCLUDE_DIR="C:\Program Files\Microsoft SDKs\Windows\v7.1\Include" 19 # SDK_INCLUDE_DIR="C:\Program Files\Microsoft SDKs\Windows\v7.1\Include"
20 # 20 #
21 # !!!! After changing features do "nmake clean" first !!!! 21 # !!!! After changing features do "nmake clean" first !!!!
22 # 22 #
23 # Feature Set: FEATURES=[TINY, SMALL, NORMAL, BIG, HUGE] (default is BIG) 23 # Feature Set: FEATURES=[TINY, SMALL, NORMAL, BIG, HUGE] (default is BIG)
24 # 24 #
25 # GUI interface: GUI=yes (default is no) 25 # GUI interface: GUI=yes (default is no)
26 # 26 #
27 # OLE interface: OLE=yes (usually with GUI=yes) 27 # OLE interface: OLE=yes (usually with GUI=yes)
28 # 28 #
85 # 85 #
86 # Intl library support (always dynamically loaded): 86 # Intl library support (always dynamically loaded):
87 # GETTEXT=[yes or no] (default is yes) 87 # GETTEXT=[yes or no] (default is yes)
88 # See http://sourceforge.net/projects/gettext/ 88 # See http://sourceforge.net/projects/gettext/
89 # 89 #
90 # PostScript printing: POSTSCRIPT=yes (default is no) 90 # PostScript printing: POSTSCRIPT=yes (default is no)
91 # 91 #
92 # Netbeans Support: NETBEANS=[yes or no] (default is yes if GUI is yes) 92 # Netbeans Support: NETBEANS=[yes or no] (default is yes if GUI is yes)
93 # 93 #
94 # XPM Image Support: XPM=[path to XPM directory] 94 # XPM Image Support: XPM=[path to XPM directory]
95 # Default is "xpm", using the files included in the distribution. 95 # Default is "xpm", using the files included in the distribution.
96 # Use "no" to disable this feature. 96 # Use "no" to disable this feature.
97 # 97 #
98 # Optimization: OPTIMIZE=[SPACE, SPEED, MAXSPEED] (default is MAXSPEED) 98 # Optimization: OPTIMIZE=[SPACE, SPEED, MAXSPEED] (default is MAXSPEED)
99 # 99 #
100 # Processor Version: CPUNR=[i386, i486, i586, i686, pentium4] (default is 100 # Processor Version: CPUNR=[i386, i486, i586, i686, pentium4] (default is
101 # i386) 101 # i386)
102 # 102 #
103 # Version Support: WINVER=[0x0400, 0x0500] (default is 0x0400) 103 # Version Support: WINVER=[0x0400, 0x0500] (default is 0x0400)
104 # 104 #
105 # Debug version: DEBUG=yes 105 # Debug version: DEBUG=yes
106 # Mapfile: MAP=[no, yes or lines] (default is yes) 106 # Mapfile: MAP=[no, yes or lines] (default is yes)
107 # no: Don't write a mapfile. 107 # no: Don't write a mapfile.
108 # yes: Write a normal mapfile. 108 # yes: Write a normal mapfile.
109 # lines: Write a mapfile with line numbers (only for VC6 and later) 109 # lines: Write a mapfile with line numbers (only for VC6 and later)
110 # 110 #
111 # Netbeans Debugging Support: NBDEBUG=[yes or no] (should be no, yes 111 # Netbeans Debugging Support: NBDEBUG=[yes or no] (should be no, yes
112 # doesn't work) 112 # doesn't work)
113 # 113 #
114 # Visual C Version: MSVCVER=m.n (default derived from nmake if undefined) 114 # Visual C Version: MSVCVER=m.n (default derived from nmake if undefined)
115 #
116 # Static Code Analysis: ANALYZE=yes (works with VS2012 only)
115 # 117 #
116 # You can combine any of these interfaces 118 # You can combine any of these interfaces
117 # 119 #
118 # Example: To build the non-debug, GUI version with Perl interface: 120 # Example: To build the non-debug, GUI version with Perl interface:
119 # nmake -f Make_mvc.mak GUI=yes PERL=C:\Perl 121 # nmake -f Make_mvc.mak GUI=yes PERL=C:\Perl
475 !endif 477 !endif
476 478
477 # (/Wp64 is deprecated in VC9 and generates an obnoxious warning.) 479 # (/Wp64 is deprecated in VC9 and generates an obnoxious warning.)
478 !if ("$(MSVCVER)" == "7.0") || ("$(MSVCVER)" == "7.1") || ("$(MSVCVER)" == "8.0") 480 !if ("$(MSVCVER)" == "7.0") || ("$(MSVCVER)" == "7.1") || ("$(MSVCVER)" == "8.0")
479 CFLAGS=$(CFLAGS) $(WP64CHECK) 481 CFLAGS=$(CFLAGS) $(WP64CHECK)
482 !endif
483
484 # Static code analysis generally available starting with VS2012
485 !if ("$(ANALYZE)" == "yes") && ("$(MSVCVER)" == "11.0")
486 CFLAGS=$(CFLAGS) /analyze
480 !endif 487 !endif
481 488
482 CFLAGS = $(CFLAGS) $(OPTFLAG) -DNDEBUG $(CPUARG) 489 CFLAGS = $(CFLAGS) $(OPTFLAG) -DNDEBUG $(CPUARG)
483 RCFLAGS = $(rcflags) $(rcvars) -DNDEBUG 490 RCFLAGS = $(rcflags) $(rcvars) -DNDEBUG
484 ! ifdef USE_MSVCRT 491 ! ifdef USE_MSVCRT