Mercurial > vim
comparison src/Make_mvc.mak @ 30320:0763cb330a65 v9.0.0496
patch 9.0.0496: no good reason to keep supporting Windows-XP
Commit: https://github.com/vim/vim/commit/27b53be3a6a340f1858bcd31233fe2efc86f8e15
Author: K.Takata <kentkt@csc.jp>
Date: Sun Sep 18 12:25:49 2022 +0100
patch 9.0.0496: no good reason to keep supporting Windows-XP
Problem: No good reason to keep supporting Windows-XP.
Solution: Drop Windows-XP support. (Ken Takata, closes https://github.com/vim/vim/issues/11089)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 18 Sep 2022 13:30:05 +0200 |
parents | ba9d53c7c509 |
children | fe97616d43d2 |
comparison
equal
deleted
inserted
replaced
30319:54c55ede50e5 | 30320:0763cb330a65 |
---|---|
1 # Makefile for Vim on Win32 (Windows XP/2003/Vista/7/8/10) and Win64, | 1 # Makefile for Vim on Win32 (Windows 7/8/10/11) and Win64, using the Microsoft |
2 # using the Microsoft Visual C++ compilers. Known to work with VC10 (VS2010), | 2 # Visual C++ compilers. Known to work with VC10 (VS2010), VC11 (VS2012), VC12 |
3 # VC11 (VS2012), VC12 (VS2013), VC14 (VS2015), VC14.1 (VS2017) and | 3 # (VS2013), VC14 (VS2015), VC14.1 (VS2017), VC14.2 (VS2019) and VC14.3 |
4 # VC14.2 (VS2019). | 4 # (VS2022). |
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. |
126 # Default is "xpm", using the files included in the distribution. | 126 # Default is "xpm", using the files included in the distribution. |
127 # Use "no" to disable this feature. | 127 # Use "no" to disable this feature. |
128 # | 128 # |
129 # Optimization: OPTIMIZE=[SPACE, SPEED, MAXSPEED] (default is MAXSPEED) | 129 # Optimization: OPTIMIZE=[SPACE, SPEED, MAXSPEED] (default is MAXSPEED) |
130 # | 130 # |
131 # Processor Version: CPUNR=[any, i586, i686, sse, sse2, avx, avx2] (default is | 131 # Processor Version: CPUNR=[any, i686, sse, sse2, avx, avx2] (default is |
132 # any) | 132 # sse2) |
133 # avx is available on Visual C++ 2010 and after. | 133 # avx is available on Visual C++ 2010 and after. |
134 # avx2 is available on Visual C++ 2013 Update 2 and after. | 134 # avx2 is available on Visual C++ 2013 Update 2 and after. |
135 # | 135 # |
136 # Version Support: WINVER=[0x0501, 0x0502, 0x0600, 0x0601, 0x0602, | 136 # Version Support: WINVER=[0x0601, 0x0602, 0x0603, 0x0A00] (default is |
137 # 0x0603, 0x0A00] (default is 0x0501) | 137 # 0x0601) |
138 # Supported versions depends on your target SDK, check SDKDDKVer.h | 138 # Supported versions depends on your target SDK, check SDKDDKVer.h |
139 # See https://docs.microsoft.com/en-us/cpp/porting/modifying-winver-and-win32-winnt | 139 # See https://docs.microsoft.com/en-us/cpp/porting/modifying-winver-and-win32-winnt |
140 # | 140 # |
141 # Debug version: DEBUG=yes | 141 # Debug version: DEBUG=yes |
142 # Mapfile: MAP=[no, yes or lines] (default is yes) | 142 # Mapfile: MAP=[no, yes or lines] (default is yes) |
301 MSVCRT_NAME = msvcr$(MSVCRT_VER) | 301 MSVCRT_NAME = msvcr$(MSVCRT_VER) |
302 !else | 302 !else |
303 MSVCRT_NAME = vcruntime$(MSVCRT_VER) | 303 MSVCRT_NAME = vcruntime$(MSVCRT_VER) |
304 !endif | 304 !endif |
305 | 305 |
306 ### Set the default $(WINVER) to make it work with VC++7.0 (VS.NET) | 306 ### Set the default $(WINVER) to make it work with Windows 7 |
307 !ifndef WINVER | 307 !ifndef WINVER |
308 WINVER = 0x0501 | 308 WINVER = 0x0601 |
309 !endif | 309 !endif |
310 | 310 |
311 # Use multiprocess build | 311 # Use multiprocess build |
312 USE_MP = yes | 312 USE_MP = yes |
313 | 313 |
521 INTDIR=$(OBJDIR) | 521 INTDIR=$(OBJDIR) |
522 OUTDIR=$(OBJDIR) | 522 OUTDIR=$(OBJDIR) |
523 | 523 |
524 ### Validate CPUNR | 524 ### Validate CPUNR |
525 !ifndef CPUNR | 525 !ifndef CPUNR |
526 # default to untargeted code | 526 # default to SSE2 |
527 CPUNR = any | 527 CPUNR = sse2 |
528 !elseif "$(CPUNR)" == "i386" || "$(CPUNR)" == "i486" | 528 !elseif "$(CPUNR)" == "i386" || "$(CPUNR)" == "i486" || "$(CPUNR)" == "i586" |
529 # alias i386 and i486 to i586 | 529 # alias i386, i486 and i586 to i686 |
530 ! message *** WARNING CPUNR=$(CPUNR) is not a valid target architecture. | 530 ! message *** WARNING CPUNR=$(CPUNR) is not a valid target architecture. |
531 ! message Windows XP is the minimum target OS, with a minimum target | 531 ! message Windows 7 is the minimum target OS, with a minimum target |
532 ! message architecture of i586. | 532 ! message architecture of i686. |
533 ! message Retargeting to i586 | 533 ! message Retargeting to i686 |
534 CPUNR = i586 | 534 CPUNR = i686 |
535 !elseif "$(CPUNR)" == "pentium4" | 535 !elseif "$(CPUNR)" == "pentium4" |
536 # alias pentium4 to sse2 | 536 # alias pentium4 to sse2 |
537 ! message *** WARNING CPUNR=pentium4 is deprecated in favour of sse2. | 537 ! message *** WARNING CPUNR=pentium4 is deprecated in favour of sse2. |
538 ! message Retargeting to sse2. | 538 ! message Retargeting to sse2. |
539 CPUNR = sse2 | 539 CPUNR = sse2 |
540 !elseif "$(CPUNR)" != "any" && "$(CPUNR)" != "i586" && "$(CPUNR)" != "i686" && "$(CPUNR)" != "sse" && "$(CPUNR)" != "sse2" && "$(CPUNR)" != "avx" && "$(CPUNR)" != "avx2" | 540 !elseif "$(CPUNR)" != "any" && "$(CPUNR)" != "i686" && "$(CPUNR)" != "sse" && "$(CPUNR)" != "sse2" && "$(CPUNR)" != "avx" && "$(CPUNR)" != "avx2" |
541 ! error *** ERROR Unknown target architecture "$(CPUNR)". Make aborted. | 541 ! error *** ERROR Unknown target architecture "$(CPUNR)". Make aborted. |
542 !endif | 542 !endif |
543 | 543 |
544 # Convert processor ID to MVC-compatible number | 544 # Convert processor ID to MVC-compatible number |
545 # IA32/SSE/SSE2 are only supported on x86 | 545 # IA32/SSE/SSE2 are only supported on x86 |
546 !if "$(ASSEMBLY_ARCHITECTURE)" == "i386" && ("$(CPUNR)" == "i586" || "$(CPUNR)" == "i686" || "$(CPUNR)" == "any") | 546 !if "$(ASSEMBLY_ARCHITECTURE)" == "i386" && ("$(CPUNR)" == "i686" || "$(CPUNR)" == "any") |
547 # VC<11 generates fp87 code by default | 547 # VC<11 generates fp87 code by default |
548 ! if $(MSVC_MAJOR) < 11 | 548 ! if $(MSVC_MAJOR) < 11 |
549 CPUARG = | 549 CPUARG = |
550 # VC>=11 needs explicit instructions to generate fp87 code | 550 # VC>=11 needs explicit instructions to generate fp87 code |
551 ! else | 551 ! else |
1682 | 1682 |
1683 $(OUTDIR)/if_tcl.obj: $(OUTDIR) if_tcl.c $(INCL) | 1683 $(OUTDIR)/if_tcl.obj: $(OUTDIR) if_tcl.c $(INCL) |
1684 $(CC) $(CFLAGS_OUTDIR) $(TCL_INC) if_tcl.c | 1684 $(CC) $(CFLAGS_OUTDIR) $(TCL_INC) if_tcl.c |
1685 | 1685 |
1686 $(OUTDIR)/iscygpty.obj: $(OUTDIR) iscygpty.c $(CUI_INCL) | 1686 $(OUTDIR)/iscygpty.obj: $(OUTDIR) iscygpty.c $(CUI_INCL) |
1687 $(CC) $(CFLAGS_OUTDIR) iscygpty.c -D_WIN32_WINNT=0x0600 -DUSE_DYNFILEID -DENABLE_STUB_IMPL | 1687 $(CC) $(CFLAGS_OUTDIR) iscygpty.c |
1688 | 1688 |
1689 $(OUTDIR)/job.obj: $(OUTDIR) job.c $(INCL) | 1689 $(OUTDIR)/job.obj: $(OUTDIR) job.c $(INCL) |
1690 | 1690 |
1691 $(OUTDIR)/json.obj: $(OUTDIR) json.c $(INCL) | 1691 $(OUTDIR)/json.obj: $(OUTDIR) json.c $(INCL) |
1692 | 1692 |