blob: 1f62d86ee808491828e2e32cb49d67181ed0bb42 [file] [log] [blame]
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001# Makefile for VIM on Win32 (Cygwin and MinGW)
2#
3# This file contains common part for Cygwin and MinGW and it is included
4# from Make_cyg.mak and Make_ming.mak.
5#
6# Info at http://www.mingw.org
7# Alternative x86 and 64-builds: http://mingw-w64.sourceforge.net
8# Also requires GNU make, which you can download from the same sites.
9# Get missing libraries from http://gnuwin32.sf.net.
10#
11# Tested on Win32 NT 4 and Win95.
12#
13# To make everything, just 'make -f Make_ming.mak'.
14# To make just e.g. gvim.exe, 'make -f Make_ming.mak gvim.exe'.
15# After a run, you can 'make -f Make_ming.mak clean' to clean up.
16#
17# NOTE: Sometimes 'GNU Make' will stop after building vimrun.exe -- I think
18# it's just run out of memory or something. Run again, and it will continue
19# with 'xxd'.
20#
21# "make upx" makes *compressed* versions of the 32 bit GUI and console EXEs,
22# using the excellent UPX compressor:
Bram Moolenaar43cb6262018-03-14 21:39:02 +010023# https://upx.github.io/
Bram Moolenaar4f7e8212014-11-05 13:53:32 +010024# "make mpress" uses the MPRESS compressor for 32- and 64-bit EXEs:
25# http://www.matcode.com/mpress.htm
26#
27# Maintained by Ron Aaron <ronaharon@yahoo.com> et al.
28# Updated 2014 Oct 13.
29
30#>>>>> choose options:
Bram Moolenaar4f7e8212014-11-05 13:53:32 +010031# FEATURES=[TINY | SMALL | NORMAL | BIG | HUGE]
32# Set to TINY to make minimal version (few features).
Bram Moolenaare5f2be62016-01-21 20:24:34 +010033FEATURES=HUGE
Bram Moolenaarcccd62d2018-04-12 20:23:48 +020034
35# set to yes for a debug build
36DEBUG=no
37
Bram Moolenaar4ff42902018-09-21 14:43:10 +020038# set to yes to create a mapfile
39# MAP=yes
40
Bram Moolenaarcccd62d2018-04-12 20:23:48 +020041# set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization
42OPTIMIZE=MAXSPEED
43
44# set to yes to make gvim, no for vim
45GUI=yes
46
47# set to no if you do not want to use DirectWrite (DirectX)
48# MinGW-w64 is needed, and ARCH should be set to i686 or x86-64.
49DIRECTX=yes
50
51# Disable Color emoji support
52# (default is yes if DIRECTX=yes, requires WinSDK 8.1 or later.)
53#COLOR_EMOJI=no
54
Bram Moolenaar4f7e8212014-11-05 13:53:32 +010055# Set to one of i386, i486, i586, i686 as the minimum target processor.
56# For amd64/x64 architecture set ARCH=x86-64 .
Bram Moolenaare0485392016-07-12 21:17:03 +020057# If not set, it will be automatically detected. (Normally i686 or x86-64.)
58#ARCH=i686
Bram Moolenaar4f7e8212014-11-05 13:53:32 +010059# Set to yes to cross-compile from unix; no=native Windows (and Cygwin).
60CROSS=no
Bram Moolenaarcccd62d2018-04-12 20:23:48 +020061
Bram Moolenaar4f7e8212014-11-05 13:53:32 +010062# Set to path to iconv.h and libiconv.a to enable using 'iconv.dll'.
Bram Moolenaarac8069b2017-10-14 20:24:19 +020063# Use "yes" when the path does not need to be define.
Bram Moolenaar4f7e8212014-11-05 13:53:32 +010064#ICONV="."
65ICONV=yes
66GETTEXT=yes
Bram Moolenaarcccd62d2018-04-12 20:23:48 +020067
Bram Moolenaar4f7e8212014-11-05 13:53:32 +010068# Set to yes to include multibyte support.
69MBYTE=yes
Bram Moolenaarcccd62d2018-04-12 20:23:48 +020070
Bram Moolenaar4f7e8212014-11-05 13:53:32 +010071# Set to yes to include IME support.
72IME=yes
73DYNAMIC_IME=yes
Bram Moolenaarcccd62d2018-04-12 20:23:48 +020074
Bram Moolenaar4f7e8212014-11-05 13:53:32 +010075# Set to yes to enable writing a postscript file with :hardcopy.
76POSTSCRIPT=no
Bram Moolenaarcccd62d2018-04-12 20:23:48 +020077
Bram Moolenaar4f7e8212014-11-05 13:53:32 +010078# Set to yes to enable OLE support.
79OLE=no
Bram Moolenaarcccd62d2018-04-12 20:23:48 +020080
Bram Moolenaar304925e2018-06-30 16:27:02 +020081# Set the default $(WINVER). Use 0x0501 to make it work with WinXP.
Bram Moolenaar4f7e8212014-11-05 13:53:32 +010082ifndef WINVER
Bram Moolenaar304925e2018-06-30 16:27:02 +020083# WINVER = 0x0501
84WINVER = 0x0600
Bram Moolenaar4f7e8212014-11-05 13:53:32 +010085endif
Bram Moolenaarcccd62d2018-04-12 20:23:48 +020086
Bram Moolenaar4f7e8212014-11-05 13:53:32 +010087# Set to yes to enable Cscope support.
88CSCOPE=yes
Bram Moolenaarcccd62d2018-04-12 20:23:48 +020089
Bram Moolenaare0874f82016-01-24 20:36:41 +010090# Set to yes to enable Netbeans support (requires CHANNEL).
Bram Moolenaar4f7e8212014-11-05 13:53:32 +010091NETBEANS=$(GUI)
Bram Moolenaarcccd62d2018-04-12 20:23:48 +020092
Bram Moolenaare0874f82016-01-24 20:36:41 +010093# Set to yes to enable inter process communication.
Bram Moolenaar1aa07bd2016-06-03 19:43:16 +020094ifeq (HUGE, $(FEATURES))
95CHANNEL=yes
96else
Bram Moolenaare0874f82016-01-24 20:36:41 +010097CHANNEL=$(GUI)
Bram Moolenaar1aa07bd2016-06-03 19:43:16 +020098endif
Bram Moolenaarcccd62d2018-04-12 20:23:48 +020099
Bram Moolenaar8a773062017-07-24 22:29:21 +0200100# Set to yes to enable terminal support.
Bram Moolenaarac8069b2017-10-14 20:24:19 +0200101ifeq (HUGE, $(FEATURES))
102TERMINAL=yes
103else
Bram Moolenaar4fc63502017-07-19 11:28:17 +0200104TERMINAL=no
Bram Moolenaarac8069b2017-10-14 20:24:19 +0200105endif
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100106
Bram Moolenaar9ac9dfa2017-09-01 18:41:26 +0200107ifndef CTAGS
108# this assumes ctags is Exuberant ctags
109CTAGS = ctags -I INIT+ --fields=+S
110endif
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100111
112# Link against the shared version of libstdc++ by default. Set
113# STATIC_STDCPLUS to "yes" to link against static version instead.
114ifndef STATIC_STDCPLUS
115STATIC_STDCPLUS=no
116endif
117
Bram Moolenaare3af7632016-12-01 20:37:47 +0100118
119# Link against the shared version of libwinpthread by default. Set
120# STATIC_WINPTHREAD to "yes" to link against static version instead.
121ifndef STATIC_WINPTHREAD
122STATIC_WINPTHREAD=$(STATIC_STDCPLUS)
123endif
Bram Moolenaareda9e9c2018-10-21 22:45:43 +0200124# If you use TDM-GCC(-64), change HAS_GCC_EH to "no".
125# This is used when STATIC_STDCPLUS=yes.
126HAS_GCC_EH=yes
Bram Moolenaare3af7632016-12-01 20:37:47 +0100127
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100128# If the user doesn't want gettext, undefine it.
129ifeq (no, $(GETTEXT))
130GETTEXT=
131endif
132# Added by E.F. Amatria <eferna1@platea.ptic.mec.es> 2001 Feb 23
133# Uncomment the first line and one of the following three if you want Native Language
134# Support. You'll need gnu_gettext.win32, a MINGW32 Windows PORT of gettext by
135# Franco Bez <franco.bez@gmx.de>. It may be found at
136# http://home.a-city.de/franco.bez/gettext/gettext_win32_en.html
137# Tested with mingw32 with GCC-2.95.2 on Win98
138# Updated 2001 Jun 9
139#GETTEXT=c:/gettext.win32.msvcrt
140#STATIC_GETTEXT=USE_STATIC_GETTEXT
141#DYNAMIC_GETTEXT=USE_GETTEXT_DLL
142#DYNAMIC_GETTEXT=USE_SAFE_GETTEXT_DLL
143SAFE_GETTEXT_DLL_OBJ = $(GETTEXT)/src/safe_gettext_dll/safe_gettext_dll.o
144# Alternatively, if you uncomment the two following lines, you get a "safe" version
145# without linking the safe_gettext_dll.o object file.
146#DYNAMIC_GETTEXT=DYNAMIC_GETTEXT
147#GETTEXT_DYNAMIC=gnu_gettext.dll
148INTLPATH=$(GETTEXT)/lib/mingw32
149INTLLIB=gnu_gettext
150
151# If you are using gettext-0.10.35 from http://sourceforge.net/projects/gettext
152# or gettext-0.10.37 from http://sourceforge.net/projects/mingwrep/
153# uncomment the following, but I can't build a static version with them, ?-(|
154#GETTEXT=c:/gettext-0.10.37-20010430
155#STATIC_GETTEXT=USE_STATIC_GETTEXT
156#DYNAMIC_GETTEXT=DYNAMIC_GETTEXT
157#INTLPATH=$(GETTEXT)/lib
158#INTLLIB=intl
159
Bram Moolenaare0485392016-07-12 21:17:03 +0200160
161# Command definitions (depends on cross-compiling and shell)
162ifeq ($(CROSS),yes)
163# cross-compiler prefix:
164ifndef CROSS_COMPILE
165CROSS_COMPILE = i586-pc-mingw32msvc-
166endif
167DEL = rm
168MKDIR = mkdir -p
169DIRSLASH = /
170else
171# normal (Windows) compilation:
172ifndef CROSS_COMPILE
173CROSS_COMPILE =
174endif
Bram Moolenaare828b762018-09-10 17:51:58 +0200175
176# About the "sh.exe" condition, as explained by Ken Takata:
177#
178# If the makefile is executed with mingw32-make and sh.exe is not found in
179# $PATH, then $SHELL is set to "sh.exe" (without any path). In this case,
180# unix-like commands might not work and a dos-style path is needed.
181#
182# If the makefile is executed with mingw32-make and sh.exe IS found in $PATH,
183# then $SHELL is set with the actual path of sh.exe (e.g.
184# "C:/msys64/usr/bin/sh.exe"). In this case, unix-like commands can be used.
185#
186# If it is executed by the "make" command from cmd.exe, $SHELL is set to
187# "/bin/sh". If the "make" command is in the $PATH, other unix-like commands
188# might also work.
189#
190# If it is executed by the "make" command from a unix-like shell,
191# $SHELL is set with the unix-style path (e.g. "/bin/bash").
192# In this case, unix-like commands can be used.
193#
Bram Moolenaare0485392016-07-12 21:17:03 +0200194ifneq (sh.exe, $(SHELL))
195DEL = rm
196MKDIR = mkdir -p
197DIRSLASH = /
198else
199DEL = del
200MKDIR = mkdir
201DIRSLASH = \\
202endif
203endif
204CC := $(CROSS_COMPILE)gcc
205CXX := $(CROSS_COMPILE)g++
206ifeq ($(UNDER_CYGWIN),yes)
207WINDRES := $(CROSS_COMPILE)windres
208else
209WINDRES := windres
210endif
211WINDRES_CC = $(CC)
212
213# Get the default ARCH.
214ifndef ARCH
Bram Moolenaarf62e7972016-07-14 20:25:03 +0200215ARCH := $(shell $(CC) -dumpmachine | sed -e 's/-.*//' -e 's/_/-/' -e 's/^mingw32$$/i686/')
Bram Moolenaare0485392016-07-12 21:17:03 +0200216endif
217
218
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100219# Perl interface:
220# PERL=[Path to Perl directory] (Set inside Make_cyg.mak or Make_ming.mak)
221# DYNAMIC_PERL=yes (to load the Perl DLL dynamically)
Bram Moolenaar0eaadec2016-09-08 20:28:45 +0200222# PERL_VER=[Perl version, eg 56, 58, 510] (default is 524)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100223ifdef PERL
224ifndef PERL_VER
Bram Moolenaar0eaadec2016-09-08 20:28:45 +0200225PERL_VER=524
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100226endif
227ifndef DYNAMIC_PERL
228DYNAMIC_PERL=yes
229endif
230# on Linux, for cross-compile, it's here:
231#PERLLIB=/home/ron/ActivePerl/lib
232# on NT, it's here:
233PERLEXE=$(PERL)/bin/perl
234PERLLIB=$(PERL)/lib
235PERLLIBS=$(PERLLIB)/Core
236ifeq ($(UNDER_CYGWIN),yes)
237PERLTYPEMAP:=$(shell cygpath -m $(PERLLIB)/ExtUtils/typemap)
238XSUBPPTRY:=$(shell cygpath -m $(PERLLIB)/ExtUtils/xsubpp)
239else
240PERLTYPEMAP=$(PERLLIB)/ExtUtils/typemap
241XSUBPPTRY=$(PERLLIB)/ExtUtils/xsubpp
242endif
243XSUBPP_EXISTS=$(shell $(PERLEXE) -e "print 1 unless -e '$(XSUBPPTRY)'")
244ifeq "$(XSUBPP_EXISTS)" ""
Bram Moolenaar345326a2014-11-06 10:03:01 +0100245XSUBPP=$(PERLEXE) $(XSUBPPTRY)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100246else
247XSUBPP=xsubpp
248endif
249endif
250
251# Lua interface:
252# LUA=[Path to Lua directory] (Set inside Make_cyg.mak or Make_ming.mak)
Bram Moolenaarb872e632018-09-21 13:44:09 +0200253# LUA_LIBDIR=[Path to Lua library directory] (default: $LUA/lib)
254# LUA_INCDIR=[Path to Lua include directory] (default: $LUA/include)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100255# DYNAMIC_LUA=yes (to load the Lua DLL dynamically)
Bram Moolenaar0eaadec2016-09-08 20:28:45 +0200256# LUA_VER=[Lua version, eg 51, 52] (default is 53)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100257ifdef LUA
258ifndef DYNAMIC_LUA
259DYNAMIC_LUA=yes
260endif
261
262ifndef LUA_VER
Bram Moolenaar0eaadec2016-09-08 20:28:45 +0200263LUA_VER=53
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100264endif
265
266ifeq (no,$(DYNAMIC_LUA))
Bram Moolenaarb872e632018-09-21 13:44:09 +0200267LUA_LIBDIR = $(LUA)/lib
268LUA_LIB = -L$(LUA_LIBDIR) -llua
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100269endif
270
271endif
272
273# MzScheme interface:
274# MZSCHEME=[Path to MzScheme directory] (Set inside Make_cyg.mak or Make_ming.mak)
275# DYNAMIC_MZSCHEME=yes (to load the MzScheme DLL dynamically)
Bram Moolenaar0eaadec2016-09-08 20:28:45 +0200276# MZSCHEME_VER=[MzScheme version] (default is 3m_a0solc (6.6))
Bram Moolenaarf16c71b2017-09-18 20:01:02 +0200277# Used for the DLL file name. E.g.:
278# C:\Program Files (x86)\Racket\lib\libracket3m_XXXXXX.dll
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100279# MZSCHEME_DEBUG=no
280ifdef MZSCHEME
281ifndef DYNAMIC_MZSCHEME
282DYNAMIC_MZSCHEME=yes
283endif
284
285ifndef MZSCHEME_VER
Bram Moolenaar0eaadec2016-09-08 20:28:45 +0200286MZSCHEME_VER=3m_a0solc
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100287endif
288
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100289# for version 4.x we need to generate byte-code for Scheme base
290ifndef MZSCHEME_GENERATE_BASE
291MZSCHEME_GENERATE_BASE=no
292endif
293
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100294ifneq ($(wildcard $(MZSCHEME)/lib/msvc/libmzsch$(MZSCHEME_VER).lib),)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100295MZSCHEME_MAIN_LIB=mzsch
296else
297MZSCHEME_MAIN_LIB=racket
298endif
299
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100300ifndef MZSCHEME_PRECISE_GC
301MZSCHEME_PRECISE_GC=no
302ifneq ($(wildcard $(MZSCHEME)\lib\lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll),)
303ifeq ($(wildcard $(MZSCHEME)\lib\libmzgc$(MZSCHEME_VER).dll),)
304MZSCHEME_PRECISE_GC=yes
305endif
306else
307ifneq ($(wildcard $(MZSCHEME)\lib\msvc\lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).lib),)
308ifeq ($(wildcard $(MZSCHEME)\lib\msvc\libmzgc$(MZSCHEME_VER).lib),)
309MZSCHEME_PRECISE_GC=yes
310endif
311endif
312endif
313endif
314
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100315ifeq (no,$(DYNAMIC_MZSCHEME))
316ifeq (yes,$(MZSCHEME_PRECISE_GC))
317MZSCHEME_LIB=-l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER)
318else
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100319MZSCHEME_LIB=-l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER) -lmzgc$(MZSCHEME_VER)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100320endif
321# the modern MinGW can dynamically link to dlls directly.
322# point MZSCHEME_DLLS to where you put libmzschXXXXXXX.dll and libgcXXXXXXX.dll
323ifndef MZSCHEME_DLLS
324MZSCHEME_DLLS=$(MZSCHEME)
325endif
326MZSCHEME_LIBDIR=-L$(MZSCHEME_DLLS) -L$(MZSCHEME_DLLS)\lib
327endif
328
329endif
330
331# Python interface:
332# PYTHON=[Path to Python directory] (Set inside Make_cyg.mak or Make_ming.mak)
333# DYNAMIC_PYTHON=yes (to load the Python DLL dynamically)
Bram Moolenaar0eaadec2016-09-08 20:28:45 +0200334# PYTHON_VER=[Python version, eg 22, 23, ..., 27] (default is 27)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100335ifdef PYTHON
336ifndef DYNAMIC_PYTHON
337DYNAMIC_PYTHON=yes
338endif
339
340ifndef PYTHON_VER
Bram Moolenaar3c6f92e2016-01-02 20:26:36 +0100341PYTHON_VER=27
342endif
343ifndef DYNAMIC_PYTHON_DLL
344DYNAMIC_PYTHON_DLL=python$(PYTHON_VER).dll
345endif
346ifdef PYTHON_HOME
347PYTHON_HOME_DEF=-DPYTHON_HOME=\"$(PYTHON_HOME)\"
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100348endif
349
350ifeq (no,$(DYNAMIC_PYTHON))
351PYTHONLIB=-L$(PYTHON)/libs -lpython$(PYTHON_VER)
352endif
353# my include files are in 'win32inc' on Linux, and 'include' in the standard
354# NT distro (ActiveState)
Bram Moolenaar3c6f92e2016-01-02 20:26:36 +0100355ifndef PYTHONINC
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100356ifeq ($(CROSS),no)
357PYTHONINC=-I $(PYTHON)/include
358else
359PYTHONINC=-I $(PYTHON)/win32inc
360endif
361endif
Bram Moolenaar3c6f92e2016-01-02 20:26:36 +0100362endif
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100363
364# Python3 interface:
365# PYTHON3=[Path to Python3 directory] (Set inside Make_cyg.mak or Make_ming.mak)
366# DYNAMIC_PYTHON3=yes (to load the Python3 DLL dynamically)
Bram Moolenaar59eb0162017-12-10 18:17:44 +0100367# PYTHON3_VER=[Python3 version, eg 31, 32] (default is 36)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100368ifdef PYTHON3
369ifndef DYNAMIC_PYTHON3
370DYNAMIC_PYTHON3=yes
371endif
372
373ifndef PYTHON3_VER
Bram Moolenaar59eb0162017-12-10 18:17:44 +0100374PYTHON3_VER=36
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100375endif
Bram Moolenaara7c37952016-01-20 22:23:15 +0100376ifndef DYNAMIC_PYTHON3_DLL
377DYNAMIC_PYTHON3_DLL=python$(PYTHON3_VER).dll
378endif
379ifdef PYTHON3_HOME
Bram Moolenaaracd58ef2016-02-16 13:42:24 +0100380PYTHON3_HOME_DEF=-DPYTHON3_HOME=L\"$(PYTHON3_HOME)\"
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100381endif
382
Bram Moolenaara7c37952016-01-20 22:23:15 +0100383ifeq (no,$(DYNAMIC_PYTHON3))
384PYTHON3LIB=-L$(PYTHON3)/libs -lpython$(PYTHON3_VER)
385endif
386
387ifndef PYTHON3INC
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100388ifeq ($(CROSS),no)
389PYTHON3INC=-I $(PYTHON3)/include
390else
391PYTHON3INC=-I $(PYTHON3)/win32inc
392endif
393endif
Bram Moolenaara7c37952016-01-20 22:23:15 +0100394endif
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100395
396# TCL interface:
397# TCL=[Path to TCL directory] (Set inside Make_cyg.mak or Make_ming.mak)
398# DYNAMIC_TCL=yes (to load the TCL DLL dynamically)
Bram Moolenaar0eaadec2016-09-08 20:28:45 +0200399# TCL_VER=[TCL version, eg 83, 84] (default is 86)
400# TCL_VER_LONG=[Tcl version, eg 8.3] (default is 8.6)
Bram Moolenaareca99bd2016-01-07 22:50:05 +0100401# You must set TCL_VER_LONG when you set TCL_VER.
Bram Moolenaar77f74742017-08-23 22:40:41 +0200402# TCL_DLL=[TCL dll name, eg tcl86.dll] (default is tcl86.dll)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100403ifdef TCL
404ifndef DYNAMIC_TCL
405DYNAMIC_TCL=yes
406endif
407ifndef TCL_VER
Bram Moolenaar0eaadec2016-09-08 20:28:45 +0200408TCL_VER = 86
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100409endif
Bram Moolenaareca99bd2016-01-07 22:50:05 +0100410ifndef TCL_VER_LONG
Bram Moolenaar0eaadec2016-09-08 20:28:45 +0200411TCL_VER_LONG = 8.6
Bram Moolenaareca99bd2016-01-07 22:50:05 +0100412endif
Bram Moolenaar77f74742017-08-23 22:40:41 +0200413ifndef TCL_DLL
414TCL_DLL = tcl$(TCL_VER).dll
415endif
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100416TCLINC += -I$(TCL)/include
417endif
418
419
420# Ruby interface:
421# RUBY=[Path to Ruby directory] (Set inside Make_cyg.mak or Make_ming.mak)
Bram Moolenaar61766972018-04-20 22:31:41 +0200422# DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically, "no" for static)
Bram Moolenaar6384c5d2016-09-06 22:06:35 +0200423# RUBY_VER=[Ruby version, eg 19, 22] (default is 22)
424# RUBY_API_VER_LONG=[Ruby API version, eg 1.8, 1.9.1, 2.2.0]
425# (default is 2.2.0)
426# You must set RUBY_API_VER_LONG when changing RUBY_VER.
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100427# Note: If you use Ruby 1.9.3, set as follows:
428# RUBY_VER=19
Bram Moolenaar6384c5d2016-09-06 22:06:35 +0200429# RUBY_API_VER_LONG=1.9.1 (not 1.9.3, because the API version is 1.9.1.)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100430ifdef RUBY
431ifndef DYNAMIC_RUBY
432DYNAMIC_RUBY=yes
433endif
434# Set default value
435ifndef RUBY_VER
Bram Moolenaar6384c5d2016-09-06 22:06:35 +0200436RUBY_VER = 22
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100437endif
438ifndef RUBY_VER_LONG
Bram Moolenaar6384c5d2016-09-06 22:06:35 +0200439RUBY_VER_LONG = 2.2.0
440endif
441ifndef RUBY_API_VER_LONG
Bram Moolenaar0eaadec2016-09-08 20:28:45 +0200442RUBY_API_VER_LONG = $(RUBY_VER_LONG)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100443endif
444ifndef RUBY_API_VER
Bram Moolenaar6384c5d2016-09-06 22:06:35 +0200445RUBY_API_VER = $(subst .,,$(RUBY_API_VER_LONG))
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100446endif
447
448ifndef RUBY_PLATFORM
449ifeq ($(RUBY_VER), 16)
450RUBY_PLATFORM = i586-mswin32
451else
Bram Moolenaar6384c5d2016-09-06 22:06:35 +0200452ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_API_VER_LONG)/i386-mingw32),)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100453RUBY_PLATFORM = i386-mingw32
454else
Bram Moolenaar6384c5d2016-09-06 22:06:35 +0200455ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_API_VER_LONG)/x64-mingw32),)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100456RUBY_PLATFORM = x64-mingw32
457else
458RUBY_PLATFORM = i386-mswin32
459endif
460endif
461endif
462endif
463
464ifndef RUBY_INSTALL_NAME
465ifeq ($(RUBY_VER), 16)
466RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_API_VER)
467else
Bram Moolenaar0bee2fe2016-01-07 22:45:09 +0100468ifndef RUBY_MSVCRT_NAME
469# Base name of msvcrXX.dll which is used by ruby's dll.
470RUBY_MSVCRT_NAME = msvcrt
471endif
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100472ifeq ($(ARCH),x86-64)
Bram Moolenaar0bee2fe2016-01-07 22:45:09 +0100473RUBY_INSTALL_NAME = x64-$(RUBY_MSVCRT_NAME)-ruby$(RUBY_API_VER)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100474else
Bram Moolenaar0bee2fe2016-01-07 22:45:09 +0100475RUBY_INSTALL_NAME = $(RUBY_MSVCRT_NAME)-ruby$(RUBY_API_VER)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100476endif
477endif
478endif
479
480ifeq (19, $(word 1,$(sort 19 $(RUBY_VER))))
481RUBY_19_OR_LATER = 1
482endif
483
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100484ifdef RUBY_19_OR_LATER
Bram Moolenaar76c612a2018-09-21 14:31:51 +0200485RUBYINC = -I $(RUBY)/include/ruby-$(RUBY_API_VER_LONG) -I $(RUBY)/include/ruby-$(RUBY_API_VER_LONG)/$(RUBY_PLATFORM)
486else
487RUBYINC = -I $(RUBY)/lib/ruby/$(RUBY_API_VER_LONG)/$(RUBY_PLATFORM)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100488endif
489ifeq (no, $(DYNAMIC_RUBY))
490RUBYLIB = -L$(RUBY)/lib -l$(RUBY_INSTALL_NAME)
491endif
492
493endif # RUBY
494
495# See feature.h for a list of options.
496# Any other defines can be included here.
497DEF_GUI=-DFEAT_GUI_W32 -DFEAT_CLIPBOARD
498DEFINES=-DWIN32 -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) \
Bram Moolenaar22fcfad2016-07-01 18:17:26 +0200499 -DHAVE_PATHDEF -DFEAT_$(FEATURES) -DHAVE_STDINT_H
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100500ifeq ($(ARCH),x86-64)
501DEFINES+=-DMS_WIN64
502endif
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100503
504#>>>>> end of choices
505###########################################################################
506
Bram Moolenaarb361db02018-10-16 21:13:14 +0200507CFLAGS = -I. -Iproto $(DEFINES) -pipe -march=$(ARCH) -Wall
Bram Moolenaar6c0e9842016-03-22 20:42:31 +0100508CXXFLAGS = -std=gnu++11
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100509WINDRES_FLAGS = --preprocessor="$(WINDRES_CC) -E -xc" -DRC_INVOKED
510EXTRA_LIBS =
511
512ifdef GETTEXT
513DEFINES += -DHAVE_GETTEXT -DHAVE_LOCALE_H
514GETTEXTINCLUDE = $(GETTEXT)/include
515GETTEXTLIB = $(INTLPATH)
516ifeq (yes, $(GETTEXT))
517DEFINES += -DDYNAMIC_GETTEXT
518else
519ifdef DYNAMIC_GETTEXT
520DEFINES += -D$(DYNAMIC_GETTEXT)
521ifdef GETTEXT_DYNAMIC
522DEFINES += -DGETTEXT_DYNAMIC -DGETTEXT_DLL=\"$(GETTEXT_DYNAMIC)\"
523endif
524endif
525endif
526endif
527
528ifdef PERL
Bram Moolenaar367fbf12015-06-25 16:13:46 +0200529CFLAGS += -I$(PERLLIBS) -DFEAT_PERL -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100530ifeq (yes, $(DYNAMIC_PERL))
531CFLAGS += -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl$(PERL_VER).dll\"
532EXTRA_LIBS += -L$(PERLLIBS) -lperl$(PERL_VER)
533endif
534endif
535
536ifdef LUA
Bram Moolenaarb872e632018-09-21 13:44:09 +0200537LUA_INCDIR = $(LUA)/include
538CFLAGS += -I$(LUA_INCDIR) -I$(LUA) -DFEAT_LUA
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100539ifeq (yes, $(DYNAMIC_LUA))
540CFLAGS += -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL=\"lua$(LUA_VER).dll\"
541endif
542endif
543
544ifdef MZSCHEME
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100545ifndef MZSCHEME_COLLECTS
546MZSCHEME_COLLECTS=$(MZSCHEME)/collects
547ifeq (yes, $(UNDER_CYGWIN))
548MZSCHEME_COLLECTS:=$(shell cygpath -m $(MZSCHEME_COLLECTS) | sed -e 's/ /\\ /g')
549endif
550endif
551CFLAGS += -I$(MZSCHEME)/include -DFEAT_MZSCHEME -DMZSCHEME_COLLECTS=\"$(MZSCHEME_COLLECTS)\"
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100552ifeq (yes, $(DYNAMIC_MZSCHEME))
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100553ifeq (yes, $(MZSCHEME_PRECISE_GC))
554# Precise GC does not use separate dll
555CFLAGS += -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\" -DDYNAMIC_MZGC_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\"
556else
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100557CFLAGS += -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\" -DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\"
558endif
Bram Moolenaar4e640bd2016-01-16 16:20:38 +0100559endif
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100560ifeq (yes, "$(MZSCHEME_DEBUG)")
561CFLAGS += -DMZSCHEME_FORCE_GC
562endif
563endif
564
565ifdef RUBY
566CFLAGS += -DFEAT_RUBY $(RUBYINC)
567ifeq (yes, $(DYNAMIC_RUBY))
568CFLAGS += -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\"
569CFLAGS += -DDYNAMIC_RUBY_VER=$(RUBY_VER)
570endif
Bram Moolenaar259a90f2018-04-21 19:08:55 +0200571ifeq (no, $(DYNAMIC_RUBY))
572CFLAGS += -DRUBY_VERSION=$(RUBY_VER)
573endif
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100574ifneq ($(findstring w64-mingw32,$(CC)),)
575# A workaround for MinGW-w64
576CFLAGS += -DHAVE_STRUCT_TIMESPEC -DHAVE_STRUCT_TIMEZONE
577endif
578endif
579
580ifdef PYTHON
Bram Moolenaar223b7232016-02-19 19:43:49 +0100581CFLAGS += -DFEAT_PYTHON
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100582ifeq (yes, $(DYNAMIC_PYTHON))
Bram Moolenaar449538c2016-01-09 17:49:15 +0100583CFLAGS += -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"$(DYNAMIC_PYTHON_DLL)\"
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100584endif
585endif
586
Bram Moolenaar223b7232016-02-19 19:43:49 +0100587ifdef PYTHON3
588CFLAGS += -DFEAT_PYTHON3
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100589ifeq (yes, $(DYNAMIC_PYTHON3))
Bram Moolenaara7c37952016-01-20 22:23:15 +0100590CFLAGS += -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=\"$(DYNAMIC_PYTHON3_DLL)\"
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100591endif
592endif
593
594ifdef TCL
595CFLAGS += -DFEAT_TCL $(TCLINC)
596ifeq (yes, $(DYNAMIC_TCL))
Bram Moolenaar77f74742017-08-23 22:40:41 +0200597CFLAGS += -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"$(TCL_DLL)\" -DDYNAMIC_TCL_VER=\"$(TCL_VER_LONG)\"
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100598endif
599endif
600
601ifeq ($(POSTSCRIPT),yes)
602DEFINES += -DMSWINPS
603endif
604
605ifeq (yes, $(OLE))
606DEFINES += -DFEAT_OLE
607endif
608
609ifeq ($(CSCOPE),yes)
610DEFINES += -DFEAT_CSCOPE
611endif
612
613ifeq ($(NETBEANS),yes)
614# Only allow NETBEANS for a GUI build.
615ifeq (yes, $(GUI))
616DEFINES += -DFEAT_NETBEANS_INTG
617
618ifeq ($(NBDEBUG), yes)
619DEFINES += -DNBDEBUG
620NBDEBUG_INCL = nbdebug.h
621NBDEBUG_SRC = nbdebug.c
622endif
623endif
624endif
625
Bram Moolenaare0874f82016-01-24 20:36:41 +0100626ifeq ($(CHANNEL),yes)
Bram Moolenaar509ce2a2016-03-11 22:52:15 +0100627DEFINES += -DFEAT_JOB_CHANNEL
Bram Moolenaare0874f82016-01-24 20:36:41 +0100628endif
629
Bram Moolenaar4fc63502017-07-19 11:28:17 +0200630ifeq ($(TERMINAL),yes)
631DEFINES += -DFEAT_TERMINAL
Bram Moolenaarf80451e2017-07-25 21:49:35 +0200632TERM_DEPS = \
633 libvterm/include/vterm.h \
634 libvterm/include/vterm_keycodes.h \
635 libvterm/src/rect.h \
636 libvterm/src/utf8.h \
637 libvterm/src/vterm_internal.h
Bram Moolenaar4fc63502017-07-19 11:28:17 +0200638endif
639
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100640# DirectWrite (DirectX)
641ifeq ($(DIRECTX),yes)
642# Only allow DirectWrite for a GUI build.
643ifeq (yes, $(GUI))
Bram Moolenaarcccd62d2018-04-12 20:23:48 +0200644DEFINES += -DFEAT_DIRECTX -DDYNAMIC_DIRECTX
645ifneq ($(COLOR_EMOJI),no)
646DEFINES += -DFEAT_DIRECTX_COLOR_EMOJI
647endif
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100648endif
649endif
650
651# Only allow XPM for a GUI build.
652ifeq (yes, $(GUI))
653
654ifndef XPM
655ifeq ($(ARCH),i386)
656XPM = xpm/x86
657endif
658ifeq ($(ARCH),i486)
659XPM = xpm/x86
660endif
661ifeq ($(ARCH),i586)
662XPM = xpm/x86
663endif
664ifeq ($(ARCH),i686)
665XPM = xpm/x86
666endif
667ifeq ($(ARCH),x86-64)
668XPM = xpm/x64
669endif
670endif
671ifdef XPM
672ifneq ($(XPM),no)
673CFLAGS += -DFEAT_XPM_W32 -I $(XPM)/include -I $(XPM)/../include
674endif
675endif
676
677endif
678
679ifeq ($(DEBUG),yes)
680CFLAGS += -g -fstack-check
681DEBUG_SUFFIX=d
682else
683ifeq ($(OPTIMIZE), SIZE)
684CFLAGS += -Os
685else
686ifeq ($(OPTIMIZE), MAXSPEED)
687CFLAGS += -O3
688CFLAGS += -fomit-frame-pointer -freg-struct-return
689else # SPEED
690CFLAGS += -O2
691endif
692endif
693CFLAGS += -s
694endif
695
Bram Moolenaar828c3d72018-06-19 18:58:07 +0200696LIB = -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32 -lcomctl32 -lnetapi32 -lversion
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100697GUIOBJ = $(OUTDIR)/gui.o $(OUTDIR)/gui_w32.o $(OUTDIR)/gui_beval.o $(OUTDIR)/os_w32exe.o
Bram Moolenaar97ff9b92016-06-26 20:37:46 +0200698CUIOBJ = $(OUTDIR)/iscygpty.o
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100699OBJ = \
Bram Moolenaar75464dc2016-07-02 20:27:50 +0200700 $(OUTDIR)/arabic.o \
Bram Moolenaarc3719bd2017-11-18 22:13:31 +0100701 $(OUTDIR)/beval.o \
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100702 $(OUTDIR)/blowfish.o \
703 $(OUTDIR)/buffer.o \
704 $(OUTDIR)/charset.o \
705 $(OUTDIR)/crypt.o \
706 $(OUTDIR)/crypt_zip.o \
Bram Moolenaar6583c442016-07-17 18:41:47 +0200707 $(OUTDIR)/dict.o \
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100708 $(OUTDIR)/diff.o \
709 $(OUTDIR)/digraph.o \
710 $(OUTDIR)/edit.o \
711 $(OUTDIR)/eval.o \
Bram Moolenaar73dad1e2016-07-17 22:13:49 +0200712 $(OUTDIR)/evalfunc.o \
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100713 $(OUTDIR)/ex_cmds.o \
714 $(OUTDIR)/ex_cmds2.o \
715 $(OUTDIR)/ex_docmd.o \
716 $(OUTDIR)/ex_eval.o \
717 $(OUTDIR)/ex_getln.o \
Bram Moolenaar75464dc2016-07-02 20:27:50 +0200718 $(OUTDIR)/farsi.o \
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100719 $(OUTDIR)/fileio.o \
720 $(OUTDIR)/fold.o \
721 $(OUTDIR)/getchar.o \
722 $(OUTDIR)/hardcopy.o \
723 $(OUTDIR)/hashtab.o \
Bram Moolenaar520e1e42016-01-23 19:46:28 +0100724 $(OUTDIR)/json.o \
Bram Moolenaar6583c442016-07-17 18:41:47 +0200725 $(OUTDIR)/list.o \
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100726 $(OUTDIR)/main.o \
727 $(OUTDIR)/mark.o \
728 $(OUTDIR)/memfile.o \
729 $(OUTDIR)/memline.o \
730 $(OUTDIR)/menu.o \
731 $(OUTDIR)/message.o \
732 $(OUTDIR)/misc1.o \
733 $(OUTDIR)/misc2.o \
734 $(OUTDIR)/move.o \
735 $(OUTDIR)/mbyte.o \
736 $(OUTDIR)/normal.o \
737 $(OUTDIR)/ops.o \
738 $(OUTDIR)/option.o \
739 $(OUTDIR)/os_win32.o \
740 $(OUTDIR)/os_mswin.o \
741 $(OUTDIR)/winclip.o \
742 $(OUTDIR)/pathdef.o \
743 $(OUTDIR)/popupmnu.o \
744 $(OUTDIR)/quickfix.o \
745 $(OUTDIR)/regexp.o \
746 $(OUTDIR)/screen.o \
747 $(OUTDIR)/search.o \
748 $(OUTDIR)/sha256.o \
749 $(OUTDIR)/spell.o \
Bram Moolenaar9ccfebd2016-07-19 16:39:08 +0200750 $(OUTDIR)/spellfile.o \
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100751 $(OUTDIR)/syntax.o \
752 $(OUTDIR)/tag.o \
753 $(OUTDIR)/term.o \
754 $(OUTDIR)/ui.o \
755 $(OUTDIR)/undo.o \
Bram Moolenaar6583c442016-07-17 18:41:47 +0200756 $(OUTDIR)/userfunc.o \
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100757 $(OUTDIR)/version.o \
758 $(OUTDIR)/vimrc.o \
759 $(OUTDIR)/window.o
760
761ifdef PERL
762OBJ += $(OUTDIR)/if_perl.o
763endif
764ifdef LUA
765OBJ += $(OUTDIR)/if_lua.o
766endif
767ifdef MZSCHEME
768OBJ += $(OUTDIR)/if_mzsch.o
769MZSCHEME_INCL = if_mzsch.h
770ifeq (yes,$(MZSCHEME_GENERATE_BASE))
771CFLAGS += -DINCLUDE_MZSCHEME_BASE
772MZ_EXTRA_DEP += mzscheme_base.c
773endif
774ifeq (yes,$(MZSCHEME_PRECISE_GC))
775CFLAGS += -DMZ_PRECISE_GC
776endif
777endif
778ifdef PYTHON
779OBJ += $(OUTDIR)/if_python.o
780endif
781ifdef PYTHON3
782OBJ += $(OUTDIR)/if_python3.o
783endif
784ifdef RUBY
785OBJ += $(OUTDIR)/if_ruby.o
786endif
787ifdef TCL
788OBJ += $(OUTDIR)/if_tcl.o
789endif
790ifeq ($(CSCOPE),yes)
791OBJ += $(OUTDIR)/if_cscope.o
792endif
Bram Moolenaare0874f82016-01-24 20:36:41 +0100793
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100794ifeq ($(NETBEANS),yes)
Bram Moolenaare0874f82016-01-24 20:36:41 +0100795ifneq ($(CHANNEL),yes)
796# Cannot use Netbeans without CHANNEL
797NETBEANS=no
798else
Bram Moolenaar44d57182016-02-14 23:11:23 +0100799ifneq (yes, $(GUI))
800# Cannot use Netbeans without GUI.
801NETBEANS=no
802else
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100803OBJ += $(OUTDIR)/netbeans.o
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100804endif
805endif
Bram Moolenaare0874f82016-01-24 20:36:41 +0100806endif
807
808ifeq ($(CHANNEL),yes)
809OBJ += $(OUTDIR)/channel.o
Bram Moolenaare0874f82016-01-24 20:36:41 +0100810LIB += -lwsock32
811endif
Bram Moolenaare0874f82016-01-24 20:36:41 +0100812
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100813ifeq ($(DIRECTX),yes)
814# Only allow DIRECTX for a GUI build.
815ifeq (yes, $(GUI))
816OBJ += $(OUTDIR)/gui_dwrite.o
817LIB += -ld2d1 -ldwrite
818USE_STDCPLUS = yes
819endif
820endif
821ifneq ($(XPM),no)
822# Only allow XPM for a GUI build.
823ifeq (yes, $(GUI))
824OBJ += $(OUTDIR)/xpm_w32.o
825# You'll need libXpm.a from http://gnuwin32.sf.net
826LIB += -L$(XPM)/lib -lXpm
827endif
828endif
829
Bram Moolenaar4fc63502017-07-19 11:28:17 +0200830ifeq ($(TERMINAL),yes)
Bram Moolenaarf80451e2017-07-25 21:49:35 +0200831OBJ += $(OUTDIR)/terminal.o \
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +0200832 $(OUTDIR)/encoding.o \
833 $(OUTDIR)/keyboard.o \
834 $(OUTDIR)/mouse.o \
835 $(OUTDIR)/parser.o \
836 $(OUTDIR)/pen.o \
837 $(OUTDIR)/termscreen.o \
838 $(OUTDIR)/state.o \
839 $(OUTDIR)/unicode.o \
840 $(OUTDIR)/vterm.o
Bram Moolenaar4fc63502017-07-19 11:28:17 +0200841endif
842
Bram Moolenaare828b762018-09-10 17:51:58 +0200843# Include xdiff
844OBJ += $(OUTDIR)/xdiffi.o \
845 $(OUTDIR)/xemit.o \
846 $(OUTDIR)/xprepare.o \
847 $(OUTDIR)/xutils.o \
848 $(OUTDIR)/xhistogram.o \
849 $(OUTDIR)/xpatience.o
850
851XDIFF_DEPS = \
852 xdiff/xdiff.h \
853 xdiff/xdiffi.h \
854 xdiff/xemit.h \
855 xdiff/xinclude.h \
856 xdiff/xmacros.h \
857 xdiff/xprepare.h \
858 xdiff/xtypes.h \
859 xdiff/xutils.h
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100860
861ifdef MZSCHEME
862MZSCHEME_SUFFIX = Z
863endif
864
865ifeq ($(GUI),yes)
866TARGET := gvim$(DEBUG_SUFFIX).exe
867DEFINES += $(DEF_GUI)
868OBJ += $(GUIOBJ)
869LFLAGS += -mwindows
870OUTDIR = gobj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH)
871else
Bram Moolenaar97ff9b92016-06-26 20:37:46 +0200872OBJ += $(CUIOBJ)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100873TARGET := vim$(DEBUG_SUFFIX).exe
874OUTDIR = obj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH)
875endif
876
877ifdef GETTEXT
878ifneq (yes, $(GETTEXT))
879CFLAGS += -I$(GETTEXTINCLUDE)
880ifndef STATIC_GETTEXT
881LIB += -L$(GETTEXTLIB) -l$(INTLLIB)
882ifeq (USE_SAFE_GETTEXT_DLL, $(DYNAMIC_GETTEXT))
883OBJ+=$(SAFE_GETTEXT_DLL_OBJ)
884endif
885else
886LIB += -L$(GETTEXTLIB) -lintl
887endif
888endif
889endif
890
891ifdef PERL
892ifeq (no, $(DYNAMIC_PERL))
893LIB += -L$(PERLLIBS) -lperl$(PERL_VER)
894endif
895endif
896
897ifdef TCL
898LIB += -L$(TCL)/lib
899ifeq (yes, $(DYNAMIC_TCL))
900LIB += -ltclstub$(TCL_VER)
901else
902LIB += -ltcl$(TCL_VER)
903endif
904endif
905
906ifeq (yes, $(OLE))
907LIB += -loleaut32
908OBJ += $(OUTDIR)/if_ole.o
909USE_STDCPLUS = yes
910endif
911
912ifeq (yes, $(MBYTE))
913DEFINES += -DFEAT_MBYTE
914endif
915
916ifeq (yes, $(IME))
917DEFINES += -DFEAT_MBYTE_IME
918ifeq (yes, $(DYNAMIC_IME))
919DEFINES += -DDYNAMIC_IME
920else
921LIB += -limm32
922endif
923endif
924
925ifdef ICONV
926ifneq (yes, $(ICONV))
927LIB += -L$(ICONV)
928CFLAGS += -I$(ICONV)
929endif
930DEFINES+=-DDYNAMIC_ICONV
931endif
932
933ifeq (yes, $(USE_STDCPLUS))
Bram Moolenaareda9e9c2018-10-21 22:45:43 +0200934LINK = $(CXX)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100935ifeq (yes, $(STATIC_STDCPLUS))
Bram Moolenaareda9e9c2018-10-21 22:45:43 +0200936LIB += -static-libstdc++ -static-libgcc
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100937endif
Bram Moolenaareda9e9c2018-10-21 22:45:43 +0200938else
939LINK = $(CC)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100940endif
941
Bram Moolenaare3af7632016-12-01 20:37:47 +0100942ifeq (yes, $(STATIC_WINPTHREAD))
Bram Moolenaareda9e9c2018-10-21 22:45:43 +0200943ifeq (yes, $(HAS_GCC_EH))
944LIB += -lgcc_eh
945endif
Bram Moolenaare3af7632016-12-01 20:37:47 +0100946LIB += -Wl,-Bstatic -lwinpthread -Wl,-Bdynamic
947endif
948
Bram Moolenaar4ff42902018-09-21 14:43:10 +0200949ifeq (yes, $(MAP))
950LFLAGS += -Wl,-Map=$(TARGET).map
951endif
952
Bram Moolenaar04c86d22018-10-17 22:45:54 +0200953all: $(TARGET) vimrun.exe xxd/xxd.exe tee/tee.exe install.exe uninstal.exe GvimExt/gvimext.dll
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100954
955vimrun.exe: vimrun.c
956 $(CC) $(CFLAGS) -o vimrun.exe vimrun.c $(LIB)
957
958install.exe: dosinst.c
959 $(CC) $(CFLAGS) -o install.exe dosinst.c $(LIB) -lole32 -luuid
960
961uninstal.exe: uninstal.c
962 $(CC) $(CFLAGS) -o uninstal.exe uninstal.c $(LIB)
963
964$(TARGET): $(OUTDIR) $(OBJ)
Bram Moolenaareda9e9c2018-10-21 22:45:43 +0200965 $(LINK) $(CFLAGS) $(LFLAGS) -o $@ $(OBJ) $(LIB) -lole32 -luuid $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100966
967upx: exes
968 upx gvim.exe
969 upx vim.exe
970
971mpress: exes
972 mpress gvim.exe
973 mpress vim.exe
974
975xxd/xxd.exe: xxd/xxd.c
976 $(MAKE) -C xxd -f Make_ming.mak CC='$(CC)'
977
Bram Moolenaar04c86d22018-10-17 22:45:54 +0200978tee/tee.exe: tee/tee.c
979 $(MAKE) -C tee CC='$(CC)'
980
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100981GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
982 $(MAKE) -C GvimExt -f Make_ming.mak CROSS=$(CROSS) CROSS_COMPILE=$(CROSS_COMPILE) CXX='$(CXX)' STATIC_STDCPLUS=$(STATIC_STDCPLUS)
983
Bram Moolenaar9ac9dfa2017-09-01 18:41:26 +0200984tags: notags
Bram Moolenaar115510f2018-10-17 22:12:14 +0200985 $(CTAGS) *.c *.cpp *.h
986ifdef PERL
987 $(CTAGS) --append=yes auto$(DIRSLASH)if_perl.c
988endif
989
Bram Moolenaar9ac9dfa2017-09-01 18:41:26 +0200990
991notags:
992 -$(DEL) tags
993
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100994clean:
995 -$(DEL) $(OUTDIR)$(DIRSLASH)*.o
996 -$(DEL) $(OUTDIR)$(DIRSLASH)*.res
997 -rmdir $(OUTDIR)
Bram Moolenaar115510f2018-10-17 22:12:14 +0200998 -$(DEL) $(TARGET) vimrun.exe install.exe uninstal.exe
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100999 -$(DEL) pathdef.c
1000ifdef PERL
1001 -$(DEL) if_perl.c
Bram Moolenaara16bc542018-10-14 16:25:10 +02001002 -$(DEL) auto$(DIRSLASH)if_perl.c
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001003endif
1004ifdef MZSCHEME
1005 -$(DEL) mzscheme_base.c
1006endif
1007 $(MAKE) -C GvimExt -f Make_ming.mak clean
1008 $(MAKE) -C xxd -f Make_ming.mak clean
Bram Moolenaar04c86d22018-10-17 22:45:54 +02001009 $(MAKE) -C tee clean
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001010
1011###########################################################################
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001012INCL = vim.h alloc.h arabic.h ascii.h ex_cmds.h farsi.h feature.h globals.h \
1013 keymap.h macros.h option.h os_dos.h os_win32.h proto.h regexp.h \
Bram Moolenaarc3719bd2017-11-18 22:13:31 +01001014 spell.h structs.h term.h beval.h $(NBDEBUG_INCL)
1015GUI_INCL = gui.h
Bram Moolenaar97ff9b92016-06-26 20:37:46 +02001016CUI_INCL = iscygpty.h
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001017
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001018$(OUTDIR)/if_python.o: if_python.c if_py_both.h $(INCL)
Bram Moolenaar449538c2016-01-09 17:49:15 +01001019 $(CC) -c $(CFLAGS) $(PYTHONINC) $(PYTHON_HOME_DEF) $< -o $@
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001020
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001021$(OUTDIR)/if_python3.o: if_python3.c if_py_both.h $(INCL)
Bram Moolenaara7c37952016-01-20 22:23:15 +01001022 $(CC) -c $(CFLAGS) $(PYTHON3INC) $(PYTHON3_HOME_DEF) $< -o $@
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001023
1024$(OUTDIR)/%.o : %.c $(INCL)
1025 $(CC) -c $(CFLAGS) $< -o $@
1026
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001027$(OUTDIR)/vimrc.o: vim.rc version.h gui_w32_rc.h
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001028 $(WINDRES) $(WINDRES_FLAGS) $(DEFINES) \
1029 --input-format=rc --output-format=coff -i vim.rc -o $@
1030
1031$(OUTDIR):
1032 $(MKDIR) $(OUTDIR)
1033
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001034$(OUTDIR)/gui_dwrite.o: gui_dwrite.cpp $(INCL) gui_dwrite.h
Bram Moolenaarcc6cf9b2016-03-19 20:51:35 +01001035 $(CC) -c $(CFLAGS) $(CXXFLAGS) gui_dwrite.cpp -o $(OUTDIR)/gui_dwrite.o
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001036
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001037$(OUTDIR)/gui.o: gui.c $(INCL) $(GUI_INCL)
1038 $(CC) -c $(CFLAGS) gui.c -o $(OUTDIR)/gui.o
1039
Bram Moolenaarc3719bd2017-11-18 22:13:31 +01001040$(OUTDIR)/beval.o: beval.c $(INCL) $(GUI_INCL)
1041 $(CC) -c $(CFLAGS) beval.c -o $(OUTDIR)/beval.o
1042
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001043$(OUTDIR)/gui_beval.o: gui_beval.c $(INCL) $(GUI_INCL)
1044 $(CC) -c $(CFLAGS) gui_beval.c -o $(OUTDIR)/gui_beval.o
1045
1046$(OUTDIR)/gui_w32.o: gui_w32.c $(INCL) $(GUI_INCL)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001047 $(CC) -c $(CFLAGS) gui_w32.c -o $(OUTDIR)/gui_w32.o
1048
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001049$(OUTDIR)/if_cscope.o: if_cscope.c $(INCL) if_cscope.h
1050 $(CC) -c $(CFLAGS) if_cscope.c -o $(OUTDIR)/if_cscope.o
1051
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001052$(OUTDIR)/if_mzsch.o: if_mzsch.c $(INCL) $(MZSCHEME_INCL) $(MZ_EXTRA_DEP)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001053 $(CC) -c $(CFLAGS) if_mzsch.c -o $(OUTDIR)/if_mzsch.o
1054
1055mzscheme_base.c:
1056 $(MZSCHEME)/mzc --c-mods mzscheme_base.c ++lib scheme/base
1057
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001058# Remove -D__IID_DEFINED__ for newer versions of the w32api
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001059$(OUTDIR)/if_ole.o: if_ole.cpp $(INCL) if_ole.h
Bram Moolenaarcc6cf9b2016-03-19 20:51:35 +01001060 $(CC) $(CFLAGS) $(CXXFLAGS) -c -o $(OUTDIR)/if_ole.o if_ole.cpp
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001061
Bram Moolenaara16bc542018-10-14 16:25:10 +02001062auto/if_perl.c: if_perl.xs typemap
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001063 $(XSUBPP) -prototypes -typemap \
1064 $(PERLTYPEMAP) if_perl.xs -output $@
1065
Bram Moolenaara16bc542018-10-14 16:25:10 +02001066$(OUTDIR)/if_perl.o: auto/if_perl.c $(INCL)
Bram Moolenaarb361db02018-10-16 21:13:14 +02001067 $(CC) -c $(CFLAGS) auto/if_perl.c -o $(OUTDIR)/if_perl.o
Bram Moolenaara16bc542018-10-14 16:25:10 +02001068
1069
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001070$(OUTDIR)/if_ruby.o: if_ruby.c $(INCL)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001071ifeq (16, $(RUBY))
1072 $(CC) $(CFLAGS) -U_WIN32 -c -o $(OUTDIR)/if_ruby.o if_ruby.c
1073endif
1074
Bram Moolenaar97ff9b92016-06-26 20:37:46 +02001075$(OUTDIR)/iscygpty.o: iscygpty.c $(CUI_INCL)
Bram Moolenaar2bc127f2016-07-10 13:57:40 +02001076 $(CC) -c $(CFLAGS) iscygpty.c -o $(OUTDIR)/iscygpty.o -U_WIN32_WINNT -D_WIN32_WINNT=0x0600 -DUSE_DYNFILEID -DENABLE_STUB_IMPL
Bram Moolenaar97ff9b92016-06-26 20:37:46 +02001077
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001078$(OUTDIR)/main.o: main.c $(INCL) $(CUI_INCL)
Bram Moolenaar97ff9b92016-06-26 20:37:46 +02001079 $(CC) -c $(CFLAGS) main.c -o $(OUTDIR)/main.o
1080
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001081$(OUTDIR)/netbeans.o: netbeans.c $(INCL) $(NBDEBUG_INCL) $(NBDEBUG_SRC)
1082 $(CC) -c $(CFLAGS) netbeans.c -o $(OUTDIR)/netbeans.o
1083
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001084$(OUTDIR)/os_win32.o: os_win32.c $(INCL) $(MZSCHEME_INCL)
1085 $(CC) -c $(CFLAGS) os_win32.c -o $(OUTDIR)/os_win32.o
1086
1087$(OUTDIR)/regexp.o: regexp.c regexp_nfa.c $(INCL)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001088 $(CC) -c $(CFLAGS) regexp.c -o $(OUTDIR)/regexp.o
1089
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001090$(OUTDIR)/terminal.o: terminal.c $(INCL) $(TERM_DEPS)
1091 $(CC) -c $(CFLAGS) terminal.c -o $(OUTDIR)/terminal.o
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001092
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001093
Bram Moolenaar6d0826d2017-08-22 22:12:17 +02001094CCCTERM = $(CC) -c $(CFLAGS) -Ilibvterm/include -DINLINE="" \
1095 -DVSNPRINTF=vim_vsnprintf \
1096 -DIS_COMBINING_FUNCTION=utf_iscomposing_uint \
1097 -DWCWIDTH_FUNCTION=utf_uint2cells
1098
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001099$(OUTDIR)/encoding.o: libvterm/src/encoding.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001100 $(CCCTERM) libvterm/src/encoding.c -o $@
1101
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001102$(OUTDIR)/keyboard.o: libvterm/src/keyboard.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001103 $(CCCTERM) libvterm/src/keyboard.c -o $@
1104
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001105$(OUTDIR)/mouse.o: libvterm/src/mouse.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001106 $(CCCTERM) libvterm/src/mouse.c -o $@
1107
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001108$(OUTDIR)/parser.o: libvterm/src/parser.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001109 $(CCCTERM) libvterm/src/parser.c -o $@
1110
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001111$(OUTDIR)/pen.o: libvterm/src/pen.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001112 $(CCCTERM) libvterm/src/pen.c -o $@
1113
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001114$(OUTDIR)/termscreen.o: libvterm/src/termscreen.c $(TERM_DEPS)
1115 $(CCCTERM) libvterm/src/termscreen.c -o $@
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001116
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001117$(OUTDIR)/state.o: libvterm/src/state.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001118 $(CCCTERM) libvterm/src/state.c -o $@
1119
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001120$(OUTDIR)/unicode.o: libvterm/src/unicode.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001121 $(CCCTERM) libvterm/src/unicode.c -o $@
1122
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001123$(OUTDIR)/vterm.o: libvterm/src/vterm.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001124 $(CCCTERM) libvterm/src/vterm.c -o $@
1125
Bram Moolenaare828b762018-09-10 17:51:58 +02001126$(OUTDIR)/xdiffi.o: xdiff/xdiffi.c $(XDIFF_DEPS)
1127 $(CC) -c $(CFLAGS) xdiff/xdiffi.c -o $(OUTDIR)/xdiffi.o
1128
1129$(OUTDIR)/xemit.o: xdiff/xemit.c $(XDIFF_DEPS)
1130 $(CC) -c $(CFLAGS) xdiff/xemit.c -o $(OUTDIR)/xemit.o
1131
1132$(OUTDIR)/xprepare.o: xdiff/xprepare.c $(XDIFF_DEPS)
1133 $(CC) -c $(CFLAGS) xdiff/xprepare.c -o $(OUTDIR)/xprepare.o
1134
1135$(OUTDIR)/xutils.o: xdiff/xutils.c $(XDIFF_DEPS)
1136 $(CC) -c $(CFLAGS) xdiff/xutils.c -o $(OUTDIR)/xutils.o
1137
1138$(OUTDIR)/xhistogram.o: xdiff/xhistogram.c $(XDIFF_DEPS)
1139 $(CC) -c $(CFLAGS) xdiff/xhistogram.c -o $(OUTDIR)/xhistogram.o
1140
1141$(OUTDIR)/xpatience.o: xdiff/xpatience.c $(XDIFF_DEPS)
1142 $(CC) -c $(CFLAGS) xdiff/xpatience.c -o $(OUTDIR)/xpatience.o
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001143
1144pathdef.c: $(INCL)
1145ifneq (sh.exe, $(SHELL))
1146 @echo creating pathdef.c
1147 @echo '/* pathdef.c */' > pathdef.c
1148 @echo '#include "vim.h"' >> pathdef.c
1149 @echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' >> pathdef.c
1150 @echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' >> pathdef.c
1151 @echo 'char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)";' >> pathdef.c
Bram Moolenaareda9e9c2018-10-21 22:45:43 +02001152 @echo 'char_u *all_lflags = (char_u *)"$(LINK) $(CFLAGS) $(LFLAGS) -o $(TARGET) $(LIB) -lole32 -luuid $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB)";' >> pathdef.c
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001153 @echo 'char_u *compiled_user = (char_u *)"$(USERNAME)";' >> pathdef.c
1154 @echo 'char_u *compiled_sys = (char_u *)"$(USERDOMAIN)";' >> pathdef.c
1155else
1156 @echo creating pathdef.c
1157 @echo /* pathdef.c */ > pathdef.c
1158 @echo #include "vim.h" >> pathdef.c
1159 @echo char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)"; >> pathdef.c
1160 @echo char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)"; >> pathdef.c
1161 @echo char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)"; >> pathdef.c
1162 @echo char_u *all_lflags = (char_u *)"$(CC) $(CFLAGS) $(LFLAGS) -o $(TARGET) $(LIB) -lole32 -luuid $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB)"; >> pathdef.c
1163 @echo char_u *compiled_user = (char_u *)"$(USERNAME)"; >> pathdef.c
1164 @echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> pathdef.c
1165endif
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001166
1167# vim: set noet sw=8 ts=8 sts=0 wm=0 tw=0: