Mercurial > vim
diff src/Make_mvc.mak @ 12001:fecb0ff6e8cf v8.0.0881
patch 8.0.0881: win32.mak no longer included in Windows SDK
commit https://github.com/vim/vim/commit/e16b00a1582dbff7b76b0631d935531059cf7b47
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 6 17:38:06 2017 +0200
patch 8.0.0881: win32.mak no longer included in Windows SDK
Problem: win32.mak no longer included in Windows SDK.
Solution: Do not include win32.mak. (Ken Takata)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 06 Aug 2017 17:45:03 +0200 |
parents | 24a3bec6e317 |
children | b9b06aa0b6d9 |
line wrap: on
line diff
--- a/src/Make_mvc.mak +++ b/src/Make_mvc.mak @@ -15,7 +15,8 @@ # This will build the console version of Vim with no additional interfaces. # To add features, define any of the following: # -# For MSVC 11 you need to specify where the Win32.mak file is, e.g.: +# For MSVC 11, if you want to include Win32.mak, you need to specify +# where the file is, e.g.: # SDK_INCLUDE_DIR="C:\Program Files\Microsoft SDKs\Windows\v7.1\Include" # # !!!! After changing features do "nmake clean" first !!!! @@ -212,7 +213,7 @@ OBJDIR = $(OBJDIR)Z OBJDIR = $(OBJDIR)d !endif -# Win32.mak requires that CPU be set appropriately. +# If you include Win32.mak, it requires that CPU be set appropriately. # To cross-compile for Win64, set CPU=AMD64 or CPU=IA64. !ifdef PROCESSOR_ARCHITECTURE @@ -253,12 +254,15 @@ MAKEFLAGS_GVIMEXT = DEBUG=yes !endif -# Get all sorts of useful, standard macros from the Platform SDK. +# Get all sorts of useful, standard macros from the Platform SDK, +# if SDK_INCLUDE_DIR is set or USE_WIN32MAK is set to "yes". !ifdef SDK_INCLUDE_DIR !include $(SDK_INCLUDE_DIR)\Win32.mak +!elseif "$(USE_WIN32MAK)"=="yes" +!include <Win32.mak> !else -!include <Win32.mak> +link = link !endif