blob: 11ce0fc12f178f725af98401c87a69904e623be7 [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 \
Bram Moolenaarbbea4702019-01-01 13:20:31 +0100749 $(OUTDIR)/sign.o \
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100750 $(OUTDIR)/spell.o \
Bram Moolenaar9ccfebd2016-07-19 16:39:08 +0200751 $(OUTDIR)/spellfile.o \
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100752 $(OUTDIR)/syntax.o \
753 $(OUTDIR)/tag.o \
754 $(OUTDIR)/term.o \
Bram Moolenaar98aefe72018-12-13 22:20:09 +0100755 $(OUTDIR)/textprop.o \
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100756 $(OUTDIR)/ui.o \
757 $(OUTDIR)/undo.o \
Bram Moolenaar6583c442016-07-17 18:41:47 +0200758 $(OUTDIR)/userfunc.o \
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100759 $(OUTDIR)/version.o \
760 $(OUTDIR)/vimrc.o \
761 $(OUTDIR)/window.o
762
763ifdef PERL
764OBJ += $(OUTDIR)/if_perl.o
765endif
766ifdef LUA
767OBJ += $(OUTDIR)/if_lua.o
768endif
769ifdef MZSCHEME
770OBJ += $(OUTDIR)/if_mzsch.o
771MZSCHEME_INCL = if_mzsch.h
772ifeq (yes,$(MZSCHEME_GENERATE_BASE))
773CFLAGS += -DINCLUDE_MZSCHEME_BASE
774MZ_EXTRA_DEP += mzscheme_base.c
775endif
776ifeq (yes,$(MZSCHEME_PRECISE_GC))
777CFLAGS += -DMZ_PRECISE_GC
778endif
779endif
780ifdef PYTHON
781OBJ += $(OUTDIR)/if_python.o
782endif
783ifdef PYTHON3
784OBJ += $(OUTDIR)/if_python3.o
785endif
786ifdef RUBY
787OBJ += $(OUTDIR)/if_ruby.o
788endif
789ifdef TCL
790OBJ += $(OUTDIR)/if_tcl.o
791endif
792ifeq ($(CSCOPE),yes)
793OBJ += $(OUTDIR)/if_cscope.o
794endif
Bram Moolenaare0874f82016-01-24 20:36:41 +0100795
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100796ifeq ($(NETBEANS),yes)
Bram Moolenaare0874f82016-01-24 20:36:41 +0100797ifneq ($(CHANNEL),yes)
798# Cannot use Netbeans without CHANNEL
799NETBEANS=no
800else
Bram Moolenaar44d57182016-02-14 23:11:23 +0100801ifneq (yes, $(GUI))
802# Cannot use Netbeans without GUI.
803NETBEANS=no
804else
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100805OBJ += $(OUTDIR)/netbeans.o
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100806endif
807endif
Bram Moolenaare0874f82016-01-24 20:36:41 +0100808endif
809
810ifeq ($(CHANNEL),yes)
811OBJ += $(OUTDIR)/channel.o
Bram Moolenaare0874f82016-01-24 20:36:41 +0100812LIB += -lwsock32
813endif
Bram Moolenaare0874f82016-01-24 20:36:41 +0100814
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100815ifeq ($(DIRECTX),yes)
816# Only allow DIRECTX for a GUI build.
817ifeq (yes, $(GUI))
818OBJ += $(OUTDIR)/gui_dwrite.o
819LIB += -ld2d1 -ldwrite
820USE_STDCPLUS = yes
821endif
822endif
823ifneq ($(XPM),no)
824# Only allow XPM for a GUI build.
825ifeq (yes, $(GUI))
826OBJ += $(OUTDIR)/xpm_w32.o
827# You'll need libXpm.a from http://gnuwin32.sf.net
828LIB += -L$(XPM)/lib -lXpm
829endif
830endif
831
Bram Moolenaar4fc63502017-07-19 11:28:17 +0200832ifeq ($(TERMINAL),yes)
Bram Moolenaarf80451e2017-07-25 21:49:35 +0200833OBJ += $(OUTDIR)/terminal.o \
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +0200834 $(OUTDIR)/encoding.o \
835 $(OUTDIR)/keyboard.o \
836 $(OUTDIR)/mouse.o \
837 $(OUTDIR)/parser.o \
838 $(OUTDIR)/pen.o \
839 $(OUTDIR)/termscreen.o \
840 $(OUTDIR)/state.o \
841 $(OUTDIR)/unicode.o \
842 $(OUTDIR)/vterm.o
Bram Moolenaar4fc63502017-07-19 11:28:17 +0200843endif
844
Bram Moolenaare828b762018-09-10 17:51:58 +0200845# Include xdiff
846OBJ += $(OUTDIR)/xdiffi.o \
847 $(OUTDIR)/xemit.o \
848 $(OUTDIR)/xprepare.o \
849 $(OUTDIR)/xutils.o \
850 $(OUTDIR)/xhistogram.o \
851 $(OUTDIR)/xpatience.o
852
853XDIFF_DEPS = \
854 xdiff/xdiff.h \
855 xdiff/xdiffi.h \
856 xdiff/xemit.h \
857 xdiff/xinclude.h \
858 xdiff/xmacros.h \
859 xdiff/xprepare.h \
860 xdiff/xtypes.h \
861 xdiff/xutils.h
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100862
863ifdef MZSCHEME
864MZSCHEME_SUFFIX = Z
865endif
866
867ifeq ($(GUI),yes)
868TARGET := gvim$(DEBUG_SUFFIX).exe
869DEFINES += $(DEF_GUI)
870OBJ += $(GUIOBJ)
871LFLAGS += -mwindows
872OUTDIR = gobj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH)
873else
Bram Moolenaar97ff9b92016-06-26 20:37:46 +0200874OBJ += $(CUIOBJ)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100875TARGET := vim$(DEBUG_SUFFIX).exe
876OUTDIR = obj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH)
877endif
878
879ifdef GETTEXT
880ifneq (yes, $(GETTEXT))
881CFLAGS += -I$(GETTEXTINCLUDE)
882ifndef STATIC_GETTEXT
883LIB += -L$(GETTEXTLIB) -l$(INTLLIB)
884ifeq (USE_SAFE_GETTEXT_DLL, $(DYNAMIC_GETTEXT))
885OBJ+=$(SAFE_GETTEXT_DLL_OBJ)
886endif
887else
888LIB += -L$(GETTEXTLIB) -lintl
889endif
890endif
891endif
892
893ifdef PERL
894ifeq (no, $(DYNAMIC_PERL))
895LIB += -L$(PERLLIBS) -lperl$(PERL_VER)
896endif
897endif
898
899ifdef TCL
900LIB += -L$(TCL)/lib
901ifeq (yes, $(DYNAMIC_TCL))
902LIB += -ltclstub$(TCL_VER)
903else
904LIB += -ltcl$(TCL_VER)
905endif
906endif
907
908ifeq (yes, $(OLE))
909LIB += -loleaut32
910OBJ += $(OUTDIR)/if_ole.o
911USE_STDCPLUS = yes
912endif
913
914ifeq (yes, $(MBYTE))
915DEFINES += -DFEAT_MBYTE
916endif
917
918ifeq (yes, $(IME))
919DEFINES += -DFEAT_MBYTE_IME
920ifeq (yes, $(DYNAMIC_IME))
921DEFINES += -DDYNAMIC_IME
922else
923LIB += -limm32
924endif
925endif
926
927ifdef ICONV
928ifneq (yes, $(ICONV))
929LIB += -L$(ICONV)
930CFLAGS += -I$(ICONV)
931endif
932DEFINES+=-DDYNAMIC_ICONV
933endif
934
935ifeq (yes, $(USE_STDCPLUS))
Bram Moolenaareda9e9c2018-10-21 22:45:43 +0200936LINK = $(CXX)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100937ifeq (yes, $(STATIC_STDCPLUS))
Bram Moolenaareda9e9c2018-10-21 22:45:43 +0200938LIB += -static-libstdc++ -static-libgcc
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100939endif
Bram Moolenaareda9e9c2018-10-21 22:45:43 +0200940else
941LINK = $(CC)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100942endif
943
Bram Moolenaare3af7632016-12-01 20:37:47 +0100944ifeq (yes, $(STATIC_WINPTHREAD))
Bram Moolenaareda9e9c2018-10-21 22:45:43 +0200945ifeq (yes, $(HAS_GCC_EH))
946LIB += -lgcc_eh
947endif
Bram Moolenaare3af7632016-12-01 20:37:47 +0100948LIB += -Wl,-Bstatic -lwinpthread -Wl,-Bdynamic
949endif
950
Bram Moolenaar4ff42902018-09-21 14:43:10 +0200951ifeq (yes, $(MAP))
952LFLAGS += -Wl,-Map=$(TARGET).map
953endif
954
Bram Moolenaar04c86d22018-10-17 22:45:54 +0200955all: $(TARGET) vimrun.exe xxd/xxd.exe tee/tee.exe install.exe uninstal.exe GvimExt/gvimext.dll
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100956
957vimrun.exe: vimrun.c
958 $(CC) $(CFLAGS) -o vimrun.exe vimrun.c $(LIB)
959
960install.exe: dosinst.c
961 $(CC) $(CFLAGS) -o install.exe dosinst.c $(LIB) -lole32 -luuid
962
963uninstal.exe: uninstal.c
964 $(CC) $(CFLAGS) -o uninstal.exe uninstal.c $(LIB)
965
966$(TARGET): $(OUTDIR) $(OBJ)
Bram Moolenaareda9e9c2018-10-21 22:45:43 +0200967 $(LINK) $(CFLAGS) $(LFLAGS) -o $@ $(OBJ) $(LIB) -lole32 -luuid $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100968
969upx: exes
970 upx gvim.exe
971 upx vim.exe
972
973mpress: exes
974 mpress gvim.exe
975 mpress vim.exe
976
977xxd/xxd.exe: xxd/xxd.c
978 $(MAKE) -C xxd -f Make_ming.mak CC='$(CC)'
979
Bram Moolenaar04c86d22018-10-17 22:45:54 +0200980tee/tee.exe: tee/tee.c
981 $(MAKE) -C tee CC='$(CC)'
982
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100983GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
984 $(MAKE) -C GvimExt -f Make_ming.mak CROSS=$(CROSS) CROSS_COMPILE=$(CROSS_COMPILE) CXX='$(CXX)' STATIC_STDCPLUS=$(STATIC_STDCPLUS)
985
Bram Moolenaar9ac9dfa2017-09-01 18:41:26 +0200986tags: notags
Bram Moolenaar6dc67032018-12-19 21:05:57 +0100987 $(CTAGS) $(TAGS_FILES)
Bram Moolenaar9ac9dfa2017-09-01 18:41:26 +0200988
989notags:
990 -$(DEL) tags
991
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100992clean:
993 -$(DEL) $(OUTDIR)$(DIRSLASH)*.o
994 -$(DEL) $(OUTDIR)$(DIRSLASH)*.res
995 -rmdir $(OUTDIR)
Bram Moolenaar115510f2018-10-17 22:12:14 +0200996 -$(DEL) $(TARGET) vimrun.exe install.exe uninstal.exe
Bram Moolenaar4f7e8212014-11-05 13:53:32 +0100997 -$(DEL) pathdef.c
998ifdef PERL
999 -$(DEL) if_perl.c
Bram Moolenaara16bc542018-10-14 16:25:10 +02001000 -$(DEL) auto$(DIRSLASH)if_perl.c
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001001endif
1002ifdef MZSCHEME
1003 -$(DEL) mzscheme_base.c
1004endif
1005 $(MAKE) -C GvimExt -f Make_ming.mak clean
1006 $(MAKE) -C xxd -f Make_ming.mak clean
Bram Moolenaar04c86d22018-10-17 22:45:54 +02001007 $(MAKE) -C tee clean
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001008
1009###########################################################################
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001010INCL = vim.h alloc.h arabic.h ascii.h ex_cmds.h farsi.h feature.h globals.h \
1011 keymap.h macros.h option.h os_dos.h os_win32.h proto.h regexp.h \
Bram Moolenaarc3719bd2017-11-18 22:13:31 +01001012 spell.h structs.h term.h beval.h $(NBDEBUG_INCL)
1013GUI_INCL = gui.h
Bram Moolenaar97ff9b92016-06-26 20:37:46 +02001014CUI_INCL = iscygpty.h
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001015
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001016$(OUTDIR)/if_python.o: if_python.c if_py_both.h $(INCL)
Bram Moolenaar449538c2016-01-09 17:49:15 +01001017 $(CC) -c $(CFLAGS) $(PYTHONINC) $(PYTHON_HOME_DEF) $< -o $@
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001018
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001019$(OUTDIR)/if_python3.o: if_python3.c if_py_both.h $(INCL)
Bram Moolenaara7c37952016-01-20 22:23:15 +01001020 $(CC) -c $(CFLAGS) $(PYTHON3INC) $(PYTHON3_HOME_DEF) $< -o $@
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001021
1022$(OUTDIR)/%.o : %.c $(INCL)
1023 $(CC) -c $(CFLAGS) $< -o $@
1024
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001025$(OUTDIR)/vimrc.o: vim.rc version.h gui_w32_rc.h
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001026 $(WINDRES) $(WINDRES_FLAGS) $(DEFINES) \
1027 --input-format=rc --output-format=coff -i vim.rc -o $@
1028
1029$(OUTDIR):
1030 $(MKDIR) $(OUTDIR)
1031
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001032$(OUTDIR)/gui_dwrite.o: gui_dwrite.cpp $(INCL) gui_dwrite.h
Bram Moolenaarcc6cf9b2016-03-19 20:51:35 +01001033 $(CC) -c $(CFLAGS) $(CXXFLAGS) gui_dwrite.cpp -o $(OUTDIR)/gui_dwrite.o
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001034
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001035$(OUTDIR)/gui.o: gui.c $(INCL) $(GUI_INCL)
1036 $(CC) -c $(CFLAGS) gui.c -o $(OUTDIR)/gui.o
1037
Bram Moolenaarc3719bd2017-11-18 22:13:31 +01001038$(OUTDIR)/beval.o: beval.c $(INCL) $(GUI_INCL)
1039 $(CC) -c $(CFLAGS) beval.c -o $(OUTDIR)/beval.o
1040
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001041$(OUTDIR)/gui_beval.o: gui_beval.c $(INCL) $(GUI_INCL)
1042 $(CC) -c $(CFLAGS) gui_beval.c -o $(OUTDIR)/gui_beval.o
1043
1044$(OUTDIR)/gui_w32.o: gui_w32.c $(INCL) $(GUI_INCL)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001045 $(CC) -c $(CFLAGS) gui_w32.c -o $(OUTDIR)/gui_w32.o
1046
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001047$(OUTDIR)/if_cscope.o: if_cscope.c $(INCL) if_cscope.h
1048 $(CC) -c $(CFLAGS) if_cscope.c -o $(OUTDIR)/if_cscope.o
1049
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001050$(OUTDIR)/if_mzsch.o: if_mzsch.c $(INCL) $(MZSCHEME_INCL) $(MZ_EXTRA_DEP)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001051 $(CC) -c $(CFLAGS) if_mzsch.c -o $(OUTDIR)/if_mzsch.o
1052
1053mzscheme_base.c:
1054 $(MZSCHEME)/mzc --c-mods mzscheme_base.c ++lib scheme/base
1055
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001056# Remove -D__IID_DEFINED__ for newer versions of the w32api
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001057$(OUTDIR)/if_ole.o: if_ole.cpp $(INCL) if_ole.h
Bram Moolenaarcc6cf9b2016-03-19 20:51:35 +01001058 $(CC) $(CFLAGS) $(CXXFLAGS) -c -o $(OUTDIR)/if_ole.o if_ole.cpp
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001059
Bram Moolenaara16bc542018-10-14 16:25:10 +02001060auto/if_perl.c: if_perl.xs typemap
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001061 $(XSUBPP) -prototypes -typemap \
1062 $(PERLTYPEMAP) if_perl.xs -output $@
1063
Bram Moolenaara16bc542018-10-14 16:25:10 +02001064$(OUTDIR)/if_perl.o: auto/if_perl.c $(INCL)
Bram Moolenaarb361db02018-10-16 21:13:14 +02001065 $(CC) -c $(CFLAGS) auto/if_perl.c -o $(OUTDIR)/if_perl.o
Bram Moolenaara16bc542018-10-14 16:25:10 +02001066
1067
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001068$(OUTDIR)/if_ruby.o: if_ruby.c $(INCL)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001069ifeq (16, $(RUBY))
1070 $(CC) $(CFLAGS) -U_WIN32 -c -o $(OUTDIR)/if_ruby.o if_ruby.c
1071endif
1072
Bram Moolenaar97ff9b92016-06-26 20:37:46 +02001073$(OUTDIR)/iscygpty.o: iscygpty.c $(CUI_INCL)
Bram Moolenaar2bc127f2016-07-10 13:57:40 +02001074 $(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 +02001075
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001076$(OUTDIR)/main.o: main.c $(INCL) $(CUI_INCL)
Bram Moolenaar97ff9b92016-06-26 20:37:46 +02001077 $(CC) -c $(CFLAGS) main.c -o $(OUTDIR)/main.o
1078
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001079$(OUTDIR)/netbeans.o: netbeans.c $(INCL) $(NBDEBUG_INCL) $(NBDEBUG_SRC)
1080 $(CC) -c $(CFLAGS) netbeans.c -o $(OUTDIR)/netbeans.o
1081
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001082$(OUTDIR)/os_win32.o: os_win32.c $(INCL) $(MZSCHEME_INCL)
1083 $(CC) -c $(CFLAGS) os_win32.c -o $(OUTDIR)/os_win32.o
1084
1085$(OUTDIR)/regexp.o: regexp.c regexp_nfa.c $(INCL)
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001086 $(CC) -c $(CFLAGS) regexp.c -o $(OUTDIR)/regexp.o
1087
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001088$(OUTDIR)/terminal.o: terminal.c $(INCL) $(TERM_DEPS)
1089 $(CC) -c $(CFLAGS) terminal.c -o $(OUTDIR)/terminal.o
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001090
Bram Moolenaar98aefe72018-12-13 22:20:09 +01001091$(OUTDIR)/textprop.o: textprop.c $(INCL)
1092 $(CC) -c $(CFLAGS) textprop.c -o $(OUTDIR)/textprop.o
1093
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001094
Bram Moolenaar6d0826d2017-08-22 22:12:17 +02001095CCCTERM = $(CC) -c $(CFLAGS) -Ilibvterm/include -DINLINE="" \
1096 -DVSNPRINTF=vim_vsnprintf \
1097 -DIS_COMBINING_FUNCTION=utf_iscomposing_uint \
1098 -DWCWIDTH_FUNCTION=utf_uint2cells
1099
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001100$(OUTDIR)/encoding.o: libvterm/src/encoding.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001101 $(CCCTERM) libvterm/src/encoding.c -o $@
1102
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001103$(OUTDIR)/keyboard.o: libvterm/src/keyboard.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001104 $(CCCTERM) libvterm/src/keyboard.c -o $@
1105
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001106$(OUTDIR)/mouse.o: libvterm/src/mouse.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001107 $(CCCTERM) libvterm/src/mouse.c -o $@
1108
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001109$(OUTDIR)/parser.o: libvterm/src/parser.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001110 $(CCCTERM) libvterm/src/parser.c -o $@
1111
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001112$(OUTDIR)/pen.o: libvterm/src/pen.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001113 $(CCCTERM) libvterm/src/pen.c -o $@
1114
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001115$(OUTDIR)/termscreen.o: libvterm/src/termscreen.c $(TERM_DEPS)
1116 $(CCCTERM) libvterm/src/termscreen.c -o $@
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001117
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001118$(OUTDIR)/state.o: libvterm/src/state.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001119 $(CCCTERM) libvterm/src/state.c -o $@
1120
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001121$(OUTDIR)/unicode.o: libvterm/src/unicode.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001122 $(CCCTERM) libvterm/src/unicode.c -o $@
1123
Bram Moolenaar78dcd4f2018-09-13 17:23:28 +02001124$(OUTDIR)/vterm.o: libvterm/src/vterm.c $(TERM_DEPS)
Bram Moolenaarf80451e2017-07-25 21:49:35 +02001125 $(CCCTERM) libvterm/src/vterm.c -o $@
1126
Bram Moolenaare828b762018-09-10 17:51:58 +02001127$(OUTDIR)/xdiffi.o: xdiff/xdiffi.c $(XDIFF_DEPS)
1128 $(CC) -c $(CFLAGS) xdiff/xdiffi.c -o $(OUTDIR)/xdiffi.o
1129
1130$(OUTDIR)/xemit.o: xdiff/xemit.c $(XDIFF_DEPS)
1131 $(CC) -c $(CFLAGS) xdiff/xemit.c -o $(OUTDIR)/xemit.o
1132
1133$(OUTDIR)/xprepare.o: xdiff/xprepare.c $(XDIFF_DEPS)
1134 $(CC) -c $(CFLAGS) xdiff/xprepare.c -o $(OUTDIR)/xprepare.o
1135
1136$(OUTDIR)/xutils.o: xdiff/xutils.c $(XDIFF_DEPS)
1137 $(CC) -c $(CFLAGS) xdiff/xutils.c -o $(OUTDIR)/xutils.o
1138
1139$(OUTDIR)/xhistogram.o: xdiff/xhistogram.c $(XDIFF_DEPS)
1140 $(CC) -c $(CFLAGS) xdiff/xhistogram.c -o $(OUTDIR)/xhistogram.o
1141
1142$(OUTDIR)/xpatience.o: xdiff/xpatience.c $(XDIFF_DEPS)
1143 $(CC) -c $(CFLAGS) xdiff/xpatience.c -o $(OUTDIR)/xpatience.o
Bram Moolenaar4f7e8212014-11-05 13:53:32 +01001144
1145pathdef.c: $(INCL)
1146ifneq (sh.exe, $(SHELL))
1147 @echo creating pathdef.c
1148 @echo '/* pathdef.c */' > pathdef.c
1149 @echo '#include "vim.h"' >> pathdef.c
1150 @echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' >> pathdef.c
1151 @echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' >> pathdef.c
1152 @echo 'char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)";' >> pathdef.c
Bram Moolenaareda9e9c2018-10-21 22:45:43 +02001153 @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 +01001154 @echo 'char_u *compiled_user = (char_u *)"$(USERNAME)";' >> pathdef.c
1155 @echo 'char_u *compiled_sys = (char_u *)"$(USERDOMAIN)";' >> pathdef.c
1156else
1157 @echo creating pathdef.c
1158 @echo /* pathdef.c */ > pathdef.c
1159 @echo #include "vim.h" >> pathdef.c
1160 @echo char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)"; >> pathdef.c
1161 @echo char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)"; >> pathdef.c
1162 @echo char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)"; >> pathdef.c
1163 @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
1164 @echo char_u *compiled_user = (char_u *)"$(USERNAME)"; >> pathdef.c
1165 @echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> pathdef.c
1166endif
Bram Moolenaar96e7a6e2017-09-23 19:48:29 +02001167
1168# vim: set noet sw=8 ts=8 sts=0 wm=0 tw=0: