annotate src/Make_cyg_ming.mak @ 18862:4a3c9d39fc31 v8.1.2417

patch 8.1.2417: MinGW/Cygwin build does not clean up all files Commit: https://github.com/vim/vim/commit/1e46705a83ef2bbabd4a53ec40108558b73ed54f Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 10 22:48:15 2019 +0100 patch 8.1.2417: MinGW/Cygwin build does not clean up all files Problem: MinGW/Cygwin build does not clean up all files. Solution: Delete *.map files. (Michael Soyka)
author Bram Moolenaar <Bram@vim.org>
date Tue, 10 Dec 2019 23:00:04 +0100
parents 5ecefcbd12a1
children 9a723f1e2d4e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 # Makefile for VIM on Win32 (Cygwin and MinGW)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2 #
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 # This file contains common part for Cygwin and MinGW and it is included
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 # from Make_cyg.mak and Make_ming.mak.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 #
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 # Info at http://www.mingw.org
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 # Alternative x86 and 64-builds: http://mingw-w64.sourceforge.net
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 # Also requires GNU make, which you can download from the same sites.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 # Get missing libraries from http://gnuwin32.sf.net.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 #
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 # Tested on Win32 NT 4 and Win95.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 #
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 # To make everything, just 'make -f Make_ming.mak'.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 # To make just e.g. gvim.exe, 'make -f Make_ming.mak gvim.exe'.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 # After a run, you can 'make -f Make_ming.mak clean' to clean up.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 #
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 # NOTE: Sometimes 'GNU Make' will stop after building vimrun.exe -- I think
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 # it's just run out of memory or something. Run again, and it will continue
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 # with 'xxd'.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 #
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 # "make upx" makes *compressed* versions of the 32 bit GUI and console EXEs,
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 # using the excellent UPX compressor:
13468
539436dcb134 patch 8.0.1608: Win32: directx not enabled by default
Christian Brabandt <cb@256bit.org>
parents: 13028
diff changeset
23 # https://upx.github.io/
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 # "make mpress" uses the MPRESS compressor for 32- and 64-bit EXEs:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 # http://www.matcode.com/mpress.htm
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 #
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 # Maintained by Ron Aaron <ronaharon@yahoo.com> et al.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 # Updated 2014 Oct 13.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 #>>>>> choose options:
13658
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
31 # FEATURES=[TINY | SMALL | NORMAL | BIG | HUGE]
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
32 # Set to TINY to make minimal version (few features).
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
33 FEATURES=HUGE
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
34
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 # set to yes for a debug build
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36 DEBUG=no
13658
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
37
14820
8ff32a34f25e patch 8.1.0422: cannot create map file with MinGW
Christian Brabandt <cb@256bit.org>
parents: 14818
diff changeset
38 # set to yes to create a mapfile
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
39 #MAP=yes
14820
8ff32a34f25e patch 8.1.0422: cannot create map file with MinGW
Christian Brabandt <cb@256bit.org>
parents: 14818
diff changeset
40
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
41 # set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
42 OPTIMIZE=MAXSPEED
13658
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
43
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
44 # set to yes to make gvim, no for vim
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
45 GUI=yes
13658
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
46
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
47 # set to yes to enable the DLL support (EXPERIMENTAL).
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
48 # Creates vim{32,64}.dll, and stub gvim.exe and vim.exe.
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
49 # "GUI" should be also set to "yes".
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
50 #VIMDLL=yes
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
51
13468
539436dcb134 patch 8.0.1608: Win32: directx not enabled by default
Christian Brabandt <cb@256bit.org>
parents: 13028
diff changeset
52 # set to no if you do not want to use DirectWrite (DirectX)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
53 # MinGW-w64 is needed, and ARCH should be set to i686 or x86-64.
13468
539436dcb134 patch 8.0.1608: Win32: directx not enabled by default
Christian Brabandt <cb@256bit.org>
parents: 13028
diff changeset
54 DIRECTX=yes
13658
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
55
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
56 # Disable Color emoji support
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
57 # (default is yes if DIRECTX=yes, requires WinSDK 8.1 or later.)
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
58 #COLOR_EMOJI=no
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
59
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
60 # Set to one of i386, i486, i586, i686 as the minimum target processor.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
61 # For amd64/x64 architecture set ARCH=x86-64 .
9499
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
62 # If not set, it will be automatically detected. (Normally i686 or x86-64.)
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
63 #ARCH=i686
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
64 # Set to yes to cross-compile from unix; no=native Windows (and Cygwin).
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
65 CROSS=no
13658
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
66
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
67 # Set to path to iconv.h and libiconv.a to enable using 'iconv.dll'.
12628
c3bb4552d15d patch 8.0.1192: MS-Windows: terminal feature not enabled by default
Christian Brabandt <cb@256bit.org>
parents: 12525
diff changeset
68 # Use "yes" when the path does not need to be define.
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
69 #ICONV="."
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
70 ICONV=yes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
71 GETTEXT=yes
13658
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
72
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
73 # Set to yes to include IME support.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
74 IME=yes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
75 DYNAMIC_IME=yes
13658
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
76
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
77 # Set to yes to enable writing a postscript file with :hardcopy.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
78 POSTSCRIPT=no
13658
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
79
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
80 # Set to yes to enable OLE support.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
81 OLE=no
13658
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
82
14222
78449866e9a9 patch 8.1.0128: building with MinGW does not work out-of-the-box
Christian Brabandt <cb@256bit.org>
parents: 14133
diff changeset
83 # Set the default $(WINVER). Use 0x0501 to make it work with WinXP.
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
84 ifndef WINVER
14222
78449866e9a9 patch 8.1.0128: building with MinGW does not work out-of-the-box
Christian Brabandt <cb@256bit.org>
parents: 14133
diff changeset
85 # WINVER = 0x0501
78449866e9a9 patch 8.1.0128: building with MinGW does not work out-of-the-box
Christian Brabandt <cb@256bit.org>
parents: 14133
diff changeset
86 WINVER = 0x0600
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
87 endif
13658
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
88
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
89 # Set to yes to enable Cscope support.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
90 CSCOPE=yes
13658
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
91
7743
6069f43cea4e commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents: 7712
diff changeset
92 # Set to yes to enable Netbeans support (requires CHANNEL).
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
93 NETBEANS=$(GUI)
13658
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
94
7743
6069f43cea4e commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents: 7712
diff changeset
95 # Set to yes to enable inter process communication.
9203
c096095ad9fb commit https://github.com/vim/vim/commit/1aa07bdead2e93501c54591e31fe73b9b09c58b5
Christian Brabandt <cb@256bit.org>
parents: 8696
diff changeset
96 ifeq (HUGE, $(FEATURES))
c096095ad9fb commit https://github.com/vim/vim/commit/1aa07bdead2e93501c54591e31fe73b9b09c58b5
Christian Brabandt <cb@256bit.org>
parents: 8696
diff changeset
97 CHANNEL=yes
c096095ad9fb commit https://github.com/vim/vim/commit/1aa07bdead2e93501c54591e31fe73b9b09c58b5
Christian Brabandt <cb@256bit.org>
parents: 8696
diff changeset
98 else
7743
6069f43cea4e commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents: 7712
diff changeset
99 CHANNEL=$(GUI)
9203
c096095ad9fb commit https://github.com/vim/vim/commit/1aa07bdead2e93501c54591e31fe73b9b09c58b5
Christian Brabandt <cb@256bit.org>
parents: 8696
diff changeset
100 endif
13658
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
101
11774
edf1a2a247fa patch 8.0.0769: build problems with terminal on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 11719
diff changeset
102 # Set to yes to enable terminal support.
12628
c3bb4552d15d patch 8.0.1192: MS-Windows: terminal feature not enabled by default
Christian Brabandt <cb@256bit.org>
parents: 12525
diff changeset
103 ifeq (HUGE, $(FEATURES))
c3bb4552d15d patch 8.0.1192: MS-Windows: terminal feature not enabled by default
Christian Brabandt <cb@256bit.org>
parents: 12525
diff changeset
104 TERMINAL=yes
c3bb4552d15d patch 8.0.1192: MS-Windows: terminal feature not enabled by default
Christian Brabandt <cb@256bit.org>
parents: 12525
diff changeset
105 else
11696
0a6136dfce35 patch 8.0.0731: cannot build the terminal feature on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 10442
diff changeset
106 TERMINAL=no
12628
c3bb4552d15d patch 8.0.1192: MS-Windows: terminal feature not enabled by default
Christian Brabandt <cb@256bit.org>
parents: 12525
diff changeset
107 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
108
17131
be5a5cfc991a patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents: 16778
diff changeset
109 # Set to yes to enable sound support.
be5a5cfc991a patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents: 16778
diff changeset
110 ifneq ($(findstring $(FEATURES),BIG HUGE),)
be5a5cfc991a patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents: 16778
diff changeset
111 SOUND=yes
be5a5cfc991a patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents: 16778
diff changeset
112 else
be5a5cfc991a patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents: 16778
diff changeset
113 SOUND=no
be5a5cfc991a patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents: 16778
diff changeset
114 endif
be5a5cfc991a patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents: 16778
diff changeset
115
12305
d4a3ad146204 patch 8.0.1032: "make tags" doesn't work well on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12218
diff changeset
116 ifndef CTAGS
d4a3ad146204 patch 8.0.1032: "make tags" doesn't work well on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12218
diff changeset
117 # this assumes ctags is Exuberant ctags
d4a3ad146204 patch 8.0.1032: "make tags" doesn't work well on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12218
diff changeset
118 CTAGS = ctags -I INIT+ --fields=+S
d4a3ad146204 patch 8.0.1032: "make tags" doesn't work well on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12218
diff changeset
119 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
120
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
121 # Link against the shared version of libstdc++ by default. Set
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
122 # STATIC_STDCPLUS to "yes" to link against static version instead.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
123 ifndef STATIC_STDCPLUS
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
124 STATIC_STDCPLUS=no
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
125 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
126
10442
70680eba1940 commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents: 10149
diff changeset
127
70680eba1940 commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents: 10149
diff changeset
128 # Link against the shared version of libwinpthread by default. Set
70680eba1940 commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents: 10149
diff changeset
129 # STATIC_WINPTHREAD to "yes" to link against static version instead.
70680eba1940 commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents: 10149
diff changeset
130 ifndef STATIC_WINPTHREAD
70680eba1940 commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents: 10149
diff changeset
131 STATIC_WINPTHREAD=$(STATIC_STDCPLUS)
70680eba1940 commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents: 10149
diff changeset
132 endif
14958
b898f9093199 patch 8.1.0490: MS-Windows: doesn't handle missing glibwinpthread-1.dll
Bram Moolenaar <Bram@vim.org>
parents: 14943
diff changeset
133 # If you use TDM-GCC(-64), change HAS_GCC_EH to "no".
b898f9093199 patch 8.1.0490: MS-Windows: doesn't handle missing glibwinpthread-1.dll
Bram Moolenaar <Bram@vim.org>
parents: 14943
diff changeset
134 # This is used when STATIC_STDCPLUS=yes.
b898f9093199 patch 8.1.0490: MS-Windows: doesn't handle missing glibwinpthread-1.dll
Bram Moolenaar <Bram@vim.org>
parents: 14943
diff changeset
135 HAS_GCC_EH=yes
10442
70680eba1940 commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents: 10149
diff changeset
136
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
137 # If the user doesn't want gettext, undefine it.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
138 ifeq (no, $(GETTEXT))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
139 GETTEXT=
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
140 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
141 # Added by E.F. Amatria <eferna1@platea.ptic.mec.es> 2001 Feb 23
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
142 # Uncomment the first line and one of the following three if you want Native Language
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
143 # Support. You'll need gnu_gettext.win32, a MINGW32 Windows PORT of gettext by
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
144 # Franco Bez <franco.bez@gmx.de>. It may be found at
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
145 # http://home.a-city.de/franco.bez/gettext/gettext_win32_en.html
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
146 # Tested with mingw32 with GCC-2.95.2 on Win98
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
147 # Updated 2001 Jun 9
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
148 #GETTEXT=c:/gettext.win32.msvcrt
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
149 #STATIC_GETTEXT=USE_STATIC_GETTEXT
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
150 #DYNAMIC_GETTEXT=USE_GETTEXT_DLL
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
151 #DYNAMIC_GETTEXT=USE_SAFE_GETTEXT_DLL
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
152 SAFE_GETTEXT_DLL_OBJ = $(GETTEXT)/src/safe_gettext_dll/safe_gettext_dll.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
153 # Alternatively, if you uncomment the two following lines, you get a "safe" version
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
154 # without linking the safe_gettext_dll.o object file.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
155 #DYNAMIC_GETTEXT=DYNAMIC_GETTEXT
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
156 #GETTEXT_DYNAMIC=gnu_gettext.dll
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
157 INTLPATH=$(GETTEXT)/lib/mingw32
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
158 INTLLIB=gnu_gettext
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
159
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
160 # If you are using gettext-0.10.35 from http://sourceforge.net/projects/gettext
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
161 # or gettext-0.10.37 from http://sourceforge.net/projects/mingwrep/
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
162 # uncomment the following, but I can't build a static version with them, ?-(|
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
163 #GETTEXT=c:/gettext-0.10.37-20010430
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
164 #STATIC_GETTEXT=USE_STATIC_GETTEXT
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
165 #DYNAMIC_GETTEXT=DYNAMIC_GETTEXT
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
166 #INTLPATH=$(GETTEXT)/lib
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
167 #INTLLIB=intl
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
168
9499
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
169
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
170 # Command definitions (depends on cross-compiling and shell)
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
171 ifeq ($(CROSS),yes)
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
172 # cross-compiler prefix:
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
173 ifndef CROSS_COMPILE
9499
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
174 CROSS_COMPILE = i586-pc-mingw32msvc-
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
175 endif
9499
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
176 DEL = rm
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
177 MKDIR = mkdir -p
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
178 DIRSLASH = /
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
179 else
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
180 # normal (Windows) compilation:
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
181 ifndef CROSS_COMPILE
9499
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
182 CROSS_COMPILE =
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
183 endif
14696
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
184
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
185 # About the "sh.exe" condition, as explained by Ken Takata:
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
186 #
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
187 # If the makefile is executed with mingw32-make and sh.exe is not found in
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
188 # $PATH, then $SHELL is set to "sh.exe" (without any path). In this case,
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
189 # unix-like commands might not work and a dos-style path is needed.
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
190 #
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
191 # If the makefile is executed with mingw32-make and sh.exe IS found in $PATH,
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
192 # then $SHELL is set with the actual path of sh.exe (e.g.
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
193 # "C:/msys64/usr/bin/sh.exe"). In this case, unix-like commands can be used.
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
194 #
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
195 # If it is executed by the "make" command from cmd.exe, $SHELL is set to
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
196 # "/bin/sh". If the "make" command is in the $PATH, other unix-like commands
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
197 # might also work.
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
198 #
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
199 # If it is executed by the "make" command from a unix-like shell,
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
200 # $SHELL is set with the unix-style path (e.g. "/bin/bash").
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
201 # In this case, unix-like commands can be used.
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
202 #
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
203 ifneq (sh.exe, $(SHELL))
9499
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
204 DEL = rm
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
205 MKDIR = mkdir -p
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
206 DIRSLASH = /
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
207 else
9499
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
208 DEL = del
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
209 MKDIR = mkdir
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
210 DIRSLASH = \\
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
211 endif
9499
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
212 endif
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
213 CC := $(CROSS_COMPILE)gcc
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
214 CXX := $(CROSS_COMPILE)g++
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
215 ifeq ($(UNDER_CYGWIN),yes)
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
216 WINDRES := $(CROSS_COMPILE)windres
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
217 else
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
218 WINDRES := windres
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
219 endif
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
220 WINDRES_CC = $(CC)
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
221
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
222 # Get the default ARCH.
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
223 ifndef ARCH
9507
5376c8008b3a commit https://github.com/vim/vim/commit/f62e797ffa6ab5d4c476b4c9e9a1f7f852910652
Christian Brabandt <cb@256bit.org>
parents: 9503
diff changeset
224 ARCH := $(shell $(CC) -dumpmachine | sed -e 's/-.*//' -e 's/_/-/' -e 's/^mingw32$$/i686/')
9499
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
225 endif
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
226
69102e843370 commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents: 9471
diff changeset
227
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
228 # Perl interface:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
229 # PERL=[Path to Perl directory] (Set inside Make_cyg.mak or Make_ming.mak)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
230 # DYNAMIC_PERL=yes (to load the Perl DLL dynamically)
10149
cd9823840f2e commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents: 10138
diff changeset
231 # PERL_VER=[Perl version, eg 56, 58, 510] (default is 524)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
232 ifdef PERL
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
233 ifndef PERL_VER
10149
cd9823840f2e commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents: 10138
diff changeset
234 PERL_VER=524
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
235 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
236 ifndef DYNAMIC_PERL
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
237 DYNAMIC_PERL=yes
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
238 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
239 # on Linux, for cross-compile, it's here:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
240 #PERLLIB=/home/ron/ActivePerl/lib
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
241 # on NT, it's here:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
242 PERLEXE=$(PERL)/bin/perl
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
243 PERLLIB=$(PERL)/lib
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
244 PERLLIBS=$(PERLLIB)/Core
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
245 ifeq ($(UNDER_CYGWIN),yes)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
246 PERLTYPEMAP:=$(shell cygpath -m $(PERLLIB)/ExtUtils/typemap)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
247 XSUBPPTRY:=$(shell cygpath -m $(PERLLIB)/ExtUtils/xsubpp)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
248 else
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
249 PERLTYPEMAP=$(PERLLIB)/ExtUtils/typemap
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
250 XSUBPPTRY=$(PERLLIB)/ExtUtils/xsubpp
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
251 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
252 XSUBPP_EXISTS=$(shell $(PERLEXE) -e "print 1 unless -e '$(XSUBPPTRY)'")
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
253 ifeq "$(XSUBPP_EXISTS)" ""
6349
5b2ff413125b updated for version 7.4.507
Bram Moolenaar <bram@vim.org>
parents: 6326
diff changeset
254 XSUBPP=$(PERLEXE) $(XSUBPPTRY)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
255 else
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
256 XSUBPP=xsubpp
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
257 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
258 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
259
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
260 # Lua interface:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
261 # LUA=[Path to Lua directory] (Set inside Make_cyg.mak or Make_ming.mak)
14812
7968031aeaa3 patch 8.1.0418: MS-Windows: cannot separate Lua include and library dirs
Christian Brabandt <cb@256bit.org>
parents: 14734
diff changeset
262 # LUA_LIBDIR=[Path to Lua library directory] (default: $LUA/lib)
7968031aeaa3 patch 8.1.0418: MS-Windows: cannot separate Lua include and library dirs
Christian Brabandt <cb@256bit.org>
parents: 14734
diff changeset
263 # LUA_INCDIR=[Path to Lua include directory] (default: $LUA/include)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
264 # DYNAMIC_LUA=yes (to load the Lua DLL dynamically)
10149
cd9823840f2e commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents: 10138
diff changeset
265 # LUA_VER=[Lua version, eg 51, 52] (default is 53)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
266 ifdef LUA
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
267 ifndef DYNAMIC_LUA
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
268 DYNAMIC_LUA=yes
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
269 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
270
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
271 ifndef LUA_VER
10149
cd9823840f2e commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents: 10138
diff changeset
272 LUA_VER=53
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
273 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
274
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
275 ifeq (no,$(DYNAMIC_LUA))
14812
7968031aeaa3 patch 8.1.0418: MS-Windows: cannot separate Lua include and library dirs
Christian Brabandt <cb@256bit.org>
parents: 14734
diff changeset
276 LUA_LIBDIR = $(LUA)/lib
7968031aeaa3 patch 8.1.0418: MS-Windows: cannot separate Lua include and library dirs
Christian Brabandt <cb@256bit.org>
parents: 14734
diff changeset
277 LUA_LIB = -L$(LUA_LIBDIR) -llua
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
278 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
279
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
280 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
281
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
282 # MzScheme interface:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
283 # MZSCHEME=[Path to MzScheme directory] (Set inside Make_cyg.mak or Make_ming.mak)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
284 # DYNAMIC_MZSCHEME=yes (to load the MzScheme DLL dynamically)
10149
cd9823840f2e commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents: 10138
diff changeset
285 # MZSCHEME_VER=[MzScheme version] (default is 3m_a0solc (6.6))
12489
7e6cb73e5ce0 patch 8.0.1124: use of MZSCHEME_VER is unclear
Christian Brabandt <cb@256bit.org>
parents: 12305
diff changeset
286 # Used for the DLL file name. E.g.:
7e6cb73e5ce0 patch 8.0.1124: use of MZSCHEME_VER is unclear
Christian Brabandt <cb@256bit.org>
parents: 12305
diff changeset
287 # C:\Program Files (x86)\Racket\lib\libracket3m_XXXXXX.dll
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
288 # MZSCHEME_DEBUG=no
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
289 ifdef MZSCHEME
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
290 ifndef DYNAMIC_MZSCHEME
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
291 DYNAMIC_MZSCHEME=yes
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
292 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
293
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
294 ifndef MZSCHEME_VER
10149
cd9823840f2e commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents: 10138
diff changeset
295 MZSCHEME_VER=3m_a0solc
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
296 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
297
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
298 # for version 4.x we need to generate byte-code for Scheme base
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
299 ifndef MZSCHEME_GENERATE_BASE
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
300 MZSCHEME_GENERATE_BASE=no
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
301 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
302
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
303 ifneq ($(wildcard $(MZSCHEME)/lib/msvc/libmzsch$(MZSCHEME_VER).lib),)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
304 MZSCHEME_MAIN_LIB=mzsch
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
305 else
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
306 MZSCHEME_MAIN_LIB=racket
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
307 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
308
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
309 ifndef MZSCHEME_PRECISE_GC
7609
77a14f3bc18b commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents: 7532
diff changeset
310 MZSCHEME_PRECISE_GC=no
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
311 ifneq ($(wildcard $(MZSCHEME)\lib\lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll),)
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
312 ifeq ($(wildcard $(MZSCHEME)\lib\libmzgc$(MZSCHEME_VER).dll),)
7609
77a14f3bc18b commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents: 7532
diff changeset
313 MZSCHEME_PRECISE_GC=yes
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
314 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
315 else
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
316 ifneq ($(wildcard $(MZSCHEME)\lib\msvc\lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).lib),)
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
317 ifeq ($(wildcard $(MZSCHEME)\lib\msvc\libmzgc$(MZSCHEME_VER).lib),)
7609
77a14f3bc18b commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents: 7532
diff changeset
318 MZSCHEME_PRECISE_GC=yes
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
319 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
320 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
321 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
322 endif
7609
77a14f3bc18b commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents: 7532
diff changeset
323
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
324 ifeq (no,$(DYNAMIC_MZSCHEME))
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
325 ifeq (yes,$(MZSCHEME_PRECISE_GC))
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
326 MZSCHEME_LIB=-l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
327 else
7609
77a14f3bc18b commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents: 7532
diff changeset
328 MZSCHEME_LIB=-l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER) -lmzgc$(MZSCHEME_VER)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
329 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
330 # the modern MinGW can dynamically link to dlls directly.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
331 # point MZSCHEME_DLLS to where you put libmzschXXXXXXX.dll and libgcXXXXXXX.dll
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
332 ifndef MZSCHEME_DLLS
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
333 MZSCHEME_DLLS=$(MZSCHEME)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
334 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
335 MZSCHEME_LIBDIR=-L$(MZSCHEME_DLLS) -L$(MZSCHEME_DLLS)\lib
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
336 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
337
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
338 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
339
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
340 # Python interface:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
341 # PYTHON=[Path to Python directory] (Set inside Make_cyg.mak or Make_ming.mak)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
342 # DYNAMIC_PYTHON=yes (to load the Python DLL dynamically)
10149
cd9823840f2e commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents: 10138
diff changeset
343 # PYTHON_VER=[Python version, eg 22, 23, ..., 27] (default is 27)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
344 ifdef PYTHON
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
345 ifndef DYNAMIC_PYTHON
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
346 DYNAMIC_PYTHON=yes
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
347 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
348
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
349 ifndef PYTHON_VER
7456
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6872
diff changeset
350 PYTHON_VER=27
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
351 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
352 ifndef DYNAMIC_PYTHON_DLL
7456
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6872
diff changeset
353 DYNAMIC_PYTHON_DLL=python$(PYTHON_VER).dll
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
354 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
355 ifdef PYTHON_HOME
7456
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6872
diff changeset
356 PYTHON_HOME_DEF=-DPYTHON_HOME=\"$(PYTHON_HOME)\"
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
357 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
358
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
359 ifeq (no,$(DYNAMIC_PYTHON))
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
360 PYTHONLIB=-L$(PYTHON)/libs -lpython$(PYTHON_VER)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
361 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
362 # my include files are in 'win32inc' on Linux, and 'include' in the standard
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
363 # NT distro (ActiveState)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
364 ifndef PYTHONINC
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
365 ifeq ($(CROSS),no)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
366 PYTHONINC=-I $(PYTHON)/include
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
367 else
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
368 PYTHONINC=-I $(PYTHON)/win32inc
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
369 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
370 endif
7456
2c5e813e8852 commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents: 6872
diff changeset
371 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
372
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
373 # Python3 interface:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
374 # PYTHON3=[Path to Python3 directory] (Set inside Make_cyg.mak or Make_ming.mak)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
375 # DYNAMIC_PYTHON3=yes (to load the Python3 DLL dynamically)
13018
8862bf5adf7b patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents: 12871
diff changeset
376 # PYTHON3_VER=[Python3 version, eg 31, 32] (default is 36)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
377 ifdef PYTHON3
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
378 ifndef DYNAMIC_PYTHON3
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
379 DYNAMIC_PYTHON3=yes
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
380 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
381
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
382 ifndef PYTHON3_VER
13018
8862bf5adf7b patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents: 12871
diff changeset
383 PYTHON3_VER=36
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
384 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
385 ifndef DYNAMIC_PYTHON3_DLL
7695
a865f9773cb2 commit https://github.com/vim/vim/commit/a7c3795a2e65233ba2d187d680acc83bf6bf4ef5
Christian Brabandt <cb@256bit.org>
parents: 7609
diff changeset
386 DYNAMIC_PYTHON3_DLL=python$(PYTHON3_VER).dll
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
387 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
388 ifdef PYTHON3_HOME
8076
3b0127287851 commit https://github.com/vim/vim/commit/acd58ef676bb9559ac0f635f66b62f4602929c87
Christian Brabandt <cb@256bit.org>
parents: 8064
diff changeset
389 PYTHON3_HOME_DEF=-DPYTHON3_HOME=L\"$(PYTHON3_HOME)\"
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
390 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
391
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
392 ifeq (no,$(DYNAMIC_PYTHON3))
7695
a865f9773cb2 commit https://github.com/vim/vim/commit/a7c3795a2e65233ba2d187d680acc83bf6bf4ef5
Christian Brabandt <cb@256bit.org>
parents: 7609
diff changeset
393 PYTHON3LIB=-L$(PYTHON3)/libs -lpython$(PYTHON3_VER)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
394 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
395
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
396 ifndef PYTHON3INC
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
397 ifeq ($(CROSS),no)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
398 PYTHON3INC=-I $(PYTHON3)/include
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
399 else
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
400 PYTHON3INC=-I $(PYTHON3)/win32inc
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
401 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
402 endif
7695
a865f9773cb2 commit https://github.com/vim/vim/commit/a7c3795a2e65233ba2d187d680acc83bf6bf4ef5
Christian Brabandt <cb@256bit.org>
parents: 7609
diff changeset
403 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
404
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
405 # TCL interface:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
406 # TCL=[Path to TCL directory] (Set inside Make_cyg.mak or Make_ming.mak)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
407 # DYNAMIC_TCL=yes (to load the TCL DLL dynamically)
10149
cd9823840f2e commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents: 10138
diff changeset
408 # TCL_VER=[TCL version, eg 83, 84] (default is 86)
cd9823840f2e commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents: 10138
diff changeset
409 # TCL_VER_LONG=[Tcl version, eg 8.3] (default is 8.6)
7523
55cd9a99514d commit https://github.com/vim/vim/commit/eca99bd45f094b1b12e22b9d6b206bd05dc9a38c
Christian Brabandt <cb@256bit.org>
parents: 7521
diff changeset
410 # You must set TCL_VER_LONG when you set TCL_VER.
12218
cd366d80d53e patch 8.0.0989: ActiveTcl dll name has changed in 8.6.6
Christian Brabandt <cb@256bit.org>
parents: 12210
diff changeset
411 # TCL_DLL=[TCL dll name, eg tcl86.dll] (default is tcl86.dll)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
412 ifdef TCL
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
413 ifndef DYNAMIC_TCL
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
414 DYNAMIC_TCL=yes
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
415 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
416 ifndef TCL_VER
10149
cd9823840f2e commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents: 10138
diff changeset
417 TCL_VER = 86
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
418 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
419 ifndef TCL_VER_LONG
10149
cd9823840f2e commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents: 10138
diff changeset
420 TCL_VER_LONG = 8.6
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
421 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
422 ifndef TCL_DLL
12218
cd366d80d53e patch 8.0.0989: ActiveTcl dll name has changed in 8.6.6
Christian Brabandt <cb@256bit.org>
parents: 12210
diff changeset
423 TCL_DLL = tcl$(TCL_VER).dll
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
424 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
425 TCLINC += -I$(TCL)/include
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
426 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
427
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
428
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
429 # Ruby interface:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
430 # RUBY=[Path to Ruby directory] (Set inside Make_cyg.mak or Make_ming.mak)
13734
600a38fe5c00 patch 8.0.1739: MS-Windows with msys2 cannot build Ruby statically
Christian Brabandt <cb@256bit.org>
parents: 13658
diff changeset
431 # DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically, "no" for static)
10138
8bfcb960e6bd commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents: 9583
diff changeset
432 # RUBY_VER=[Ruby version, eg 19, 22] (default is 22)
8bfcb960e6bd commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents: 9583
diff changeset
433 # RUBY_API_VER_LONG=[Ruby API version, eg 1.8, 1.9.1, 2.2.0]
8bfcb960e6bd commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents: 9583
diff changeset
434 # (default is 2.2.0)
8bfcb960e6bd commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents: 9583
diff changeset
435 # You must set RUBY_API_VER_LONG when changing RUBY_VER.
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
436 # Note: If you use Ruby 1.9.3, set as follows:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
437 # RUBY_VER=19
10138
8bfcb960e6bd commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents: 9583
diff changeset
438 # RUBY_API_VER_LONG=1.9.1 (not 1.9.3, because the API version is 1.9.1.)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
439 ifdef RUBY
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
440 ifndef DYNAMIC_RUBY
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
441 DYNAMIC_RUBY=yes
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
442 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
443 # Set default value
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
444 ifndef RUBY_VER
10138
8bfcb960e6bd commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents: 9583
diff changeset
445 RUBY_VER = 22
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
446 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
447 ifndef RUBY_VER_LONG
10138
8bfcb960e6bd commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents: 9583
diff changeset
448 RUBY_VER_LONG = 2.2.0
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
449 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
450 ifndef RUBY_API_VER_LONG
10149
cd9823840f2e commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents: 10138
diff changeset
451 RUBY_API_VER_LONG = $(RUBY_VER_LONG)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
452 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
453 ifndef RUBY_API_VER
10138
8bfcb960e6bd commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents: 9583
diff changeset
454 RUBY_API_VER = $(subst .,,$(RUBY_API_VER_LONG))
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
455 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
456
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
457 ifndef RUBY_PLATFORM
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
458 ifeq ($(RUBY_VER), 16)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
459 RUBY_PLATFORM = i586-mswin32
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
460 else ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_API_VER_LONG)/i386-mingw32),)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
461 RUBY_PLATFORM = i386-mingw32
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
462 else ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_API_VER_LONG)/x64-mingw32),)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
463 RUBY_PLATFORM = x64-mingw32
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
464 else
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
465 RUBY_PLATFORM = i386-mswin32
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
466 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
467 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
468
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
469 ifndef RUBY_INSTALL_NAME
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
470 ifeq ($(RUBY_VER), 16)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
471 RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_API_VER)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
472 else
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
473 ifndef RUBY_MSVCRT_NAME
7521
665330ac1d78 commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
474 # Base name of msvcrXX.dll which is used by ruby's dll.
665330ac1d78 commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
475 RUBY_MSVCRT_NAME = msvcrt
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
476 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
477 ifeq ($(ARCH),x86-64)
7521
665330ac1d78 commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
478 RUBY_INSTALL_NAME = x64-$(RUBY_MSVCRT_NAME)-ruby$(RUBY_API_VER)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
479 else
7521
665330ac1d78 commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents: 7456
diff changeset
480 RUBY_INSTALL_NAME = $(RUBY_MSVCRT_NAME)-ruby$(RUBY_API_VER)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
481 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
482 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
483 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
484
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
485 ifeq (19, $(word 1,$(sort 19 $(RUBY_VER))))
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
486 RUBY_19_OR_LATER = 1
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
487 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
488
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
489 ifdef RUBY_19_OR_LATER
14818
63b2ee46537f patch 8.1.0421: MS-Windows: Ruby path is wrong for Ruby 1.9 and later
Christian Brabandt <cb@256bit.org>
parents: 14812
diff changeset
490 RUBYINC = -I $(RUBY)/include/ruby-$(RUBY_API_VER_LONG) -I $(RUBY)/include/ruby-$(RUBY_API_VER_LONG)/$(RUBY_PLATFORM)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
491 else
10138
8bfcb960e6bd commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents: 9583
diff changeset
492 RUBYINC = -I $(RUBY)/lib/ruby/$(RUBY_API_VER_LONG)/$(RUBY_PLATFORM)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
493 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
494 ifeq (no, $(DYNAMIC_RUBY))
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
495 RUBYLIB = -L$(RUBY)/lib -l$(RUBY_INSTALL_NAME)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
496 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
497
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
498 endif # RUBY
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
499
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
500 # See feature.h for a list of options.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
501 # Any other defines can be included here.
15886
cdb9cbe731b3 patch 8.1.0949: MS-windows defines GUI macros different than other systems
Bram Moolenaar <Bram@vim.org>
parents: 15868
diff changeset
502 DEF_GUI=-DFEAT_GUI_MSWIN -DFEAT_CLIPBOARD
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
503 DEFINES=-DWIN32 -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) \
9389
32e34e574716 commit https://github.com/vim/vim/commit/22fcfad29276bd5f317faf516637dcd491b96a12
Christian Brabandt <cb@256bit.org>
parents: 9363
diff changeset
504 -DHAVE_PATHDEF -DFEAT_$(FEATURES) -DHAVE_STDINT_H
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
505 ifeq ($(ARCH),x86-64)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
506 DEFINES+=-DMS_WIN64
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
507 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
508
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
509 #>>>>> end of choices
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
510 ###########################################################################
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
511
14937
d36dd08d36c1 patch 8.1.0480: MinGW build file uses different -I flags than MVC
Bram Moolenaar <Bram@vim.org>
parents: 14933
diff changeset
512 CFLAGS = -I. -Iproto $(DEFINES) -pipe -march=$(ARCH) -Wall
8696
869727342e43 commit https://github.com/vim/vim/commit/6c0e984f263fc1eef42c9b34a80eff1bceb8d05b
Christian Brabandt <cb@256bit.org>
parents: 8641
diff changeset
513 CXXFLAGS = -std=gnu++11
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
514 WINDRES_FLAGS = --preprocessor="$(WINDRES_CC) -E -xc" -DRC_INVOKED
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
515 EXTRA_LIBS =
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
516
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
517 ifdef GETTEXT
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
518 DEFINES += -DHAVE_GETTEXT -DHAVE_LOCALE_H
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
519 GETTEXTINCLUDE = $(GETTEXT)/include
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
520 GETTEXTLIB = $(INTLPATH)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
521 ifeq (yes, $(GETTEXT))
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
522 DEFINES += -DDYNAMIC_GETTEXT
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
523 else ifdef DYNAMIC_GETTEXT
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
524 DEFINES += -D$(DYNAMIC_GETTEXT)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
525 ifdef GETTEXT_DYNAMIC
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
526 DEFINES += -DGETTEXT_DYNAMIC -DGETTEXT_DLL=\"$(GETTEXT_DYNAMIC)\"
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
527 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
528 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
529 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
530
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
531 ifdef PERL
6872
64ff14cbb665 patch 7.4.756
Bram Moolenaar <bram@vim.org>
parents: 6436
diff changeset
532 CFLAGS += -I$(PERLLIBS) -DFEAT_PERL -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
533 ifeq (yes, $(DYNAMIC_PERL))
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
534 CFLAGS += -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl$(PERL_VER).dll\"
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
535 EXTRA_LIBS += -L$(PERLLIBS) -lperl$(PERL_VER)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
536 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
537 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
538
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
539 ifdef LUA
14812
7968031aeaa3 patch 8.1.0418: MS-Windows: cannot separate Lua include and library dirs
Christian Brabandt <cb@256bit.org>
parents: 14734
diff changeset
540 LUA_INCDIR = $(LUA)/include
7968031aeaa3 patch 8.1.0418: MS-Windows: cannot separate Lua include and library dirs
Christian Brabandt <cb@256bit.org>
parents: 14734
diff changeset
541 CFLAGS += -I$(LUA_INCDIR) -I$(LUA) -DFEAT_LUA
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
542 ifeq (yes, $(DYNAMIC_LUA))
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
543 CFLAGS += -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL=\"lua$(LUA_VER).dll\"
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
544 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
545 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
546
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
547 ifdef MZSCHEME
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
548 ifndef MZSCHEME_COLLECTS
7609
77a14f3bc18b commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents: 7532
diff changeset
549 MZSCHEME_COLLECTS=$(MZSCHEME)/collects
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
550 ifeq (yes, $(UNDER_CYGWIN))
7609
77a14f3bc18b commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents: 7532
diff changeset
551 MZSCHEME_COLLECTS:=$(shell cygpath -m $(MZSCHEME_COLLECTS) | sed -e 's/ /\\ /g')
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
552 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
553 endif
7609
77a14f3bc18b commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents: 7532
diff changeset
554 CFLAGS += -I$(MZSCHEME)/include -DFEAT_MZSCHEME -DMZSCHEME_COLLECTS=\"$(MZSCHEME_COLLECTS)\"
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
555 ifeq (yes, $(DYNAMIC_MZSCHEME))
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
556 ifeq (yes, $(MZSCHEME_PRECISE_GC))
7609
77a14f3bc18b commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents: 7532
diff changeset
557 # Precise GC does not use separate dll
77a14f3bc18b commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents: 7532
diff changeset
558 CFLAGS += -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\" -DDYNAMIC_MZGC_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\"
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
559 else
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
560 CFLAGS += -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\" -DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\"
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
561 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
562 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
563 ifeq (yes, "$(MZSCHEME_DEBUG)")
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
564 CFLAGS += -DMZSCHEME_FORCE_GC
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
565 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
566 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
567
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
568 ifdef RUBY
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
569 CFLAGS += -DFEAT_RUBY $(RUBYINC)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
570 ifeq (yes, $(DYNAMIC_RUBY))
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
571 CFLAGS += -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\"
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
572 CFLAGS += -DDYNAMIC_RUBY_VER=$(RUBY_VER)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
573 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
574 ifeq (no, $(DYNAMIC_RUBY))
13738
1d8601bdd6e6 patch 8.0.1741: MS-Windows with msys2 cannot build Ruby statically
Christian Brabandt <cb@256bit.org>
parents: 13734
diff changeset
575 CFLAGS += -DRUBY_VERSION=$(RUBY_VER)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
576 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
577 ifneq ($(findstring w64-mingw32,$(CC)),)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
578 # A workaround for MinGW-w64
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
579 CFLAGS += -DHAVE_STRUCT_TIMESPEC -DHAVE_STRUCT_TIMEZONE
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
580 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
581 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
582
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
583 ifdef PYTHON
8120
350f8040bd37 commit https://github.com/vim/vim/commit/223b723be0703137cf6373e23f8ae5c02e92ef82
Christian Brabandt <cb@256bit.org>
parents: 8076
diff changeset
584 CFLAGS += -DFEAT_PYTHON
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
585 ifeq (yes, $(DYNAMIC_PYTHON))
7532
0acbe61244ac commit https://github.com/vim/vim/commit/449538c3d2f7089dcaa1a888f09f41714faec9a6
Christian Brabandt <cb@256bit.org>
parents: 7523
diff changeset
586 CFLAGS += -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"$(DYNAMIC_PYTHON_DLL)\"
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
587 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
588 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
589
8120
350f8040bd37 commit https://github.com/vim/vim/commit/223b723be0703137cf6373e23f8ae5c02e92ef82
Christian Brabandt <cb@256bit.org>
parents: 8076
diff changeset
590 ifdef PYTHON3
350f8040bd37 commit https://github.com/vim/vim/commit/223b723be0703137cf6373e23f8ae5c02e92ef82
Christian Brabandt <cb@256bit.org>
parents: 8076
diff changeset
591 CFLAGS += -DFEAT_PYTHON3
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
592 ifeq (yes, $(DYNAMIC_PYTHON3))
7695
a865f9773cb2 commit https://github.com/vim/vim/commit/a7c3795a2e65233ba2d187d680acc83bf6bf4ef5
Christian Brabandt <cb@256bit.org>
parents: 7609
diff changeset
593 CFLAGS += -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=\"$(DYNAMIC_PYTHON3_DLL)\"
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
594 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
595 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
596
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
597 ifdef TCL
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
598 CFLAGS += -DFEAT_TCL $(TCLINC)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
599 ifeq (yes, $(DYNAMIC_TCL))
12218
cd366d80d53e patch 8.0.0989: ActiveTcl dll name has changed in 8.6.6
Christian Brabandt <cb@256bit.org>
parents: 12210
diff changeset
600 CFLAGS += -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"$(TCL_DLL)\" -DDYNAMIC_TCL_VER=\"$(TCL_VER_LONG)\"
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
601 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
602 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
603
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
604 ifeq ($(POSTSCRIPT),yes)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
605 DEFINES += -DMSWINPS
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
606 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
607
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
608 ifeq (yes, $(OLE))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
609 DEFINES += -DFEAT_OLE
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
610 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
611
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
612 ifeq ($(CSCOPE),yes)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
613 DEFINES += -DFEAT_CSCOPE
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
614 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
615
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
616 ifeq ($(NETBEANS),yes)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
617 # Only allow NETBEANS for a GUI build.
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
618 ifeq (yes, $(GUI))
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
619 DEFINES += -DFEAT_NETBEANS_INTG
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
620
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
621 ifeq ($(NBDEBUG), yes)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
622 DEFINES += -DNBDEBUG
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
623 NBDEBUG_INCL = nbdebug.h
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
624 NBDEBUG_SRC = nbdebug.c
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
625 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
626 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
627 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
628
7743
6069f43cea4e commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents: 7712
diff changeset
629 ifeq ($(CHANNEL),yes)
8493
caed4b2d305f commit https://github.com/vim/vim/commit/509ce2a558e7e0c03242e32e844255af52f1c821
Christian Brabandt <cb@256bit.org>
parents: 8140
diff changeset
630 DEFINES += -DFEAT_JOB_CHANNEL
7743
6069f43cea4e commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents: 7712
diff changeset
631 endif
6069f43cea4e commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents: 7712
diff changeset
632
11696
0a6136dfce35 patch 8.0.0731: cannot build the terminal feature on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 10442
diff changeset
633 ifeq ($(TERMINAL),yes)
0a6136dfce35 patch 8.0.0731: cannot build the terminal feature on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 10442
diff changeset
634 DEFINES += -DFEAT_TERMINAL
11782
112427b2de52 patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents: 11774
diff changeset
635 TERM_DEPS = \
112427b2de52 patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents: 11774
diff changeset
636 libvterm/include/vterm.h \
112427b2de52 patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents: 11774
diff changeset
637 libvterm/include/vterm_keycodes.h \
112427b2de52 patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents: 11774
diff changeset
638 libvterm/src/rect.h \
112427b2de52 patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents: 11774
diff changeset
639 libvterm/src/utf8.h \
112427b2de52 patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents: 11774
diff changeset
640 libvterm/src/vterm_internal.h
11696
0a6136dfce35 patch 8.0.0731: cannot build the terminal feature on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 10442
diff changeset
641 endif
0a6136dfce35 patch 8.0.0731: cannot build the terminal feature on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 10442
diff changeset
642
17131
be5a5cfc991a patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents: 16778
diff changeset
643 ifeq ($(SOUND),yes)
be5a5cfc991a patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents: 16778
diff changeset
644 DEFINES += -DFEAT_SOUND
be5a5cfc991a patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents: 16778
diff changeset
645 endif
be5a5cfc991a patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents: 16778
diff changeset
646
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
647 # DirectWrite (DirectX)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
648 ifeq ($(DIRECTX),yes)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
649 # Only allow DirectWrite for a GUI build.
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
650 ifeq (yes, $(GUI))
13658
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
651 DEFINES += -DFEAT_DIRECTX -DDYNAMIC_DIRECTX
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
652 ifneq ($(COLOR_EMOJI),no)
13658
c83ec560409c patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents: 13468
diff changeset
653 DEFINES += -DFEAT_DIRECTX_COLOR_EMOJI
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
654 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
655 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
656 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
657
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
658 # Only allow XPM for a GUI build.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
659 ifeq (yes, $(GUI))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
660
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
661 ifndef XPM
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
662 ifeq ($(ARCH),i386)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
663 XPM = xpm/x86
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
664 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
665 ifeq ($(ARCH),i486)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
666 XPM = xpm/x86
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
667 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
668 ifeq ($(ARCH),i586)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
669 XPM = xpm/x86
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
670 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
671 ifeq ($(ARCH),i686)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
672 XPM = xpm/x86
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
673 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
674 ifeq ($(ARCH),x86-64)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
675 XPM = xpm/x64
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
676 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
677 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
678 ifdef XPM
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
679 ifneq ($(XPM),no)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
680 CFLAGS += -DFEAT_XPM_W32 -I $(XPM)/include -I $(XPM)/../include
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
681 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
682 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
683
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
684 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
685
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
686 ifeq ($(DEBUG),yes)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
687 CFLAGS += -g -fstack-check
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
688 DEBUG_SUFFIX=d
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
689 else
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
690 ifeq ($(OPTIMIZE), SIZE)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
691 CFLAGS += -Os
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
692 else ifeq ($(OPTIMIZE), MAXSPEED)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
693 CFLAGS += -O3
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
694 CFLAGS += -fomit-frame-pointer -freg-struct-return
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
695 else # SPEED
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
696 CFLAGS += -O2
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
697 endif
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
698 LFLAGS += -s
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
699 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
700
14133
352c2832d17f patch 8.1.0084: user name completion does not work on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 13738
diff changeset
701 LIB = -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32 -lcomctl32 -lnetapi32 -lversion
16198
b0e19f135e50 patch 8.1.1104: MS-Windows: not all environment variables can be used
Bram Moolenaar <Bram@vim.org>
parents: 16142
diff changeset
702 GUIOBJ = $(OUTDIR)/gui.o $(OUTDIR)/gui_w32.o $(OUTDIR)/gui_beval.o
9363
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents: 9203
diff changeset
703 CUIOBJ = $(OUTDIR)/iscygpty.o
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
704 OBJ = \
9403
9b048dced116 commit https://github.com/vim/vim/commit/75464dc434c43efac60e8bfd9bec2a8b736407e9
Christian Brabandt <cb@256bit.org>
parents: 9389
diff changeset
705 $(OUTDIR)/arabic.o \
17744
4a3dca734d36 patch 8.1.1869: code for the argument list is spread out
Bram Moolenaar <Bram@vim.org>
parents: 17652
diff changeset
706 $(OUTDIR)/arglist.o \
15634
746b95fd25ad patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents: 15454
diff changeset
707 $(OUTDIR)/autocmd.o \
12871
1a450ce6980c patch 8.0.1312: balloon_show() only works in terminal when compiled with GUI
Christian Brabandt <cb@256bit.org>
parents: 12628
diff changeset
708 $(OUTDIR)/beval.o \
15454
1d2b5c016f17 patch 8.1.0735: cannot handle binary data
Bram Moolenaar <Bram@vim.org>
parents: 15450
diff changeset
709 $(OUTDIR)/blob.o \
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
710 $(OUTDIR)/blowfish.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
711 $(OUTDIR)/buffer.o \
18199
e2be5a6485f5 patch 8.1.2094: the fileio.c file is too big
Bram Moolenaar <Bram@vim.org>
parents: 18174
diff changeset
712 $(OUTDIR)/bufwrite.o \
16632
30de89c1d090 patch 8.1.1318: code for text changes is in a "misc" file
Bram Moolenaar <Bram@vim.org>
parents: 16451
diff changeset
713 $(OUTDIR)/change.o \
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
714 $(OUTDIR)/charset.o \
18265
fe5afdc03bd2 patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents: 18199
diff changeset
715 $(OUTDIR)/cindent.o \
17779
87a8760babec patch 8.1.1886: command line expansion code is spread out
Bram Moolenaar <Bram@vim.org>
parents: 17744
diff changeset
716 $(OUTDIR)/cmdexpand.o \
17652
9efb4dda9720 patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents: 17576
diff changeset
717 $(OUTDIR)/cmdhist.o \
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
718 $(OUTDIR)/crypt.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
719 $(OUTDIR)/crypt_zip.o \
16381
1dcbaa780b8e patch 8.1.1195: Vim script debugger functionality needs cleanup
Bram Moolenaar <Bram@vim.org>
parents: 16198
diff changeset
720 $(OUTDIR)/debugger.o \
9564
b6a459b326f3 commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents: 9507
diff changeset
721 $(OUTDIR)/dict.o \
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
722 $(OUTDIR)/diff.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
723 $(OUTDIR)/digraph.o \
18124
2a806e3c39f6 patch 8.1.2057: the screen.c file is much too big
Bram Moolenaar <Bram@vim.org>
parents: 18100
diff changeset
724 $(OUTDIR)/drawline.o \
2a806e3c39f6 patch 8.1.2057: the screen.c file is much too big
Bram Moolenaar <Bram@vim.org>
parents: 18100
diff changeset
725 $(OUTDIR)/drawscreen.o \
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
726 $(OUTDIR)/edit.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
727 $(OUTDIR)/eval.o \
18010
cf8e0c7e0cb9 patch 8.1.2001: some source files are too big
Bram Moolenaar <Bram@vim.org>
parents: 17996
diff changeset
728 $(OUTDIR)/evalbuffer.o \
9571
5eaa708ab50d commit https://github.com/vim/vim/commit/73dad1e64cb42842d8259cb1a255a6fa59822f76
Christian Brabandt <cb@256bit.org>
parents: 9564
diff changeset
729 $(OUTDIR)/evalfunc.o \
17873
d50a5faa75bd patch 8.1.1933: the eval.c file is too big
Bram Moolenaar <Bram@vim.org>
parents: 17861
diff changeset
730 $(OUTDIR)/evalvars.o \
18010
cf8e0c7e0cb9 patch 8.1.2001: some source files are too big
Bram Moolenaar <Bram@vim.org>
parents: 17996
diff changeset
731 $(OUTDIR)/evalwindow.o \
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
732 $(OUTDIR)/ex_cmds.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
733 $(OUTDIR)/ex_cmds2.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
734 $(OUTDIR)/ex_docmd.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
735 $(OUTDIR)/ex_eval.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
736 $(OUTDIR)/ex_getln.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
737 $(OUTDIR)/fileio.o \
17966
46f95606b9ec patch 8.1.1979: code for handling file names is spread out
Bram Moolenaar <Bram@vim.org>
parents: 17873
diff changeset
738 $(OUTDIR)/filepath.o \
15814
99ebf78686a9 patch 8.1.0914: code related to findfile() is spread out
Bram Moolenaar <Bram@vim.org>
parents: 15707
diff changeset
739 $(OUTDIR)/findfile.o \
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
740 $(OUTDIR)/fold.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
741 $(OUTDIR)/getchar.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
742 $(OUTDIR)/hardcopy.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
743 $(OUTDIR)/hashtab.o \
17389
635d7f5010b8 patch 8.1.1693: syntax coloring and highlighting is in one big file
Bram Moolenaar <Bram@vim.org>
parents: 17377
diff changeset
744 $(OUTDIR)/highlight.o \
17996
03a53a45c2ca patch 8.1.1994: MS-Windows: cannot build with eval but without cscope
Bram Moolenaar <Bram@vim.org>
parents: 17966
diff changeset
745 $(OUTDIR)/if_cscope.o \
15699
2d941023bd2f patch 8.1.0857: indent functionality is not separated
Bram Moolenaar <Bram@vim.org>
parents: 15634
diff changeset
746 $(OUTDIR)/indent.o \
16142
570a296aa0b4 patch 8.1.1076: file for Insert mode is much too big
Bram Moolenaar <Bram@vim.org>
parents: 16068
diff changeset
747 $(OUTDIR)/insexpand.o \
7712
bce3b5ddb393 commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents: 7699
diff changeset
748 $(OUTDIR)/json.o \
9564
b6a459b326f3 commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents: 9507
diff changeset
749 $(OUTDIR)/list.o \
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
750 $(OUTDIR)/main.o \
17576
97a750e8707f patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents: 17536
diff changeset
751 $(OUTDIR)/map.o \
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
752 $(OUTDIR)/mark.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
753 $(OUTDIR)/memfile.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
754 $(OUTDIR)/memline.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
755 $(OUTDIR)/menu.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
756 $(OUTDIR)/message.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
757 $(OUTDIR)/misc1.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
758 $(OUTDIR)/misc2.o \
18135
1868ec23360e patch 8.1.2062: the mouse code is spread out
Bram Moolenaar <Bram@vim.org>
parents: 18124
diff changeset
759 $(OUTDIR)/mouse.o \
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
760 $(OUTDIR)/move.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
761 $(OUTDIR)/mbyte.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
762 $(OUTDIR)/normal.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
763 $(OUTDIR)/ops.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
764 $(OUTDIR)/option.o \
18100
df5778d73320 patch 8.1.2045: the option.c file is too big
Bram Moolenaar <Bram@vim.org>
parents: 18064
diff changeset
765 $(OUTDIR)/optionstr.o \
16198
b0e19f135e50 patch 8.1.1104: MS-Windows: not all environment variables can be used
Bram Moolenaar <Bram@vim.org>
parents: 16142
diff changeset
766 $(OUTDIR)/os_mswin.o \
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
767 $(OUTDIR)/os_win32.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
768 $(OUTDIR)/pathdef.o \
18174
1ec6539cef68 patch 8.1.2082: some files have a weird name to fit in 8.3 characters
Bram Moolenaar <Bram@vim.org>
parents: 18172
diff changeset
769 $(OUTDIR)/popupmenu.o \
16778
eda4d65f232c patch 8.1.1391: no popup window support
Bram Moolenaar <Bram@vim.org>
parents: 16758
diff changeset
770 $(OUTDIR)/popupwin.o \
17370
ba06a1c42274 patch 8.1.1684: profiling functionality is spread out
Bram Moolenaar <Bram@vim.org>
parents: 17326
diff changeset
771 $(OUTDIR)/profiler.o \
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
772 $(OUTDIR)/quickfix.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
773 $(OUTDIR)/regexp.o \
18164
f57481564f2c patch 8.1.2077: the ops.c file is too big
Bram Moolenaar <Bram@vim.org>
parents: 18135
diff changeset
774 $(OUTDIR)/register.o \
17861
0a5c615cd949 patch 8.1.1927: code for dealing with script files is spread out
Bram Moolenaar <Bram@vim.org>
parents: 17779
diff changeset
775 $(OUTDIR)/scriptfile.o \
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
776 $(OUTDIR)/screen.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
777 $(OUTDIR)/search.o \
17536
e00d12c085a5 patch 8.1.1766: code for writing session file is spread out
Bram Moolenaar <Bram@vim.org>
parents: 17458
diff changeset
778 $(OUTDIR)/session.o \
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
779 $(OUTDIR)/sha256.o \
15330
a6330a49e036 patch 8.1.0673: functionality for signs is spread out over several files
Bram Moolenaar <Bram@vim.org>
parents: 15201
diff changeset
780 $(OUTDIR)/sign.o \
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
781 $(OUTDIR)/spell.o \
9583
b0c7061d6439 commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents: 9571
diff changeset
782 $(OUTDIR)/spellfile.o \
18172
6e53d83e021d patch 8.1.2081: the spell.c file is too big
Bram Moolenaar <Bram@vim.org>
parents: 18164
diff changeset
783 $(OUTDIR)/spellsuggest.o \
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
784 $(OUTDIR)/syntax.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
785 $(OUTDIR)/tag.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
786 $(OUTDIR)/term.o \
17377
cb008de2a6ec patch 8.1.1687: the evalfunc.c file is too big
Bram Moolenaar <Bram@vim.org>
parents: 17370
diff changeset
787 $(OUTDIR)/testing.o \
15138
9df130fd5e0d patch 8.1.0579: cannot attach properties to text
Bram Moolenaar <Bram@vim.org>
parents: 14958
diff changeset
788 $(OUTDIR)/textprop.o \
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
789 $(OUTDIR)/ui.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
790 $(OUTDIR)/undo.o \
16411
5b5c5daf57de patch 8.1.1210: support for user commands is spread out
Bram Moolenaar <Bram@vim.org>
parents: 16381
diff changeset
791 $(OUTDIR)/usercmd.o \
9564
b6a459b326f3 commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents: 9507
diff changeset
792 $(OUTDIR)/userfunc.o \
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
793 $(OUTDIR)/version.o \
17458
cfdef48743ed patch 8.1.1727: code for viminfo support is spread out
Bram Moolenaar <Bram@vim.org>
parents: 17389
diff changeset
794 $(OUTDIR)/viminfo.o \
16198
b0e19f135e50 patch 8.1.1104: MS-Windows: not all environment variables can be used
Bram Moolenaar <Bram@vim.org>
parents: 16142
diff changeset
795 $(OUTDIR)/winclip.o \
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
796 $(OUTDIR)/window.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
797
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
798 ifeq ($(VIMDLL),yes)
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
799 OBJ += $(OUTDIR)/os_w32dll.o $(OUTDIR)/vimrcd.o
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
800 EXEOBJC = $(OUTDIR)/os_w32exec.o $(OUTDIR)/vimrcc.o
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
801 EXEOBJG = $(OUTDIR)/os_w32exeg.o $(OUTDIR)/vimrcg.o
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
802 else
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
803 OBJ += $(OUTDIR)/os_w32exe.o $(OUTDIR)/vimrc.o
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
804 endif
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
805
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
806 ifdef PERL
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
807 OBJ += $(OUTDIR)/if_perl.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
808 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
809 ifdef LUA
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
810 OBJ += $(OUTDIR)/if_lua.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
811 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
812 ifdef MZSCHEME
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
813 OBJ += $(OUTDIR)/if_mzsch.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
814 MZSCHEME_INCL = if_mzsch.h
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
815 ifeq (yes,$(MZSCHEME_GENERATE_BASE))
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
816 CFLAGS += -DINCLUDE_MZSCHEME_BASE
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
817 MZ_EXTRA_DEP += mzscheme_base.c
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
818 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
819 ifeq (yes,$(MZSCHEME_PRECISE_GC))
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
820 CFLAGS += -DMZ_PRECISE_GC
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
821 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
822 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
823 ifdef PYTHON
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
824 OBJ += $(OUTDIR)/if_python.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
825 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
826 ifdef PYTHON3
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
827 OBJ += $(OUTDIR)/if_python3.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
828 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
829 ifdef RUBY
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
830 OBJ += $(OUTDIR)/if_ruby.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
831 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
832 ifdef TCL
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
833 OBJ += $(OUTDIR)/if_tcl.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
834 endif
7743
6069f43cea4e commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents: 7712
diff changeset
835
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
836 ifeq ($(NETBEANS),yes)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
837 ifneq ($(CHANNEL),yes)
7743
6069f43cea4e commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents: 7712
diff changeset
838 # Cannot use Netbeans without CHANNEL
6069f43cea4e commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents: 7712
diff changeset
839 NETBEANS=no
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
840 else ifneq (yes, $(GUI))
8051
7e298e8c5741 commit https://github.com/vim/vim/commit/44d571868f4fcf000e8b03ee0a350f1f8131c9ca
Christian Brabandt <cb@256bit.org>
parents: 7755
diff changeset
841 # Cannot use Netbeans without GUI.
7e298e8c5741 commit https://github.com/vim/vim/commit/44d571868f4fcf000e8b03ee0a350f1f8131c9ca
Christian Brabandt <cb@256bit.org>
parents: 7755
diff changeset
842 NETBEANS=no
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
843 else
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
844 OBJ += $(OUTDIR)/netbeans.o
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
845 endif
7743
6069f43cea4e commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents: 7712
diff changeset
846 endif
6069f43cea4e commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents: 7712
diff changeset
847
6069f43cea4e commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents: 7712
diff changeset
848 ifeq ($(CHANNEL),yes)
6069f43cea4e commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents: 7712
diff changeset
849 OBJ += $(OUTDIR)/channel.o
6069f43cea4e commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents: 7712
diff changeset
850 LIB += -lwsock32
6069f43cea4e commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents: 7712
diff changeset
851 endif
6069f43cea4e commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents: 7712
diff changeset
852
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
853 ifeq ($(DIRECTX),yes)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
854 # Only allow DIRECTX for a GUI build.
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
855 ifeq (yes, $(GUI))
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
856 OBJ += $(OUTDIR)/gui_dwrite.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
857 LIB += -ld2d1 -ldwrite
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
858 USE_STDCPLUS = yes
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
859 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
860 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
861 ifneq ($(XPM),no)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
862 # Only allow XPM for a GUI build.
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
863 ifeq (yes, $(GUI))
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
864 OBJ += $(OUTDIR)/xpm_w32.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
865 # You'll need libXpm.a from http://gnuwin32.sf.net
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
866 LIB += -L$(XPM)/lib -lXpm
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
867 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
868 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
869
11696
0a6136dfce35 patch 8.0.0731: cannot build the terminal feature on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 10442
diff changeset
870 ifeq ($(TERMINAL),yes)
11782
112427b2de52 patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents: 11774
diff changeset
871 OBJ += $(OUTDIR)/terminal.o \
18267
da6a7491e148 patch 8.1.2128: renamed libvterm sources makes merging difficult
Bram Moolenaar <Bram@vim.org>
parents: 18265
diff changeset
872 $(OUTDIR)/vterm_encoding.o \
da6a7491e148 patch 8.1.2128: renamed libvterm sources makes merging difficult
Bram Moolenaar <Bram@vim.org>
parents: 18265
diff changeset
873 $(OUTDIR)/vterm_keyboard.o \
da6a7491e148 patch 8.1.2128: renamed libvterm sources makes merging difficult
Bram Moolenaar <Bram@vim.org>
parents: 18265
diff changeset
874 $(OUTDIR)/vterm_mouse.o \
da6a7491e148 patch 8.1.2128: renamed libvterm sources makes merging difficult
Bram Moolenaar <Bram@vim.org>
parents: 18265
diff changeset
875 $(OUTDIR)/vterm_parser.o \
da6a7491e148 patch 8.1.2128: renamed libvterm sources makes merging difficult
Bram Moolenaar <Bram@vim.org>
parents: 18265
diff changeset
876 $(OUTDIR)/vterm_pen.o \
da6a7491e148 patch 8.1.2128: renamed libvterm sources makes merging difficult
Bram Moolenaar <Bram@vim.org>
parents: 18265
diff changeset
877 $(OUTDIR)/vterm_screen.o \
da6a7491e148 patch 8.1.2128: renamed libvterm sources makes merging difficult
Bram Moolenaar <Bram@vim.org>
parents: 18265
diff changeset
878 $(OUTDIR)/vterm_state.o \
da6a7491e148 patch 8.1.2128: renamed libvterm sources makes merging difficult
Bram Moolenaar <Bram@vim.org>
parents: 18265
diff changeset
879 $(OUTDIR)/vterm_unicode.o \
da6a7491e148 patch 8.1.2128: renamed libvterm sources makes merging difficult
Bram Moolenaar <Bram@vim.org>
parents: 18265
diff changeset
880 $(OUTDIR)/vterm_vterm.o
11696
0a6136dfce35 patch 8.0.0731: cannot build the terminal feature on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 10442
diff changeset
881 endif
0a6136dfce35 patch 8.0.0731: cannot build the terminal feature on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 10442
diff changeset
882
17131
be5a5cfc991a patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents: 16778
diff changeset
883 ifeq ($(SOUND),yes)
be5a5cfc991a patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents: 16778
diff changeset
884 OBJ += $(OUTDIR)/sound.o
be5a5cfc991a patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents: 16778
diff changeset
885 endif
be5a5cfc991a patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents: 16778
diff changeset
886
14696
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
887 # Include xdiff
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
888 OBJ += $(OUTDIR)/xdiffi.o \
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
889 $(OUTDIR)/xemit.o \
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
890 $(OUTDIR)/xprepare.o \
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
891 $(OUTDIR)/xutils.o \
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
892 $(OUTDIR)/xhistogram.o \
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
893 $(OUTDIR)/xpatience.o
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
894
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
895 XDIFF_DEPS = \
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
896 xdiff/xdiff.h \
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
897 xdiff/xdiffi.h \
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
898 xdiff/xemit.h \
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
899 xdiff/xinclude.h \
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
900 xdiff/xmacros.h \
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
901 xdiff/xprepare.h \
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
902 xdiff/xtypes.h \
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
903 xdiff/xutils.h
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
904
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
905 ifdef MZSCHEME
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
906 MZSCHEME_SUFFIX = Z
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
907 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
908
16198
b0e19f135e50 patch 8.1.1104: MS-Windows: not all environment variables can be used
Bram Moolenaar <Bram@vim.org>
parents: 16142
diff changeset
909 LFLAGS += -municode
b0e19f135e50 patch 8.1.1104: MS-Windows: not all environment variables can be used
Bram Moolenaar <Bram@vim.org>
parents: 16142
diff changeset
910
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
911 ifeq ($(VIMDLL),yes)
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
912 VIMEXE := vim$(DEBUG_SUFFIX).exe
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
913 GVIMEXE := gvim$(DEBUG_SUFFIX).exe
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
914 ifeq ($(ARCH),x86-64)
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
915 VIMDLLBASE := vim64$(DEBUG_SUFFIX)
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
916 else
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
917 VIMDLLBASE := vim32$(DEBUG_SUFFIX)
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
918 endif
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
919 TARGET = $(VIMDLLBASE).dll
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
920 LFLAGS += -shared
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
921 EXELFLAGS += -municode
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
922 ifneq ($(DEBUG),yes)
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
923 EXELFLAGS += -s
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
924 endif
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
925 DEFINES += $(DEF_GUI) -DVIMDLL
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
926 OBJ += $(GUIOBJ) $(CUIOBJ)
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
927 OUTDIR = dobj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH)
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
928 MAIN_TARGET = $(GVIMEXE) $(VIMEXE) $(VIMDLLBASE).dll
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
929 else ifeq ($(GUI),yes)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
930 TARGET := gvim$(DEBUG_SUFFIX).exe
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
931 DEFINES += $(DEF_GUI)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
932 OBJ += $(GUIOBJ)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
933 LFLAGS += -mwindows
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
934 OUTDIR = gobj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH)
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
935 MAIN_TARGET = $(TARGET)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
936 else
9363
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents: 9203
diff changeset
937 OBJ += $(CUIOBJ)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
938 TARGET := vim$(DEBUG_SUFFIX).exe
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
939 OUTDIR = obj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH)
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
940 MAIN_TARGET = $(TARGET)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
941 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
942
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
943 ifdef GETTEXT
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
944 ifneq (yes, $(GETTEXT))
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
945 CFLAGS += -I$(GETTEXTINCLUDE)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
946 ifndef STATIC_GETTEXT
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
947 LIB += -L$(GETTEXTLIB) -l$(INTLLIB)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
948 ifeq (USE_SAFE_GETTEXT_DLL, $(DYNAMIC_GETTEXT))
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
949 OBJ+=$(SAFE_GETTEXT_DLL_OBJ)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
950 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
951 else
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
952 LIB += -L$(GETTEXTLIB) -lintl
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
953 endif
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
954 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
955 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
956
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
957 ifdef PERL
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
958 ifeq (no, $(DYNAMIC_PERL))
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
959 LIB += -L$(PERLLIBS) -lperl$(PERL_VER)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
960 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
961 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
962
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
963 ifdef TCL
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
964 LIB += -L$(TCL)/lib
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
965 ifeq (yes, $(DYNAMIC_TCL))
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
966 LIB += -ltclstub$(TCL_VER)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
967 else
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
968 LIB += -ltcl$(TCL_VER)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
969 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
970 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
971
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
972 ifeq (yes, $(OLE))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
973 LIB += -loleaut32
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
974 OBJ += $(OUTDIR)/if_ole.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
975 USE_STDCPLUS = yes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
976 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
977
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
978 ifeq (yes, $(IME))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
979 DEFINES += -DFEAT_MBYTE_IME
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
980 ifeq (yes, $(DYNAMIC_IME))
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
981 DEFINES += -DDYNAMIC_IME
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
982 else
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
983 LIB += -limm32
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
984 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
985 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
986
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
987 ifdef ICONV
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
988 ifneq (yes, $(ICONV))
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
989 LIB += -L$(ICONV)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
990 CFLAGS += -I$(ICONV)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
991 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
992 DEFINES+=-DDYNAMIC_ICONV
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
993 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
994
17131
be5a5cfc991a patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents: 16778
diff changeset
995 ifeq (yes, $(SOUND))
be5a5cfc991a patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents: 16778
diff changeset
996 LIB += -lwinmm
be5a5cfc991a patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents: 16778
diff changeset
997 endif
be5a5cfc991a patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents: 16778
diff changeset
998
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
999 ifeq (yes, $(USE_STDCPLUS))
14958
b898f9093199 patch 8.1.0490: MS-Windows: doesn't handle missing glibwinpthread-1.dll
Bram Moolenaar <Bram@vim.org>
parents: 14943
diff changeset
1000 LINK = $(CXX)
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
1001 ifeq (yes, $(STATIC_STDCPLUS))
15707
be41b51f69c7 patch 8.1.0861: building with MinGW and static libc doesn't work
Bram Moolenaar <Bram@vim.org>
parents: 15699
diff changeset
1002 #LIB += -static-libstdc++ -static-libgcc
15912
57a353715a8f patch 8.1.0962: building with MinGW and static libs doesn't work
Bram Moolenaar <Bram@vim.org>
parents: 15886
diff changeset
1003 LIB += -Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
1004 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1005 else
14958
b898f9093199 patch 8.1.0490: MS-Windows: doesn't handle missing glibwinpthread-1.dll
Bram Moolenaar <Bram@vim.org>
parents: 14943
diff changeset
1006 LINK = $(CC)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1007 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1008
10442
70680eba1940 commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents: 10149
diff changeset
1009 ifeq (yes, $(STATIC_WINPTHREAD))
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
1010 ifeq (yes, $(HAS_GCC_EH))
14958
b898f9093199 patch 8.1.0490: MS-Windows: doesn't handle missing glibwinpthread-1.dll
Bram Moolenaar <Bram@vim.org>
parents: 14943
diff changeset
1011 LIB += -lgcc_eh
16640
92ad5eb7afcb patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents: 16632
diff changeset
1012 endif
10442
70680eba1940 commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents: 10149
diff changeset
1013 LIB += -Wl,-Bstatic -lwinpthread -Wl,-Bdynamic
70680eba1940 commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents: 10149
diff changeset
1014 endif
70680eba1940 commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents: 10149
diff changeset
1015
14820
8ff32a34f25e patch 8.1.0422: cannot create map file with MinGW
Christian Brabandt <cb@256bit.org>
parents: 14818
diff changeset
1016 ifeq (yes, $(MAP))
8ff32a34f25e patch 8.1.0422: cannot create map file with MinGW
Christian Brabandt <cb@256bit.org>
parents: 14818
diff changeset
1017 LFLAGS += -Wl,-Map=$(TARGET).map
8ff32a34f25e patch 8.1.0422: cannot create map file with MinGW
Christian Brabandt <cb@256bit.org>
parents: 14818
diff changeset
1018 endif
8ff32a34f25e patch 8.1.0422: cannot create map file with MinGW
Christian Brabandt <cb@256bit.org>
parents: 14818
diff changeset
1019
18174
1ec6539cef68 patch 8.1.2082: some files have a weird name to fit in 8.3 characters
Bram Moolenaar <Bram@vim.org>
parents: 18172
diff changeset
1020 all: $(MAIN_TARGET) vimrun.exe xxd/xxd.exe tee/tee.exe install.exe uninstall.exe GvimExt/gvimext.dll
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1021
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1022 vimrun.exe: vimrun.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1023 $(CC) $(CFLAGS) -o vimrun.exe vimrun.c $(LIB)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1024
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1025 install.exe: dosinst.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1026 $(CC) $(CFLAGS) -o install.exe dosinst.c $(LIB) -lole32 -luuid
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1027
18174
1ec6539cef68 patch 8.1.2082: some files have a weird name to fit in 8.3 characters
Bram Moolenaar <Bram@vim.org>
parents: 18172
diff changeset
1028 uninstall.exe: uninstall.c
1ec6539cef68 patch 8.1.2082: some files have a weird name to fit in 8.3 characters
Bram Moolenaar <Bram@vim.org>
parents: 18172
diff changeset
1029 $(CC) $(CFLAGS) -o uninstall.exe uninstall.c $(LIB) -lole32
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1030
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1031 ifeq ($(VIMDLL),yes)
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1032 $(TARGET): $(OUTDIR) $(OBJ)
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1033 $(LINK) $(CFLAGS) $(LFLAGS) -o $@ $(OBJ) $(LIB) -lole32 -luuid -lgdi32 $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB)
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1034
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1035 $(GVIMEXE): $(OUTDIR) $(EXEOBJG) $(VIMDLLBASE).dll
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1036 $(CC) -L. $(EXELFLAGS) -mwindows -o $@ $(EXEOBJG) -l$(VIMDLLBASE)
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1037
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1038 $(VIMEXE): $(OUTDIR) $(EXEOBJC) $(VIMDLLBASE).dll
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1039 $(CC) -L. $(EXELFLAGS) -o $@ $(EXEOBJC) -l$(VIMDLLBASE)
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1040 else
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1041 $(TARGET): $(OUTDIR) $(OBJ)
14958
b898f9093199 patch 8.1.0490: MS-Windows: doesn't handle missing glibwinpthread-1.dll
Bram Moolenaar <Bram@vim.org>
parents: 14943
diff changeset
1042 $(LINK) $(CFLAGS) $(LFLAGS) -o $@ $(OBJ) $(LIB) -lole32 -luuid $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB)
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1043 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1044
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1045 upx: exes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1046 upx gvim.exe
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1047 upx vim.exe
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1048
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1049 mpress: exes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1050 mpress gvim.exe
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1051 mpress vim.exe
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1052
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1053 xxd/xxd.exe: xxd/xxd.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1054 $(MAKE) -C xxd -f Make_ming.mak CC='$(CC)'
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1055
14943
d95d6580d84b patch 8.1.0483: MinGW does not build tee.exe
Bram Moolenaar <Bram@vim.org>
parents: 14941
diff changeset
1056 tee/tee.exe: tee/tee.c
d95d6580d84b patch 8.1.0483: MinGW does not build tee.exe
Bram Moolenaar <Bram@vim.org>
parents: 14941
diff changeset
1057 $(MAKE) -C tee CC='$(CC)'
d95d6580d84b patch 8.1.0483: MinGW does not build tee.exe
Bram Moolenaar <Bram@vim.org>
parents: 14941
diff changeset
1058
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1059 GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1060 $(MAKE) -C GvimExt -f Make_ming.mak CROSS=$(CROSS) CROSS_COMPILE=$(CROSS_COMPILE) CXX='$(CXX)' STATIC_STDCPLUS=$(STATIC_STDCPLUS)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1061
12305
d4a3ad146204 patch 8.0.1032: "make tags" doesn't work well on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12218
diff changeset
1062 tags: notags
15201
ce92157deb4e patch 8.1.0610: MS-Windows ctags file list differs from Unix
Bram Moolenaar <Bram@vim.org>
parents: 15138
diff changeset
1063 $(CTAGS) $(TAGS_FILES)
12305
d4a3ad146204 patch 8.0.1032: "make tags" doesn't work well on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12218
diff changeset
1064
d4a3ad146204 patch 8.0.1032: "make tags" doesn't work well on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12218
diff changeset
1065 notags:
d4a3ad146204 patch 8.0.1032: "make tags" doesn't work well on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12218
diff changeset
1066 -$(DEL) tags
d4a3ad146204 patch 8.0.1032: "make tags" doesn't work well on MS-Windows
Christian Brabandt <cb@256bit.org>
parents: 12218
diff changeset
1067
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1068 clean:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1069 -$(DEL) $(OUTDIR)$(DIRSLASH)*.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1070 -$(DEL) $(OUTDIR)$(DIRSLASH)*.res
17157
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1071 -$(DEL) $(OUTDIR)$(DIRSLASH)pathdef.c
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1072 -rmdir $(OUTDIR)
18174
1ec6539cef68 patch 8.1.2082: some files have a weird name to fit in 8.3 characters
Bram Moolenaar <Bram@vim.org>
parents: 18172
diff changeset
1073 -$(DEL) $(MAIN_TARGET) vimrun.exe install.exe uninstall.exe
18862
4a3c9d39fc31 patch 8.1.2417: MinGW/Cygwin build does not clean up all files
Bram Moolenaar <Bram@vim.org>
parents: 18853
diff changeset
1074 -$(DEL) *.map
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1075 ifdef PERL
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1076 -$(DEL) if_perl.c
14925
8b1b3228c410 patch 8.1.0474: directory where if_perl.c is written is inconsistent
Bram Moolenaar <Bram@vim.org>
parents: 14820
diff changeset
1077 -$(DEL) auto$(DIRSLASH)if_perl.c
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1078 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1079 ifdef MZSCHEME
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1080 -$(DEL) mzscheme_base.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1081 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1082 $(MAKE) -C GvimExt -f Make_ming.mak clean
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1083 $(MAKE) -C xxd -f Make_ming.mak clean
14943
d95d6580d84b patch 8.1.0483: MinGW does not build tee.exe
Bram Moolenaar <Bram@vim.org>
parents: 14941
diff changeset
1084 $(MAKE) -C tee clean
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1085
18853
5ecefcbd12a1 patch 8.1.2413: cannot update ex_cmdidxs.h on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents: 18267
diff changeset
1086 # Run vim script to generate the Ex command lookup table.
5ecefcbd12a1 patch 8.1.2413: cannot update ex_cmdidxs.h on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents: 18267
diff changeset
1087 # This only needs to be run when a command name has been added or changed.
5ecefcbd12a1 patch 8.1.2413: cannot update ex_cmdidxs.h on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents: 18267
diff changeset
1088 # If this fails because you don't have Vim yet, first build and install Vim
5ecefcbd12a1 patch 8.1.2413: cannot update ex_cmdidxs.h on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents: 18267
diff changeset
1089 # without changes.
5ecefcbd12a1 patch 8.1.2413: cannot update ex_cmdidxs.h on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents: 18267
diff changeset
1090 cmdidxs: ex_cmds.h
5ecefcbd12a1 patch 8.1.2413: cannot update ex_cmdidxs.h on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents: 18267
diff changeset
1091 vim --clean -X -u create_cmdidxs.vim
5ecefcbd12a1 patch 8.1.2413: cannot update ex_cmdidxs.h on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents: 18267
diff changeset
1092
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1093 ###########################################################################
16068
8c160339de22 patch 8.1.1039: MS-Windows build fails
Bram Moolenaar <Bram@vim.org>
parents: 15912
diff changeset
1094 INCL = vim.h alloc.h ascii.h ex_cmds.h feature.h globals.h \
12525
626fb8e8bb8a patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents: 12489
diff changeset
1095 keymap.h macros.h option.h os_dos.h os_win32.h proto.h regexp.h \
12871
1a450ce6980c patch 8.0.1312: balloon_show() only works in terminal when compiled with GUI
Christian Brabandt <cb@256bit.org>
parents: 12628
diff changeset
1096 spell.h structs.h term.h beval.h $(NBDEBUG_INCL)
1a450ce6980c patch 8.0.1312: balloon_show() only works in terminal when compiled with GUI
Christian Brabandt <cb@256bit.org>
parents: 12628
diff changeset
1097 GUI_INCL = gui.h
16758
bb4071e79ade patch 8.1.1381: MS-Windows: missing build dependency
Bram Moolenaar <Bram@vim.org>
parents: 16640
diff changeset
1098 ifeq ($(DIRECTX),yes)
bb4071e79ade patch 8.1.1381: MS-Windows: missing build dependency
Bram Moolenaar <Bram@vim.org>
parents: 16640
diff changeset
1099 GUI_INCL += gui_dwrite.h
bb4071e79ade patch 8.1.1381: MS-Windows: missing build dependency
Bram Moolenaar <Bram@vim.org>
parents: 16640
diff changeset
1100 endif
9363
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents: 9203
diff changeset
1101 CUI_INCL = iscygpty.h
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1102
17157
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1103 PATHDEF_SRC = $(OUTDIR)/pathdef.c
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1104
12525
626fb8e8bb8a patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents: 12489
diff changeset
1105 $(OUTDIR)/if_python.o: if_python.c if_py_both.h $(INCL)
7532
0acbe61244ac commit https://github.com/vim/vim/commit/449538c3d2f7089dcaa1a888f09f41714faec9a6
Christian Brabandt <cb@256bit.org>
parents: 7523
diff changeset
1106 $(CC) -c $(CFLAGS) $(PYTHONINC) $(PYTHON_HOME_DEF) $< -o $@
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1107
12525
626fb8e8bb8a patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents: 12489
diff changeset
1108 $(OUTDIR)/if_python3.o: if_python3.c if_py_both.h $(INCL)
7695
a865f9773cb2 commit https://github.com/vim/vim/commit/a7c3795a2e65233ba2d187d680acc83bf6bf4ef5
Christian Brabandt <cb@256bit.org>
parents: 7609
diff changeset
1109 $(CC) -c $(CFLAGS) $(PYTHON3INC) $(PYTHON3_HOME_DEF) $< -o $@
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1110
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1111 $(OUTDIR)/%.o : %.c $(INCL)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1112 $(CC) -c $(CFLAGS) $< -o $@
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1113
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1114 ifeq ($(VIMDLL),yes)
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1115 $(OUTDIR)/vimrcc.o: vim.rc gvim.exe.mnf version.h gui_w32_rc.h vim.ico
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1116 $(WINDRES) $(WINDRES_FLAGS) $(DEFINES) -UFEAT_GUI_MSWIN \
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1117 --input-format=rc --output-format=coff -i vim.rc -o $@
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1118
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1119 $(OUTDIR)/vimrcg.o: vim.rc gvim.exe.mnf version.h gui_w32_rc.h vim.ico
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1120 $(WINDRES) $(WINDRES_FLAGS) $(DEFINES) \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1121 --input-format=rc --output-format=coff -i vim.rc -o $@
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1122
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1123 $(OUTDIR)/vimrcd.o: vim.rc version.h gui_w32_rc.h \
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1124 tools.bmp tearoff.bmp vim.ico vim_error.ico \
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1125 vim_alert.ico vim_info.ico vim_quest.ico
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1126 $(WINDRES) $(WINDRES_FLAGS) $(DEFINES) -DRCDLL -DVIMDLLBASE=\\\"$(VIMDLLBASE)\\\" \
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1127 --input-format=rc --output-format=coff -i vim.rc -o $@
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1128 else
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1129 $(OUTDIR)/vimrc.o: vim.rc gvim.exe.mnf version.h gui_w32_rc.h \
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1130 tools.bmp tearoff.bmp vim.ico vim_error.ico \
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1131 vim_alert.ico vim_info.ico vim_quest.ico
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1132 $(WINDRES) $(WINDRES_FLAGS) $(DEFINES) \
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1133 --input-format=rc --output-format=coff -i vim.rc -o $@
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1134 endif
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1135
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1136 $(OUTDIR):
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1137 $(MKDIR) $(OUTDIR)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1138
18853
5ecefcbd12a1 patch 8.1.2413: cannot update ex_cmdidxs.h on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents: 18267
diff changeset
1139 $(OUTDIR)/ex_docmd.o: ex_docmd.c $(INCL) ex_cmdidxs.h
5ecefcbd12a1 patch 8.1.2413: cannot update ex_cmdidxs.h on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents: 18267
diff changeset
1140
16758
bb4071e79ade patch 8.1.1381: MS-Windows: missing build dependency
Bram Moolenaar <Bram@vim.org>
parents: 16640
diff changeset
1141 $(OUTDIR)/gui_dwrite.o: gui_dwrite.cpp gui_dwrite.h
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1142 $(CC) -c $(CFLAGS) $(CXXFLAGS) gui_dwrite.cpp -o $@
11782
112427b2de52 patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents: 11774
diff changeset
1143
12525
626fb8e8bb8a patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents: 12489
diff changeset
1144 $(OUTDIR)/gui.o: gui.c $(INCL) $(GUI_INCL)
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1145 $(CC) -c $(CFLAGS) gui.c -o $@
12525
626fb8e8bb8a patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents: 12489
diff changeset
1146
12871
1a450ce6980c patch 8.0.1312: balloon_show() only works in terminal when compiled with GUI
Christian Brabandt <cb@256bit.org>
parents: 12628
diff changeset
1147 $(OUTDIR)/beval.o: beval.c $(INCL) $(GUI_INCL)
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1148 $(CC) -c $(CFLAGS) beval.c -o $@
12871
1a450ce6980c patch 8.0.1312: balloon_show() only works in terminal when compiled with GUI
Christian Brabandt <cb@256bit.org>
parents: 12628
diff changeset
1149
12525
626fb8e8bb8a patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents: 12489
diff changeset
1150 $(OUTDIR)/gui_beval.o: gui_beval.c $(INCL) $(GUI_INCL)
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1151 $(CC) -c $(CFLAGS) gui_beval.c -o $@
12525
626fb8e8bb8a patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents: 12489
diff changeset
1152
626fb8e8bb8a patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents: 12489
diff changeset
1153 $(OUTDIR)/gui_w32.o: gui_w32.c $(INCL) $(GUI_INCL)
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1154 $(CC) -c $(CFLAGS) gui_w32.c -o $@
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1155
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1156 $(OUTDIR)/if_cscope.o: if_cscope.c $(INCL) if_cscope.h
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1157 $(CC) -c $(CFLAGS) if_cscope.c -o $@
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1158
12525
626fb8e8bb8a patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents: 12489
diff changeset
1159 $(OUTDIR)/if_mzsch.o: if_mzsch.c $(INCL) $(MZSCHEME_INCL) $(MZ_EXTRA_DEP)
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1160 $(CC) -c $(CFLAGS) if_mzsch.c -o $@
11782
112427b2de52 patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents: 11774
diff changeset
1161
112427b2de52 patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents: 11774
diff changeset
1162 mzscheme_base.c:
112427b2de52 patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents: 11774
diff changeset
1163 $(MZSCHEME)/mzc --c-mods mzscheme_base.c ++lib scheme/base
112427b2de52 patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents: 11774
diff changeset
1164
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1165 # Remove -D__IID_DEFINED__ for newer versions of the w32api
12525
626fb8e8bb8a patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents: 12489
diff changeset
1166 $(OUTDIR)/if_ole.o: if_ole.cpp $(INCL) if_ole.h
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1167 $(CC) -c $(CFLAGS) $(CXXFLAGS) if_ole.cpp -o $@
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1168
14925
8b1b3228c410 patch 8.1.0474: directory where if_perl.c is written is inconsistent
Bram Moolenaar <Bram@vim.org>
parents: 14820
diff changeset
1169 auto/if_perl.c: if_perl.xs typemap
11782
112427b2de52 patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents: 11774
diff changeset
1170 $(XSUBPP) -prototypes -typemap \
112427b2de52 patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents: 11774
diff changeset
1171 $(PERLTYPEMAP) if_perl.xs -output $@
112427b2de52 patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents: 11774
diff changeset
1172
14925
8b1b3228c410 patch 8.1.0474: directory where if_perl.c is written is inconsistent
Bram Moolenaar <Bram@vim.org>
parents: 14820
diff changeset
1173 $(OUTDIR)/if_perl.o: auto/if_perl.c $(INCL)
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1174 $(CC) -c $(CFLAGS) auto/if_perl.c -o $@
14925
8b1b3228c410 patch 8.1.0474: directory where if_perl.c is written is inconsistent
Bram Moolenaar <Bram@vim.org>
parents: 14820
diff changeset
1175
8b1b3228c410 patch 8.1.0474: directory where if_perl.c is written is inconsistent
Bram Moolenaar <Bram@vim.org>
parents: 14820
diff changeset
1176
12525
626fb8e8bb8a patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents: 12489
diff changeset
1177 $(OUTDIR)/if_ruby.o: if_ruby.c $(INCL)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1178 ifeq (16, $(RUBY))
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1179 $(CC) $(CFLAGS) -U_WIN32 -c -o $@ if_ruby.c
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1180 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1181
9363
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents: 9203
diff changeset
1182 $(OUTDIR)/iscygpty.o: iscygpty.c $(CUI_INCL)
9471
2f2b96276941 commit https://github.com/vim/vim/commit/2bc127f94016801250f8f24234f90a5182d77e73
Christian Brabandt <cb@256bit.org>
parents: 9403
diff changeset
1183 $(CC) -c $(CFLAGS) iscygpty.c -o $(OUTDIR)/iscygpty.o -U_WIN32_WINNT -D_WIN32_WINNT=0x0600 -DUSE_DYNFILEID -DENABLE_STUB_IMPL
9363
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents: 9203
diff changeset
1184
12525
626fb8e8bb8a patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents: 12489
diff changeset
1185 $(OUTDIR)/main.o: main.c $(INCL) $(CUI_INCL)
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1186 $(CC) -c $(CFLAGS) main.c -o $@
9363
f9dda6450c76 commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents: 9203
diff changeset
1187
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1188 $(OUTDIR)/netbeans.o: netbeans.c $(INCL) $(NBDEBUG_INCL) $(NBDEBUG_SRC)
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1189 $(CC) -c $(CFLAGS) netbeans.c -o $@
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1190
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1191 $(OUTDIR)/os_w32exec.o: os_w32exe.c $(INCL)
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1192 $(CC) -c $(CFLAGS) -UFEAT_GUI_MSWIN os_w32exe.c -o $@
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1193
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1194 $(OUTDIR)/os_w32exeg.o: os_w32exe.c $(INCL)
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1195 $(CC) -c $(CFLAGS) os_w32exe.c -o $@
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1196
12525
626fb8e8bb8a patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents: 12489
diff changeset
1197 $(OUTDIR)/os_win32.o: os_win32.c $(INCL) $(MZSCHEME_INCL)
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1198 $(CC) -c $(CFLAGS) os_win32.c -o $@
12525
626fb8e8bb8a patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents: 12489
diff changeset
1199
18019
68fd5296bf73 patch 8.1.2005: the regexp.c file is too big
Bram Moolenaar <Bram@vim.org>
parents: 18010
diff changeset
1200 $(OUTDIR)/regexp.o: regexp.c regexp_bt.c regexp_nfa.c $(INCL)
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1201 $(CC) -c $(CFLAGS) regexp.c -o $@
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1202
18164
f57481564f2c patch 8.1.2077: the ops.c file is too big
Bram Moolenaar <Bram@vim.org>
parents: 18135
diff changeset
1203 $(OUTDIR)/register.o: register.c $(INCL)
f57481564f2c patch 8.1.2077: the ops.c file is too big
Bram Moolenaar <Bram@vim.org>
parents: 18135
diff changeset
1204 $(CC) -c $(CFLAGS) register.c -o $@
f57481564f2c patch 8.1.2077: the ops.c file is too big
Bram Moolenaar <Bram@vim.org>
parents: 18135
diff changeset
1205
11782
112427b2de52 patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents: 11774
diff changeset
1206 $(OUTDIR)/terminal.o: terminal.c $(INCL) $(TERM_DEPS)
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1207 $(CC) -c $(CFLAGS) terminal.c -o $@
15138
9df130fd5e0d patch 8.1.0579: cannot attach properties to text
Bram Moolenaar <Bram@vim.org>
parents: 14958
diff changeset
1208
17157
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1209 $(OUTDIR)/pathdef.o: $(PATHDEF_SRC) $(INCL)
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1210 $(CC) -c $(CFLAGS) $(PATHDEF_SRC) -o $@
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1211
11782
112427b2de52 patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents: 11774
diff changeset
1212
12210
b9b06aa0b6d9 patch 8.0.0985: libvterm has its own idea of character width
Christian Brabandt <cb@256bit.org>
parents: 11782
diff changeset
1213 CCCTERM = $(CC) -c $(CFLAGS) -Ilibvterm/include -DINLINE="" \
b9b06aa0b6d9 patch 8.0.0985: libvterm has its own idea of character width
Christian Brabandt <cb@256bit.org>
parents: 11782
diff changeset
1214 -DVSNPRINTF=vim_vsnprintf \
b9b06aa0b6d9 patch 8.0.0985: libvterm has its own idea of character width
Christian Brabandt <cb@256bit.org>
parents: 11782
diff changeset
1215 -DIS_COMBINING_FUNCTION=utf_iscomposing_uint \
18064
8b4f9be5db73 patch 8.1.2027: MS-Windows: problem with ambiwidth characters
Bram Moolenaar <Bram@vim.org>
parents: 18019
diff changeset
1216 -DWCWIDTH_FUNCTION=utf_uint2cells \
8b4f9be5db73 patch 8.1.2027: MS-Windows: problem with ambiwidth characters
Bram Moolenaar <Bram@vim.org>
parents: 18019
diff changeset
1217 -DGET_SPECIAL_PTY_TYPE_FUNCTION=get_special_pty_type
12210
b9b06aa0b6d9 patch 8.0.0985: libvterm has its own idea of character width
Christian Brabandt <cb@256bit.org>
parents: 11782
diff changeset
1218
18267
da6a7491e148 patch 8.1.2128: renamed libvterm sources makes merging difficult
Bram Moolenaar <Bram@vim.org>
parents: 18265
diff changeset
1219 $(OUTDIR)/vterm_%.o : libvterm/src/%.c $(TERM_DEPS)
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1220 $(CCCTERM) $< -o $@
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1221
11782
112427b2de52 patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents: 11774
diff changeset
1222
16451
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1223 $(OUTDIR)/%.o : xdiff/%.c $(XDIFF_DEPS)
7ae2396cef62 patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents: 16411
diff changeset
1224 $(CC) -c $(CFLAGS) $< -o $@
14696
195e8b1fcbbf patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents: 14222
diff changeset
1225
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1226
17157
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1227 $(PATHDEF_SRC): Make_cyg_ming.mak Make_cyg.mak Make_ming.mak
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1228 ifneq (sh.exe, $(SHELL))
17157
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1229 @echo creating $(PATHDEF_SRC)
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1230 @echo '/* pathdef.c */' > $(PATHDEF_SRC)
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1231 @echo '#include "vim.h"' >> $(PATHDEF_SRC)
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1232 @echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' >> $(PATHDEF_SRC)
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1233 @echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' >> $(PATHDEF_SRC)
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1234 @echo 'char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)";' >> $(PATHDEF_SRC)
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1235 @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_SRC)
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1236 @echo 'char_u *compiled_user = (char_u *)"$(USERNAME)";' >> $(PATHDEF_SRC)
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1237 @echo 'char_u *compiled_sys = (char_u *)"$(USERDOMAIN)";' >> $(PATHDEF_SRC)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1238 else
17157
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1239 @echo creating $(PATHDEF_SRC)
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1240 @echo /* pathdef.c */ > $(PATHDEF_SRC)
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1241 @echo #include "vim.h" >> $(PATHDEF_SRC)
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1242 @echo char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)"; >> $(PATHDEF_SRC)
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1243 @echo char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)"; >> $(PATHDEF_SRC)
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1244 @echo char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)"; >> $(PATHDEF_SRC)
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1245 @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_SRC)
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1246 @echo char_u *compiled_user = (char_u *)"$(USERNAME)"; >> $(PATHDEF_SRC)
bbd454d155a9 patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents: 17131
diff changeset
1247 @echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> $(PATHDEF_SRC)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1248 endif
12525
626fb8e8bb8a patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents: 12489
diff changeset
1249
626fb8e8bb8a patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents: 12489
diff changeset
1250 # vim: set noet sw=8 ts=8 sts=0 wm=0 tw=0: