comparison src/Make_mvc.mak @ 1907:9bc164a2c814 v7.2.204

updated for version 7.2-204
author vimboss
date Tue, 16 Jun 2009 14:34:38 +0000
parents afb740b5dfab
children 15e847397be7
comparison
equal deleted inserted replaced
1906:ff9ecf14efe3 1907:9bc164a2c814
1 # Makefile for Vim on Win32 (Windows NT/2000/XP/2003 and Windows 95/98/Me) 1 # Makefile for Vim on Win32 (Windows NT/2000/XP/2003 and Windows 95/98/Me)
2 # and Win64, using the Microsoft Visual C++ compilers. Known to work with 2 # and Win64, using the Microsoft Visual C++ compilers. Known to work with
3 # VC5, VC6 (VS98), VC7.0 (VS2002), VC7.1 (VS2003), VC8 (VS2005), 3 # VC5, VC6 (VS98), VC7.0 (VS2002), VC7.1 (VS2003), VC8 (VS2005),
4 # and VC9 (VS2008). 4 # VC9 (VS2008), and VC10 (VS2010).
5 # 5 #
6 # To build using other Windows compilers, see INSTALLpc.txt 6 # To build using other Windows compilers, see INSTALLpc.txt
7 # 7 #
8 # This makefile can build the console, GUI, OLE-enable, Perl-enabled and 8 # This makefile can build the console, GUI, OLE-enable, Perl-enabled and
9 # Python-enabled versions of vim for Win32 platforms. 9 # Python-enabled versions of Vim for Win32 platforms.
10 # 10 #
11 # The basic command line to build vim is: 11 # The basic command line to build Vim is:
12 # 12 #
13 # nmake -f Make_mvc.mak 13 # nmake -f Make_mvc.mak
14 # 14 #
15 # This will build the console version of vim with no additional interfaces. 15 # This will build the console version of Vim with no additional interfaces.
16 # To add features, define any of the following: 16 # To add features, define any of the following:
17 # 17 #
18 # !!!! After changing features do "nmake clean" first !!!! 18 # !!!! After changing features do "nmake clean" first !!!!
19 # 19 #
20 # Feature Set: FEATURES=[TINY, SMALL, NORMAL, BIG, HUGE] (default is BIG) 20 # Feature Set: FEATURES=[TINY, SMALL, NORMAL, BIG, HUGE] (default is BIG)
356 MSVCVER = 9.0 356 MSVCVER = 9.0
357 !endif 357 !endif
358 !if "$(_NMAKE_VER)" == "9.00.30729.01" 358 !if "$(_NMAKE_VER)" == "9.00.30729.01"
359 MSVCVER = 9.0 359 MSVCVER = 9.0
360 !endif 360 !endif
361 !if "$(_NMAKE_VER)" == "10.00.20506.01"
362 MSVCVER = 10.0
363 !endif
361 !endif 364 !endif
362 365
363 # Abort bulding VIM if version of VC is unrecognised. 366 # Abort bulding VIM if version of VC is unrecognised.
364 !ifndef MSVCVER 367 !ifndef MSVCVER
365 !message *** ERROR 368 !message *** ERROR
370 !message to handle the new value for _NMAKE_VER, "$(_NMAKE_VER)". 373 !message to handle the new value for _NMAKE_VER, "$(_NMAKE_VER)".
371 !error Make aborted. 374 !error Make aborted.
372 !endif 375 !endif
373 376
374 # Convert processor ID to MVC-compatible number 377 # Convert processor ID to MVC-compatible number
375 !if ("$(MSVCVER)" != "8.0") && ("$(MSVCVER)" != "9.0") 378 !if ("$(MSVCVER)" != "8.0") && ("$(MSVCVER)" != "9.0") && ("$(MSVCVER)" != "10.0")
376 !if "$(CPUNR)" == "i386" 379 !if "$(CPUNR)" == "i386"
377 CPUARG = /G3 380 CPUARG = /G3
378 !elseif "$(CPUNR)" == "i486" 381 !elseif "$(CPUNR)" == "i486"
379 CPUARG = /G4 382 CPUARG = /G4
380 !elseif "$(CPUNR)" == "i586" 383 !elseif "$(CPUNR)" == "i586"
403 !elseif "$(OPTIMIZE)" == "SPEED" 406 !elseif "$(OPTIMIZE)" == "SPEED"
404 OPTFLAG = /O2 407 OPTFLAG = /O2
405 !else # MAXSPEED 408 !else # MAXSPEED
406 OPTFLAG = /Ox 409 OPTFLAG = /Ox
407 !endif 410 !endif
408 !if ("$(MSVCVER)" == "8.0") || ("$(MSVCVER)" == "9.0") 411 !if ("$(MSVCVER)" == "8.0") || ("$(MSVCVER)" == "9.0") || ("$(MSVCVER)" == "10.0")
409 # Use link time code generation if not worried about size 412 # Use link time code generation if not worried about size
410 !if "$(OPTIMIZE)" != "SPACE" 413 !if "$(OPTIMIZE)" != "SPACE"
411 OPTFLAG = $(OPTFLAG) /GL 414 OPTFLAG = $(OPTFLAG) /GL
412 !endif 415 !endif
413 !endif 416 !endif
791 $(MZSCHEME_LIB) $(PERL_LIB) $(PYTHON_LIB) $(RUBY_LIB) \ 794 $(MZSCHEME_LIB) $(PERL_LIB) $(PYTHON_LIB) $(RUBY_LIB) \
792 $(TCL_LIB) $(NETBEANS_LIB) $(XPM_LIB) $(LINK_PDB) 795 $(TCL_LIB) $(NETBEANS_LIB) $(XPM_LIB) $(LINK_PDB)
793 796
794 # Report link time code generation progress if used. 797 # Report link time code generation progress if used.
795 !ifdef NODEBUG 798 !ifdef NODEBUG
796 !if ("$(MSVCVER)" == "8.0") || ("$(MSVCVER)" == "9.0") 799 !if ("$(MSVCVER)" == "8.0") || ("$(MSVCVER)" == "9.0") || ("$(MSVCVER)" == "10.0")
797 !if "$(OPTIMIZE)" != "SPACE" 800 !if "$(OPTIMIZE)" != "SPACE"
798 LINKARGS1 = $(LINKARGS1) /LTCG:STATUS 801 LINKARGS1 = $(LINKARGS1) /LTCG:STATUS
799 !endif 802 !endif
800 !endif 803 !endif
801 !endif 804 !endif