blob: ef2b7f3f9dc507799f567cb5175134a8ba5176d9 [file] [log] [blame]
Bram Moolenaarcea912a2016-10-12 14:20:24 +02001# Makefile for Vim on Win32 (Windows XP/2003/Vista/7/8/10) and Win64,
2# using the Microsoft Visual C++ compilers. Known to work with VC5, VC6 (VS98),
3# VC7.0 (VS2002), VC7.1 (VS2003), VC8 (VS2005), VC9 (VS2008), VC10 (VS2010),
Bram Moolenaard7383882017-06-13 15:22:12 +02004# VC11 (VS2012), VC12 (VS2013), VC14 (VS2015) and VC15 (VS2017)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005#
Bram Moolenaareb3593b2006-04-22 22:33:57 +00006# To build using other Windows compilers, see INSTALLpc.txt
Bram Moolenaar7887d882005-07-01 22:33:52 +00007#
Bram Moolenaar071d4272004-06-13 20:20:40 +00008# This makefile can build the console, GUI, OLE-enable, Perl-enabled and
Bram Moolenaarda2f99a2009-06-16 14:34:38 +00009# Python-enabled versions of Vim for Win32 platforms.
Bram Moolenaar071d4272004-06-13 20:20:40 +000010#
Bram Moolenaarda2f99a2009-06-16 14:34:38 +000011# The basic command line to build Vim is:
Bram Moolenaar7887d882005-07-01 22:33:52 +000012#
Bram Moolenaar071d4272004-06-13 20:20:40 +000013# nmake -f Make_mvc.mak
Bram Moolenaar7887d882005-07-01 22:33:52 +000014#
Bram Moolenaarda2f99a2009-06-16 14:34:38 +000015# This will build the console version of Vim with no additional interfaces.
Bram Moolenaar7887d882005-07-01 22:33:52 +000016# To add features, define any of the following:
17#
Bram Moolenaare16b00a2017-08-06 17:38:06 +020018# For MSVC 11, if you want to include Win32.mak, you need to specify
19# where the file is, e.g.:
Bram Moolenaar6f586de2012-09-18 22:00:08 +020020# SDK_INCLUDE_DIR="C:\Program Files\Microsoft SDKs\Windows\v7.1\Include"
21#
Bram Moolenaar7887d882005-07-01 22:33:52 +000022# !!!! After changing features do "nmake clean" first !!!!
23#
Bram Moolenaare5f2be62016-01-21 20:24:34 +010024# Feature Set: FEATURES=[TINY, SMALL, NORMAL, BIG, HUGE] (default is HUGE)
Bram Moolenaar7887d882005-07-01 22:33:52 +000025#
Bram Moolenaar071d4272004-06-13 20:20:40 +000026# GUI interface: GUI=yes (default is no)
Bram Moolenaar7887d882005-07-01 22:33:52 +000027#
Bram Moolenaar7f88b652017-12-14 13:15:19 +010028# GUI with DirectWrite (DirectX): DIRECTX=yes
Bram Moolenaar2be7cb72019-01-12 16:10:51 +010029# (default is yes if GUI=yes, requires GUI=yes)
Bram Moolenaar7f88b652017-12-14 13:15:19 +010030#
31# Color emoji support: COLOR_EMOJI=yes
32# (default is yes if DIRECTX=yes, requires WinSDK 8.1 or later.)
Bram Moolenaarb5a7a8b2014-08-06 14:52:30 +020033#
Bram Moolenaar071d4272004-06-13 20:20:40 +000034# OLE interface: OLE=yes (usually with GUI=yes)
Bram Moolenaar7887d882005-07-01 22:33:52 +000035#
Bram Moolenaar071d4272004-06-13 20:20:40 +000036# IME support: IME=yes (requires GUI=yes)
37# DYNAMIC_IME=[yes or no] (to load the imm32.dll dynamically, default
38# is yes)
39# Global IME support: GIME=yes (requires GUI=yes)
Bram Moolenaar7887d882005-07-01 22:33:52 +000040#
Bram Moolenaarac8069b2017-10-14 20:24:19 +020041# Terminal support: TERMINAL=yes (default is yes)
Bram Moolenaar2aeaf3f2017-07-23 17:11:15 +020042#
Bram Moolenaar0ba04292010-07-14 23:23:17 +020043# Lua interface:
44# LUA=[Path to Lua directory]
45# DYNAMIC_LUA=yes (to load the Lua DLL dynamically)
Bram Moolenaar0eaadec2016-09-08 20:28:45 +020046# LUA_VER=[Lua version] (default is 53)
Bram Moolenaar0ba04292010-07-14 23:23:17 +020047#
Bram Moolenaar65c1b012005-01-31 19:02:28 +000048# MzScheme interface:
49# MZSCHEME=[Path to MzScheme directory]
50# DYNAMIC_MZSCHEME=yes (to load the MzScheme DLLs dynamically)
Bram Moolenaarf16c71b2017-09-18 20:01:02 +020051# MZSCHEME_VER=[MzScheme version] (default is 3m_a0solc (6.6))
52# Used for the DLL file name. E.g.:
53# C:\Program Files (x86)\Racket\lib\libracket3m_XXXXXX.dll
Bram Moolenaar9e70cf12009-05-26 20:59:55 +000054# MZSCHEME_DEBUG=no
Bram Moolenaar7887d882005-07-01 22:33:52 +000055#
Bram Moolenaar071d4272004-06-13 20:20:40 +000056# Perl interface:
57# PERL=[Path to Perl directory]
58# DYNAMIC_PERL=yes (to load the Perl DLL dynamically)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +010059# PERL_VER=[Perl version, in the form 55 (5.005), 56 (5.6.x),
60# 510 (5.10.x), etc]
Bram Moolenaar0eaadec2016-09-08 20:28:45 +020061# (default is 524)
Bram Moolenaar7887d882005-07-01 22:33:52 +000062#
Bram Moolenaar071d4272004-06-13 20:20:40 +000063# Python interface:
64# PYTHON=[Path to Python directory]
65# DYNAMIC_PYTHON=yes (to load the Python DLL dynamically)
Bram Moolenaar0eaadec2016-09-08 20:28:45 +020066# PYTHON_VER=[Python version, eg 22, 23, ..., 27] (default is 27)
Bram Moolenaar7887d882005-07-01 22:33:52 +000067#
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +020068# Python3 interface:
69# PYTHON3=[Path to Python3 directory]
70# DYNAMIC_PYTHON3=yes (to load the Python3 DLL dynamically)
Bram Moolenaar59eb0162017-12-10 18:17:44 +010071# PYTHON3_VER=[Python3 version, eg 30, 31] (default is 36)
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +020072#
Bram Moolenaar071d4272004-06-13 20:20:40 +000073# Ruby interface:
74# RUBY=[Path to Ruby directory]
75# DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically)
Bram Moolenaar6384c5d2016-09-06 22:06:35 +020076# RUBY_VER=[Ruby version, eg 19, 22] (default is 22)
77# RUBY_API_VER_LONG=[Ruby API version, eg 1.8, 1.9.1, 2.2.0]
78# (default is 2.2.0)
79# You must set RUBY_API_VER_LONG when change RUBY_VER.
Bram Moolenaar4f7e8212014-11-05 13:53:32 +010080# Note: If you use Ruby 1.9.3, set as follows:
81# RUBY_VER=19
Bram Moolenaar6384c5d2016-09-06 22:06:35 +020082# RUBY_API_VER_LONG=1.9.1 (not 1.9.3, because the API version is 1.9.1.)
Bram Moolenaar7887d882005-07-01 22:33:52 +000083#
Bram Moolenaar071d4272004-06-13 20:20:40 +000084# Tcl interface:
85# TCL=[Path to Tcl directory]
86# DYNAMIC_TCL=yes (to load the Tcl DLL dynamically)
Bram Moolenaar0eaadec2016-09-08 20:28:45 +020087# TCL_VER=[Tcl version, e.g. 80, 83] (default is 86)
88# TCL_VER_LONG=[Tcl version, eg 8.3] (default is 8.6)
Bram Moolenaar071d4272004-06-13 20:20:40 +000089# You must set TCL_VER_LONG when you set TCL_VER.
Bram Moolenaar77f74742017-08-23 22:40:41 +020090# TCL_DLL=[Tcl dll name, e.g. tcl86.dll] (default is tcl86.dll)
Bram Moolenaar7887d882005-07-01 22:33:52 +000091#
Bram Moolenaar7887d882005-07-01 22:33:52 +000092# Cscope support: CSCOPE=yes
93#
94# Iconv library support (always dynamically loaded):
95# ICONV=[yes or no] (default is yes)
96#
97# Intl library support (always dynamically loaded):
98# GETTEXT=[yes or no] (default is yes)
99# See http://sourceforge.net/projects/gettext/
100#
Bram Moolenaar884f6e42013-05-19 21:03:54 +0200101# PostScript printing: POSTSCRIPT=yes (default is no)
Bram Moolenaar7887d882005-07-01 22:33:52 +0000102#
Bram Moolenaar884f6e42013-05-19 21:03:54 +0200103# Netbeans Support: NETBEANS=[yes or no] (default is yes if GUI is yes)
Bram Moolenaare0874f82016-01-24 20:36:41 +0100104# Requires CHANNEL.
105#
106# Netbeans Debugging Support: NBDEBUG=[yes or no] (should be no, yes
107# doesn't work)
108#
109# Inter process communication: CHANNEL=[yes or no] (default is yes if GUI
110# is yes)
Bram Moolenaar7887d882005-07-01 22:33:52 +0000111#
Bram Moolenaar884f6e42013-05-19 21:03:54 +0200112# XPM Image Support: XPM=[path to XPM directory]
113# Default is "xpm", using the files included in the distribution.
114# Use "no" to disable this feature.
Bram Moolenaar7887d882005-07-01 22:33:52 +0000115#
Bram Moolenaar884f6e42013-05-19 21:03:54 +0200116# Optimization: OPTIMIZE=[SPACE, SPEED, MAXSPEED] (default is MAXSPEED)
Bram Moolenaar7887d882005-07-01 22:33:52 +0000117#
Bram Moolenaard7383882017-06-13 15:22:12 +0200118# Processor Version: CPUNR=[any, i586, i686, sse, sse2, avx, avx2] (default is
119# any)
120# avx is available on Visual C++ 2010 and after.
121# avx2 is available on Visual C++ 2013 Update 2 and after.
Bram Moolenaar7887d882005-07-01 22:33:52 +0000122#
Bram Moolenaard7383882017-06-13 15:22:12 +0200123# Version Support: WINVER=[0x0501, 0x0502, 0x0600, 0x0601, 0x0602,
124# 0x0603, 0x0A00] (default is 0x0501)
125# Supported versions depends on your target SDK, check SDKDDKVer.h
126# See https://docs.microsoft.com/en-us/cpp/porting/modifying-winver-and-win32-winnt
Bram Moolenaar7887d882005-07-01 22:33:52 +0000127#
Bram Moolenaar071d4272004-06-13 20:20:40 +0000128# Debug version: DEBUG=yes
129# Mapfile: MAP=[no, yes or lines] (default is yes)
130# no: Don't write a mapfile.
131# yes: Write a normal mapfile.
132# lines: Write a mapfile with line numbers (only for VC6 and later)
Bram Moolenaar7887d882005-07-01 22:33:52 +0000133#
Bram Moolenaarcea912a2016-10-12 14:20:24 +0200134# Static Code Analysis: ANALYZE=yes (works with VS2012 or later)
Bram Moolenaarf22129b2007-10-03 11:29:44 +0000135#
Bram Moolenaar071d4272004-06-13 20:20:40 +0000136# You can combine any of these interfaces
137#
138# Example: To build the non-debug, GUI version with Perl interface:
139# nmake -f Make_mvc.mak GUI=yes PERL=C:\Perl
140#
Bram Moolenaar071d4272004-06-13 20:20:40 +0000141# DEBUG with Make_mvc.mak and Make_dvc.mak:
142# This makefile gives a fineness of control which is not supported in
143# Visual C++ configuration files. Therefore, debugging requires a bit of
144# extra work.
Bram Moolenaarf22129b2007-10-03 11:29:44 +0000145# Make_dvc.mak is a Visual C++ project to access that support. It may be
146# badly out of date for the Visual C++ you are using...
Bram Moolenaar071d4272004-06-13 20:20:40 +0000147# To use Make_dvc.mak:
148# 1) Build Vim with Make_mvc.mak.
149# Use a "DEBUG=yes" argument to build Vim with debug support.
150# E.g. the following builds gvimd.exe:
151# nmake -f Make_mvc.mak debug=yes gui=yes
152# 2) Use MS Devstudio and set it up to allow that file to be debugged:
153# i) Pass Make_dvc.mak to the IDE.
154# Use the "open workspace" menu entry to load Make_dvc.mak.
155# Alternatively, from the command line:
156# msdev /nologo Make_dvc.mak
157# Note: Make_dvc.mak is in VC4.0 format. Later VC versions see
158# this and offer to convert it to their own format. Accept that.
159# It creates a file called Make_dvc.dsw which can then be used
160# for further operations. E.g.
161# msdev /nologo Make_dvc.dsw
162# ii) Set the built executable for debugging:
163# a) Alt+F7/Debug takes you to the Debug dialog.
164# b) Fill "Executable for debug session". e.g. gvimd.exe
165# c) Fill "Program arguments". e.g. -R dosinst.c
166# d) Complete the dialog
167# 3) You can now debug the executable you built with Make_mvc.mak
168#
169# Note: Make_dvc.mak builds vimrun.exe, because it must build something
170# to be a valid makefile..
171
172### See feature.h for a list of optionals.
173# If you want to build some optional features without modifying the source,
174# you can set DEFINES on the command line, e.g.,
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000175# nmake -f Make_mvc.mvc "DEFINES=-DEMACS_TAGS"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000176
Bram Moolenaarcea912a2016-10-12 14:20:24 +0200177# Build on Windows NT/XP
Bram Moolenaar071d4272004-06-13 20:20:40 +0000178
Bram Moolenaarcea912a2016-10-12 14:20:24 +0200179TARGETOS = WINNT
Bram Moolenaar071d4272004-06-13 20:20:40 +0000180
Bram Moolenaar43cb6262018-03-14 21:39:02 +0100181!ifndef DIRECTX
182DIRECTX = $(GUI)
183!endif
184
Bram Moolenaar9ba0eb82005-06-13 22:28:56 +0000185# Select one of eight object code directories, depends on GUI, OLE, DEBUG and
186# interfaces.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000187# If you change something else, do "make clean" first!
188!if "$(GUI)" == "yes"
189OBJDIR = .\ObjG
190!else
191OBJDIR = .\ObjC
192!endif
Bram Moolenaarb5a7a8b2014-08-06 14:52:30 +0200193!if "$(DIRECTX)" == "yes"
194OBJDIR = $(OBJDIR)X
195!endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000196!if "$(OLE)" == "yes"
197OBJDIR = $(OBJDIR)O
198!endif
Bram Moolenaar0ba04292010-07-14 23:23:17 +0200199!ifdef LUA
200OBJDIR = $(OBJDIR)U
201!endif
Bram Moolenaar9ba0eb82005-06-13 22:28:56 +0000202!ifdef PERL
203OBJDIR = $(OBJDIR)L
204!endif
205!ifdef PYTHON
206OBJDIR = $(OBJDIR)Y
207!endif
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +0200208!ifdef PYTHON3
209OBJDIR = $(OBJDIR)H
210!endif
Bram Moolenaar9ba0eb82005-06-13 22:28:56 +0000211!ifdef TCL
212OBJDIR = $(OBJDIR)T
213!endif
214!ifdef RUBY
215OBJDIR = $(OBJDIR)R
216!endif
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000217!ifdef MZSCHEME
218OBJDIR = $(OBJDIR)Z
219!endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000220!if "$(DEBUG)" == "yes"
221OBJDIR = $(OBJDIR)d
222!endif
223
Bram Moolenaare16b00a2017-08-06 17:38:06 +0200224# If you include Win32.mak, it requires that CPU be set appropriately.
Bram Moolenaara93fa7e2006-04-17 22:14:47 +0000225# To cross-compile for Win64, set CPU=AMD64 or CPU=IA64.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000226
227!ifdef PROCESSOR_ARCHITECTURE
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000228# We're on Windows NT or using VC 6+
Bram Moolenaareb3593b2006-04-22 22:33:57 +0000229! ifdef CPU
230ASSEMBLY_ARCHITECTURE=$(CPU)
Bram Moolenaarf9393ef2006-04-24 19:47:27 +0000231# Using I386 for $ASSEMBLY_ARCHITECTURE doesn't work for VC7.
Bram Moolenaar6b903512015-12-11 19:38:44 +0100232! if "$(CPU)" == "I386"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000233CPU = i386
Bram Moolenaara93fa7e2006-04-17 22:14:47 +0000234! endif
Bram Moolenaar6b903512015-12-11 19:38:44 +0100235! else # !CPU
236CPU = i386
Bram Moolenaar3d6d5cc2016-01-15 18:03:32 +0100237! if !defined(PLATFORM) && defined(TARGET_CPU)
238PLATFORM = $(TARGET_CPU)
239! endif
Bram Moolenaar6b903512015-12-11 19:38:44 +0100240! ifdef PLATFORM
241! if ("$(PLATFORM)" == "x64") || ("$(PLATFORM)" == "X64")
242CPU = AMD64
Bram Moolenaar577fadf2019-04-04 20:32:24 +0200243! elseif ("$(PLATFORM)" == "arm64") || ("$(PLATFORM)" == "ARM64")
244CPU = ARM64
Bram Moolenaar6b903512015-12-11 19:38:44 +0100245! elseif ("$(PLATFORM)" != "x86") && ("$(PLATFORM)" != "X86")
246! error *** ERROR Unknown target platform "$(PLATFORM)". Make aborted.
247! endif
248! endif # !PLATFORM
Bram Moolenaar071d4272004-06-13 20:20:40 +0000249! endif
250!else # !PROCESSOR_ARCHITECTURE
251# We're on Windows 95
252CPU = i386
253!endif # !PROCESSOR_ARCHITECTURE
Bram Moolenaar6b903512015-12-11 19:38:44 +0100254ASSEMBLY_ARCHITECTURE=$(CPU)
Bram Moolenaare2db4362012-09-05 17:57:39 +0200255OBJDIR = $(OBJDIR)$(CPU)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000256
Bram Moolenaar071d4272004-06-13 20:20:40 +0000257# Build a retail version by default
258
259!if "$(DEBUG)" != "yes"
260NODEBUG = 1
261!else
Bram Moolenaarf22129b2007-10-03 11:29:44 +0000262!undef NODEBUG
Bram Moolenaar071d4272004-06-13 20:20:40 +0000263MAKEFLAGS_GVIMEXT = DEBUG=yes
264!endif
265
266
Bram Moolenaare16b00a2017-08-06 17:38:06 +0200267# Get all sorts of useful, standard macros from the Platform SDK,
268# if SDK_INCLUDE_DIR is set or USE_WIN32MAK is set to "yes".
Bram Moolenaar071d4272004-06-13 20:20:40 +0000269
Bram Moolenaar6f586de2012-09-18 22:00:08 +0200270!ifdef SDK_INCLUDE_DIR
271!include $(SDK_INCLUDE_DIR)\Win32.mak
Bram Moolenaare16b00a2017-08-06 17:38:06 +0200272!elseif "$(USE_WIN32MAK)"=="yes"
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000273!include <Win32.mak>
Bram Moolenaare16b00a2017-08-06 17:38:06 +0200274!else
275link = link
Bram Moolenaar6f586de2012-09-18 22:00:08 +0200276!endif
277
Bram Moolenaar071d4272004-06-13 20:20:40 +0000278
Bram Moolenaarb5b95752016-06-18 21:59:36 +0200279# Check VC version.
280!if [echo MSVCVER=_MSC_VER> msvcver.c && $(CC) /EP msvcver.c > msvcver.~ 2> nul]
281!message *** ERROR
282!message Cannot run Visual C to determine its version. Make sure cl.exe is in your PATH.
283!message This can usually be done by running "vcvarsall.bat", located in the bin directory where Visual Studio was installed.
284!error Make aborted.
285!else
286!include msvcver.~
287!if [del msvcver.c msvcver.~]
288!endif
289!endif
290
291!if $(MSVCVER) < 1900
292MSVC_MAJOR = ($(MSVCVER) / 100 - 6)
293MSVCRT_VER = ($(MSVCVER) / 10 - 60)
Bram Moolenaard7383882017-06-13 15:22:12 +0200294# Visual C++ 2017 needs special handling
295# it has an _MSC_VER of 1910->14.1, but is actually v15 with runtime v140
Bram Moolenaardd08b6a2018-02-06 22:02:43 +0100296# TODO: what's the maximum value?
297!elseif $(MSVCVER) >= 1910
Bram Moolenaard7383882017-06-13 15:22:12 +0200298MSVC_MAJOR = 15
299MSVCRT_VER = 140
Bram Moolenaarb5b95752016-06-18 21:59:36 +0200300!else
301MSVC_MAJOR = ($(MSVCVER) / 100 - 5)
302MSVCRT_VER = ($(MSVCVER) / 10 - 50)
303!endif
304
Bram Moolenaard7383882017-06-13 15:22:12 +0200305# Calculate MSVC_FULL for Visual C++ 8 and up.
306!if $(MSVC_MAJOR) >= 8
307! if [echo MSVC_FULL=_MSC_FULL_VER> msvcfullver.c && $(CC) /EP msvcfullver.c > msvcfullver.~ 2> nul]
308! message *** ERROR
309! message Cannot run Visual C to determine its version. Make sure cl.exe is in your PATH.
310! message This can usually be done by running "vcvarsall.bat", located in the bin directory where Visual Studio was installed.
311! error Make aborted.
312! else
313! include msvcfullver.~
314! if [del msvcfullver.c msvcfullver.~]
315! endif
316! endif
317!endif
318
319
Bram Moolenaarb5b95752016-06-18 21:59:36 +0200320# Calculate MSVCRT_VER
321!if [(set /a MSVCRT_VER="$(MSVCRT_VER)" > nul) && set MSVCRT_VER > msvcrtver.~] == 0
322!include msvcrtver.~
323!if [del msvcrtver.~]
324!endif
325!endif
326
327# Base name of the msvcrXX.dll
328!if $(MSVCRT_VER) <= 60
329MSVCRT_NAME = msvcrt
Bram Moolenaar168dd002017-02-01 13:02:47 +0100330!elseif $(MSVCRT_VER) <= 130
Bram Moolenaarb5b95752016-06-18 21:59:36 +0200331MSVCRT_NAME = msvcr$(MSVCRT_VER)
Bram Moolenaar168dd002017-02-01 13:02:47 +0100332!else
333MSVCRT_NAME = vcruntime$(MSVCRT_VER)
Bram Moolenaarb5b95752016-06-18 21:59:36 +0200334!endif
335
336!if $(MSVC_MAJOR) == 6
337CPU = ix86
338!endif
339
340
Bram Moolenaar8cd213c2010-06-01 21:57:09 +0200341# Flag to turn on Win64 compatibility warnings for VC7.x and VC8.
Bram Moolenaar83d09bb2010-06-01 19:58:08 +0200342WP64CHECK = /Wp64
Bram Moolenaar071d4272004-06-13 20:20:40 +0000343
Bram Moolenaardda39ae2016-11-19 17:17:12 +0100344# Use multiprocess build
345USE_MP = yes
346
Bram Moolenaar071d4272004-06-13 20:20:40 +0000347#>>>>> path of the compiler and linker; name of include and lib directories
348# PATH = c:\msvc20\bin;$(PATH)
349# INCLUDE = c:\msvc20\include
350# LIB = c:\msvc20\lib
351
Bram Moolenaar76929af2016-06-02 20:26:41 +0200352!if "$(FEATURES)"==""
353FEATURES = HUGE
354!endif
355
Bram Moolenaar071d4272004-06-13 20:20:40 +0000356!ifndef CTAGS
Bram Moolenaar9ac9dfa2017-09-01 18:41:26 +0200357# this assumes ctags is Exuberant ctags
358CTAGS = ctags -I INIT+ --fields=+S
Bram Moolenaar071d4272004-06-13 20:20:40 +0000359!endif
360
Bram Moolenaar071d4272004-06-13 20:20:40 +0000361!ifndef CSCOPE
362CSCOPE = yes
363!endif
364
365!if "$(CSCOPE)" == "yes"
366# CSCOPE - Include support for Cscope
367CSCOPE_INCL = if_cscope.h
368CSCOPE_OBJ = $(OBJDIR)/if_cscope.obj
369CSCOPE_DEFS = -DFEAT_CSCOPE
370!endif
371
Bram Moolenaarac8069b2017-10-14 20:24:19 +0200372!ifndef TERMINAL
373!if "$(FEATURES)"=="HUGE"
374TERMINAL = yes
375!else
376TERMINAL = no
377!endif
378!endif
379
Bram Moolenaar4fc63502017-07-19 11:28:17 +0200380!if "$(TERMINAL)" == "yes"
Bram Moolenaarf80451e2017-07-25 21:49:35 +0200381TERM_OBJ = \
382 $(OBJDIR)/terminal.obj \
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +0200383 $(OBJDIR)/encoding.obj \
384 $(OBJDIR)/keyboard.obj \
385 $(OBJDIR)/mouse.obj \
386 $(OBJDIR)/parser.obj \
387 $(OBJDIR)/pen.obj \
388 $(OBJDIR)/termscreen.obj \
389 $(OBJDIR)/state.obj \
390 $(OBJDIR)/unicode.obj \
391 $(OBJDIR)/vterm.obj
Bram Moolenaarf80451e2017-07-25 21:49:35 +0200392TERM_DEFS = -DFEAT_TERMINAL
393TERM_DEPS = \
394 libvterm/include/vterm.h \
395 libvterm/include/vterm_keycodes.h \
396 libvterm/src/rect.h \
397 libvterm/src/utf8.h \
398 libvterm/src/vterm_internal.h
Bram Moolenaar4fc63502017-07-19 11:28:17 +0200399!endif
400
Bram Moolenaar071d4272004-06-13 20:20:40 +0000401!ifndef NETBEANS
402NETBEANS = $(GUI)
403!endif
404
Bram Moolenaare0874f82016-01-24 20:36:41 +0100405!ifndef CHANNEL
Bram Moolenaar76929af2016-06-02 20:26:41 +0200406!if "$(FEATURES)"=="HUGE"
407CHANNEL = yes
408!else
Bram Moolenaare0874f82016-01-24 20:36:41 +0100409CHANNEL = $(GUI)
410!endif
Bram Moolenaar76929af2016-06-02 20:26:41 +0200411!endif
Bram Moolenaare0874f82016-01-24 20:36:41 +0100412
Bram Moolenaarb5b95752016-06-18 21:59:36 +0200413# GUI sepcific features.
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000414!if "$(GUI)" == "yes"
Bram Moolenaarb5b95752016-06-18 21:59:36 +0200415# Only allow NETBEANS for a GUI build and CHANNEL.
Bram Moolenaare0874f82016-01-24 20:36:41 +0100416!if "$(NETBEANS)" == "yes" && "$(CHANNEL)" == "yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000417# NETBEANS - Include support for Netbeans integration
418NETBEANS_PRO = proto/netbeans.pro
Bram Moolenaar52b4b552005-03-07 23:00:57 +0000419NETBEANS_OBJ = $(OBJDIR)/netbeans.obj
Bram Moolenaar071d4272004-06-13 20:20:40 +0000420NETBEANS_DEFS = -DFEAT_NETBEANS_INTG
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000421
422!if "$(NBDEBUG)" == "yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000423NBDEBUG_DEFS = -DNBDEBUG
424NBDEBUG_INCL = nbdebug.h
425NBDEBUG_SRC = nbdebug.c
426!endif
Bram Moolenaarb6356332005-07-18 21:40:44 +0000427NETBEANS_LIB = WSock32.lib
Bram Moolenaar071d4272004-06-13 20:20:40 +0000428!endif
429
Bram Moolenaar7f88b652017-12-14 13:15:19 +0100430# DirectWrite (DirectX)
Bram Moolenaarb5a7a8b2014-08-06 14:52:30 +0200431!if "$(DIRECTX)" == "yes"
432DIRECTX_DEFS = -DFEAT_DIRECTX -DDYNAMIC_DIRECTX
Bram Moolenaar7f88b652017-12-14 13:15:19 +0100433!if "$(COLOR_EMOJI)" != "no"
434DIRECTX_DEFS = $(DIRECTX_DEFS) -DFEAT_DIRECTX_COLOR_EMOJI
435!endif
Bram Moolenaarb5a7a8b2014-08-06 14:52:30 +0200436DIRECTX_INCL = gui_dwrite.h
437DIRECTX_OBJ = $(OUTDIR)\gui_dwrite.obj
438!endif
439
Bram Moolenaarb5b95752016-06-18 21:59:36 +0200440# Only allow XPM for a GUI build.
Bram Moolenaarc6c1d8b2012-08-29 14:18:33 +0200441!ifndef XPM
Bram Moolenaarb5b95752016-06-18 21:59:36 +0200442!ifndef USE_MSVCRT
443# Both XPM and USE_MSVCRT are not set, use the included xpm files, depending
444# on the architecture.
Bram Moolenaare2db4362012-09-05 17:57:39 +0200445!if "$(CPU)" == "AMD64"
Bram Moolenaarc6c1d8b2012-08-29 14:18:33 +0200446XPM = xpm\x64
Bram Moolenaar577fadf2019-04-04 20:32:24 +0200447!elseif "$(CPU)" == "ARM64"
448XPM = xpm\arm64
Bram Moolenaare2db4362012-09-05 17:57:39 +0200449!elseif "$(CPU)" == "i386"
Bram Moolenaarc6c1d8b2012-08-29 14:18:33 +0200450XPM = xpm\x86
Bram Moolenaare2db4362012-09-05 17:57:39 +0200451!else
452XPM = no
Bram Moolenaarc6c1d8b2012-08-29 14:18:33 +0200453!endif
Bram Moolenaarb5b95752016-06-18 21:59:36 +0200454!else # USE_MSVCRT
455XPM = no
456!endif # USE_MSVCRT
457!endif # XPM
Bram Moolenaarc6c1d8b2012-08-29 14:18:33 +0200458!if "$(XPM)" != "no"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000459# XPM - Include support for XPM signs
Bram Moolenaarc6c1d8b2012-08-29 14:18:33 +0200460# See the xpm directory for more information.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000461XPM_OBJ = $(OBJDIR)/xpm_w32.obj
462XPM_DEFS = -DFEAT_XPM_W32
Bram Moolenaarb5b95752016-06-18 21:59:36 +0200463!if $(MSVC_MAJOR) >= 14
464# VC14 cannot use a library built by VC12 or eariler, because VC14 uses
465# Universal CRT.
466XPM_LIB = $(XPM)\lib-vc14\libXpm.lib
467!else
Bram Moolenaar071d4272004-06-13 20:20:40 +0000468XPM_LIB = $(XPM)\lib\libXpm.lib
Bram Moolenaarb5b95752016-06-18 21:59:36 +0200469!endif
Bram Moolenaarc6c1d8b2012-08-29 14:18:33 +0200470XPM_INC = -I $(XPM)\include -I $(XPM)\..\include
Bram Moolenaar071d4272004-06-13 20:20:40 +0000471!endif
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000472!endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000473
Bram Moolenaare0874f82016-01-24 20:36:41 +0100474!if "$(CHANNEL)" == "yes"
475CHANNEL_PRO = proto/channel.pro
476CHANNEL_OBJ = $(OBJDIR)/channel.obj
Bram Moolenaar509ce2a2016-03-11 22:52:15 +0100477CHANNEL_DEFS = -DFEAT_JOB_CHANNEL
Bram Moolenaare0874f82016-01-24 20:36:41 +0100478
479NETBEANS_LIB = WSock32.lib
480!endif
481
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000482# Set which version of the CRT to use
Bram Moolenaar071d4272004-06-13 20:20:40 +0000483!if defined(USE_MSVCRT)
Bram Moolenaarf22129b2007-10-03 11:29:44 +0000484# CVARS = $(cvarsdll)
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000485# !elseif defined(MULTITHREADED)
486# CVARS = $(cvarsmt)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000487!else
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000488# CVARS = $(cvars)
Bram Moolenaarf22129b2007-10-03 11:29:44 +0000489# CVARS = $(cvarsmt)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000490!endif
491
492# need advapi32.lib for GetUserName()
493# need shell32.lib for ExtractIcon()
Bram Moolenaar828c3d72018-06-19 18:58:07 +0200494# need netapi32.lib for NetUserEnum()
Bram Moolenaar071d4272004-06-13 20:20:40 +0000495# gdi32.lib and comdlg32.lib for printing support
496# ole32.lib and uuid.lib are needed for FEAT_SHORTCUT
Bram Moolenaar0fde2902008-03-16 13:54:13 +0000497CON_LIB = oldnames.lib kernel32.lib advapi32.lib shell32.lib gdi32.lib \
Bram Moolenaar828c3d72018-06-19 18:58:07 +0200498 comdlg32.lib ole32.lib netapi32.lib uuid.lib /machine:$(CPU)
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000499!if "$(DELAYLOAD)" == "yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000500CON_LIB = $(CON_LIB) /DELAYLOAD:comdlg32.dll /DELAYLOAD:ole32.dll DelayImp.lib
501!endif
502
503### Set the default $(WINVER) to make it work with VC++7.0 (VS.NET)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000504!ifndef WINVER
Bram Moolenaar223b7232016-02-19 19:43:49 +0100505WINVER = 0x0501
Bram Moolenaar071d4272004-06-13 20:20:40 +0000506!endif
507
508# If you have a fixed directory for $VIM or $VIMRUNTIME, other than the normal
509# default, use these lines.
510#VIMRCLOC = somewhere
511#VIMRUNTIMEDIR = somewhere
512
513CFLAGS = -c /W3 /nologo $(CVARS) -I. -Iproto -DHAVE_PATHDEF -DWIN32 \
Bram Moolenaarf80451e2017-07-25 21:49:35 +0200514 $(CSCOPE_DEFS) $(TERM_DEFS) $(NETBEANS_DEFS) $(CHANNEL_DEFS) \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000515 $(NBDEBUG_DEFS) $(XPM_DEFS) \
Bram Moolenaarf80451e2017-07-25 21:49:35 +0200516 $(DEFINES) -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000517
518#>>>>> end of choices
519###########################################################################
520
Bram Moolenaar071d4272004-06-13 20:20:40 +0000521DEL_TREE = rmdir /s /q
Bram Moolenaar071d4272004-06-13 20:20:40 +0000522
523INTDIR=$(OBJDIR)
524OUTDIR=$(OBJDIR)
525
Bram Moolenaard7383882017-06-13 15:22:12 +0200526### Validate CPUNR
527!ifndef CPUNR
528# default to untargeted code
529CPUNR = any
530!elseif "$(CPUNR)" == "i386" || "$(CPUNR)" == "i486"
531# alias i386 and i486 to i586
532! message *** WARNING CPUNR=$(CPUNR) is not a valid target architecture.
533! message Windows XP is the minimum target OS, with a minimum target
534! message architecture of i586.
535! message Retargeting to i586
536CPUNR = i586
537!elseif "$(CPUNR)" == "pentium4"
538# alias pentium4 to sse2
539! message *** WARNING CPUNR=pentium4 is deprecated in favour of sse2.
540! message Retargeting to sse2.
541CPUNR = sse2
542!elseif "$(CPUNR)" != "any" && "$(CPUNR)" != "i586" && "$(CPUNR)" != "i686" && "$(CPUNR)" != "sse" && "$(CPUNR)" != "sse2" && "$(CPUNR)" != "avx" && "$(CPUNR)" != "avx2"
543! error *** ERROR Unknown target architecture "$(CPUNR)". Make aborted.
544!endif
545
Bram Moolenaar071d4272004-06-13 20:20:40 +0000546# Convert processor ID to MVC-compatible number
Bram Moolenaar90f5d0a2015-12-03 22:37:21 +0100547!if $(MSVC_MAJOR) < 8
Bram Moolenaard7383882017-06-13 15:22:12 +0200548! if "$(CPUNR)" == "i586"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000549CPUARG = /G5
Bram Moolenaard7383882017-06-13 15:22:12 +0200550! elseif "$(CPUNR)" == "i686"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000551CPUARG = /G6
Bram Moolenaard7383882017-06-13 15:22:12 +0200552! elseif "$(CPUNR)" == "sse"
553CPUARG = /G6 /arch:SSE
554! elseif "$(CPUNR)" == "sse2"
Bram Moolenaar34114692005-01-02 11:28:13 +0000555CPUARG = /G7 /arch:SSE2
Bram Moolenaard7383882017-06-13 15:22:12 +0200556! elseif "$(CPUNR)" == "avx" || "$(CPUNR)" == "avx2"
557! message AVX/AVX2 Instruction Sets are not supported by Visual C++ v$(MSVC_MAJOR)
558! message Falling back to SSE2
559CPUARG = /G7 /arch:SSE2
560! elseif "$(CPUNR)" == "any"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000561CPUARG =
Bram Moolenaard7383882017-06-13 15:22:12 +0200562! endif
Bram Moolenaarf22129b2007-10-03 11:29:44 +0000563!else
Bram Moolenaard7383882017-06-13 15:22:12 +0200564# IA32/SSE/SSE2 are only supported on x86
565! if "$(ASSEMBLY_ARCHITECTURE)" == "i386" && ("$(CPUNR)" == "i586" || "$(CPUNR)" == "i686" || "$(CPUNR)" == "any")
566# VC<11 generates fp87 code by default
567! if $(MSVC_MAJOR) < 11
568CPUARG =
569# VC>=11 needs explicit insturctions to generate fp87 code
570! else
571CPUARG = /arch:IA32
572! endif
573! elseif "$(ASSEMBLY_ARCHITECTURE)" == "i386" && "$(CPUNR)" == "sse"
574CPUARG = /arch:SSE
575! elseif "$(ASSEMBLY_ARCHITECTURE)" == "i386" && "$(CPUNR)" == "sse2"
Bram Moolenaarf22129b2007-10-03 11:29:44 +0000576CPUARG = /arch:SSE2
Bram Moolenaard7383882017-06-13 15:22:12 +0200577! elseif "$(CPUNR)" == "avx"
578# AVX is only supported by VC 10 and up
579! if $(MSVC_MAJOR) < 10
580! message AVX Instruction Set is not supported by Visual C++ v$(MSVC_MAJOR)
581! if "$(ASSEMBLY_ARCHITECTURE)" == "i386"
582! message Falling back to SSE2
583CPUARG = /arch:SSE2
584! else
585CPUARG =
586! endif
587! else
588CPUARG = /arch:AVX
589! endif
590! elseif "$(CPUNR)" == "avx2"
591# AVX is only supported by VC 10 and up
592! if $(MSVC_MAJOR) < 10
593! message AVX2 Instruction Set is not supported by Visual C++ v$(MSVC_MAJOR)
594! if "$(ASSEMBLY_ARCHITECTURE)" == "i386"
595! message Falling back to SSE2
596CPUARG = /arch:SSE2
597! else
598CPUARG =
599! endif
600# AVX2 is only supported by VC 12U2 and up
601# 180030501 is the full version number for Visual Studio 2013/VC 12 Update 2
602! elseif $(MSVC_FULL) < 180030501
603! message AVX2 Instruction Set is not supported by Visual C++ v$(MSVC_MAJOR)-$(MSVC_FULL)
604! message Falling back to AVX
605CPUARG = /arch:AVX
606! else
607CPUARG = /arch:AVX2
608! endif
609! endif
Bram Moolenaarf22129b2007-10-03 11:29:44 +0000610!endif
Bram Moolenaard7383882017-06-13 15:22:12 +0200611
Bram Moolenaar73f44392017-10-07 18:38:43 +0200612# Pass CPUARG to GvimExt, to avoid using version-dependent defaults
Bram Moolenaard7383882017-06-13 15:22:12 +0200613MAKEFLAGS_GVIMEXT = $(MAKEFLAGS_GVIMEXT) CPUARG="$(CPUARG)"
614
Bram Moolenaarf22129b2007-10-03 11:29:44 +0000615
616LIBC =
617DEBUGINFO = /Zi
Bram Moolenaar071d4272004-06-13 20:20:40 +0000618
Bram Moolenaarf300ad22015-05-04 16:18:42 +0200619# Don't use /nodefaultlib on MSVC 14
Bram Moolenaar90f5d0a2015-12-03 22:37:21 +0100620!if $(MSVC_MAJOR) >= 14
Bram Moolenaarf300ad22015-05-04 16:18:42 +0200621NODEFAULTLIB =
622!else
623NODEFAULTLIB = /nodefaultlib
624!endif
625
Bram Moolenaardda39ae2016-11-19 17:17:12 +0100626# Use multiprocess build on MSVC 10
627!if "$(USE_MP)"=="yes"
628!if $(MSVC_MAJOR) >= 10
629CFLAGS = $(CFLAGS) /MP
630!endif
631!endif
632
Bram Moolenaar0251d2d2019-03-14 21:37:19 +0100633# VC10 or later has stdint.h.
634!if $(MSVC_MAJOR) >= 10
635CFLAGS = $(CFLAGS) -DHAVE_STDINT_H
636!endif
Bram Moolenaardda39ae2016-11-19 17:17:12 +0100637
Bram Moolenaar38db5272019-03-17 15:47:25 +0100638# Static code analysis generally available starting with VS2012 (VC11) or
639# Windows SDK 7.1 (VC10)
640!if ("$(ANALYZE)" == "yes") && ($(MSVC_MAJOR) >= 10)
641CFLAGS=$(CFLAGS) /analyze
642!endif
643
Bram Moolenaar071d4272004-06-13 20:20:40 +0000644!ifdef NODEBUG
645VIM = vim
646!if "$(OPTIMIZE)" == "SPACE"
647OPTFLAG = /O1
648!elseif "$(OPTIMIZE)" == "SPEED"
649OPTFLAG = /O2
650!else # MAXSPEED
651OPTFLAG = /Ox
652!endif
Bram Moolenaar83d09bb2010-06-01 19:58:08 +0200653
Bram Moolenaar90f5d0a2015-12-03 22:37:21 +0100654!if $(MSVC_MAJOR) >= 8
Bram Moolenaarf22129b2007-10-03 11:29:44 +0000655# Use link time code generation if not worried about size
656!if "$(OPTIMIZE)" != "SPACE"
657OPTFLAG = $(OPTFLAG) /GL
658!endif
659!endif
Bram Moolenaar83d09bb2010-06-01 19:58:08 +0200660
661# (/Wp64 is deprecated in VC9 and generates an obnoxious warning.)
Bram Moolenaar90f5d0a2015-12-03 22:37:21 +0100662!if ($(MSVC_MAJOR) == 7) || ($(MSVC_MAJOR) == 8)
Bram Moolenaar83d09bb2010-06-01 19:58:08 +0200663CFLAGS=$(CFLAGS) $(WP64CHECK)
664!endif
665
Bram Moolenaar34114692005-01-02 11:28:13 +0000666CFLAGS = $(CFLAGS) $(OPTFLAG) -DNDEBUG $(CPUARG)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000667RCFLAGS = $(rcflags) $(rcvars) -DNDEBUG
Bram Moolenaar071d4272004-06-13 20:20:40 +0000668! ifdef USE_MSVCRT
Bram Moolenaarf22129b2007-10-03 11:29:44 +0000669CFLAGS = $(CFLAGS) /MD
Bram Moolenaar071d4272004-06-13 20:20:40 +0000670LIBC = msvcrt.lib
Bram Moolenaar071d4272004-06-13 20:20:40 +0000671! else
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000672LIBC = libcmt.lib
Bram Moolenaar0fde2902008-03-16 13:54:13 +0000673CFLAGS = $(CFLAGS) /Zl /MT
Bram Moolenaar071d4272004-06-13 20:20:40 +0000674! endif
675!else # DEBUG
676VIM = vimd
Bram Moolenaar0fde2902008-03-16 13:54:13 +0000677! if ("$(CPU)" == "i386") || ("$(CPU)" == "ix86")
Bram Moolenaarf22129b2007-10-03 11:29:44 +0000678DEBUGINFO = /ZI
679! endif
Bram Moolenaard9d30582005-05-18 22:10:28 +0000680CFLAGS = $(CFLAGS) -D_DEBUG -DDEBUG /Od
Bram Moolenaar071d4272004-06-13 20:20:40 +0000681RCFLAGS = $(rcflags) $(rcvars) -D_DEBUG -DDEBUG
682# The /fixed:no is needed for Quantify. Assume not 4.? as unsupported in VC4.0.
Bram Moolenaar90f5d0a2015-12-03 22:37:21 +0100683! if $(MSVC_MAJOR) == 4
Bram Moolenaar071d4272004-06-13 20:20:40 +0000684LIBC =
685! else
686LIBC = /fixed:no
687! endif
Bram Moolenaar6a9aa372005-07-20 21:54:57 +0000688! ifdef USE_MSVCRT
Bram Moolenaarf22129b2007-10-03 11:29:44 +0000689CFLAGS = $(CFLAGS) /MDd
Bram Moolenaar071d4272004-06-13 20:20:40 +0000690LIBC = $(LIBC) msvcrtd.lib
Bram Moolenaar6a9aa372005-07-20 21:54:57 +0000691! else
Bram Moolenaar362e1a32006-03-06 23:29:24 +0000692LIBC = $(LIBC) libcmtd.lib
Bram Moolenaar0fde2902008-03-16 13:54:13 +0000693CFLAGS = $(CFLAGS) /Zl /MTd
Bram Moolenaar071d4272004-06-13 20:20:40 +0000694! endif
695!endif # DEBUG
696
Bram Moolenaarf3dc2352018-07-04 23:05:34 +0200697!include Make_all.mak
Bram Moolenaarec504012019-01-11 17:30:16 +0100698!include testdir\Make_all.mak
Bram Moolenaarf3dc2352018-07-04 23:05:34 +0200699
Bram Moolenaare37368c2019-03-22 16:57:45 +0100700INCL = vim.h alloc.h ascii.h ex_cmds.h feature.h globals.h \
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +0200701 keymap.h macros.h option.h os_dos.h os_win32.h proto.h regexp.h \
Bram Moolenaarc3719bd2017-11-18 22:13:31 +0100702 spell.h structs.h term.h beval.h $(NBDEBUG_INCL)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000703
704OBJ = \
Bram Moolenaar75464dc2016-07-02 20:27:50 +0200705 $(OUTDIR)\arabic.obj \
Bram Moolenaar3e460fd2019-01-26 16:21:07 +0100706 $(OUTDIR)\autocmd.obj \
Bram Moolenaarc3719bd2017-11-18 22:13:31 +0100707 $(OUTDIR)\beval.obj \
Bram Moolenaar6e5ea8d2019-01-12 22:47:31 +0100708 $(OUTDIR)\blob.obj \
Bram Moolenaar40e6a712010-05-16 22:32:54 +0200709 $(OUTDIR)\blowfish.obj \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000710 $(OUTDIR)\buffer.obj \
711 $(OUTDIR)\charset.obj \
Bram Moolenaar07cf3822014-08-10 16:31:50 +0200712 $(OUTDIR)\crypt.obj \
713 $(OUTDIR)\crypt_zip.obj \
Bram Moolenaareead75c2019-04-21 11:35:00 +0200714 $(OUTDIR)\debugger.obj \
Bram Moolenaar6583c442016-07-17 18:41:47 +0200715 $(OUTDIR)\dict.obj \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000716 $(OUTDIR)\diff.obj \
717 $(OUTDIR)\digraph.obj \
718 $(OUTDIR)\edit.obj \
719 $(OUTDIR)\eval.obj \
Bram Moolenaar73dad1e2016-07-17 22:13:49 +0200720 $(OUTDIR)\evalfunc.obj \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000721 $(OUTDIR)\ex_cmds.obj \
722 $(OUTDIR)\ex_cmds2.obj \
723 $(OUTDIR)\ex_docmd.obj \
724 $(OUTDIR)\ex_eval.obj \
725 $(OUTDIR)\ex_getln.obj \
726 $(OUTDIR)\fileio.obj \
Bram Moolenaar5fd0f502019-02-13 23:13:28 +0100727 $(OUTDIR)\findfile.obj \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000728 $(OUTDIR)\fold.obj \
729 $(OUTDIR)\getchar.obj \
Bram Moolenaar58d98232005-07-23 22:25:46 +0000730 $(OUTDIR)\hardcopy.obj \
Bram Moolenaarc01140a2006-03-24 22:21:52 +0000731 $(OUTDIR)\hashtab.obj \
Bram Moolenaar4b471622019-01-31 13:48:09 +0100732 $(OUTDIR)\indent.obj \
Bram Moolenaar7591bb32019-03-30 13:53:47 +0100733 $(OUTDIR)\insexpand.obj \
Bram Moolenaar520e1e42016-01-23 19:46:28 +0100734 $(OUTDIR)\json.obj \
Bram Moolenaar6583c442016-07-17 18:41:47 +0200735 $(OUTDIR)\list.obj \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000736 $(OUTDIR)\main.obj \
737 $(OUTDIR)\mark.obj \
738 $(OUTDIR)\mbyte.obj \
739 $(OUTDIR)\memfile.obj \
740 $(OUTDIR)\memline.obj \
741 $(OUTDIR)\menu.obj \
742 $(OUTDIR)\message.obj \
743 $(OUTDIR)\misc1.obj \
744 $(OUTDIR)\misc2.obj \
745 $(OUTDIR)\move.obj \
746 $(OUTDIR)\normal.obj \
747 $(OUTDIR)\ops.obj \
748 $(OUTDIR)\option.obj \
749 $(OUTDIR)\os_mswin.obj \
Bram Moolenaar796cc422019-04-03 20:31:00 +0200750 $(OUTDIR)\os_w32exe.obj \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000751 $(OUTDIR)\os_win32.obj \
752 $(OUTDIR)\pathdef.obj \
Bram Moolenaarc01140a2006-03-24 22:21:52 +0000753 $(OUTDIR)\popupmnu.obj \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000754 $(OUTDIR)\quickfix.obj \
755 $(OUTDIR)\regexp.obj \
756 $(OUTDIR)\screen.obj \
757 $(OUTDIR)\search.obj \
Bram Moolenaaredac1852010-05-18 20:34:20 +0200758 $(OUTDIR)\sha256.obj \
Bram Moolenaarbbea4702019-01-01 13:20:31 +0100759 $(OUTDIR)\sign.obj \
Bram Moolenaar2e4096b2005-03-20 22:25:45 +0000760 $(OUTDIR)\spell.obj \
Bram Moolenaar9ccfebd2016-07-19 16:39:08 +0200761 $(OUTDIR)\spellfile.obj \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000762 $(OUTDIR)\syntax.obj \
763 $(OUTDIR)\tag.obj \
764 $(OUTDIR)\term.obj \
Bram Moolenaar98aefe72018-12-13 22:20:09 +0100765 $(OUTDIR)\textprop.obj \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000766 $(OUTDIR)\ui.obj \
767 $(OUTDIR)\undo.obj \
Bram Moolenaarac9fb182019-04-27 13:04:13 +0200768 $(OUTDIR)\usercmd.obj \
Bram Moolenaar6583c442016-07-17 18:41:47 +0200769 $(OUTDIR)\userfunc.obj \
Bram Moolenaar796cc422019-04-03 20:31:00 +0200770 $(OUTDIR)\winclip.obj \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000771 $(OUTDIR)\window.obj \
772 $(OUTDIR)\vim.res
773
774!if "$(OLE)" == "yes"
775CFLAGS = $(CFLAGS) -DFEAT_OLE
776RCFLAGS = $(RCFLAGS) -DFEAT_OLE
777OLE_OBJ = $(OUTDIR)\if_ole.obj
778OLE_IDL = if_ole.idl
779OLE_LIB = oleaut32.lib
780!endif
781
782!if "$(IME)" == "yes"
783CFLAGS = $(CFLAGS) -DFEAT_MBYTE_IME
784!ifndef DYNAMIC_IME
785DYNAMIC_IME = yes
786!endif
787!if "$(DYNAMIC_IME)" == "yes"
788CFLAGS = $(CFLAGS) -DDYNAMIC_IME
789!else
790IME_LIB = imm32.lib
791!endif
792!endif
793
794!if "$(GIME)" == "yes"
795CFLAGS = $(CFLAGS) -DGLOBAL_IME
796OBJ = $(OBJ) $(OUTDIR)\dimm_i.obj $(OUTDIR)\glbl_ime.obj
Bram Moolenaar071d4272004-06-13 20:20:40 +0000797!endif
798
799!if "$(GUI)" == "yes"
800SUBSYSTEM = windows
Bram Moolenaar0472b6d2019-02-18 21:41:37 +0100801CFLAGS = $(CFLAGS) -DFEAT_GUI_MSWIN
802RCFLAGS = $(RCFLAGS) -DFEAT_GUI_MSWIN
Bram Moolenaar071d4272004-06-13 20:20:40 +0000803VIM = g$(VIM)
804GUI_INCL = \
Bram Moolenaarc3719bd2017-11-18 22:13:31 +0100805 gui.h
Bram Moolenaar071d4272004-06-13 20:20:40 +0000806GUI_OBJ = \
807 $(OUTDIR)\gui.obj \
Bram Moolenaar52b4b552005-03-07 23:00:57 +0000808 $(OUTDIR)\gui_beval.obj \
Bram Moolenaar796cc422019-04-03 20:31:00 +0200809 $(OUTDIR)\gui_w32.obj
Bram Moolenaar071d4272004-06-13 20:20:40 +0000810GUI_LIB = \
Bram Moolenaar0fde2902008-03-16 13:54:13 +0000811 gdi32.lib version.lib $(IME_LIB) \
Bram Moolenaar828c3d72018-06-19 18:58:07 +0200812 winspool.lib comctl32.lib advapi32.lib shell32.lib netapi32.lib \
Bram Moolenaarf300ad22015-05-04 16:18:42 +0200813 /machine:$(CPU)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000814!else
815SUBSYSTEM = console
Bram Moolenaar97ff9b92016-06-26 20:37:46 +0200816CUI_INCL = iscygpty.h
817CUI_OBJ = $(OUTDIR)\iscygpty.obj
Bram Moolenaar071d4272004-06-13 20:20:40 +0000818!endif
Bram Moolenaar73f44392017-10-07 18:38:43 +0200819SUBSYSTEM_TOOLS = console
Bram Moolenaar071d4272004-06-13 20:20:40 +0000820
Bram Moolenaare828b762018-09-10 17:51:58 +0200821XDIFF_OBJ = $(OBJDIR)/xdiffi.obj \
822 $(OBJDIR)/xemit.obj \
823 $(OBJDIR)/xprepare.obj \
824 $(OBJDIR)/xutils.obj \
825 $(OBJDIR)/xhistogram.obj \
826 $(OBJDIR)/xpatience.obj
827
828XDIFF_DEPS = \
829 xdiff/xdiff.h \
830 xdiff/xdiffi.h \
831 xdiff/xemit.h \
832 xdiff/xinclude.h \
833 xdiff/xmacros.h \
834 xdiff/xprepare.h \
835 xdiff/xtypes.h \
836 xdiff/xutils.h
837
838
Bram Moolenaarce2f2e02014-08-22 18:12:57 +0200839!if "$(SUBSYSTEM_VER)" != ""
840SUBSYSTEM = $(SUBSYSTEM),$(SUBSYSTEM_VER)
Bram Moolenaar73f44392017-10-07 18:38:43 +0200841SUBSYSTEM_TOOLS = $(SUBSYSTEM_TOOLS),$(SUBSYSTEM_VER)
842# Pass SUBSYSTEM_VER to GvimExt and other tools
843MAKEFLAGS_GVIMEXT = $(MAKEFLAGS_GVIMEXT) SUBSYSTEM_VER=$(SUBSYSTEM_VER)
844MAKEFLAGS_TOOLS = $(MAKEFLAGS_TOOLS) SUBSYSTEM_VER=$(SUBSYSTEM_VER)
Bram Moolenaarce2f2e02014-08-22 18:12:57 +0200845!endif
846
Bram Moolenaarb5a7a8b2014-08-06 14:52:30 +0200847!if "$(GUI)" == "yes" && "$(DIRECTX)" == "yes"
848CFLAGS = $(CFLAGS) $(DIRECTX_DEFS)
849GUI_INCL = $(GUI_INCL) $(DIRECTX_INCL)
850GUI_OBJ = $(GUI_OBJ) $(DIRECTX_OBJ)
851!endif
852
Bram Moolenaar071d4272004-06-13 20:20:40 +0000853# iconv.dll library (dynamically loaded)
854!ifndef ICONV
855ICONV = yes
856!endif
857!if "$(ICONV)" == "yes"
858CFLAGS = $(CFLAGS) -DDYNAMIC_ICONV
859!endif
860
861# libintl.dll library
862!ifndef GETTEXT
863GETTEXT = yes
864!endif
865!if "$(GETTEXT)" == "yes"
866CFLAGS = $(CFLAGS) -DDYNAMIC_GETTEXT
867!endif
868
869# TCL interface
870!ifdef TCL
871!ifndef TCL_VER
Bram Moolenaar0eaadec2016-09-08 20:28:45 +0200872TCL_VER = 86
873TCL_VER_LONG = 8.6
Bram Moolenaar071d4272004-06-13 20:20:40 +0000874!endif
875!message Tcl requested (version $(TCL_VER)) - root dir is "$(TCL)"
876!if "$(DYNAMIC_TCL)" == "yes"
877!message Tcl DLL will be loaded dynamically
Bram Moolenaar77f74742017-08-23 22:40:41 +0200878!ifndef TCL_DLL
Bram Moolenaar071d4272004-06-13 20:20:40 +0000879TCL_DLL = tcl$(TCL_VER).dll
Bram Moolenaar77f74742017-08-23 22:40:41 +0200880!endif
Bram Moolenaarb6356332005-07-18 21:40:44 +0000881CFLAGS = $(CFLAGS) -DFEAT_TCL -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"$(TCL_DLL)\" \
882 -DDYNAMIC_TCL_VER=\"$(TCL_VER_LONG)\"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000883TCL_OBJ = $(OUTDIR)\if_tcl.obj
884TCL_INC = /I "$(TCL)\Include" /I "$(TCL)"
Bram Moolenaar84a4c332012-02-22 16:01:56 +0100885TCL_LIB = "$(TCL)\lib\tclstub$(TCL_VER).lib"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000886!else
887CFLAGS = $(CFLAGS) -DFEAT_TCL
888TCL_OBJ = $(OUTDIR)\if_tcl.obj
889TCL_INC = /I "$(TCL)\Include" /I "$(TCL)"
890TCL_LIB = $(TCL)\lib\tcl$(TCL_VER)vc.lib
891!endif
892!endif
893
Bram Moolenaar0ba04292010-07-14 23:23:17 +0200894# Lua interface
895!ifdef LUA
896!ifndef LUA_VER
Bram Moolenaar0eaadec2016-09-08 20:28:45 +0200897LUA_VER = 53
Bram Moolenaar0ba04292010-07-14 23:23:17 +0200898!endif
899!message Lua requested (version $(LUA_VER)) - root dir is "$(LUA)"
900!if "$(DYNAMIC_LUA)" == "yes"
901!message Lua DLL will be loaded dynamically
902!endif
903CFLAGS = $(CFLAGS) -DFEAT_LUA
904LUA_OBJ = $(OUTDIR)\if_lua.obj
905LUA_INC = /I "$(LUA)\include" /I "$(LUA)"
906!if "$(DYNAMIC_LUA)" == "yes"
907CFLAGS = $(CFLAGS) -DDYNAMIC_LUA \
908 -DDYNAMIC_LUA_DLL=\"lua$(LUA_VER).dll\"
909LUA_LIB = /nodefaultlib:lua$(LUA_VER).lib
910!else
911LUA_LIB = "$(LUA)\lib\lua$(LUA_VER).lib"
912!endif
913!endif
914
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +0200915!ifdef PYTHON
916!ifdef PYTHON3
917DYNAMIC_PYTHON=yes
918DYNAMIC_PYTHON3=yes
919!endif
920!endif
921
Bram Moolenaar071d4272004-06-13 20:20:40 +0000922# PYTHON interface
923!ifdef PYTHON
924!ifndef PYTHON_VER
Bram Moolenaar0eaadec2016-09-08 20:28:45 +0200925PYTHON_VER = 27
Bram Moolenaar071d4272004-06-13 20:20:40 +0000926!endif
927!message Python requested (version $(PYTHON_VER)) - root dir is "$(PYTHON)"
928!if "$(DYNAMIC_PYTHON)" == "yes"
929!message Python DLL will be loaded dynamically
930!endif
931CFLAGS = $(CFLAGS) -DFEAT_PYTHON
932PYTHON_OBJ = $(OUTDIR)\if_python.obj
933PYTHON_INC = /I "$(PYTHON)\Include" /I "$(PYTHON)\PC"
934!if "$(DYNAMIC_PYTHON)" == "yes"
Bram Moolenaarb6356332005-07-18 21:40:44 +0000935CFLAGS = $(CFLAGS) -DDYNAMIC_PYTHON \
936 -DDYNAMIC_PYTHON_DLL=\"python$(PYTHON_VER).dll\"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000937PYTHON_LIB = /nodefaultlib:python$(PYTHON_VER).lib
938!else
939PYTHON_LIB = $(PYTHON)\libs\python$(PYTHON_VER).lib
940!endif
941!endif
942
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +0200943# PYTHON3 interface
944!ifdef PYTHON3
945!ifndef PYTHON3_VER
Bram Moolenaar59eb0162017-12-10 18:17:44 +0100946PYTHON3_VER = 36
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +0200947!endif
948!message Python3 requested (version $(PYTHON3_VER)) - root dir is "$(PYTHON3)"
949!if "$(DYNAMIC_PYTHON3)" == "yes"
950!message Python3 DLL will be loaded dynamically
951!endif
952CFLAGS = $(CFLAGS) -DFEAT_PYTHON3
953PYTHON3_OBJ = $(OUTDIR)\if_python3.obj
954PYTHON3_INC = /I "$(PYTHON3)\Include" /I "$(PYTHON3)\PC"
955!if "$(DYNAMIC_PYTHON3)" == "yes"
956CFLAGS = $(CFLAGS) -DDYNAMIC_PYTHON3 \
957 -DDYNAMIC_PYTHON3_DLL=\"python$(PYTHON3_VER).dll\"
958PYTHON3_LIB = /nodefaultlib:python$(PYTHON3_VER).lib
959!else
960PYTHON3_LIB = $(PYTHON3)\libs\python$(PYTHON3_VER).lib
961!endif
962!endif
963
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000964# MzScheme interface
965!ifdef MZSCHEME
966!message MzScheme requested - root dir is "$(MZSCHEME)"
967!ifndef MZSCHEME_VER
Bram Moolenaar0eaadec2016-09-08 20:28:45 +0200968MZSCHEME_VER = 3m_a0solc
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000969!endif
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100970!ifndef MZSCHEME_COLLECTS
971MZSCHEME_COLLECTS=$(MZSCHEME)\collects
Bram Moolenaar9e70cf12009-05-26 20:59:55 +0000972!endif
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100973CFLAGS = $(CFLAGS) -DFEAT_MZSCHEME -I "$(MZSCHEME)\include"
Bram Moolenaar2d0860d2010-11-03 21:59:30 +0100974!if EXIST("$(MZSCHEME)\lib\msvc\libmzsch$(MZSCHEME_VER).lib")
975MZSCHEME_MAIN_LIB=mzsch
976!else
977MZSCHEME_MAIN_LIB=racket
978!endif
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100979!if (EXIST("$(MZSCHEME)\lib\lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll") \
980 && !EXIST("$(MZSCHEME)\lib\libmzgc$(MZSCHEME_VER).dll")) \
981 || (EXIST("$(MZSCHEME)\lib\msvc\lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).lib") \
982 && !EXIST("$(MZSCHEME)\lib\msvc\libmzgc$(MZSCHEME_VER).lib"))
Bram Moolenaar9e70cf12009-05-26 20:59:55 +0000983!message Building with Precise GC
984MZSCHEME_PRECISE_GC = yes
985CFLAGS = $(CFLAGS) -DMZ_PRECISE_GC
986!endif
Bram Moolenaaraab21c32005-01-25 21:46:35 +0000987!if "$(DYNAMIC_MZSCHEME)" == "yes"
988!message MzScheme DLLs will be loaded dynamically
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100989CFLAGS = $(CFLAGS) -DDYNAMIC_MZSCHEME
990!if "$(MZSCHEME_PRECISE_GC)" == "yes"
991# Precise GC does not use separate dll
992CFLAGS = $(CFLAGS) \
993 -DDYNAMIC_MZSCH_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\" \
994 -DDYNAMIC_MZGC_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\"
995!else
996CFLAGS = $(CFLAGS) \
997 -DDYNAMIC_MZSCH_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\" \
998 -DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\"
999!endif
Bram Moolenaaraab21c32005-01-25 21:46:35 +00001000!else
Bram Moolenaar9e70cf12009-05-26 20:59:55 +00001001!if "$(MZSCHEME_DEBUG)" == "yes"
1002CFLAGS = $(CFLAGS) -DMZSCHEME_FORCE_GC
1003!endif
1004!if "$(MZSCHEME_PRECISE_GC)" == "yes"
1005# Precise GC does not use separate dll
Bram Moolenaar4e640bd2016-01-16 16:20:38 +01001006!if EXIST("$(MZSCHEME)\lib\lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).def")
1007# create .lib from .def
1008MZSCHEME_LIB = lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).lib
1009MZSCHEME_EXTRA_DEP = lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).lib
Bram Moolenaar9e70cf12009-05-26 20:59:55 +00001010!else
Bram Moolenaar4e640bd2016-01-16 16:20:38 +01001011MZSCHEME_LIB = "$(MZSCHEME)\lib\msvc\lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).lib"
1012!endif
1013!else
1014MZSCHEME_LIB = "$(MZSCHEME)\lib\msvc\libmzgc$(MZSCHEME_VER).lib" \
1015 "$(MZSCHEME)\lib\msvc\lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).lib"
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001016!endif
Bram Moolenaar9e70cf12009-05-26 20:59:55 +00001017!endif
Bram Moolenaaraab21c32005-01-25 21:46:35 +00001018MZSCHEME_OBJ = $(OUTDIR)\if_mzsch.obj
Bram Moolenaarbbc98db2012-02-12 01:55:55 +01001019# increase stack size
1020MZSCHEME_LIB = $(MZSCHEME_LIB) /STACK:8388608
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001021MZSCHEME_INCL = if_mzsch.h
Bram Moolenaaraab21c32005-01-25 21:46:35 +00001022!endif
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001023
Bram Moolenaar071d4272004-06-13 20:20:40 +00001024# Perl interface
1025!ifdef PERL
1026!ifndef PERL_VER
Bram Moolenaar0eaadec2016-09-08 20:28:45 +02001027PERL_VER = 524
Bram Moolenaar071d4272004-06-13 20:20:40 +00001028!endif
1029!message Perl requested (version $(PERL_VER)) - root dir is "$(PERL)"
1030!if "$(DYNAMIC_PERL)" == "yes"
1031!if $(PERL_VER) >= 56
1032!message Perl DLL will be loaded dynamically
1033!else
1034!message Dynamic loading is not supported for Perl versions earlier than 5.6.0
1035!message Reverting to static loading...
1036!undef DYNAMIC_PERL
1037!endif
1038!endif
1039
1040# Is Perl installed in architecture-specific directories?
1041!if exist($(PERL)\Bin\MSWin32-x86)
1042PERL_ARCH = \MSWin32-x86
1043!endif
1044
1045PERL_INCDIR = $(PERL)\Lib$(PERL_ARCH)\Core
1046
1047# Version-dependent stuff
1048!if $(PERL_VER) == 55
1049PERL_LIB = $(PERL_INCDIR)\perl.lib
1050!else
1051PERL_DLL = perl$(PERL_VER).dll
Bram Moolenaar207fd752013-12-14 11:50:35 +01001052!if exist($(PERL_INCDIR)\perl$(PERL_VER).lib)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001053PERL_LIB = $(PERL_INCDIR)\perl$(PERL_VER).lib
Bram Moolenaar207fd752013-12-14 11:50:35 +01001054!else
1055# For ActivePerl 5.18 and later
1056PERL_LIB = $(PERL_INCDIR)\libperl$(PERL_VER).a
1057!endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00001058!endif
1059
Bram Moolenaar367fbf12015-06-25 16:13:46 +02001060CFLAGS = $(CFLAGS) -DFEAT_PERL -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
Bram Moolenaar071d4272004-06-13 20:20:40 +00001061
1062# Do we want to load Perl dynamically?
1063!if "$(DYNAMIC_PERL)" == "yes"
1064CFLAGS = $(CFLAGS) -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"$(PERL_DLL)\"
1065!undef PERL_LIB
1066!endif
1067
1068PERL_EXE = $(PERL)\Bin$(PERL_ARCH)\perl
1069PERL_INC = /I $(PERL_INCDIR)
Bram Moolenaar2bf24172015-12-31 20:54:51 +01001070!if $(MSVC_MAJOR) <= 11
1071# ActivePerl 5.20+ requires stdbool.h but VC2012 or earlier doesn't have it.
1072# Use a stub stdbool.h.
1073PERL_INC = $(PERL_INC) /I if_perl_msvc
1074!endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00001075PERL_OBJ = $(OUTDIR)\if_perl.obj $(OUTDIR)\if_perlsfio.obj
1076XSUBPP = $(PERL)\lib\ExtUtils\xsubpp
Bram Moolenaar52f83172011-09-14 19:01:42 +02001077!if exist($(XSUBPP))
Bram Moolenaar612af432011-09-14 10:49:46 +02001078XSUBPP = $(PERL_EXE) $(XSUBPP)
1079!else
1080XSUBPP = xsubpp
1081!endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00001082XSUBPP_TYPEMAP = $(PERL)\lib\ExtUtils\typemap
1083
1084!endif
1085
1086#
1087# Support Ruby interface
1088#
1089!ifdef RUBY
1090# Set default value
1091!ifndef RUBY_VER
Bram Moolenaar6384c5d2016-09-06 22:06:35 +02001092RUBY_VER = 22
Bram Moolenaar071d4272004-06-13 20:20:40 +00001093!endif
1094!ifndef RUBY_VER_LONG
Bram Moolenaar6384c5d2016-09-06 22:06:35 +02001095RUBY_VER_LONG = 2.2.0
1096!endif
1097!ifndef RUBY_API_VER_LONG
1098RUBY_API_VER_LONG = $(RUBY_VER_LONG)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001099!endif
Bram Moolenaarda3cb832012-08-02 21:21:47 +02001100!ifndef RUBY_API_VER
Bram Moolenaar6384c5d2016-09-06 22:06:35 +02001101RUBY_API_VER = $(RUBY_API_VER_LONG:.=)
Bram Moolenaarda3cb832012-08-02 21:21:47 +02001102!endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00001103
1104!if $(RUBY_VER) >= 18
Bram Moolenaar0bee2fe2016-01-07 22:45:09 +01001105
Bram Moolenaar071d4272004-06-13 20:20:40 +00001106!ifndef RUBY_PLATFORM
Bram Moolenaar0bee2fe2016-01-07 22:45:09 +01001107!if "$(CPU)" == "i386"
Bram Moolenaar071d4272004-06-13 20:20:40 +00001108RUBY_PLATFORM = i386-mswin32
Bram Moolenaar0bee2fe2016-01-07 22:45:09 +01001109!else # CPU
1110RUBY_PLATFORM = x64-mswin64
1111!endif # CPU
Bram Moolenaarf1b512a2016-09-01 20:50:54 +02001112!if $(MSVCRT_VER) >= 70 && $(RUBY_VER) > 19
Bram Moolenaar0bee2fe2016-01-07 22:45:09 +01001113RUBY_PLATFORM = $(RUBY_PLATFORM)_$(MSVCRT_VER)
1114!endif # MSVCRT_VER
1115!endif # RUBY_PLATFORM
1116
Bram Moolenaar071d4272004-06-13 20:20:40 +00001117!ifndef RUBY_INSTALL_NAME
Bram Moolenaar0bee2fe2016-01-07 22:45:09 +01001118!ifndef RUBY_MSVCRT_NAME
1119# Base name of msvcrXX.dll which is used by ruby's dll.
1120RUBY_MSVCRT_NAME = $(MSVCRT_NAME)
1121!endif # RUBY_MSVCRT_NAME
1122!if "$(CPU)" == "i386"
1123RUBY_INSTALL_NAME = $(RUBY_MSVCRT_NAME)-ruby$(RUBY_API_VER)
1124!else # CPU
1125RUBY_INSTALL_NAME = x64-$(RUBY_MSVCRT_NAME)-ruby$(RUBY_API_VER)
1126!endif # CPU
1127!endif # RUBY_INSTALL_NAME
1128
1129!else # $(RUBY_VER) >= 18
1130
Bram Moolenaar071d4272004-06-13 20:20:40 +00001131!ifndef RUBY_PLATFORM
1132RUBY_PLATFORM = i586-mswin32
1133!endif
1134!ifndef RUBY_INSTALL_NAME
Bram Moolenaarda3cb832012-08-02 21:21:47 +02001135RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_API_VER)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001136!endif
Bram Moolenaar0bee2fe2016-01-07 22:45:09 +01001137
Bram Moolenaar071d4272004-06-13 20:20:40 +00001138!endif # $(RUBY_VER) >= 18
1139
1140!message Ruby requested (version $(RUBY_VER)) - root dir is "$(RUBY)"
1141CFLAGS = $(CFLAGS) -DFEAT_RUBY
1142RUBY_OBJ = $(OUTDIR)\if_ruby.obj
Bram Moolenaarda3cb832012-08-02 21:21:47 +02001143!if $(RUBY_VER) >= 19
Bram Moolenaar76c612a2018-09-21 14:31:51 +02001144RUBY_INC = /I "$(RUBY)\include\ruby-$(RUBY_API_VER_LONG)" /I "$(RUBY)\include\ruby-$(RUBY_API_VER_LONG)\$(RUBY_PLATFORM)"
Bram Moolenaar69154f22010-07-18 21:42:34 +02001145!else
Bram Moolenaar6384c5d2016-09-06 22:06:35 +02001146RUBY_INC = /I "$(RUBY)\lib\ruby\$(RUBY_API_VER_LONG)\$(RUBY_PLATFORM)"
Bram Moolenaar69154f22010-07-18 21:42:34 +02001147!endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00001148RUBY_LIB = $(RUBY)\lib\$(RUBY_INSTALL_NAME).lib
1149# Do we want to load Ruby dynamically?
1150!if "$(DYNAMIC_RUBY)" == "yes"
1151!message Ruby DLL will be loaded dynamically
Bram Moolenaarb6356332005-07-18 21:40:44 +00001152CFLAGS = $(CFLAGS) -DDYNAMIC_RUBY -DDYNAMIC_RUBY_VER=$(RUBY_VER) \
1153 -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\"
Bram Moolenaar071d4272004-06-13 20:20:40 +00001154!undef RUBY_LIB
1155!endif
1156!endif # RUBY
1157
1158#
1159# Support PostScript printing
1160#
1161!if "$(POSTSCRIPT)" == "yes"
1162CFLAGS = $(CFLAGS) -DMSWINPS
1163!endif # POSTSCRIPT
1164
1165#
1166# FEATURES: TINY, SMALL, NORMAL, BIG or HUGE
1167#
Bram Moolenaar071d4272004-06-13 20:20:40 +00001168CFLAGS = $(CFLAGS) -DFEAT_$(FEATURES)
1169
1170#
Bram Moolenaard9d30582005-05-18 22:10:28 +00001171# Always generate the .pdb file, so that we get debug symbols that can be used
1172# on a crash (doesn't add overhead to the executable).
Bram Moolenaarf22129b2007-10-03 11:29:44 +00001173# Generate edit-and-continue debug info when no optimization - allows to
1174# debug more conveniently (able to look at variables which are in registers)
Bram Moolenaard9d30582005-05-18 22:10:28 +00001175#
Bram Moolenaarf22129b2007-10-03 11:29:44 +00001176CFLAGS = $(CFLAGS) /Fd$(OUTDIR)/ $(DEBUGINFO)
1177LINK_PDB = /PDB:$(VIM).pdb -debug
Bram Moolenaard9d30582005-05-18 22:10:28 +00001178
1179#
1180# End extra feature include
Bram Moolenaar071d4272004-06-13 20:20:40 +00001181#
1182!message
1183
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001184# CFLAGS with /Fo$(OUTDIR)/
1185CFLAGS_OUTDIR=$(CFLAGS) /Fo$(OUTDIR)/
1186
Bram Moolenaar4368d5c2018-03-26 20:55:10 +02001187# Add /opt:ref to remove unreferenced functions and data even when /DEBUG is
1188# added.
1189conflags = /nologo /subsystem:$(SUBSYSTEM) /opt:ref
Bram Moolenaar071d4272004-06-13 20:20:40 +00001190
Bram Moolenaar8b6144b2006-02-08 09:20:24 +00001191PATHDEF_SRC = $(OUTDIR)\pathdef.c
1192
Bram Moolenaar071d4272004-06-13 20:20:40 +00001193!IF "$(MAP)" == "yes"
1194# "/map" is for debugging
1195conflags = $(conflags) /map
1196!ELSEIF "$(MAP)" == "lines"
1197# "/mapinfo:lines" is for debugging, only works for VC6 and later
1198conflags = $(conflags) /map /mapinfo:lines
1199!ENDIF
1200
Bram Moolenaarf22129b2007-10-03 11:29:44 +00001201LINKARGS1 = $(linkdebug) $(conflags)
Bram Moolenaar85b11762016-02-27 18:13:23 +01001202LINKARGS2 = $(CON_LIB) $(GUI_LIB) $(NODEFAULTLIB) $(LIBC) $(OLE_LIB) user32.lib \
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +02001203 $(LUA_LIB) $(MZSCHEME_LIB) $(PERL_LIB) $(PYTHON_LIB) $(PYTHON3_LIB) $(RUBY_LIB) \
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001204 $(TCL_LIB) $(NETBEANS_LIB) $(XPM_LIB) $(LINK_PDB)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001205
Bram Moolenaarf22129b2007-10-03 11:29:44 +00001206# Report link time code generation progress if used.
1207!ifdef NODEBUG
Bram Moolenaar90f5d0a2015-12-03 22:37:21 +01001208!if $(MSVC_MAJOR) >= 8
Bram Moolenaarf22129b2007-10-03 11:29:44 +00001209!if "$(OPTIMIZE)" != "SPACE"
1210LINKARGS1 = $(LINKARGS1) /LTCG:STATUS
1211!endif
1212!endif
1213!endif
1214
Bram Moolenaar511ffdd2018-02-04 19:37:40 +01001215!if $(MSVC_MAJOR) >= 11 && "$(CPU)" == "AMD64" && "$(GUI)" == "yes"
1216# This option is required for VC2012 or later so that 64-bit gvim can
1217# accept D&D from 32-bit applications. NOTE: This disables 64-bit ASLR,
1218# therefore the security level becomes as same as VC2010.
1219LINKARGS1 = $(LINKARGS1) /HIGHENTROPYVA:NO
1220!endif
1221
Bram Moolenaar24db7292016-01-03 16:56:10 +01001222all: $(VIM).exe \
1223 vimrun.exe \
1224 install.exe \
1225 uninstal.exe \
1226 xxd/xxd.exe \
1227 tee/tee.exe \
1228 GvimExt/gvimext.dll
Bram Moolenaar071d4272004-06-13 20:20:40 +00001229
Bram Moolenaare828b762018-09-10 17:51:58 +02001230$(VIM).exe: $(OUTDIR) $(OBJ) $(XDIFF_OBJ) $(GUI_OBJ) $(CUI_OBJ) $(OLE_OBJ) $(OLE_IDL) $(MZSCHEME_OBJ) \
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +02001231 $(LUA_OBJ) $(PERL_OBJ) $(PYTHON_OBJ) $(PYTHON3_OBJ) $(RUBY_OBJ) $(TCL_OBJ) \
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001232 $(CSCOPE_OBJ) $(TERM_OBJ) $(NETBEANS_OBJ) $(CHANNEL_OBJ) $(XPM_OBJ) \
Bram Moolenaar0ba04292010-07-14 23:23:17 +02001233 version.c version.h
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001234 $(CC) $(CFLAGS_OUTDIR) version.c
Bram Moolenaare828b762018-09-10 17:51:58 +02001235 $(link) $(LINKARGS1) -out:$(VIM).exe $(OBJ) $(XDIFF_OBJ) $(GUI_OBJ) $(CUI_OBJ) $(OLE_OBJ) \
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +02001236 $(LUA_OBJ) $(MZSCHEME_OBJ) $(PERL_OBJ) $(PYTHON_OBJ) $(PYTHON3_OBJ) $(RUBY_OBJ) \
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001237 $(TCL_OBJ) $(CSCOPE_OBJ) $(TERM_OBJ) $(NETBEANS_OBJ) $(CHANNEL_OBJ) \
Bram Moolenaarb6356332005-07-18 21:40:44 +00001238 $(XPM_OBJ) $(OUTDIR)\version.obj $(LINKARGS2)
Bram Moolenaarb7776182014-05-22 16:29:06 +02001239 if exist $(VIM).exe.manifest mt.exe -nologo -manifest $(VIM).exe.manifest -updateresource:$(VIM).exe;1
Bram Moolenaar071d4272004-06-13 20:20:40 +00001240
Bram Moolenaar7d1f5db2005-07-03 21:39:27 +00001241$(VIM): $(VIM).exe
Bram Moolenaar071d4272004-06-13 20:20:40 +00001242
1243$(OUTDIR):
Bram Moolenaar1cd871b2004-12-19 22:46:22 +00001244 if not exist $(OUTDIR)/nul mkdir $(OUTDIR)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001245
1246install.exe: dosinst.c
Bram Moolenaarb6356332005-07-18 21:40:44 +00001247 $(CC) /nologo -DNDEBUG -DWIN32 dosinst.c kernel32.lib shell32.lib \
Bram Moolenaar73f44392017-10-07 18:38:43 +02001248 user32.lib ole32.lib advapi32.lib uuid.lib \
1249 -link -subsystem:$(SUBSYSTEM_TOOLS)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001250 - if exist install.exe del install.exe
1251 ren dosinst.exe install.exe
1252
1253uninstal.exe: uninstal.c
Bram Moolenaar73f44392017-10-07 18:38:43 +02001254 $(CC) /nologo -DNDEBUG -DWIN32 uninstal.c shell32.lib advapi32.lib \
1255 -link -subsystem:$(SUBSYSTEM_TOOLS)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001256
1257vimrun.exe: vimrun.c
Bram Moolenaar73f44392017-10-07 18:38:43 +02001258 $(CC) /nologo -DNDEBUG vimrun.c -link -subsystem:$(SUBSYSTEM_TOOLS)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001259
1260xxd/xxd.exe: xxd/xxd.c
1261 cd xxd
Bram Moolenaar73f44392017-10-07 18:38:43 +02001262 $(MAKE) /NOLOGO -f Make_mvc.mak $(MAKEFLAGS_TOOLS)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001263 cd ..
1264
Bram Moolenaar24db7292016-01-03 16:56:10 +01001265tee/tee.exe: tee/tee.c
1266 cd tee
Bram Moolenaar73f44392017-10-07 18:38:43 +02001267 $(MAKE) /NOLOGO -f Make_mvc.mak $(MAKEFLAGS_TOOLS)
Bram Moolenaar24db7292016-01-03 16:56:10 +01001268 cd ..
1269
Bram Moolenaar071d4272004-06-13 20:20:40 +00001270GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
1271 cd GvimExt
1272 $(MAKE) /NOLOGO -f Makefile $(MAKEFLAGS_GVIMEXT)
1273 cd ..
1274
1275
1276tags: notags
Bram Moolenaar6dc67032018-12-19 21:05:57 +01001277 $(CTAGS) $(TAGS_FILES)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001278
1279notags:
1280 - if exist tags del tags
1281
1282clean:
Bram Moolenaar02743632005-07-25 20:42:36 +00001283 - if exist $(OUTDIR)/nul $(DEL_TREE) $(OUTDIR)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001284 - if exist *.obj del *.obj
1285 - if exist $(VIM).exe del $(VIM).exe
1286 - if exist $(VIM).ilk del $(VIM).ilk
1287 - if exist $(VIM).pdb del $(VIM).pdb
1288 - if exist $(VIM).map del $(VIM).map
1289 - if exist $(VIM).ncb del $(VIM).ncb
1290 - if exist vimrun.exe del vimrun.exe
1291 - if exist install.exe del install.exe
1292 - if exist uninstal.exe del uninstal.exe
1293 - if exist if_perl.c del if_perl.c
Bram Moolenaara16bc542018-10-14 16:25:10 +02001294 - if exist auto\if_perl.c del auto\if_perl.c
Bram Moolenaar071d4272004-06-13 20:20:40 +00001295 - if exist dimm.h del dimm.h
1296 - if exist dimm_i.c del dimm_i.c
1297 - if exist dimm.tlb del dimm.tlb
1298 - if exist dosinst.exe del dosinst.exe
1299 cd xxd
1300 $(MAKE) /NOLOGO -f Make_mvc.mak clean
1301 cd ..
Bram Moolenaard08a8d42016-01-10 15:20:29 +01001302 cd tee
1303 $(MAKE) /NOLOGO -f Make_mvc.mak clean
1304 cd ..
Bram Moolenaar071d4272004-06-13 20:20:40 +00001305 cd GvimExt
1306 $(MAKE) /NOLOGO -f Makefile clean
1307 cd ..
Bram Moolenaar071d4272004-06-13 20:20:40 +00001308 - if exist testdir\*.out del testdir\*.out
1309
1310test:
1311 cd testdir
1312 $(MAKE) /NOLOGO -f Make_dos.mak win32
1313 cd ..
1314
Bram Moolenaar7eae47a2016-01-01 17:49:44 +01001315testgvim:
1316 cd testdir
1317 $(MAKE) /NOLOGO -f Make_dos.mak VIMPROG=..\gvim win32
1318 cd ..
1319
Bram Moolenaar34114692005-01-02 11:28:13 +00001320testclean:
1321 cd testdir
1322 $(MAKE) /NOLOGO -f Make_dos.mak clean
1323 cd ..
1324
Bram Moolenaarf3dc2352018-07-04 23:05:34 +02001325$(NEW_TESTS):
1326 cd testdir
1327 - if exist $@.res del $@.res
1328 $(MAKE) /NOLOGO -f Make_dos.mak nolog
1329 $(MAKE) /NOLOGO -f Make_dos.mak $@.res
1330 $(MAKE) /NOLOGO -f Make_dos.mak report
Bram Moolenaard3471e52018-11-12 21:42:24 +01001331 type messages
Bram Moolenaarf3dc2352018-07-04 23:05:34 +02001332 cd ..
1333
Bram Moolenaar071d4272004-06-13 20:20:40 +00001334###########################################################################
1335
1336# Create a default rule for transforming .c files to .obj files in $(OUTDIR)
1337# Batch compilation is supported by nmake 1.62 (part of VS 5.0) and later)
Bram Moolenaar90f5d0a2015-12-03 22:37:21 +01001338!IF "$(_NMAKE_VER)" == ""
Bram Moolenaar071d4272004-06-13 20:20:40 +00001339.c{$(OUTDIR)/}.obj:
1340!ELSE
1341.c{$(OUTDIR)/}.obj::
1342!ENDIF
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001343 $(CC) $(CFLAGS_OUTDIR) $<
Bram Moolenaar071d4272004-06-13 20:20:40 +00001344
1345# Create a default rule for transforming .cpp files to .obj files in $(OUTDIR)
1346# Batch compilation is supported by nmake 1.62 (part of VS 5.0) and later)
Bram Moolenaar90f5d0a2015-12-03 22:37:21 +01001347!IF "$(_NMAKE_VER)" == ""
Bram Moolenaar071d4272004-06-13 20:20:40 +00001348.cpp{$(OUTDIR)/}.obj:
1349!ELSE
1350.cpp{$(OUTDIR)/}.obj::
1351!ENDIF
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001352 $(CC) $(CFLAGS_OUTDIR) $<
Bram Moolenaar071d4272004-06-13 20:20:40 +00001353
Bram Moolenaar75464dc2016-07-02 20:27:50 +02001354$(OUTDIR)/arabic.obj: $(OUTDIR) arabic.c $(INCL)
1355
Bram Moolenaar3e460fd2019-01-26 16:21:07 +01001356$(OUTDIR)/autocmd.obj: $(OUTDIR) autocmd.c $(INCL)
1357
Bram Moolenaarc3719bd2017-11-18 22:13:31 +01001358$(OUTDIR)/beval.obj: $(OUTDIR) beval.c $(INCL)
1359
Bram Moolenaar6e5ea8d2019-01-12 22:47:31 +01001360$(OUTDIR)/blob.obj: $(OUTDIR) blob.c $(INCL)
1361
Bram Moolenaar40e6a712010-05-16 22:32:54 +02001362$(OUTDIR)/blowfish.obj: $(OUTDIR) blowfish.c $(INCL)
1363
Bram Moolenaaredac1852010-05-18 20:34:20 +02001364$(OUTDIR)/buffer.obj: $(OUTDIR) buffer.c $(INCL)
Bram Moolenaar40e6a712010-05-16 22:32:54 +02001365
Bram Moolenaar071d4272004-06-13 20:20:40 +00001366$(OUTDIR)/charset.obj: $(OUTDIR) charset.c $(INCL)
1367
Bram Moolenaar07cf3822014-08-10 16:31:50 +02001368$(OUTDIR)/crypt.obj: $(OUTDIR) crypt.c $(INCL)
1369
1370$(OUTDIR)/crypt_zip.obj: $(OUTDIR) crypt_zip.c $(INCL)
1371
Bram Moolenaareead75c2019-04-21 11:35:00 +02001372$(OUTDIR)/debugger.obj: $(OUTDIR) debugger.c $(INCL)
1373
Bram Moolenaara9093fe2016-07-17 19:02:16 +02001374$(OUTDIR)/dict.obj: $(OUTDIR) dict.c $(INCL)
Bram Moolenaar6583c442016-07-17 18:41:47 +02001375
Bram Moolenaar071d4272004-06-13 20:20:40 +00001376$(OUTDIR)/diff.obj: $(OUTDIR) diff.c $(INCL)
1377
Bram Moolenaare828b762018-09-10 17:51:58 +02001378$(OUTDIR)/xdiffi.obj: $(OUTDIR) xdiff/xdiffi.c $(XDIFF_DEPS)
1379 $(CC) $(CFLAGS_OUTDIR) xdiff/xdiffi.c
1380
1381$(OUTDIR)/xemit.obj: $(OUTDIR) xdiff/xemit.c $(XDIFF_DEPS)
1382 $(CC) $(CFLAGS_OUTDIR) xdiff/xemit.c
1383
1384$(OUTDIR)/xprepare.obj: $(OUTDIR) xdiff/xprepare.c $(XDIFF_DEPS)
1385 $(CC) $(CFLAGS_OUTDIR) xdiff/xprepare.c
1386
1387$(OUTDIR)/xutils.obj: $(OUTDIR) xdiff/xutils.c $(XDIFF_DEPS)
1388 $(CC) $(CFLAGS_OUTDIR) xdiff/xutils.c
1389
1390$(OUTDIR)/xhistogram.obj: $(OUTDIR) xdiff/xhistogram.c $(XDIFF_DEPS)
1391 $(CC) $(CFLAGS_OUTDIR) xdiff/xhistogram.c
1392
1393$(OUTDIR)/xpatience.obj: $(OUTDIR) xdiff/xpatience.c $(XDIFF_DEPS)
1394 $(CC) $(CFLAGS_OUTDIR) xdiff/xpatience.c
1395
Bram Moolenaar071d4272004-06-13 20:20:40 +00001396$(OUTDIR)/digraph.obj: $(OUTDIR) digraph.c $(INCL)
1397
1398$(OUTDIR)/edit.obj: $(OUTDIR) edit.c $(INCL)
1399
1400$(OUTDIR)/eval.obj: $(OUTDIR) eval.c $(INCL)
1401
Bram Moolenaar73dad1e2016-07-17 22:13:49 +02001402$(OUTDIR)/evalfunc.obj: $(OUTDIR) evalfunc.c $(INCL)
1403
Bram Moolenaar071d4272004-06-13 20:20:40 +00001404$(OUTDIR)/ex_cmds.obj: $(OUTDIR) ex_cmds.c $(INCL)
1405
1406$(OUTDIR)/ex_cmds2.obj: $(OUTDIR) ex_cmds2.c $(INCL)
1407
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001408$(OUTDIR)/ex_docmd.obj: $(OUTDIR) ex_docmd.c $(INCL)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001409
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001410$(OUTDIR)/ex_eval.obj: $(OUTDIR) ex_eval.c $(INCL)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001411
1412$(OUTDIR)/ex_getln.obj: $(OUTDIR) ex_getln.c $(INCL)
1413
1414$(OUTDIR)/fileio.obj: $(OUTDIR) fileio.c $(INCL)
1415
Bram Moolenaar5fd0f502019-02-13 23:13:28 +01001416$(OUTDIR)/findfile.obj: $(OUTDIR) findfile.c $(INCL)
1417
Bram Moolenaar071d4272004-06-13 20:20:40 +00001418$(OUTDIR)/fold.obj: $(OUTDIR) fold.c $(INCL)
1419
1420$(OUTDIR)/getchar.obj: $(OUTDIR) getchar.c $(INCL)
1421
Bram Moolenaar58d98232005-07-23 22:25:46 +00001422$(OUTDIR)/hardcopy.obj: $(OUTDIR) hardcopy.c $(INCL)
1423
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001424$(OUTDIR)/hashtab.obj: $(OUTDIR) hashtab.c $(INCL)
Bram Moolenaar383f9bc2005-01-19 22:18:32 +00001425
Bram Moolenaar4b471622019-01-31 13:48:09 +01001426$(OUTDIR)/indent.obj: $(OUTDIR) indent.c $(INCL)
1427
Bram Moolenaar7591bb32019-03-30 13:53:47 +01001428$(OUTDIR)/insexpand.obj: $(OUTDIR) insexpand.c $(INCL)
1429
Bram Moolenaar071d4272004-06-13 20:20:40 +00001430$(OUTDIR)/gui.obj: $(OUTDIR) gui.c $(INCL) $(GUI_INCL)
1431
Bram Moolenaar52b4b552005-03-07 23:00:57 +00001432$(OUTDIR)/gui_beval.obj: $(OUTDIR) gui_beval.c $(INCL) $(GUI_INCL)
1433
Bram Moolenaarcf7164a2016-02-20 13:55:06 +01001434$(OUTDIR)/gui_w32.obj: $(OUTDIR) gui_w32.c $(INCL) $(GUI_INCL)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001435
Bram Moolenaarb5a7a8b2014-08-06 14:52:30 +02001436$(OUTDIR)/gui_dwrite.obj: $(OUTDIR) gui_dwrite.cpp $(INCL) $(GUI_INCL)
1437
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001438$(OUTDIR)/if_cscope.obj: $(OUTDIR) if_cscope.c $(INCL) if_cscope.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00001439
Bram Moolenaar0ba04292010-07-14 23:23:17 +02001440$(OUTDIR)/if_lua.obj: $(OUTDIR) if_lua.c $(INCL)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001441 $(CC) $(CFLAGS_OUTDIR) $(LUA_INC) if_lua.c
Bram Moolenaar0ba04292010-07-14 23:23:17 +02001442
Bram Moolenaara16bc542018-10-14 16:25:10 +02001443auto/if_perl.c : if_perl.xs typemap
Bram Moolenaar612af432011-09-14 10:49:46 +02001444 $(XSUBPP) -prototypes -typemap $(XSUBPP_TYPEMAP) \
Bram Moolenaara16bc542018-10-14 16:25:10 +02001445 -typemap typemap if_perl.xs -output $@
Bram Moolenaar071d4272004-06-13 20:20:40 +00001446
Bram Moolenaara16bc542018-10-14 16:25:10 +02001447$(OUTDIR)/if_perl.obj: $(OUTDIR) auto/if_perl.c $(INCL)
1448 $(CC) $(CFLAGS_OUTDIR) $(PERL_INC) auto/if_perl.c
Bram Moolenaar071d4272004-06-13 20:20:40 +00001449
1450$(OUTDIR)/if_perlsfio.obj: $(OUTDIR) if_perlsfio.c $(INCL)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001451 $(CC) $(CFLAGS_OUTDIR) $(PERL_INC) if_perlsfio.c
Bram Moolenaar071d4272004-06-13 20:20:40 +00001452
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001453$(OUTDIR)/if_mzsch.obj: $(OUTDIR) if_mzsch.c $(MZSCHEME_INCL) $(INCL) $(MZSCHEME_EXTRA_DEP)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001454 $(CC) $(CFLAGS_OUTDIR) if_mzsch.c \
Bram Moolenaar4e640bd2016-01-16 16:20:38 +01001455 -DMZSCHEME_COLLECTS="\"$(MZSCHEME_COLLECTS:\=\\)\""
1456
1457lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).lib:
1458 lib /DEF:"$(MZSCHEME)\lib\lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).def"
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001459
Bram Moolenaardd9a4a42013-06-03 20:12:51 +02001460$(OUTDIR)/if_python.obj: $(OUTDIR) if_python.c if_py_both.h $(INCL)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001461 $(CC) $(CFLAGS_OUTDIR) $(PYTHON_INC) if_python.c
Bram Moolenaar071d4272004-06-13 20:20:40 +00001462
Bram Moolenaardd9a4a42013-06-03 20:12:51 +02001463$(OUTDIR)/if_python3.obj: $(OUTDIR) if_python3.c if_py_both.h $(INCL)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001464 $(CC) $(CFLAGS_OUTDIR) $(PYTHON3_INC) if_python3.c
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +02001465
Bram Moolenaar071d4272004-06-13 20:20:40 +00001466$(OUTDIR)/if_ole.obj: $(OUTDIR) if_ole.cpp $(INCL) if_ole.h
1467
1468$(OUTDIR)/if_ruby.obj: $(OUTDIR) if_ruby.c $(INCL)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001469 $(CC) $(CFLAGS_OUTDIR) $(RUBY_INC) if_ruby.c
Bram Moolenaar071d4272004-06-13 20:20:40 +00001470
Bram Moolenaar071d4272004-06-13 20:20:40 +00001471$(OUTDIR)/if_tcl.obj: $(OUTDIR) if_tcl.c $(INCL)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001472 $(CC) $(CFLAGS_OUTDIR) $(TCL_INC) if_tcl.c
Bram Moolenaar071d4272004-06-13 20:20:40 +00001473
Bram Moolenaar97ff9b92016-06-26 20:37:46 +02001474$(OUTDIR)/iscygpty.obj: $(OUTDIR) iscygpty.c $(CUI_INCL)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001475 $(CC) $(CFLAGS_OUTDIR) iscygpty.c -D_WIN32_WINNT=0x0600 -DUSE_DYNFILEID -DENABLE_STUB_IMPL
Bram Moolenaar97ff9b92016-06-26 20:37:46 +02001476
Bram Moolenaar520e1e42016-01-23 19:46:28 +01001477$(OUTDIR)/json.obj: $(OUTDIR) json.c $(INCL)
1478
Bram Moolenaar6583c442016-07-17 18:41:47 +02001479$(OUTDIR)/list.obj: $(OUTDIR) list.c $(INCL)
1480
Bram Moolenaar97ff9b92016-06-26 20:37:46 +02001481$(OUTDIR)/main.obj: $(OUTDIR) main.c $(INCL) $(CUI_INCL)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001482
1483$(OUTDIR)/mark.obj: $(OUTDIR) mark.c $(INCL)
1484
1485$(OUTDIR)/memfile.obj: $(OUTDIR) memfile.c $(INCL)
1486
1487$(OUTDIR)/memline.obj: $(OUTDIR) memline.c $(INCL)
1488
1489$(OUTDIR)/menu.obj: $(OUTDIR) menu.c $(INCL)
1490
1491$(OUTDIR)/message.obj: $(OUTDIR) message.c $(INCL)
1492
1493$(OUTDIR)/misc1.obj: $(OUTDIR) misc1.c $(INCL)
1494
1495$(OUTDIR)/misc2.obj: $(OUTDIR) misc2.c $(INCL)
1496
1497$(OUTDIR)/move.obj: $(OUTDIR) move.c $(INCL)
1498
1499$(OUTDIR)/mbyte.obj: $(OUTDIR) mbyte.c $(INCL)
1500
1501$(OUTDIR)/netbeans.obj: $(OUTDIR) netbeans.c $(NBDEBUG_SRC) $(INCL)
1502
Bram Moolenaare0874f82016-01-24 20:36:41 +01001503$(OUTDIR)/channel.obj: $(OUTDIR) channel.c $(INCL)
1504
Bram Moolenaar071d4272004-06-13 20:20:40 +00001505$(OUTDIR)/normal.obj: $(OUTDIR) normal.c $(INCL)
1506
1507$(OUTDIR)/option.obj: $(OUTDIR) option.c $(INCL)
1508
1509$(OUTDIR)/ops.obj: $(OUTDIR) ops.c $(INCL)
1510
1511$(OUTDIR)/os_mswin.obj: $(OUTDIR) os_mswin.c $(INCL)
1512
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001513$(OUTDIR)/terminal.obj: $(OUTDIR) terminal.c $(INCL) $(TERM_DEPS)
Bram Moolenaar4fc63502017-07-19 11:28:17 +02001514
Bram Moolenaar693e40c2013-02-26 14:56:42 +01001515$(OUTDIR)/winclip.obj: $(OUTDIR) winclip.c $(INCL)
1516
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001517$(OUTDIR)/os_win32.obj: $(OUTDIR) os_win32.c $(INCL) $(MZSCHEME_INCL)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001518
1519$(OUTDIR)/os_w32exe.obj: $(OUTDIR) os_w32exe.c $(INCL)
1520
Bram Moolenaar8b6144b2006-02-08 09:20:24 +00001521$(OUTDIR)/pathdef.obj: $(OUTDIR) $(PATHDEF_SRC) $(INCL)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001522 $(CC) $(CFLAGS_OUTDIR) $(PATHDEF_SRC)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001523
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001524$(OUTDIR)/popupmnu.obj: $(OUTDIR) popupmnu.c $(INCL)
Bram Moolenaarbb15b652005-10-03 21:52:09 +00001525
Bram Moolenaar071d4272004-06-13 20:20:40 +00001526$(OUTDIR)/quickfix.obj: $(OUTDIR) quickfix.c $(INCL)
1527
Bram Moolenaarfbc0d2e2013-05-19 19:40:29 +02001528$(OUTDIR)/regexp.obj: $(OUTDIR) regexp.c regexp_nfa.c $(INCL)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001529
1530$(OUTDIR)/screen.obj: $(OUTDIR) screen.c $(INCL)
1531
1532$(OUTDIR)/search.obj: $(OUTDIR) search.c $(INCL)
1533
Bram Moolenaaredac1852010-05-18 20:34:20 +02001534$(OUTDIR)/sha256.obj: $(OUTDIR) sha256.c $(INCL)
1535
Bram Moolenaarbbea4702019-01-01 13:20:31 +01001536$(OUTDIR)/sign.obj: $(OUTDIR) sign.c $(INCL)
1537
Bram Moolenaar2e4096b2005-03-20 22:25:45 +00001538$(OUTDIR)/spell.obj: $(OUTDIR) spell.c $(INCL)
1539
Bram Moolenaar9ccfebd2016-07-19 16:39:08 +02001540$(OUTDIR)/spellfile.obj: $(OUTDIR) spellfile.c $(INCL)
1541
Bram Moolenaar071d4272004-06-13 20:20:40 +00001542$(OUTDIR)/syntax.obj: $(OUTDIR) syntax.c $(INCL)
1543
1544$(OUTDIR)/tag.obj: $(OUTDIR) tag.c $(INCL)
1545
1546$(OUTDIR)/term.obj: $(OUTDIR) term.c $(INCL)
1547
Bram Moolenaar98aefe72018-12-13 22:20:09 +01001548$(OUTDIR)/textprop.obj: $(OUTDIR) textprop.c $(INCL)
1549
Bram Moolenaar071d4272004-06-13 20:20:40 +00001550$(OUTDIR)/ui.obj: $(OUTDIR) ui.c $(INCL)
1551
1552$(OUTDIR)/undo.obj: $(OUTDIR) undo.c $(INCL)
1553
Bram Moolenaarac9fb182019-04-27 13:04:13 +02001554$(OUTDIR)/usercmd.obj: $(OUTDIR) usercmd.c $(INCL)
1555
Bram Moolenaar6583c442016-07-17 18:41:47 +02001556$(OUTDIR)/userfunc.obj: $(OUTDIR) userfunc.c $(INCL)
1557
Bram Moolenaar071d4272004-06-13 20:20:40 +00001558$(OUTDIR)/window.obj: $(OUTDIR) window.c $(INCL)
1559
1560$(OUTDIR)/xpm_w32.obj: $(OUTDIR) xpm_w32.c
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001561 $(CC) $(CFLAGS_OUTDIR) $(XPM_INC) xpm_w32.c
Bram Moolenaar071d4272004-06-13 20:20:40 +00001562
Bram Moolenaarcc448b32010-07-14 16:52:17 +02001563$(OUTDIR)/vim.res: $(OUTDIR) vim.rc gvim.exe.mnf version.h tools.bmp \
1564 tearoff.bmp vim.ico vim_error.ico \
1565 vim_alert.ico vim_info.ico vim_quest.ico
Bram Moolenaarbc073092016-02-02 18:50:45 +01001566 $(RC) /nologo /l 0x409 /Fo$(OUTDIR)/vim.res $(RCFLAGS) vim.rc
Bram Moolenaar071d4272004-06-13 20:20:40 +00001567
Bram Moolenaar7d1f5db2005-07-03 21:39:27 +00001568iid_ole.c if_ole.h vim.tlb: if_ole.idl
Bram Moolenaarb6356332005-07-18 21:40:44 +00001569 midl /nologo /error none /proxy nul /iid iid_ole.c /tlb vim.tlb \
1570 /header if_ole.h if_ole.idl
Bram Moolenaar071d4272004-06-13 20:20:40 +00001571
1572dimm.h dimm_i.c: dimm.idl
Bram Moolenaar7d1f5db2005-07-03 21:39:27 +00001573 midl /nologo /error none /proxy nul dimm.idl
Bram Moolenaar071d4272004-06-13 20:20:40 +00001574
1575$(OUTDIR)/dimm_i.obj: $(OUTDIR) dimm_i.c $(INCL)
1576
1577$(OUTDIR)/glbl_ime.obj: $(OUTDIR) glbl_ime.cpp dimm.h $(INCL)
1578
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001579
Bram Moolenaar6d0826d2017-08-22 22:12:17 +02001580CCCTERM = $(CC) $(CFLAGS) -Ilibvterm/include -DINLINE="" \
1581 -DVSNPRINTF=vim_vsnprintf \
1582 -DIS_COMBINING_FUNCTION=utf_iscomposing_uint \
1583 -DWCWIDTH_FUNCTION=utf_uint2cells \
1584 -D_CRT_SECURE_NO_WARNINGS
1585
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001586$(OUTDIR)/encoding.obj: $(OUTDIR) libvterm/src/encoding.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001587 $(CCCTERM) -Fo$@ libvterm/src/encoding.c
1588
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001589$(OUTDIR)/keyboard.obj: $(OUTDIR) libvterm/src/keyboard.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001590 $(CCCTERM) -Fo$@ libvterm/src/keyboard.c
1591
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001592$(OUTDIR)/mouse.obj: $(OUTDIR) libvterm/src/mouse.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001593 $(CCCTERM) -Fo$@ libvterm/src/mouse.c
1594
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001595$(OUTDIR)/parser.obj: $(OUTDIR) libvterm/src/parser.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001596 $(CCCTERM) -Fo$@ libvterm/src/parser.c
1597
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001598$(OUTDIR)/pen.obj: $(OUTDIR) libvterm/src/pen.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001599 $(CCCTERM) -Fo$@ libvterm/src/pen.c
1600
Bram Moolenaara2140792018-09-13 18:05:48 +02001601$(OUTDIR)/termscreen.obj: $(OUTDIR) libvterm/src/termscreen.c $(TERM_DEPS)
1602 $(CCCTERM) -Fo$@ libvterm/src/termscreen.c
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001603
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001604$(OUTDIR)/state.obj: $(OUTDIR) libvterm/src/state.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001605 $(CCCTERM) -Fo$@ libvterm/src/state.c
1606
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001607$(OUTDIR)/unicode.obj: $(OUTDIR) libvterm/src/unicode.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001608 $(CCCTERM) -Fo$@ libvterm/src/unicode.c
1609
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001610$(OUTDIR)/vterm.obj: $(OUTDIR) libvterm/src/vterm.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001611 $(CCCTERM) -Fo$@ libvterm/src/vterm.c
1612
1613
Bram Moolenaar89cb5e02004-07-19 20:55:54 +00001614# $CFLAGS may contain backslashes and double quotes, escape them both.
1615E0_CFLAGS = $(CFLAGS:\=\\)
1616E_CFLAGS = $(E0_CFLAGS:"=\")
Bram Moolenaar77f66d62007-02-20 02:16:18 +00001617# ") stop the string
Bram Moolenaarc30846f2011-02-15 18:06:15 +01001618# $LINKARGS2 may contain backslashes and double quotes, escape them both.
1619E0_LINKARGS2 = $(LINKARGS2:\=\\)
1620E_LINKARGS2 = $(E0_LINKARGS2:"=\")
1621# ") stop the string
Bram Moolenaar89cb5e02004-07-19 20:55:54 +00001622
Bram Moolenaar8b6144b2006-02-08 09:20:24 +00001623$(PATHDEF_SRC): auto
1624 @echo creating $(PATHDEF_SRC)
1625 @echo /* pathdef.c */ > $(PATHDEF_SRC)
1626 @echo #include "vim.h" >> $(PATHDEF_SRC)
1627 @echo char_u *default_vim_dir = (char_u *)"$(VIMRCLOC:\=\\)"; >> $(PATHDEF_SRC)
1628 @echo char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR:\=\\)"; >> $(PATHDEF_SRC)
1629 @echo char_u *all_cflags = (char_u *)"$(CC:\=\\) $(E_CFLAGS)"; >> $(PATHDEF_SRC)
Bram Moolenaarc30846f2011-02-15 18:06:15 +01001630 @echo char_u *all_lflags = (char_u *)"$(link:\=\\) $(LINKARGS1:\=\\) $(E_LINKARGS2)"; >> $(PATHDEF_SRC)
Bram Moolenaar8b6144b2006-02-08 09:20:24 +00001631 @echo char_u *compiled_user = (char_u *)"$(USERNAME)"; >> $(PATHDEF_SRC)
1632 @echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> $(PATHDEF_SRC)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001633
1634auto:
1635 if not exist auto/nul mkdir auto
1636
1637# End Custom Build
1638proto.h: \
Bram Moolenaar75464dc2016-07-02 20:27:50 +02001639 proto/arabic.pro \
Bram Moolenaar3e460fd2019-01-26 16:21:07 +01001640 proto/autocmd.pro \
Bram Moolenaar6e5ea8d2019-01-12 22:47:31 +01001641 proto/blob.pro \
Bram Moolenaar40e6a712010-05-16 22:32:54 +02001642 proto/blowfish.pro \
Bram Moolenaar071d4272004-06-13 20:20:40 +00001643 proto/buffer.pro \
1644 proto/charset.pro \
Bram Moolenaar07cf3822014-08-10 16:31:50 +02001645 proto/crypt.pro \
1646 proto/crypt_zip.pro \
Bram Moolenaareead75c2019-04-21 11:35:00 +02001647 proto/debugger.pro \
Bram Moolenaar6583c442016-07-17 18:41:47 +02001648 proto/dict.pro \
Bram Moolenaar071d4272004-06-13 20:20:40 +00001649 proto/diff.pro \
1650 proto/digraph.pro \
1651 proto/edit.pro \
1652 proto/eval.pro \
Bram Moolenaar73dad1e2016-07-17 22:13:49 +02001653 proto/evalfunc.pro \
Bram Moolenaar071d4272004-06-13 20:20:40 +00001654 proto/ex_cmds.pro \
1655 proto/ex_cmds2.pro \
1656 proto/ex_docmd.pro \
1657 proto/ex_eval.pro \
1658 proto/ex_getln.pro \
1659 proto/fileio.pro \
Bram Moolenaar5fd0f502019-02-13 23:13:28 +01001660 proto/findfile.pro \
Bram Moolenaar071d4272004-06-13 20:20:40 +00001661 proto/getchar.pro \
Bram Moolenaar58d98232005-07-23 22:25:46 +00001662 proto/hardcopy.pro \
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001663 proto/hashtab.pro \
Bram Moolenaar4b471622019-01-31 13:48:09 +01001664 proto/indent.pro \
Bram Moolenaar7591bb32019-03-30 13:53:47 +01001665 proto/insexpand.pro \
Bram Moolenaar520e1e42016-01-23 19:46:28 +01001666 proto/json.pro \
Bram Moolenaar6583c442016-07-17 18:41:47 +02001667 proto/list.pro \
Bram Moolenaar071d4272004-06-13 20:20:40 +00001668 proto/main.pro \
1669 proto/mark.pro \
1670 proto/memfile.pro \
1671 proto/memline.pro \
1672 proto/menu.pro \
1673 proto/message.pro \
1674 proto/misc1.pro \
1675 proto/misc2.pro \
1676 proto/move.pro \
1677 proto/mbyte.pro \
1678 proto/normal.pro \
1679 proto/ops.pro \
1680 proto/option.pro \
1681 proto/os_mswin.pro \
Bram Moolenaar693e40c2013-02-26 14:56:42 +01001682 proto/winclip.pro \
Bram Moolenaar071d4272004-06-13 20:20:40 +00001683 proto/os_win32.pro \
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001684 proto/popupmnu.pro \
Bram Moolenaar071d4272004-06-13 20:20:40 +00001685 proto/quickfix.pro \
1686 proto/regexp.pro \
1687 proto/screen.pro \
1688 proto/search.pro \
Bram Moolenaar40e6a712010-05-16 22:32:54 +02001689 proto/sha256.pro \
Bram Moolenaarbbea4702019-01-01 13:20:31 +01001690 proto/sign.pro \
Bram Moolenaar2e4096b2005-03-20 22:25:45 +00001691 proto/spell.pro \
Bram Moolenaar9ccfebd2016-07-19 16:39:08 +02001692 proto/spellfile.pro \
Bram Moolenaar071d4272004-06-13 20:20:40 +00001693 proto/syntax.pro \
1694 proto/tag.pro \
1695 proto/term.pro \
Bram Moolenaar98aefe72018-12-13 22:20:09 +01001696 proto/textprop.pro \
Bram Moolenaar071d4272004-06-13 20:20:40 +00001697 proto/ui.pro \
1698 proto/undo.pro \
Bram Moolenaarac9fb182019-04-27 13:04:13 +02001699 proto/usercmd.pro \
Bram Moolenaar6583c442016-07-17 18:41:47 +02001700 proto/userfunc.pro \
Bram Moolenaar071d4272004-06-13 20:20:40 +00001701 proto/window.pro \
Bram Moolenaare0874f82016-01-24 20:36:41 +01001702 $(NETBEANS_PRO) \
1703 $(CHANNEL_PRO)
Bram Moolenaar071d4272004-06-13 20:20:40 +00001704
Bram Moolenaarf193fff2006-04-27 00:02:13 +00001705.SUFFIXES: .cod .i
Bram Moolenaar551dbcc2006-04-25 22:13:59 +00001706
1707# Generate foo.cod (mixed source and assembly listing) from foo.c via "nmake
1708# foo.cod"
1709.c.cod:
1710 $(CC) $(CFLAGS) /FAcs $<
1711
1712# Generate foo.i (preprocessor listing) from foo.c via "nmake foo.i"
1713.c.i:
1714 $(CC) $(CFLAGS) /P /C $<
Bram Moolenaar362e1a32006-03-06 23:29:24 +00001715
Bram Moolenaar071d4272004-06-13 20:20:40 +00001716# vim: set noet sw=8 ts=8 sts=0 wm=0 tw=0: