Mercurial > vim
annotate src/Make_cyg_ming.mak @ 33461:6448d7b2ce20 v9.0.1984
patch 9.0.1984: CI: Test_open_delay*() fails on FreeBSD 14
Commit: https://github.com/vim/vim/commit/85ff0c1912f6d94ed94a6112517e96f64801ba56
Author: Christian Brabandt <cb@256bit.org>
Date: Wed Oct 4 21:58:24 2023 +0200
patch 9.0.1984: CI: Test_open_delay*() fails on FreeBSD 14
Problem: CI: Test_open_delay*() fails on FreeBSD 14
Solution: Skip it on BSD
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 04 Oct 2023 22:15:03 +0200 |
parents | ed8db57d1034 |
children | b2075b2d2cca |
rev | line source |
---|---|
6326 | 1 # Makefile for VIM on Win32 (Cygwin and MinGW) |
2 # | |
3 # This file contains common part for Cygwin and MinGW and it is included | |
4 # from Make_cyg.mak and Make_ming.mak. | |
5 # | |
6 # Info at http://www.mingw.org | |
7 # Alternative x86 and 64-builds: http://mingw-w64.sourceforge.net | |
8 # Also requires GNU make, which you can download from the same sites. | |
9 # Get missing libraries from http://gnuwin32.sf.net. | |
10 # | |
11 # Tested on Win32 NT 4 and Win95. | |
12 # | |
13 # To make everything, just 'make -f Make_ming.mak'. | |
14 # To make just e.g. gvim.exe, 'make -f Make_ming.mak gvim.exe'. | |
15 # After a run, you can 'make -f Make_ming.mak clean' to clean up. | |
16 # | |
17 # NOTE: Sometimes 'GNU Make' will stop after building vimrun.exe -- I think | |
18 # it's just run out of memory or something. Run again, and it will continue | |
19 # with 'xxd'. | |
20 # | |
21 # "make upx" makes *compressed* versions of the 32 bit GUI and console EXEs, | |
22 # using the excellent UPX compressor: | |
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 | 24 # "make mpress" uses the MPRESS compressor for 32- and 64-bit EXEs: |
25 # http://www.matcode.com/mpress.htm | |
26 # | |
27 # Maintained by Ron Aaron <ronaharon@yahoo.com> et al. | |
28 # Updated 2014 Oct 13. | |
29 | |
30 #>>>>> choose options: | |
30731
2295ee9c025d
patch 9.0.0700: there is no real need for a "big" build
Bram Moolenaar <Bram@vim.org>
parents:
30645
diff
changeset
|
31 # FEATURES=[TINY | NORMAL | HUGE] |
30645
101f08b49ed3
patch 9.0.0657: too many #ifdefs
Bram Moolenaar <Bram@vim.org>
parents:
30421
diff
changeset
|
32 # Set to TINY to make a minimal version (no optional features). |
13658
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 |
27984
da660b0f20d1
patch 8.2.4517: MS-Windows: cannot specify location of sodium library
Bram Moolenaar <Bram@vim.org>
parents:
27932
diff
changeset
|
35 # Set to yes for a debug build. |
6326 | 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 |
27984
da660b0f20d1
patch 8.2.4517: MS-Windows: cannot specify location of sodium library
Bram Moolenaar <Bram@vim.org>
parents:
27932
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 |
27984
da660b0f20d1
patch 8.2.4517: MS-Windows: cannot specify location of sodium library
Bram Moolenaar <Bram@vim.org>
parents:
27932
diff
changeset
|
41 # Set to yes to measure code coverage. |
22067
59984404e520
patch 8.2.1583: MS-Windows: cannot easily measure code coverage
Bram Moolenaar <Bram@vim.org>
parents:
21789
diff
changeset
|
42 COVERAGE=no |
59984404e520
patch 8.2.1583: MS-Windows: cannot easily measure code coverage
Bram Moolenaar <Bram@vim.org>
parents:
21789
diff
changeset
|
43 |
27984
da660b0f20d1
patch 8.2.4517: MS-Windows: cannot specify location of sodium library
Bram Moolenaar <Bram@vim.org>
parents:
27932
diff
changeset
|
44 # Better encryption support using libsodium. |
da660b0f20d1
patch 8.2.4517: MS-Windows: cannot specify location of sodium library
Bram Moolenaar <Bram@vim.org>
parents:
27932
diff
changeset
|
45 # Set to yes or specify the path to the libsodium directory to enable it. |
24970
7e9e53a0368f
patch 8.2.3022: available encryption methods are not strong enough
Bram Moolenaar <Bram@vim.org>
parents:
24780
diff
changeset
|
46 #SODIUM=yes |
7e9e53a0368f
patch 8.2.3022: available encryption methods are not strong enough
Bram Moolenaar <Bram@vim.org>
parents:
24780
diff
changeset
|
47 |
27984
da660b0f20d1
patch 8.2.4517: MS-Windows: cannot specify location of sodium library
Bram Moolenaar <Bram@vim.org>
parents:
27932
diff
changeset
|
48 # Set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization. |
6326 | 49 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
|
50 |
27984
da660b0f20d1
patch 8.2.4517: MS-Windows: cannot specify location of sodium library
Bram Moolenaar <Bram@vim.org>
parents:
27932
diff
changeset
|
51 # Set to yes to make gvim, no for vim. |
6326 | 52 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
|
53 |
27984
da660b0f20d1
patch 8.2.4517: MS-Windows: cannot specify location of sodium library
Bram Moolenaar <Bram@vim.org>
parents:
27932
diff
changeset
|
54 # Set to yes to enable the DLL support (EXPERIMENTAL). |
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
|
55 # 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
|
56 # "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
|
57 #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
|
58 |
27984
da660b0f20d1
patch 8.2.4517: MS-Windows: cannot specify location of sodium library
Bram Moolenaar <Bram@vim.org>
parents:
27932
diff
changeset
|
59 # Set to no if you do not want to use DirectWrite (DirectX). |
6326 | 60 # 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
|
61 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
|
62 |
c83ec560409c
patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents:
13468
diff
changeset
|
63 # 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
|
64 # (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
|
65 #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
|
66 |
6326 | 67 # Set to one of i386, i486, i586, i686 as the minimum target processor. |
68 # 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
|
69 # 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
|
70 #ARCH=i686 |
6326 | 71 # Set to yes to cross-compile from unix; no=native Windows (and Cygwin). |
72 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
|
73 |
6326 | 74 # 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
|
75 # Use "yes" when the path does not need to be define. |
6326 | 76 #ICONV="." |
77 ICONV=yes | |
78 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
|
79 |
6326 | 80 # Set to yes to include IME support. |
81 IME=yes | |
82 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
|
83 |
6326 | 84 # Set to yes to enable writing a postscript file with :hardcopy. |
85 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
|
86 |
6326 | 87 # Set to yes to enable OLE support. |
88 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
|
89 |
30320
0763cb330a65
patch 9.0.0496: no good reason to keep supporting Windows-XP
Bram Moolenaar <Bram@vim.org>
parents:
30170
diff
changeset
|
90 # Set the default $(WINVER). Use 0x0601 to make it work with Windows 7. |
6326 | 91 ifndef WINVER |
30320
0763cb330a65
patch 9.0.0496: no good reason to keep supporting Windows-XP
Bram Moolenaar <Bram@vim.org>
parents:
30170
diff
changeset
|
92 WINVER = 0x0601 |
6326 | 93 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
|
94 |
6326 | 95 # Set to yes to enable Cscope support. |
96 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
|
97 |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
98 # Set to yes to enable Netbeans support (requires CHANNEL). |
6326 | 99 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
|
100 |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
101 # 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
|
102 ifeq (HUGE, $(FEATURES)) |
c096095ad9fb
commit https://github.com/vim/vim/commit/1aa07bdead2e93501c54591e31fe73b9b09c58b5
Christian Brabandt <cb@256bit.org>
parents:
8696
diff
changeset
|
103 CHANNEL=yes |
c096095ad9fb
commit https://github.com/vim/vim/commit/1aa07bdead2e93501c54591e31fe73b9b09c58b5
Christian Brabandt <cb@256bit.org>
parents:
8696
diff
changeset
|
104 else |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
105 CHANNEL=$(GUI) |
9203
c096095ad9fb
commit https://github.com/vim/vim/commit/1aa07bdead2e93501c54591e31fe73b9b09c58b5
Christian Brabandt <cb@256bit.org>
parents:
8696
diff
changeset
|
106 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
|
107 |
11774
edf1a2a247fa
patch 8.0.0769: build problems with terminal on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11719
diff
changeset
|
108 # 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
|
109 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
|
110 TERMINAL=yes |
c3bb4552d15d
patch 8.0.1192: MS-Windows: terminal feature not enabled by default
Christian Brabandt <cb@256bit.org>
parents:
12525
diff
changeset
|
111 else |
11696
0a6136dfce35
patch 8.0.0731: cannot build the terminal feature on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
10442
diff
changeset
|
112 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
|
113 endif |
6326 | 114 |
17131
be5a5cfc991a
patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
115 # Set to yes to enable sound support. |
30731
2295ee9c025d
patch 9.0.0700: there is no real need for a "big" build
Bram Moolenaar <Bram@vim.org>
parents:
30645
diff
changeset
|
116 ifneq ($(findstring $(FEATURES),HUGE),) |
17131
be5a5cfc991a
patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
117 SOUND=yes |
be5a5cfc991a
patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
118 else |
be5a5cfc991a
patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
119 SOUND=no |
be5a5cfc991a
patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
120 endif |
be5a5cfc991a
patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
121 |
12305
d4a3ad146204
patch 8.0.1032: "make tags" doesn't work well on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12218
diff
changeset
|
122 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
|
123 # this assumes ctags is Exuberant ctags |
19042
4be592d96c20
patch 8.2.0081: MS-Windows also need the change to support INIT4()
Bram Moolenaar <Bram@vim.org>
parents:
18884
diff
changeset
|
124 CTAGS = ctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S |
12305
d4a3ad146204
patch 8.0.1032: "make tags" doesn't work well on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12218
diff
changeset
|
125 endif |
6326 | 126 |
127 # Link against the shared version of libstdc++ by default. Set | |
128 # STATIC_STDCPLUS to "yes" to link against static version instead. | |
129 ifndef STATIC_STDCPLUS | |
130 STATIC_STDCPLUS=no | |
131 endif | |
132 | |
10442
70680eba1940
commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents:
10149
diff
changeset
|
133 |
70680eba1940
commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents:
10149
diff
changeset
|
134 # 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
|
135 # 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
|
136 ifndef STATIC_WINPTHREAD |
70680eba1940
commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents:
10149
diff
changeset
|
137 STATIC_WINPTHREAD=$(STATIC_STDCPLUS) |
70680eba1940
commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents:
10149
diff
changeset
|
138 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
|
139 # 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
|
140 # 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
|
141 HAS_GCC_EH=yes |
10442
70680eba1940
commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents:
10149
diff
changeset
|
142 |
6326 | 143 # If the user doesn't want gettext, undefine it. |
144 ifeq (no, $(GETTEXT)) | |
145 GETTEXT= | |
146 endif | |
147 # Added by E.F. Amatria <eferna1@platea.ptic.mec.es> 2001 Feb 23 | |
148 # Uncomment the first line and one of the following three if you want Native Language | |
149 # Support. You'll need gnu_gettext.win32, a MINGW32 Windows PORT of gettext by | |
150 # Franco Bez <franco.bez@gmx.de>. It may be found at | |
151 # http://home.a-city.de/franco.bez/gettext/gettext_win32_en.html | |
152 # Tested with mingw32 with GCC-2.95.2 on Win98 | |
153 # Updated 2001 Jun 9 | |
154 #GETTEXT=c:/gettext.win32.msvcrt | |
155 #STATIC_GETTEXT=USE_STATIC_GETTEXT | |
156 #DYNAMIC_GETTEXT=USE_GETTEXT_DLL | |
157 #DYNAMIC_GETTEXT=USE_SAFE_GETTEXT_DLL | |
158 SAFE_GETTEXT_DLL_OBJ = $(GETTEXT)/src/safe_gettext_dll/safe_gettext_dll.o | |
159 # Alternatively, if you uncomment the two following lines, you get a "safe" version | |
160 # without linking the safe_gettext_dll.o object file. | |
161 #DYNAMIC_GETTEXT=DYNAMIC_GETTEXT | |
162 #GETTEXT_DYNAMIC=gnu_gettext.dll | |
163 INTLPATH=$(GETTEXT)/lib/mingw32 | |
164 INTLLIB=gnu_gettext | |
165 | |
166 # If you are using gettext-0.10.35 from http://sourceforge.net/projects/gettext | |
167 # or gettext-0.10.37 from http://sourceforge.net/projects/mingwrep/ | |
168 # uncomment the following, but I can't build a static version with them, ?-(| | |
169 #GETTEXT=c:/gettext-0.10.37-20010430 | |
170 #STATIC_GETTEXT=USE_STATIC_GETTEXT | |
171 #DYNAMIC_GETTEXT=DYNAMIC_GETTEXT | |
172 #INTLPATH=$(GETTEXT)/lib | |
173 #INTLLIB=intl | |
174 | |
9499
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
175 |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
176 # 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
|
177 ifeq ($(CROSS),yes) |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
178 # cross-compiler prefix: |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
179 ifndef CROSS_COMPILE |
9499
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
180 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
|
181 endif |
9499
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
182 DEL = rm |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
183 MKDIR = mkdir -p |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
184 DIRSLASH = / |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
185 else |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
186 # normal (Windows) compilation: |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
187 ifndef CROSS_COMPILE |
9499
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
188 CROSS_COMPILE = |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
189 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
|
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 # 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
|
192 # |
195e8b1fcbbf
patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents:
14222
diff
changeset
|
193 # 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
|
194 # $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
|
195 # 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
|
196 # |
195e8b1fcbbf
patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents:
14222
diff
changeset
|
197 # 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
|
198 # 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
|
199 # "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
|
200 # |
195e8b1fcbbf
patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents:
14222
diff
changeset
|
201 # 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
|
202 # "/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
|
203 # 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
|
204 # |
195e8b1fcbbf
patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents:
14222
diff
changeset
|
205 # 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
|
206 # $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
|
207 # 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
|
208 # |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
209 ifneq (sh.exe, $(SHELL)) |
9499
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
210 DEL = rm |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
211 MKDIR = mkdir -p |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
212 DIRSLASH = / |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
213 else |
9499
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
214 DEL = del |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
215 MKDIR = mkdir |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
216 DIRSLASH = \\ |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
217 endif |
9499
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
218 endif |
29163
9288c636ffa5
patch 8.2.5101: MS-Windows with MinGW: $CC may be "cc" instead of "gcc"
Bram Moolenaar <Bram@vim.org>
parents:
29134
diff
changeset
|
219 # set $CC to "gcc" unless it matches "clang" |
9288c636ffa5
patch 8.2.5101: MS-Windows with MinGW: $CC may be "cc" instead of "gcc"
Bram Moolenaar <Bram@vim.org>
parents:
29134
diff
changeset
|
220 ifeq ($(findstring clang,$(CC)),) |
9499
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
221 CC := $(CROSS_COMPILE)gcc |
29134
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
222 endif |
29163
9288c636ffa5
patch 8.2.5101: MS-Windows with MinGW: $CC may be "cc" instead of "gcc"
Bram Moolenaar <Bram@vim.org>
parents:
29134
diff
changeset
|
223 # set $CXX to "g++" unless it matches "clang" |
9288c636ffa5
patch 8.2.5101: MS-Windows with MinGW: $CC may be "cc" instead of "gcc"
Bram Moolenaar <Bram@vim.org>
parents:
29134
diff
changeset
|
224 ifeq ($(findstring clang,$(CXX)),) |
9499
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
225 CXX := $(CROSS_COMPILE)g++ |
29134
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
226 endif |
9499
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
227 ifeq ($(UNDER_CYGWIN),yes) |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
228 WINDRES := $(CROSS_COMPILE)windres |
31089
bbd5549acced
patch 9.0.0879: unnecessary nesting in makefile
Bram Moolenaar <Bram@vim.org>
parents:
31051
diff
changeset
|
229 else ifeq ($(findstring clang,$(CC)),) |
9499
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
230 WINDRES := windres |
31051
01aa48ecb9e7
patch 9.0.0860: MS-Windows: windres fails with clang 15.0.4
Bram Moolenaar <Bram@vim.org>
parents:
30731
diff
changeset
|
231 else |
01aa48ecb9e7
patch 9.0.0860: MS-Windows: windres fails with clang 15.0.4
Bram Moolenaar <Bram@vim.org>
parents:
30731
diff
changeset
|
232 WINDRES := llvm-windres |
01aa48ecb9e7
patch 9.0.0860: MS-Windows: windres fails with clang 15.0.4
Bram Moolenaar <Bram@vim.org>
parents:
30731
diff
changeset
|
233 endif |
9499
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
234 |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
235 # Get the default ARCH. |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
236 ifndef ARCH |
9507
5376c8008b3a
commit https://github.com/vim/vim/commit/f62e797ffa6ab5d4c476b4c9e9a1f7f852910652
Christian Brabandt <cb@256bit.org>
parents:
9503
diff
changeset
|
237 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
|
238 endif |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
239 |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
240 |
6326 | 241 # Perl interface: |
242 # PERL=[Path to Perl directory] (Set inside Make_cyg.mak or Make_ming.mak) | |
243 # 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
|
244 # PERL_VER=[Perl version, eg 56, 58, 510] (default is 524) |
6326 | 245 ifdef PERL |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
246 ifndef PERL_VER |
10149
cd9823840f2e
commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
247 PERL_VER=524 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
248 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
249 ifndef DYNAMIC_PERL |
6326 | 250 DYNAMIC_PERL=yes |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
251 endif |
6326 | 252 # on Linux, for cross-compile, it's here: |
253 #PERLLIB=/home/ron/ActivePerl/lib | |
254 # on NT, it's here: | |
255 PERLEXE=$(PERL)/bin/perl | |
256 PERLLIB=$(PERL)/lib | |
257 PERLLIBS=$(PERLLIB)/Core | |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
258 ifeq ($(UNDER_CYGWIN),yes) |
6326 | 259 PERLTYPEMAP:=$(shell cygpath -m $(PERLLIB)/ExtUtils/typemap) |
260 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
|
261 else |
6326 | 262 PERLTYPEMAP=$(PERLLIB)/ExtUtils/typemap |
263 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
|
264 endif |
6326 | 265 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
|
266 ifeq "$(XSUBPP_EXISTS)" "" |
6349 | 267 XSUBPP=$(PERLEXE) $(XSUBPPTRY) |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
268 else |
6326 | 269 XSUBPP=xsubpp |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
270 endif |
6326 | 271 endif |
272 | |
273 # Lua interface: | |
274 # 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
|
275 # 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
|
276 # LUA_INCDIR=[Path to Lua include directory] (default: $LUA/include) |
6326 | 277 # 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
|
278 # LUA_VER=[Lua version, eg 51, 52] (default is 53) |
6326 | 279 ifdef LUA |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
280 ifndef DYNAMIC_LUA |
6326 | 281 DYNAMIC_LUA=yes |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
282 endif |
6326 | 283 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
284 ifndef LUA_VER |
10149
cd9823840f2e
commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
285 LUA_VER=53 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
286 endif |
6326 | 287 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
288 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
|
289 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
|
290 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
|
291 endif |
6326 | 292 |
293 endif | |
294 | |
295 # MzScheme interface: | |
296 # MZSCHEME=[Path to MzScheme directory] (Set inside Make_cyg.mak or Make_ming.mak) | |
297 # 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
|
298 # 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
|
299 # 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
|
300 # C:\Program Files (x86)\Racket\lib\libracket3m_XXXXXX.dll |
6326 | 301 # MZSCHEME_DEBUG=no |
302 ifdef MZSCHEME | |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
303 ifndef DYNAMIC_MZSCHEME |
6326 | 304 DYNAMIC_MZSCHEME=yes |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
305 endif |
6326 | 306 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
307 ifndef MZSCHEME_VER |
10149
cd9823840f2e
commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
308 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
|
309 endif |
6326 | 310 |
311 # 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
|
312 ifndef MZSCHEME_GENERATE_BASE |
6326 | 313 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
|
314 endif |
6326 | 315 |
16640
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/libmzsch$(MZSCHEME_VER).lib),) |
6326 | 317 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
|
318 else |
6326 | 319 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
|
320 endif |
6326 | 321 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
322 ifndef MZSCHEME_PRECISE_GC |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
323 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
|
324 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
|
325 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
|
326 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
|
327 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
328 else |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
329 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
|
330 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
|
331 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
|
332 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
333 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
334 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
335 endif |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
336 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
337 ifeq (no,$(DYNAMIC_MZSCHEME)) |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
338 ifeq (yes,$(MZSCHEME_PRECISE_GC)) |
6326 | 339 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
|
340 else |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
341 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
|
342 endif |
6326 | 343 # the modern MinGW can dynamically link to dlls directly. |
344 # 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
|
345 ifndef MZSCHEME_DLLS |
6326 | 346 MZSCHEME_DLLS=$(MZSCHEME) |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
347 endif |
6326 | 348 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
|
349 endif |
6326 | 350 |
351 endif | |
352 | |
353 # Python interface: | |
354 # PYTHON=[Path to Python directory] (Set inside Make_cyg.mak or Make_ming.mak) | |
355 # 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
|
356 # PYTHON_VER=[Python version, eg 22, 23, ..., 27] (default is 27) |
6326 | 357 ifdef PYTHON |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
358 ifndef DYNAMIC_PYTHON |
6326 | 359 DYNAMIC_PYTHON=yes |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
360 endif |
6326 | 361 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
362 ifndef PYTHON_VER |
7456
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6872
diff
changeset
|
363 PYTHON_VER=27 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
364 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
365 ifndef DYNAMIC_PYTHON_DLL |
7456
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6872
diff
changeset
|
366 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
|
367 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
368 ifdef PYTHON_HOME |
7456
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6872
diff
changeset
|
369 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
|
370 endif |
6326 | 371 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
372 ifeq (no,$(DYNAMIC_PYTHON)) |
6326 | 373 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
|
374 endif |
6326 | 375 # my include files are in 'win32inc' on Linux, and 'include' in the standard |
376 # NT distro (ActiveState) | |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
377 ifndef PYTHONINC |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
378 ifeq ($(CROSS),no) |
6326 | 379 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
|
380 else |
6326 | 381 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
|
382 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
383 endif |
7456
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6872
diff
changeset
|
384 endif |
6326 | 385 |
386 # Python3 interface: | |
387 # PYTHON3=[Path to Python3 directory] (Set inside Make_cyg.mak or Make_ming.mak) | |
388 # 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
|
389 # PYTHON3_VER=[Python3 version, eg 31, 32] (default is 36) |
6326 | 390 ifdef PYTHON3 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
391 ifndef DYNAMIC_PYTHON3 |
6326 | 392 DYNAMIC_PYTHON3=yes |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
393 endif |
6326 | 394 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
395 ifndef PYTHON3_VER |
13018
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12871
diff
changeset
|
396 PYTHON3_VER=36 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
397 endif |
33452
ed8db57d1034
patch 9.0.1980: win32: issues with stable python ABI
Christian Brabandt <cb@256bit.org>
parents:
32936
diff
changeset
|
398 ifeq ($(DYNAMIC_PYTHON3_STABLE_ABI),yes) |
ed8db57d1034
patch 9.0.1980: win32: issues with stable python ABI
Christian Brabandt <cb@256bit.org>
parents:
32936
diff
changeset
|
399 PYTHON3_NAME=python3 |
ed8db57d1034
patch 9.0.1980: win32: issues with stable python ABI
Christian Brabandt <cb@256bit.org>
parents:
32936
diff
changeset
|
400 else |
ed8db57d1034
patch 9.0.1980: win32: issues with stable python ABI
Christian Brabandt <cb@256bit.org>
parents:
32936
diff
changeset
|
401 PYTHON3_NAME=python$(PYTHON3_VER) |
ed8db57d1034
patch 9.0.1980: win32: issues with stable python ABI
Christian Brabandt <cb@256bit.org>
parents:
32936
diff
changeset
|
402 endif |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
403 ifndef DYNAMIC_PYTHON3_DLL |
33452
ed8db57d1034
patch 9.0.1980: win32: issues with stable python ABI
Christian Brabandt <cb@256bit.org>
parents:
32936
diff
changeset
|
404 DYNAMIC_PYTHON3_DLL=$(PYTHON3_NAME).dll |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
405 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
406 ifdef PYTHON3_HOME |
8076
3b0127287851
commit https://github.com/vim/vim/commit/acd58ef676bb9559ac0f635f66b62f4602929c87
Christian Brabandt <cb@256bit.org>
parents:
8064
diff
changeset
|
407 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
|
408 endif |
6326 | 409 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
410 ifeq (no,$(DYNAMIC_PYTHON3)) |
33452
ed8db57d1034
patch 9.0.1980: win32: issues with stable python ABI
Christian Brabandt <cb@256bit.org>
parents:
32936
diff
changeset
|
411 PYTHON3LIB=-L$(PYTHON3)/libs -l$(PYTHON3_NAME) |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
412 endif |
6326 | 413 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
414 ifndef PYTHON3INC |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
415 ifeq ($(CROSS),no) |
6326 | 416 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
|
417 else |
6326 | 418 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
|
419 endif |
32936
c517845bd10e
patch 9.0.1776: No support for stable Python 3 ABI
Christian Brabandt <cb@256bit.org>
parents:
31335
diff
changeset
|
420 ifeq ($(DYNAMIC_PYTHON3_STABLE_ABI),yes) |
c517845bd10e
patch 9.0.1776: No support for stable Python 3 ABI
Christian Brabandt <cb@256bit.org>
parents:
31335
diff
changeset
|
421 PYTHON3INC += -DPy_LIMITED_API=0x3080000 |
c517845bd10e
patch 9.0.1776: No support for stable Python 3 ABI
Christian Brabandt <cb@256bit.org>
parents:
31335
diff
changeset
|
422 endif |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
423 endif |
7695
a865f9773cb2
commit https://github.com/vim/vim/commit/a7c3795a2e65233ba2d187d680acc83bf6bf4ef5
Christian Brabandt <cb@256bit.org>
parents:
7609
diff
changeset
|
424 endif |
6326 | 425 |
426 # TCL interface: | |
427 # TCL=[Path to TCL directory] (Set inside Make_cyg.mak or Make_ming.mak) | |
428 # 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
|
429 # 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
|
430 # 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
|
431 # 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
|
432 # TCL_DLL=[TCL dll name, eg tcl86.dll] (default is tcl86.dll) |
6326 | 433 ifdef TCL |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
434 ifndef DYNAMIC_TCL |
6326 | 435 DYNAMIC_TCL=yes |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
436 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
437 ifndef TCL_VER |
10149
cd9823840f2e
commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
438 TCL_VER = 86 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
439 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
440 ifndef TCL_VER_LONG |
10149
cd9823840f2e
commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
441 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
|
442 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
443 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
|
444 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
|
445 endif |
6326 | 446 TCLINC += -I$(TCL)/include |
447 endif | |
448 | |
449 | |
450 # Ruby interface: | |
451 # 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
|
452 # 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
|
453 # RUBY_VER=[Ruby version, eg 19, 22] (default is 22) |
30421
425b686c5244
patch 9.0.0546: supporting Ruby 1.8 makes code complicated
Bram Moolenaar <Bram@vim.org>
parents:
30320
diff
changeset
|
454 # RUBY_API_VER_LONG=[Ruby API version, eg 1.9.1, 2.2.0] |
10138
8bfcb960e6bd
commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents:
9583
diff
changeset
|
455 # (default is 2.2.0) |
8bfcb960e6bd
commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents:
9583
diff
changeset
|
456 # You must set RUBY_API_VER_LONG when changing RUBY_VER. |
6326 | 457 # Note: If you use Ruby 1.9.3, set as follows: |
458 # RUBY_VER=19 | |
10138
8bfcb960e6bd
commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents:
9583
diff
changeset
|
459 # RUBY_API_VER_LONG=1.9.1 (not 1.9.3, because the API version is 1.9.1.) |
6326 | 460 ifdef RUBY |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
461 ifndef DYNAMIC_RUBY |
6326 | 462 DYNAMIC_RUBY=yes |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
463 endif |
6326 | 464 # Set default value |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
465 ifndef RUBY_VER |
10138
8bfcb960e6bd
commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents:
9583
diff
changeset
|
466 RUBY_VER = 22 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
467 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
468 ifndef RUBY_VER_LONG |
10138
8bfcb960e6bd
commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents:
9583
diff
changeset
|
469 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
|
470 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
471 ifndef RUBY_API_VER_LONG |
10149
cd9823840f2e
commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
472 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
|
473 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
474 ifndef RUBY_API_VER |
10138
8bfcb960e6bd
commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents:
9583
diff
changeset
|
475 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
|
476 endif |
6326 | 477 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
478 ifndef RUBY_PLATFORM |
30421
425b686c5244
patch 9.0.0546: supporting Ruby 1.8 makes code complicated
Bram Moolenaar <Bram@vim.org>
parents:
30320
diff
changeset
|
479 ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_API_VER_LONG)/i386-mingw32),) |
6326 | 480 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
|
481 else ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_API_VER_LONG)/x64-mingw32),) |
6326 | 482 RUBY_PLATFORM = x64-mingw32 |
27486
c7e18e99dbe8
patch 8.2.4271: MS-Windows: cannot build with Ruby 3.1.0
Bram Moolenaar <Bram@vim.org>
parents:
27484
diff
changeset
|
483 else ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_API_VER_LONG)/x64-mingw-ucrt),) |
c7e18e99dbe8
patch 8.2.4271: MS-Windows: cannot build with Ruby 3.1.0
Bram Moolenaar <Bram@vim.org>
parents:
27484
diff
changeset
|
484 RUBY_PLATFORM = x64-mingw-ucrt |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
485 else |
6326 | 486 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
|
487 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
488 endif |
6326 | 489 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
490 ifndef RUBY_INSTALL_NAME |
30421
425b686c5244
patch 9.0.0546: supporting Ruby 1.8 makes code complicated
Bram Moolenaar <Bram@vim.org>
parents:
30320
diff
changeset
|
491 ifndef RUBY_MSVCRT_NAME |
7521
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
492 # 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
|
493 RUBY_MSVCRT_NAME = msvcrt |
30421
425b686c5244
patch 9.0.0546: supporting Ruby 1.8 makes code complicated
Bram Moolenaar <Bram@vim.org>
parents:
30320
diff
changeset
|
494 endif |
425b686c5244
patch 9.0.0546: supporting Ruby 1.8 makes code complicated
Bram Moolenaar <Bram@vim.org>
parents:
30320
diff
changeset
|
495 ifeq ($(RUBY_PLATFORM),x64-mingw-ucrt) |
27486
c7e18e99dbe8
patch 8.2.4271: MS-Windows: cannot build with Ruby 3.1.0
Bram Moolenaar <Bram@vim.org>
parents:
27484
diff
changeset
|
496 RUBY_INSTALL_NAME = x64-ucrt-ruby$(RUBY_API_VER) |
30421
425b686c5244
patch 9.0.0546: supporting Ruby 1.8 makes code complicated
Bram Moolenaar <Bram@vim.org>
parents:
30320
diff
changeset
|
497 else ifeq ($(ARCH),x86-64) |
7521
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
498 RUBY_INSTALL_NAME = x64-$(RUBY_MSVCRT_NAME)-ruby$(RUBY_API_VER) |
30421
425b686c5244
patch 9.0.0546: supporting Ruby 1.8 makes code complicated
Bram Moolenaar <Bram@vim.org>
parents:
30320
diff
changeset
|
499 else |
7521
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
500 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
|
501 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
502 endif |
6326 | 503 |
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
|
504 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
|
505 ifeq (no, $(DYNAMIC_RUBY)) |
6326 | 506 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
|
507 endif |
6326 | 508 |
509 endif # RUBY | |
510 | |
511 # See feature.h for a list of options. | |
512 # 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
|
513 DEF_GUI=-DFEAT_GUI_MSWIN -DFEAT_CLIPBOARD |
6326 | 514 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
|
515 -DHAVE_PATHDEF -DFEAT_$(FEATURES) -DHAVE_STDINT_H |
6326 | 516 ifeq ($(ARCH),x86-64) |
517 DEFINES+=-DMS_WIN64 | |
518 endif | |
519 | |
520 #>>>>> end of choices | |
521 ########################################################################### | |
522 | |
14937
d36dd08d36c1
patch 8.1.0480: MinGW build file uses different -I flags than MVC
Bram Moolenaar <Bram@vim.org>
parents:
14933
diff
changeset
|
523 CFLAGS = -I. -Iproto $(DEFINES) -pipe -march=$(ARCH) -Wall |
29134
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
524 # To get additional compiler warnings |
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
525 #CFLAGS += -Wextra -pedantic |
8696
869727342e43
commit https://github.com/vim/vim/commit/6c0e984f263fc1eef42c9b34a80eff1bceb8d05b
Christian Brabandt <cb@256bit.org>
parents:
8641
diff
changeset
|
526 CXXFLAGS = -std=gnu++11 |
23733
0660cb0a1cd8
patch 8.2.2408: MinGW: "--preprocessor" flag no longer supported
Bram Moolenaar <Bram@vim.org>
parents:
22894
diff
changeset
|
527 # This used to have --preprocessor, but it's no longer supported |
0660cb0a1cd8
patch 8.2.2408: MinGW: "--preprocessor" flag no longer supported
Bram Moolenaar <Bram@vim.org>
parents:
22894
diff
changeset
|
528 WINDRES_FLAGS = |
6326 | 529 EXTRA_LIBS = |
530 | |
531 ifdef GETTEXT | |
532 DEFINES += -DHAVE_GETTEXT -DHAVE_LOCALE_H | |
533 GETTEXTINCLUDE = $(GETTEXT)/include | |
534 GETTEXTLIB = $(INTLPATH) | |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
535 ifeq (yes, $(GETTEXT)) |
6326 | 536 DEFINES += -DDYNAMIC_GETTEXT |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
537 else ifdef DYNAMIC_GETTEXT |
6326 | 538 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
|
539 ifdef GETTEXT_DYNAMIC |
6326 | 540 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
|
541 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
542 endif |
6326 | 543 endif |
544 | |
545 ifdef PERL | |
6872 | 546 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
|
547 ifeq (yes, $(DYNAMIC_PERL)) |
6326 | 548 CFLAGS += -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl$(PERL_VER).dll\" |
549 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
|
550 endif |
6326 | 551 endif |
552 | |
553 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
|
554 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
|
555 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
|
556 ifeq (yes, $(DYNAMIC_LUA)) |
6326 | 557 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
|
558 endif |
6326 | 559 endif |
560 | |
561 ifdef MZSCHEME | |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
562 ifndef MZSCHEME_COLLECTS |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
563 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
|
564 ifeq (yes, $(UNDER_CYGWIN)) |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
565 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
|
566 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
567 endif |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
568 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
|
569 ifeq (yes, $(DYNAMIC_MZSCHEME)) |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
570 ifeq (yes, $(MZSCHEME_PRECISE_GC)) |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
571 # 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
|
572 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
|
573 else |
6326 | 574 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
|
575 endif |
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 ifeq (yes, "$(MZSCHEME_DEBUG)") |
6326 | 578 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
|
579 endif |
6326 | 580 endif |
581 | |
582 ifdef RUBY | |
583 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
|
584 ifeq (yes, $(DYNAMIC_RUBY)) |
6326 | 585 CFLAGS += -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\" |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
586 endif |
13738
1d8601bdd6e6
patch 8.0.1741: MS-Windows with msys2 cannot build Ruby statically
Christian Brabandt <cb@256bit.org>
parents:
13734
diff
changeset
|
587 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
|
588 ifneq ($(findstring w64-mingw32,$(CC)),) |
6326 | 589 # A workaround for MinGW-w64 |
590 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
|
591 endif |
6326 | 592 endif |
593 | |
594 ifdef PYTHON | |
8120
350f8040bd37
commit https://github.com/vim/vim/commit/223b723be0703137cf6373e23f8ae5c02e92ef82
Christian Brabandt <cb@256bit.org>
parents:
8076
diff
changeset
|
595 CFLAGS += -DFEAT_PYTHON |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
596 ifeq (yes, $(DYNAMIC_PYTHON)) |
7532
0acbe61244ac
commit https://github.com/vim/vim/commit/449538c3d2f7089dcaa1a888f09f41714faec9a6
Christian Brabandt <cb@256bit.org>
parents:
7523
diff
changeset
|
597 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
|
598 endif |
6326 | 599 endif |
600 | |
8120
350f8040bd37
commit https://github.com/vim/vim/commit/223b723be0703137cf6373e23f8ae5c02e92ef82
Christian Brabandt <cb@256bit.org>
parents:
8076
diff
changeset
|
601 ifdef PYTHON3 |
350f8040bd37
commit https://github.com/vim/vim/commit/223b723be0703137cf6373e23f8ae5c02e92ef82
Christian Brabandt <cb@256bit.org>
parents:
8076
diff
changeset
|
602 CFLAGS += -DFEAT_PYTHON3 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
603 ifeq (yes, $(DYNAMIC_PYTHON3)) |
7695
a865f9773cb2
commit https://github.com/vim/vim/commit/a7c3795a2e65233ba2d187d680acc83bf6bf4ef5
Christian Brabandt <cb@256bit.org>
parents:
7609
diff
changeset
|
604 CFLAGS += -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=\"$(DYNAMIC_PYTHON3_DLL)\" |
32936
c517845bd10e
patch 9.0.1776: No support for stable Python 3 ABI
Christian Brabandt <cb@256bit.org>
parents:
31335
diff
changeset
|
605 ifeq (yes, $(DYNAMIC_PYTHON3_STABLE_ABI)) |
c517845bd10e
patch 9.0.1776: No support for stable Python 3 ABI
Christian Brabandt <cb@256bit.org>
parents:
31335
diff
changeset
|
606 CFLAGS += -DDYNAMIC_PYTHON3_STABLE_ABI |
c517845bd10e
patch 9.0.1776: No support for stable Python 3 ABI
Christian Brabandt <cb@256bit.org>
parents:
31335
diff
changeset
|
607 endif |
21662
21304d9c47e9
patch 8.2.1381: MS-Windows: crash with Python 3.5 when stdin is redirected
Bram Moolenaar <Bram@vim.org>
parents:
21437
diff
changeset
|
608 else |
21304d9c47e9
patch 8.2.1381: MS-Windows: crash with Python 3.5 when stdin is redirected
Bram Moolenaar <Bram@vim.org>
parents:
21437
diff
changeset
|
609 CFLAGS += -DPYTHON3_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
|
610 endif |
6326 | 611 endif |
612 | |
613 ifdef TCL | |
614 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
|
615 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
|
616 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
|
617 endif |
6326 | 618 endif |
619 | |
620 ifeq ($(POSTSCRIPT),yes) | |
621 DEFINES += -DMSWINPS | |
622 endif | |
623 | |
624 ifeq (yes, $(OLE)) | |
625 DEFINES += -DFEAT_OLE | |
626 endif | |
627 | |
628 ifeq ($(CSCOPE),yes) | |
629 DEFINES += -DFEAT_CSCOPE | |
630 endif | |
631 | |
632 ifeq ($(NETBEANS),yes) | |
633 # 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
|
634 ifeq (yes, $(GUI)) |
6326 | 635 DEFINES += -DFEAT_NETBEANS_INTG |
636 | |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
637 ifeq ($(NBDEBUG), yes) |
6326 | 638 DEFINES += -DNBDEBUG |
639 NBDEBUG_INCL = nbdebug.h | |
640 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
|
641 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
642 endif |
6326 | 643 endif |
644 | |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
645 ifeq ($(CHANNEL),yes) |
20071
385e2f8aa8c1
patch 8.2.0591: MS-Windows: should always support IPv6
Bram Moolenaar <Bram@vim.org>
parents:
20003
diff
changeset
|
646 DEFINES += -DFEAT_JOB_CHANNEL -DFEAT_IPV6 |
20699
85c83b6f1cbc
patch 8.2.0903: comparing WINVER does not work correctly
Bram Moolenaar <Bram@vim.org>
parents:
20637
diff
changeset
|
647 ifeq ($(shell expr "$$(($(WINVER)))" \>= "$$((0x600))"),1) |
20077
128963cd954f
patch 8.2.0594: MS-Windows: cannot build with WINVER set to 0x0501
Bram Moolenaar <Bram@vim.org>
parents:
20071
diff
changeset
|
648 DEFINES += -DHAVE_INET_NTOP |
128963cd954f
patch 8.2.0594: MS-Windows: cannot build with WINVER set to 0x0501
Bram Moolenaar <Bram@vim.org>
parents:
20071
diff
changeset
|
649 endif |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
650 endif |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
651 |
11696
0a6136dfce35
patch 8.0.0731: cannot build the terminal feature on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
10442
diff
changeset
|
652 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
|
653 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
|
654 TERM_DEPS = \ |
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
655 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
|
656 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
|
657 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
|
658 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
|
659 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
|
660 endif |
0a6136dfce35
patch 8.0.0731: cannot build the terminal feature on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
10442
diff
changeset
|
661 |
17131
be5a5cfc991a
patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
662 ifeq ($(SOUND),yes) |
be5a5cfc991a
patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
663 DEFINES += -DFEAT_SOUND |
be5a5cfc991a
patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
664 endif |
be5a5cfc991a
patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
665 |
6326 | 666 # DirectWrite (DirectX) |
667 ifeq ($(DIRECTX),yes) | |
668 # 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
|
669 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
|
670 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
|
671 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
|
672 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
|
673 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
674 endif |
6326 | 675 endif |
676 | |
27984
da660b0f20d1
patch 8.2.4517: MS-Windows: cannot specify location of sodium library
Bram Moolenaar <Bram@vim.org>
parents:
27932
diff
changeset
|
677 ifdef SODIUM |
da660b0f20d1
patch 8.2.4517: MS-Windows: cannot specify location of sodium library
Bram Moolenaar <Bram@vim.org>
parents:
27932
diff
changeset
|
678 DEFINES += -DHAVE_SODIUM |
27998
ef7d9789919d
patch 8.2.4524: MS-Windows: cannot build with some sodium libraries
Bram Moolenaar <Bram@vim.org>
parents:
27984
diff
changeset
|
679 ifeq ($(SODIUM),yes) |
ef7d9789919d
patch 8.2.4524: MS-Windows: cannot build with some sodium libraries
Bram Moolenaar <Bram@vim.org>
parents:
27984
diff
changeset
|
680 SODIUM_DLL = libsodium-23.dll |
ef7d9789919d
patch 8.2.4524: MS-Windows: cannot build with some sodium libraries
Bram Moolenaar <Bram@vim.org>
parents:
27984
diff
changeset
|
681 else |
ef7d9789919d
patch 8.2.4524: MS-Windows: cannot build with some sodium libraries
Bram Moolenaar <Bram@vim.org>
parents:
27984
diff
changeset
|
682 SODIUM_DLL = libsodium.dll |
27984
da660b0f20d1
patch 8.2.4517: MS-Windows: cannot specify location of sodium library
Bram Moolenaar <Bram@vim.org>
parents:
27932
diff
changeset
|
683 CFLAGS += -I $(SODIUM)/include |
da660b0f20d1
patch 8.2.4517: MS-Windows: cannot specify location of sodium library
Bram Moolenaar <Bram@vim.org>
parents:
27932
diff
changeset
|
684 endif |
27231
e1cedf009920
patch 8.2.4144: cannot load libsodium dynamically
Bram Moolenaar <Bram@vim.org>
parents:
27104
diff
changeset
|
685 ifndef DYNAMIC_SODIUM |
e1cedf009920
patch 8.2.4144: cannot load libsodium dynamically
Bram Moolenaar <Bram@vim.org>
parents:
27104
diff
changeset
|
686 DYNAMIC_SODIUM=yes |
e1cedf009920
patch 8.2.4144: cannot load libsodium dynamically
Bram Moolenaar <Bram@vim.org>
parents:
27104
diff
changeset
|
687 endif |
e1cedf009920
patch 8.2.4144: cannot load libsodium dynamically
Bram Moolenaar <Bram@vim.org>
parents:
27104
diff
changeset
|
688 ifeq ($(DYNAMIC_SODIUM),yes) |
27998
ef7d9789919d
patch 8.2.4524: MS-Windows: cannot build with some sodium libraries
Bram Moolenaar <Bram@vim.org>
parents:
27984
diff
changeset
|
689 DEFINES += -DDYNAMIC_SODIUM -DDYNAMIC_SODIUM_DLL=\"$(SODIUM_DLL)\" |
27231
e1cedf009920
patch 8.2.4144: cannot load libsodium dynamically
Bram Moolenaar <Bram@vim.org>
parents:
27104
diff
changeset
|
690 else |
24970
7e9e53a0368f
patch 8.2.3022: available encryption methods are not strong enough
Bram Moolenaar <Bram@vim.org>
parents:
24780
diff
changeset
|
691 SODIUMLIB = -lsodium |
27231
e1cedf009920
patch 8.2.4144: cannot load libsodium dynamically
Bram Moolenaar <Bram@vim.org>
parents:
27104
diff
changeset
|
692 endif |
24970
7e9e53a0368f
patch 8.2.3022: available encryption methods are not strong enough
Bram Moolenaar <Bram@vim.org>
parents:
24780
diff
changeset
|
693 endif |
7e9e53a0368f
patch 8.2.3022: available encryption methods are not strong enough
Bram Moolenaar <Bram@vim.org>
parents:
24780
diff
changeset
|
694 |
6326 | 695 # Only allow XPM for a GUI build. |
696 ifeq (yes, $(GUI)) | |
697 | |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
698 ifndef XPM |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
699 ifeq ($(ARCH),i386) |
6326 | 700 XPM = xpm/x86 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
701 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
702 ifeq ($(ARCH),i486) |
6326 | 703 XPM = xpm/x86 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
704 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
705 ifeq ($(ARCH),i586) |
6326 | 706 XPM = xpm/x86 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
707 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
708 ifeq ($(ARCH),i686) |
6326 | 709 XPM = xpm/x86 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
710 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
711 ifeq ($(ARCH),x86-64) |
6326 | 712 XPM = xpm/x64 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
713 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
714 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
715 ifdef XPM |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
716 ifneq ($(XPM),no) |
6326 | 717 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
|
718 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
719 endif |
6326 | 720 |
721 endif | |
722 | |
723 ifeq ($(DEBUG),yes) | |
724 CFLAGS += -g -fstack-check | |
725 DEBUG_SUFFIX=d | |
726 else | |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
727 ifeq ($(OPTIMIZE), SIZE) |
6326 | 728 CFLAGS += -Os |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
729 else ifeq ($(OPTIMIZE), MAXSPEED) |
6326 | 730 CFLAGS += -O3 |
29134
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
731 CFLAGS += -fomit-frame-pointer |
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
732 ifeq ($(findstring clang,$(CC)),) |
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
733 # Only GCC supports the "reg-struct-return" option. Clang doesn't support this. |
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
734 CFLAGS += -freg-struct-return |
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
735 endif |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
736 else # SPEED |
6326 | 737 CFLAGS += -O2 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
738 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
|
739 LFLAGS += -s |
6326 | 740 endif |
741 | |
22067
59984404e520
patch 8.2.1583: MS-Windows: cannot easily measure code coverage
Bram Moolenaar <Bram@vim.org>
parents:
21789
diff
changeset
|
742 ifeq ($(COVERAGE),yes) |
59984404e520
patch 8.2.1583: MS-Windows: cannot easily measure code coverage
Bram Moolenaar <Bram@vim.org>
parents:
21789
diff
changeset
|
743 CFLAGS += --coverage |
59984404e520
patch 8.2.1583: MS-Windows: cannot easily measure code coverage
Bram Moolenaar <Bram@vim.org>
parents:
21789
diff
changeset
|
744 LFLAGS += --coverage |
59984404e520
patch 8.2.1583: MS-Windows: cannot easily measure code coverage
Bram Moolenaar <Bram@vim.org>
parents:
21789
diff
changeset
|
745 endif |
59984404e520
patch 8.2.1583: MS-Windows: cannot easily measure code coverage
Bram Moolenaar <Bram@vim.org>
parents:
21789
diff
changeset
|
746 |
29134
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
747 # If the ASAN=yes argument is supplied, then compile Vim with the address |
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
748 # sanitizer (asan). Only supported by MingW64 clang compiler. |
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
749 # May make Vim twice as slow. Errors are reported on stderr. |
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
750 # More at: https://code.google.com/p/address-sanitizer/ |
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
751 # Useful environment variable: |
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
752 # set ASAN_OPTIONS=print_stacktrace=1 log_path=asan |
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
753 ifeq ($(ASAN),yes) |
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
754 #CFLAGS += -g -O0 -fsanitize-recover=all -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer |
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
755 CFLAGS += -g -O0 -fsanitize-recover=all -fsanitize=address -fno-omit-frame-pointer |
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
756 endif |
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
757 |
14133
352c2832d17f
patch 8.1.0084: user name completion does not work on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
13738
diff
changeset
|
758 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
|
759 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
|
760 CUIOBJ = $(OUTDIR)/iscygpty.o |
6326 | 761 OBJ = \ |
25529
bb1097899693
patch 8.2.3301: memory allocation functions don't have their own place
Bram Moolenaar <Bram@vim.org>
parents:
25206
diff
changeset
|
762 $(OUTDIR)/alloc.o \ |
9403
9b048dced116
commit https://github.com/vim/vim/commit/75464dc434c43efac60e8bfd9bec2a8b736407e9
Christian Brabandt <cb@256bit.org>
parents:
9389
diff
changeset
|
763 $(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
|
764 $(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
|
765 $(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
|
766 $(OUTDIR)/beval.o \ |
15454
1d2b5c016f17
patch 8.1.0735: cannot handle binary data
Bram Moolenaar <Bram@vim.org>
parents:
15450
diff
changeset
|
767 $(OUTDIR)/blob.o \ |
6326 | 768 $(OUTDIR)/blowfish.o \ |
769 $(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
|
770 $(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
|
771 $(OUTDIR)/change.o \ |
6326 | 772 $(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
|
773 $(OUTDIR)/cindent.o \ |
19920
5e41b2e63c73
patch 8.2.0516: client-server code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
19774
diff
changeset
|
774 $(OUTDIR)/clientserver.o \ |
19774
00a1b89256ea
patch 8.2.0443: clipboard code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
19396
diff
changeset
|
775 $(OUTDIR)/clipboard.o \ |
17779
87a8760babec
patch 8.1.1886: command line expansion code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
17744
diff
changeset
|
776 $(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
|
777 $(OUTDIR)/cmdhist.o \ |
6326 | 778 $(OUTDIR)/crypt.o \ |
779 $(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
|
780 $(OUTDIR)/debugger.o \ |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9507
diff
changeset
|
781 $(OUTDIR)/dict.o \ |
6326 | 782 $(OUTDIR)/diff.o \ |
783 $(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
|
784 $(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
|
785 $(OUTDIR)/drawscreen.o \ |
6326 | 786 $(OUTDIR)/edit.o \ |
787 $(OUTDIR)/eval.o \ | |
18010
cf8e0c7e0cb9
patch 8.1.2001: some source files are too big
Bram Moolenaar <Bram@vim.org>
parents:
17996
diff
changeset
|
788 $(OUTDIR)/evalbuffer.o \ |
9571
5eaa708ab50d
commit https://github.com/vim/vim/commit/73dad1e64cb42842d8259cb1a255a6fa59822f76
Christian Brabandt <cb@256bit.org>
parents:
9564
diff
changeset
|
789 $(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
|
790 $(OUTDIR)/evalvars.o \ |
18010
cf8e0c7e0cb9
patch 8.1.2001: some source files are too big
Bram Moolenaar <Bram@vim.org>
parents:
17996
diff
changeset
|
791 $(OUTDIR)/evalwindow.o \ |
6326 | 792 $(OUTDIR)/ex_cmds.o \ |
793 $(OUTDIR)/ex_cmds2.o \ | |
794 $(OUTDIR)/ex_docmd.o \ | |
795 $(OUTDIR)/ex_eval.o \ | |
796 $(OUTDIR)/ex_getln.o \ | |
797 $(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
|
798 $(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
|
799 $(OUTDIR)/findfile.o \ |
24780
7bc92a651472
patch 8.2.2928: the evalfunc.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
800 $(OUTDIR)/float.o \ |
6326 | 801 $(OUTDIR)/fold.o \ |
802 $(OUTDIR)/getchar.o \ | |
20637
6c5b11458f31
patch 8.2.0872: XIM code is mixed with multi-byte code
Bram Moolenaar <Bram@vim.org>
parents:
20587
diff
changeset
|
803 $(OUTDIR)/gui_xim.o \ |
6326 | 804 $(OUTDIR)/hardcopy.o \ |
805 $(OUTDIR)/hashtab.o \ | |
21423
5db63c2c6929
patch 8.2.1262: src/ex_cmds.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
21054
diff
changeset
|
806 $(OUTDIR)/help.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
|
807 $(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
|
808 $(OUTDIR)/if_cscope.o \ |
15699
2d941023bd2f
patch 8.1.0857: indent functionality is not separated
Bram Moolenaar <Bram@vim.org>
parents:
15634
diff
changeset
|
809 $(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
|
810 $(OUTDIR)/insexpand.o \ |
7712
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
7699
diff
changeset
|
811 $(OUTDIR)/json.o \ |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9507
diff
changeset
|
812 $(OUTDIR)/list.o \ |
21437
b32b67a108f2
patch 8.2.1269: language and locale code spread out
Bram Moolenaar <Bram@vim.org>
parents:
21423
diff
changeset
|
813 $(OUTDIR)/locale.o \ |
31287
fa309d9af73c
patch 9.0.0977: it is not easy to see what client-server commands are doing
Bram Moolenaar <Bram@vim.org>
parents:
31089
diff
changeset
|
814 $(OUTDIR)/logfile.o \ |
6326 | 815 $(OUTDIR)/main.o \ |
17576
97a750e8707f
patch 8.1.1785: map functionality mixed with character input
Bram Moolenaar <Bram@vim.org>
parents:
17536
diff
changeset
|
816 $(OUTDIR)/map.o \ |
6326 | 817 $(OUTDIR)/mark.o \ |
21054
b1fac55cf8a3
patch 8.2.1078: highlight and match functionality together in one file
Bram Moolenaar <Bram@vim.org>
parents:
20699
diff
changeset
|
818 $(OUTDIR)/match.o \ |
6326 | 819 $(OUTDIR)/memfile.o \ |
820 $(OUTDIR)/memline.o \ | |
821 $(OUTDIR)/menu.o \ | |
822 $(OUTDIR)/message.o \ | |
823 $(OUTDIR)/misc1.o \ | |
824 $(OUTDIR)/misc2.o \ | |
18135
1868ec23360e
patch 8.1.2062: the mouse code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
18124
diff
changeset
|
825 $(OUTDIR)/mouse.o \ |
6326 | 826 $(OUTDIR)/move.o \ |
827 $(OUTDIR)/mbyte.o \ | |
828 $(OUTDIR)/normal.o \ | |
829 $(OUTDIR)/ops.o \ | |
830 $(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
|
831 $(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
|
832 $(OUTDIR)/os_mswin.o \ |
6326 | 833 $(OUTDIR)/os_win32.o \ |
834 $(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
|
835 $(OUTDIR)/popupmenu.o \ |
16778
eda4d65f232c
patch 8.1.1391: no popup window support
Bram Moolenaar <Bram@vim.org>
parents:
16758
diff
changeset
|
836 $(OUTDIR)/popupwin.o \ |
17370
ba06a1c42274
patch 8.1.1684: profiling functionality is spread out
Bram Moolenaar <Bram@vim.org>
parents:
17326
diff
changeset
|
837 $(OUTDIR)/profiler.o \ |
6326 | 838 $(OUTDIR)/quickfix.o \ |
839 $(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
|
840 $(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
|
841 $(OUTDIR)/scriptfile.o \ |
6326 | 842 $(OUTDIR)/screen.o \ |
843 $(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
|
844 $(OUTDIR)/session.o \ |
6326 | 845 $(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
|
846 $(OUTDIR)/sign.o \ |
6326 | 847 $(OUTDIR)/spell.o \ |
9583
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
9571
diff
changeset
|
848 $(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
|
849 $(OUTDIR)/spellsuggest.o \ |
25206
dc66d0284518
patch 8.2.3139: functions for string manipulation are spread out
Bram Moolenaar <Bram@vim.org>
parents:
24970
diff
changeset
|
850 $(OUTDIR)/strings.o \ |
6326 | 851 $(OUTDIR)/syntax.o \ |
852 $(OUTDIR)/tag.o \ | |
853 $(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
|
854 $(OUTDIR)/testing.o \ |
20237
918245588b50
patch 8.2.0674: some source files are too big
Bram Moolenaar <Bram@vim.org>
parents:
20209
diff
changeset
|
855 $(OUTDIR)/textformat.o \ |
20209
6ca6a372fef6
patch 8.2.0660: the search.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
20077
diff
changeset
|
856 $(OUTDIR)/textobject.o \ |
15138
9df130fd5e0d
patch 8.1.0579: cannot attach properties to text
Bram Moolenaar <Bram@vim.org>
parents:
14958
diff
changeset
|
857 $(OUTDIR)/textprop.o \ |
19396
a961efb326e5
patch 8.2.0256: time and timer related code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
19181
diff
changeset
|
858 $(OUTDIR)/time.o \ |
20587
f502455965c0
patch 8.2.0847: typval related code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
20458
diff
changeset
|
859 $(OUTDIR)/typval.o \ |
6326 | 860 $(OUTDIR)/ui.o \ |
861 $(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
|
862 $(OUTDIR)/usercmd.o \ |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9507
diff
changeset
|
863 $(OUTDIR)/userfunc.o \ |
6326 | 864 $(OUTDIR)/version.o \ |
31335
5acc0d2cf4f7
patch 9.0.1001: classes are not documented or implemented yet
Bram Moolenaar <Bram@vim.org>
parents:
31287
diff
changeset
|
865 $(OUTDIR)/vim9class.o \ |
26662
4b23672d1f0e
patch 8.2.3860: Vim9: codecov struggles with the file size
Bram Moolenaar <Bram@vim.org>
parents:
26177
diff
changeset
|
866 $(OUTDIR)/vim9cmds.o \ |
19181
94eda51ba9ba
patch 8.2.0149: maintaining a Vim9 branch separately is more work
Bram Moolenaar <Bram@vim.org>
parents:
19106
diff
changeset
|
867 $(OUTDIR)/vim9compile.o \ |
94eda51ba9ba
patch 8.2.0149: maintaining a Vim9 branch separately is more work
Bram Moolenaar <Bram@vim.org>
parents:
19106
diff
changeset
|
868 $(OUTDIR)/vim9execute.o \ |
26662
4b23672d1f0e
patch 8.2.3860: Vim9: codecov struggles with the file size
Bram Moolenaar <Bram@vim.org>
parents:
26177
diff
changeset
|
869 $(OUTDIR)/vim9expr.o \ |
4b23672d1f0e
patch 8.2.3860: Vim9: codecov struggles with the file size
Bram Moolenaar <Bram@vim.org>
parents:
26177
diff
changeset
|
870 $(OUTDIR)/vim9instr.o \ |
19181
94eda51ba9ba
patch 8.2.0149: maintaining a Vim9 branch separately is more work
Bram Moolenaar <Bram@vim.org>
parents:
19106
diff
changeset
|
871 $(OUTDIR)/vim9script.o \ |
21711
d2dee69de7c7
patch 8.2.1405: Vim9: vim9compile.c is getting too big
Bram Moolenaar <Bram@vim.org>
parents:
21662
diff
changeset
|
872 $(OUTDIR)/vim9type.o \ |
17458
cfdef48743ed
patch 8.1.1727: code for viminfo support is spread out
Bram Moolenaar <Bram@vim.org>
parents:
17389
diff
changeset
|
873 $(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
|
874 $(OUTDIR)/winclip.o \ |
6326 | 875 $(OUTDIR)/window.o |
876 | |
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
|
877 ifeq ($(VIMDLL),yes) |
24689
2e6cc2bf37d8
patch 8.2.2883: MS-Windows manifest file name is misleading
Bram Moolenaar <Bram@vim.org>
parents:
23733
diff
changeset
|
878 OBJ += $(OUTDIR)/os_w32dll.o $(OUTDIR)/vimresd.o |
2e6cc2bf37d8
patch 8.2.2883: MS-Windows manifest file name is misleading
Bram Moolenaar <Bram@vim.org>
parents:
23733
diff
changeset
|
879 EXEOBJC = $(OUTDIR)/os_w32exec.o $(OUTDIR)/vimresc.o |
2e6cc2bf37d8
patch 8.2.2883: MS-Windows manifest file name is misleading
Bram Moolenaar <Bram@vim.org>
parents:
23733
diff
changeset
|
880 EXEOBJG = $(OUTDIR)/os_w32exeg.o $(OUTDIR)/vimresg.o |
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
|
881 else |
24689
2e6cc2bf37d8
patch 8.2.2883: MS-Windows manifest file name is misleading
Bram Moolenaar <Bram@vim.org>
parents:
23733
diff
changeset
|
882 OBJ += $(OUTDIR)/os_w32exe.o $(OUTDIR)/vimres.o |
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
|
883 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
|
884 |
6326 | 885 ifdef PERL |
886 OBJ += $(OUTDIR)/if_perl.o | |
887 endif | |
888 ifdef LUA | |
889 OBJ += $(OUTDIR)/if_lua.o | |
890 endif | |
891 ifdef MZSCHEME | |
892 OBJ += $(OUTDIR)/if_mzsch.o | |
893 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
|
894 ifeq (yes,$(MZSCHEME_GENERATE_BASE)) |
6326 | 895 CFLAGS += -DINCLUDE_MZSCHEME_BASE |
896 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
|
897 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
898 ifeq (yes,$(MZSCHEME_PRECISE_GC)) |
6326 | 899 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
|
900 endif |
6326 | 901 endif |
902 ifdef PYTHON | |
903 OBJ += $(OUTDIR)/if_python.o | |
904 endif | |
905 ifdef PYTHON3 | |
906 OBJ += $(OUTDIR)/if_python3.o | |
907 endif | |
908 ifdef RUBY | |
909 OBJ += $(OUTDIR)/if_ruby.o | |
910 endif | |
911 ifdef TCL | |
912 OBJ += $(OUTDIR)/if_tcl.o | |
913 endif | |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
914 |
6326 | 915 ifeq ($(NETBEANS),yes) |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
916 ifneq ($(CHANNEL),yes) |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
917 # Cannot use Netbeans without CHANNEL |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
918 NETBEANS=no |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
919 else ifneq (yes, $(GUI)) |
8051
7e298e8c5741
commit https://github.com/vim/vim/commit/44d571868f4fcf000e8b03ee0a350f1f8131c9ca
Christian Brabandt <cb@256bit.org>
parents:
7755
diff
changeset
|
920 # Cannot use Netbeans without GUI. |
7e298e8c5741
commit https://github.com/vim/vim/commit/44d571868f4fcf000e8b03ee0a350f1f8131c9ca
Christian Brabandt <cb@256bit.org>
parents:
7755
diff
changeset
|
921 NETBEANS=no |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
922 else |
6326 | 923 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
|
924 endif |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
925 endif |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
926 |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
927 ifeq ($(CHANNEL),yes) |
22095
2cc0de1e05a6
patch 8.2.1597: the channel source file is too big
Bram Moolenaar <Bram@vim.org>
parents:
22067
diff
changeset
|
928 OBJ += $(OUTDIR)/job.o $(OUTDIR)/channel.o |
20003
e373843e2980
patch 8.2.0557: no IPv6 support for channels
Bram Moolenaar <Bram@vim.org>
parents:
19920
diff
changeset
|
929 LIB += -lwsock32 -lws2_32 |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
930 endif |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
931 |
6326 | 932 ifeq ($(DIRECTX),yes) |
933 # 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
|
934 ifeq (yes, $(GUI)) |
6326 | 935 OBJ += $(OUTDIR)/gui_dwrite.o |
936 LIB += -ld2d1 -ldwrite | |
937 USE_STDCPLUS = yes | |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
938 endif |
6326 | 939 endif |
940 ifneq ($(XPM),no) | |
941 # 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
|
942 ifeq (yes, $(GUI)) |
6326 | 943 OBJ += $(OUTDIR)/xpm_w32.o |
944 # You'll need libXpm.a from http://gnuwin32.sf.net | |
945 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
|
946 endif |
6326 | 947 endif |
948 | |
11696
0a6136dfce35
patch 8.0.0731: cannot build the terminal feature on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
10442
diff
changeset
|
949 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
|
950 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
|
951 $(OUTDIR)/vterm_encoding.o \ |
da6a7491e148
patch 8.1.2128: renamed libvterm sources makes merging difficult
Bram Moolenaar <Bram@vim.org>
parents:
18265
diff
changeset
|
952 $(OUTDIR)/vterm_keyboard.o \ |
da6a7491e148
patch 8.1.2128: renamed libvterm sources makes merging difficult
Bram Moolenaar <Bram@vim.org>
parents:
18265
diff
changeset
|
953 $(OUTDIR)/vterm_mouse.o \ |
da6a7491e148
patch 8.1.2128: renamed libvterm sources makes merging difficult
Bram Moolenaar <Bram@vim.org>
parents:
18265
diff
changeset
|
954 $(OUTDIR)/vterm_parser.o \ |
da6a7491e148
patch 8.1.2128: renamed libvterm sources makes merging difficult
Bram Moolenaar <Bram@vim.org>
parents:
18265
diff
changeset
|
955 $(OUTDIR)/vterm_pen.o \ |
da6a7491e148
patch 8.1.2128: renamed libvterm sources makes merging difficult
Bram Moolenaar <Bram@vim.org>
parents:
18265
diff
changeset
|
956 $(OUTDIR)/vterm_screen.o \ |
da6a7491e148
patch 8.1.2128: renamed libvterm sources makes merging difficult
Bram Moolenaar <Bram@vim.org>
parents:
18265
diff
changeset
|
957 $(OUTDIR)/vterm_state.o \ |
da6a7491e148
patch 8.1.2128: renamed libvterm sources makes merging difficult
Bram Moolenaar <Bram@vim.org>
parents:
18265
diff
changeset
|
958 $(OUTDIR)/vterm_unicode.o \ |
da6a7491e148
patch 8.1.2128: renamed libvterm sources makes merging difficult
Bram Moolenaar <Bram@vim.org>
parents:
18265
diff
changeset
|
959 $(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
|
960 endif |
0a6136dfce35
patch 8.0.0731: cannot build the terminal feature on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
10442
diff
changeset
|
961 |
17131
be5a5cfc991a
patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
962 ifeq ($(SOUND),yes) |
be5a5cfc991a
patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
963 OBJ += $(OUTDIR)/sound.o |
be5a5cfc991a
patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
964 endif |
be5a5cfc991a
patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
965 |
14696
195e8b1fcbbf
patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents:
14222
diff
changeset
|
966 # 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
|
967 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
|
968 $(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
|
969 $(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
|
970 $(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
|
971 $(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
|
972 $(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
|
973 |
195e8b1fcbbf
patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents:
14222
diff
changeset
|
974 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
|
975 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
|
976 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
|
977 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
|
978 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
|
979 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
|
980 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
|
981 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
|
982 xdiff/xutils.h |
6326 | 983 |
984 ifdef MZSCHEME | |
985 MZSCHEME_SUFFIX = Z | |
986 endif | |
987 | |
16198
b0e19f135e50
patch 8.1.1104: MS-Windows: not all environment variables can be used
Bram Moolenaar <Bram@vim.org>
parents:
16142
diff
changeset
|
988 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
|
989 |
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
|
990 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
|
991 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
|
992 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
|
993 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
|
994 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
|
995 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
|
996 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
|
997 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
|
998 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
|
999 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
|
1000 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
|
1001 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
|
1002 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
|
1003 endif |
22067
59984404e520
patch 8.2.1583: MS-Windows: cannot easily measure code coverage
Bram Moolenaar <Bram@vim.org>
parents:
21789
diff
changeset
|
1004 ifeq ($(COVERAGE),yes) |
59984404e520
patch 8.2.1583: MS-Windows: cannot easily measure code coverage
Bram Moolenaar <Bram@vim.org>
parents:
21789
diff
changeset
|
1005 EXELFLAGS += --coverage |
59984404e520
patch 8.2.1583: MS-Windows: cannot easily measure code coverage
Bram Moolenaar <Bram@vim.org>
parents:
21789
diff
changeset
|
1006 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
|
1007 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
|
1008 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
|
1009 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
|
1010 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
|
1011 else ifeq ($(GUI),yes) |
6326 | 1012 TARGET := gvim$(DEBUG_SUFFIX).exe |
1013 DEFINES += $(DEF_GUI) | |
1014 OBJ += $(GUIOBJ) | |
1015 LFLAGS += -mwindows | |
1016 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
|
1017 MAIN_TARGET = $(TARGET) |
6326 | 1018 else |
9363
f9dda6450c76
commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
9203
diff
changeset
|
1019 OBJ += $(CUIOBJ) |
6326 | 1020 TARGET := vim$(DEBUG_SUFFIX).exe |
1021 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
|
1022 MAIN_TARGET = $(TARGET) |
6326 | 1023 endif |
1024 | |
1025 ifdef GETTEXT | |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
1026 ifneq (yes, $(GETTEXT)) |
6326 | 1027 CFLAGS += -I$(GETTEXTINCLUDE) |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
1028 ifndef STATIC_GETTEXT |
6326 | 1029 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
|
1030 ifeq (USE_SAFE_GETTEXT_DLL, $(DYNAMIC_GETTEXT)) |
6326 | 1031 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
|
1032 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
1033 else |
6326 | 1034 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
|
1035 endif |
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
1036 endif |
6326 | 1037 endif |
1038 | |
1039 ifdef PERL | |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
1040 ifeq (no, $(DYNAMIC_PERL)) |
6326 | 1041 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
|
1042 endif |
6326 | 1043 endif |
1044 | |
1045 ifdef TCL | |
1046 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
|
1047 ifeq (yes, $(DYNAMIC_TCL)) |
6326 | 1048 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
|
1049 else |
6326 | 1050 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
|
1051 endif |
6326 | 1052 endif |
1053 | |
1054 ifeq (yes, $(OLE)) | |
1055 LIB += -loleaut32 | |
1056 OBJ += $(OUTDIR)/if_ole.o | |
1057 USE_STDCPLUS = yes | |
1058 endif | |
1059 | |
1060 ifeq (yes, $(IME)) | |
1061 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
|
1062 ifeq (yes, $(DYNAMIC_IME)) |
6326 | 1063 DEFINES += -DDYNAMIC_IME |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
1064 else |
6326 | 1065 LIB += -limm32 |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
1066 endif |
6326 | 1067 endif |
1068 | |
1069 ifdef ICONV | |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
1070 ifneq (yes, $(ICONV)) |
6326 | 1071 LIB += -L$(ICONV) |
1072 CFLAGS += -I$(ICONV) | |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
1073 endif |
6326 | 1074 DEFINES+=-DDYNAMIC_ICONV |
1075 endif | |
1076 | |
17131
be5a5cfc991a
patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
1077 ifeq (yes, $(SOUND)) |
be5a5cfc991a
patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
1078 LIB += -lwinmm |
be5a5cfc991a
patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
1079 endif |
be5a5cfc991a
patch 8.1.1565: MS-Windows: no sound support
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
1080 |
6326 | 1081 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
|
1082 LINK = $(CXX) |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
1083 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
|
1084 #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
|
1085 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
|
1086 endif |
6326 | 1087 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
|
1088 LINK = $(CC) |
6326 | 1089 endif |
1090 | |
10442
70680eba1940
commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents:
10149
diff
changeset
|
1091 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
|
1092 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
|
1093 LIB += -lgcc_eh |
16640
92ad5eb7afcb
patch 8.1.1322: Cygwin makefile is not nicely indented
Bram Moolenaar <Bram@vim.org>
parents:
16632
diff
changeset
|
1094 endif |
10442
70680eba1940
commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents:
10149
diff
changeset
|
1095 LIB += -Wl,-Bstatic -lwinpthread -Wl,-Bdynamic |
70680eba1940
commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents:
10149
diff
changeset
|
1096 endif |
70680eba1940
commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents:
10149
diff
changeset
|
1097 |
14820
8ff32a34f25e
patch 8.1.0422: cannot create map file with MinGW
Christian Brabandt <cb@256bit.org>
parents:
14818
diff
changeset
|
1098 ifeq (yes, $(MAP)) |
8ff32a34f25e
patch 8.1.0422: cannot create map file with MinGW
Christian Brabandt <cb@256bit.org>
parents:
14818
diff
changeset
|
1099 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
|
1100 endif |
8ff32a34f25e
patch 8.1.0422: cannot create map file with MinGW
Christian Brabandt <cb@256bit.org>
parents:
14818
diff
changeset
|
1101 |
29134
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
1102 # The default stack size on Windows is 2 MB. With the default stack size, the |
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
1103 # following tests fail with the clang address sanitizer: |
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
1104 # Test_listdict_compare, Test_listdict_compare_complex, Test_deep_recursion, |
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
1105 # Test_map_error, Test_recursive_define, Test_recursive_addstate |
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
1106 # To increase the stack size to 16MB, uncomment the following line: |
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
1107 #LFLAGS += -Wl,-stack -Wl,0x1000000 |
cc1f2ef46aaa
patch 8.2.5087: cannot build with clang on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
27998
diff
changeset
|
1108 |
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
|
1109 all: $(MAIN_TARGET) vimrun.exe xxd/xxd.exe tee/tee.exe install.exe uninstall.exe GvimExt/gvimext.dll |
6326 | 1110 |
1111 vimrun.exe: vimrun.c | |
1112 $(CC) $(CFLAGS) -o vimrun.exe vimrun.c $(LIB) | |
1113 | |
18884
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1114 install.exe: dosinst.c dosinst.h version.h |
6326 | 1115 $(CC) $(CFLAGS) -o install.exe dosinst.c $(LIB) -lole32 -luuid |
1116 | |
18884
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1117 uninstall.exe: uninstall.c dosinst.h version.h |
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
|
1118 $(CC) $(CFLAGS) -o uninstall.exe uninstall.c $(LIB) -lole32 |
6326 | 1119 |
22894
a852e4e61887
patch 8.2.1994: MS-Windows: MinGW always does a full build
Bram Moolenaar <Bram@vim.org>
parents:
22868
diff
changeset
|
1120 $(OBJ): | $(OUTDIR) |
22868
f3cbb41b6370
patch 8.2.1981: MinGW: parallel compilation might fail
Bram Moolenaar <Bram@vim.org>
parents:
22095
diff
changeset
|
1121 |
22894
a852e4e61887
patch 8.2.1994: MS-Windows: MinGW always does a full build
Bram Moolenaar <Bram@vim.org>
parents:
22868
diff
changeset
|
1122 $(EXEOBJG): | $(OUTDIR) |
22868
f3cbb41b6370
patch 8.2.1981: MinGW: parallel compilation might fail
Bram Moolenaar <Bram@vim.org>
parents:
22095
diff
changeset
|
1123 |
22894
a852e4e61887
patch 8.2.1994: MS-Windows: MinGW always does a full build
Bram Moolenaar <Bram@vim.org>
parents:
22868
diff
changeset
|
1124 $(EXEOBJC): | $(OUTDIR) |
22868
f3cbb41b6370
patch 8.2.1981: MinGW: parallel compilation might fail
Bram Moolenaar <Bram@vim.org>
parents:
22095
diff
changeset
|
1125 |
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
|
1126 ifeq ($(VIMDLL),yes) |
22894
a852e4e61887
patch 8.2.1994: MS-Windows: MinGW always does a full build
Bram Moolenaar <Bram@vim.org>
parents:
22868
diff
changeset
|
1127 $(TARGET): $(OBJ) |
24970
7e9e53a0368f
patch 8.2.3022: available encryption methods are not strong enough
Bram Moolenaar <Bram@vim.org>
parents:
24780
diff
changeset
|
1128 $(LINK) $(CFLAGS) $(LFLAGS) -o $@ $(OBJ) $(LIB) -lole32 -luuid -lgdi32 $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB) $(SODIUMLIB) |
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
|
1129 |
22894
a852e4e61887
patch 8.2.1994: MS-Windows: MinGW always does a full build
Bram Moolenaar <Bram@vim.org>
parents:
22868
diff
changeset
|
1130 $(GVIMEXE): $(EXEOBJG) $(VIMDLLBASE).dll |
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
|
1131 $(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
|
1132 |
22894
a852e4e61887
patch 8.2.1994: MS-Windows: MinGW always does a full build
Bram Moolenaar <Bram@vim.org>
parents:
22868
diff
changeset
|
1133 $(VIMEXE): $(EXEOBJC) $(VIMDLLBASE).dll |
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
|
1134 $(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
|
1135 else |
22894
a852e4e61887
patch 8.2.1994: MS-Windows: MinGW always does a full build
Bram Moolenaar <Bram@vim.org>
parents:
22868
diff
changeset
|
1136 $(TARGET): $(OBJ) |
24970
7e9e53a0368f
patch 8.2.3022: available encryption methods are not strong enough
Bram Moolenaar <Bram@vim.org>
parents:
24780
diff
changeset
|
1137 $(LINK) $(CFLAGS) $(LFLAGS) -o $@ $(OBJ) $(LIB) -lole32 -luuid $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB) $(SODIUMLIB) |
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
|
1138 endif |
6326 | 1139 |
1140 upx: exes | |
1141 upx gvim.exe | |
1142 upx vim.exe | |
1143 | |
1144 mpress: exes | |
1145 mpress gvim.exe | |
1146 mpress vim.exe | |
1147 | |
1148 xxd/xxd.exe: xxd/xxd.c | |
1149 $(MAKE) -C xxd -f Make_ming.mak CC='$(CC)' | |
1150 | |
14943
d95d6580d84b
patch 8.1.0483: MinGW does not build tee.exe
Bram Moolenaar <Bram@vim.org>
parents:
14941
diff
changeset
|
1151 tee/tee.exe: tee/tee.c |
30170
ba9d53c7c509
patch 9.0.0421: MS-Windows makefiles are inconsistently named
Bram Moolenaar <Bram@vim.org>
parents:
29163
diff
changeset
|
1152 $(MAKE) -C tee -f Make_ming.mak CC='$(CC)' |
14943
d95d6580d84b
patch 8.1.0483: MinGW does not build tee.exe
Bram Moolenaar <Bram@vim.org>
parents:
14941
diff
changeset
|
1153 |
6326 | 1154 GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h |
1155 $(MAKE) -C GvimExt -f Make_ming.mak CROSS=$(CROSS) CROSS_COMPILE=$(CROSS_COMPILE) CXX='$(CXX)' STATIC_STDCPLUS=$(STATIC_STDCPLUS) | |
1156 | |
12305
d4a3ad146204
patch 8.0.1032: "make tags" doesn't work well on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12218
diff
changeset
|
1157 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
|
1158 $(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
|
1159 |
d4a3ad146204
patch 8.0.1032: "make tags" doesn't work well on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12218
diff
changeset
|
1160 notags: |
d4a3ad146204
patch 8.0.1032: "make tags" doesn't work well on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12218
diff
changeset
|
1161 -$(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
|
1162 |
6326 | 1163 clean: |
1164 -$(DEL) $(OUTDIR)$(DIRSLASH)*.o | |
1165 -$(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
|
1166 -$(DEL) $(OUTDIR)$(DIRSLASH)pathdef.c |
6326 | 1167 -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
|
1168 -$(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
|
1169 -$(DEL) *.map |
6326 | 1170 ifdef PERL |
1171 -$(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
|
1172 -$(DEL) auto$(DIRSLASH)if_perl.c |
6326 | 1173 endif |
1174 ifdef MZSCHEME | |
1175 -$(DEL) mzscheme_base.c | |
1176 endif | |
1177 $(MAKE) -C GvimExt -f Make_ming.mak clean | |
1178 $(MAKE) -C xxd -f Make_ming.mak clean | |
30170
ba9d53c7c509
patch 9.0.0421: MS-Windows makefiles are inconsistently named
Bram Moolenaar <Bram@vim.org>
parents:
29163
diff
changeset
|
1179 $(MAKE) -C tee -f Make_ming.mak clean |
6326 | 1180 |
18853
5ecefcbd12a1
patch 8.1.2413: cannot update ex_cmdidxs.h on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
18267
diff
changeset
|
1181 # 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
|
1182 # 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
|
1183 # 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
|
1184 # without changes. |
5ecefcbd12a1
patch 8.1.2413: cannot update ex_cmdidxs.h on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
18267
diff
changeset
|
1185 cmdidxs: ex_cmds.h |
27484
ee1019e59bef
patch 8.2.4270: generating nv_cmdidxs.h requires building Vim twice
Bram Moolenaar <Bram@vim.org>
parents:
27447
diff
changeset
|
1186 vim --clean -N -X --not-a-term -u create_cmdidxs.vim -c quit |
18853
5ecefcbd12a1
patch 8.1.2413: cannot update ex_cmdidxs.h on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
18267
diff
changeset
|
1187 |
27447
4050f0554902
patch 8.2.4252: generating the normal command table at runtime is inefficient
Bram Moolenaar <Bram@vim.org>
parents:
27231
diff
changeset
|
1188 # Run vim script to generate the normal/visual mode command lookup table. |
4050f0554902
patch 8.2.4252: generating the normal command table at runtime is inefficient
Bram Moolenaar <Bram@vim.org>
parents:
27231
diff
changeset
|
1189 # This only needs to be run when a new normal/visual mode command has been |
4050f0554902
patch 8.2.4252: generating the normal command table at runtime is inefficient
Bram Moolenaar <Bram@vim.org>
parents:
27231
diff
changeset
|
1190 # added. If this fails because you don't have Vim yet: |
27484
ee1019e59bef
patch 8.2.4270: generating nv_cmdidxs.h requires building Vim twice
Bram Moolenaar <Bram@vim.org>
parents:
27447
diff
changeset
|
1191 # - change nv_cmds[] in nv_cmds.h to add the new normal/visual mode command. |
ee1019e59bef
patch 8.2.4270: generating nv_cmdidxs.h requires building Vim twice
Bram Moolenaar <Bram@vim.org>
parents:
27447
diff
changeset
|
1192 # - run "make nvcmdidxs" to generate nv_cmdidxs.h |
ee1019e59bef
patch 8.2.4270: generating nv_cmdidxs.h requires building Vim twice
Bram Moolenaar <Bram@vim.org>
parents:
27447
diff
changeset
|
1193 nvcmdidxs: nv_cmds.h |
ee1019e59bef
patch 8.2.4270: generating nv_cmdidxs.h requires building Vim twice
Bram Moolenaar <Bram@vim.org>
parents:
27447
diff
changeset
|
1194 $(CC) $(CFLAGS) -o create_nvcmdidxs.exe create_nvcmdidxs.c $(LIB) |
ee1019e59bef
patch 8.2.4270: generating nv_cmdidxs.h requires building Vim twice
Bram Moolenaar <Bram@vim.org>
parents:
27447
diff
changeset
|
1195 vim --clean -N -X --not-a-term -u create_nvcmdidxs.vim -c quit |
ee1019e59bef
patch 8.2.4270: generating nv_cmdidxs.h requires building Vim twice
Bram Moolenaar <Bram@vim.org>
parents:
27447
diff
changeset
|
1196 -$(DEL) create_nvcmdidxs.exe |
27447
4050f0554902
patch 8.2.4252: generating the normal command table at runtime is inefficient
Bram Moolenaar <Bram@vim.org>
parents:
27231
diff
changeset
|
1197 |
6326 | 1198 ########################################################################### |
21789
f84625b961a8
patch 8.2.1444: error messages are spread out and names can be confusing
Bram Moolenaar <Bram@vim.org>
parents:
21711
diff
changeset
|
1199 INCL = vim.h alloc.h ascii.h ex_cmds.h feature.h errors.h globals.h \ |
12525
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1200 keymap.h macros.h option.h os_dos.h os_win32.h proto.h regexp.h \ |
26177
13e09dc59f0f
patch 8.2.3620: memory leak reported in libtlib
Bram Moolenaar <Bram@vim.org>
parents:
25529
diff
changeset
|
1201 spell.h structs.h termdefs.h beval.h $(NBDEBUG_INCL) |
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
|
1202 GUI_INCL = gui.h |
16758
bb4071e79ade
patch 8.1.1381: MS-Windows: missing build dependency
Bram Moolenaar <Bram@vim.org>
parents:
16640
diff
changeset
|
1203 ifeq ($(DIRECTX),yes) |
bb4071e79ade
patch 8.1.1381: MS-Windows: missing build dependency
Bram Moolenaar <Bram@vim.org>
parents:
16640
diff
changeset
|
1204 GUI_INCL += gui_dwrite.h |
bb4071e79ade
patch 8.1.1381: MS-Windows: missing build dependency
Bram Moolenaar <Bram@vim.org>
parents:
16640
diff
changeset
|
1205 endif |
9363
f9dda6450c76
commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
9203
diff
changeset
|
1206 CUI_INCL = iscygpty.h |
6326 | 1207 |
17157
bbd454d155a9
patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents:
17131
diff
changeset
|
1208 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
|
1209 |
12525
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1210 $(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
|
1211 $(CC) -c $(CFLAGS) $(PYTHONINC) $(PYTHON_HOME_DEF) $< -o $@ |
6326 | 1212 |
12525
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1213 $(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
|
1214 $(CC) -c $(CFLAGS) $(PYTHON3INC) $(PYTHON3_HOME_DEF) $< -o $@ |
6326 | 1215 |
1216 $(OUTDIR)/%.o : %.c $(INCL) | |
1217 $(CC) -c $(CFLAGS) $< -o $@ | |
1218 | |
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
|
1219 ifeq ($(VIMDLL),yes) |
24689
2e6cc2bf37d8
patch 8.2.2883: MS-Windows manifest file name is misleading
Bram Moolenaar <Bram@vim.org>
parents:
23733
diff
changeset
|
1220 $(OUTDIR)/vimresc.o: vim.rc vim.manifest version.h gui_w32_rc.h vim.ico |
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
|
1221 $(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
|
1222 --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
|
1223 |
24689
2e6cc2bf37d8
patch 8.2.2883: MS-Windows manifest file name is misleading
Bram Moolenaar <Bram@vim.org>
parents:
23733
diff
changeset
|
1224 $(OUTDIR)/vimresg.o: vim.rc vim.manifest version.h gui_w32_rc.h vim.ico |
6326 | 1225 $(WINDRES) $(WINDRES_FLAGS) $(DEFINES) \ |
1226 --input-format=rc --output-format=coff -i vim.rc -o $@ | |
1227 | |
24689
2e6cc2bf37d8
patch 8.2.2883: MS-Windows manifest file name is misleading
Bram Moolenaar <Bram@vim.org>
parents:
23733
diff
changeset
|
1228 $(OUTDIR)/vimresd.o: vim.rc version.h gui_w32_rc.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
|
1229 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
|
1230 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
|
1231 $(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
|
1232 --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
|
1233 else |
24689
2e6cc2bf37d8
patch 8.2.2883: MS-Windows manifest file name is misleading
Bram Moolenaar <Bram@vim.org>
parents:
23733
diff
changeset
|
1234 $(OUTDIR)/vimres.o: vim.rc vim.manifest version.h gui_w32_rc.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
|
1235 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
|
1236 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
|
1237 $(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
|
1238 --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
|
1239 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
|
1240 |
6326 | 1241 $(OUTDIR): |
1242 $(MKDIR) $(OUTDIR) | |
1243 | |
18884
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1244 $(OUTDIR)/buffer.o: buffer.c $(INCL) version.h |
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1245 |
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1246 $(OUTDIR)/evalfunc.o: evalfunc.c $(INCL) version.h |
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1247 |
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1248 $(OUTDIR)/evalvars.o: evalvars.c $(INCL) version.h |
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1249 |
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1250 $(OUTDIR)/ex_cmds.o: ex_cmds.c $(INCL) version.h |
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1251 |
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1252 $(OUTDIR)/ex_cmds2.o: ex_cmds2.c $(INCL) version.h |
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1253 |
18853
5ecefcbd12a1
patch 8.1.2413: cannot update ex_cmdidxs.h on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents:
18267
diff
changeset
|
1254 $(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
|
1255 |
18884
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1256 $(OUTDIR)/hardcopy.o: hardcopy.c $(INCL) version.h |
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1257 |
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1258 $(OUTDIR)/misc1.o: misc1.c $(INCL) version.h |
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1259 |
27484
ee1019e59bef
patch 8.2.4270: generating nv_cmdidxs.h requires building Vim twice
Bram Moolenaar <Bram@vim.org>
parents:
27447
diff
changeset
|
1260 $(OUTDIR)/normal.o: normal.c $(INCL) nv_cmdidxs.h nv_cmds.h |
27447
4050f0554902
patch 8.2.4252: generating the normal command table at runtime is inefficient
Bram Moolenaar <Bram@vim.org>
parents:
27231
diff
changeset
|
1261 |
18884
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1262 $(OUTDIR)/netbeans.o: netbeans.c $(INCL) version.h |
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1263 |
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1264 $(OUTDIR)/version.o: version.c $(INCL) version.h |
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1265 |
31335
5acc0d2cf4f7
patch 9.0.1001: classes are not documented or implemented yet
Bram Moolenaar <Bram@vim.org>
parents:
31287
diff
changeset
|
1266 $(OUTDIR)/vim9class.o: vim9class.c $(INCL) vim9.h |
5acc0d2cf4f7
patch 9.0.1001: classes are not documented or implemented yet
Bram Moolenaar <Bram@vim.org>
parents:
31287
diff
changeset
|
1267 |
27932
e9e493983e11
patch 8.2.4491: MS-Windows makefile dependencies are outdated
Bram Moolenaar <Bram@vim.org>
parents:
27486
diff
changeset
|
1268 $(OUTDIR)/vim9cmds.o: vim9cmds.c $(INCL) vim9.h |
26662
4b23672d1f0e
patch 8.2.3860: Vim9: codecov struggles with the file size
Bram Moolenaar <Bram@vim.org>
parents:
26177
diff
changeset
|
1269 |
27932
e9e493983e11
patch 8.2.4491: MS-Windows makefile dependencies are outdated
Bram Moolenaar <Bram@vim.org>
parents:
27486
diff
changeset
|
1270 $(OUTDIR)/vim9compile.o: vim9compile.c $(INCL) vim9.h |
19181
94eda51ba9ba
patch 8.2.0149: maintaining a Vim9 branch separately is more work
Bram Moolenaar <Bram@vim.org>
parents:
19106
diff
changeset
|
1271 |
27932
e9e493983e11
patch 8.2.4491: MS-Windows makefile dependencies are outdated
Bram Moolenaar <Bram@vim.org>
parents:
27486
diff
changeset
|
1272 $(OUTDIR)/vim9execute.o: vim9execute.c $(INCL) vim9.h |
19181
94eda51ba9ba
patch 8.2.0149: maintaining a Vim9 branch separately is more work
Bram Moolenaar <Bram@vim.org>
parents:
19106
diff
changeset
|
1273 |
27932
e9e493983e11
patch 8.2.4491: MS-Windows makefile dependencies are outdated
Bram Moolenaar <Bram@vim.org>
parents:
27486
diff
changeset
|
1274 $(OUTDIR)/vim9expr.o: vim9expr.c $(INCL) vim9.h |
26662
4b23672d1f0e
patch 8.2.3860: Vim9: codecov struggles with the file size
Bram Moolenaar <Bram@vim.org>
parents:
26177
diff
changeset
|
1275 |
27932
e9e493983e11
patch 8.2.4491: MS-Windows makefile dependencies are outdated
Bram Moolenaar <Bram@vim.org>
parents:
27486
diff
changeset
|
1276 $(OUTDIR)/vim9instr.o: vim9instr.c $(INCL) vim9.h |
26662
4b23672d1f0e
patch 8.2.3860: Vim9: codecov struggles with the file size
Bram Moolenaar <Bram@vim.org>
parents:
26177
diff
changeset
|
1277 |
27932
e9e493983e11
patch 8.2.4491: MS-Windows makefile dependencies are outdated
Bram Moolenaar <Bram@vim.org>
parents:
27486
diff
changeset
|
1278 $(OUTDIR)/vim9script.o: vim9script.c $(INCL) vim9.h |
19181
94eda51ba9ba
patch 8.2.0149: maintaining a Vim9 branch separately is more work
Bram Moolenaar <Bram@vim.org>
parents:
19106
diff
changeset
|
1279 |
27932
e9e493983e11
patch 8.2.4491: MS-Windows makefile dependencies are outdated
Bram Moolenaar <Bram@vim.org>
parents:
27486
diff
changeset
|
1280 $(OUTDIR)/vim9type.o: vim9type.c $(INCL) vim9.h |
21711
d2dee69de7c7
patch 8.2.1405: Vim9: vim9compile.c is getting too big
Bram Moolenaar <Bram@vim.org>
parents:
21662
diff
changeset
|
1281 |
18884
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1282 $(OUTDIR)/viminfo.o: viminfo.c $(INCL) version.h |
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1283 |
16758
bb4071e79ade
patch 8.1.1381: MS-Windows: missing build dependency
Bram Moolenaar <Bram@vim.org>
parents:
16640
diff
changeset
|
1284 $(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
|
1285 $(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
|
1286 |
12525
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1287 $(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
|
1288 $(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
|
1289 |
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
|
1290 $(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
|
1291 $(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
|
1292 |
12525
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1293 $(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
|
1294 $(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
|
1295 |
18884
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1296 $(OUTDIR)/gui_w32.o: gui_w32.c $(INCL) $(GUI_INCL) version.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
|
1297 $(CC) -c $(CFLAGS) gui_w32.c -o $@ |
6326 | 1298 |
27104
92e0b1f2b72f
patch 8.2.4081: CodeQL reports problem in if_cscope causing it to fail
Bram Moolenaar <Bram@vim.org>
parents:
26662
diff
changeset
|
1299 $(OUTDIR)/if_cscope.o: if_cscope.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
|
1300 $(CC) -c $(CFLAGS) if_cscope.c -o $@ |
6326 | 1301 |
12525
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1302 $(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
|
1303 $(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
|
1304 |
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1305 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
|
1306 $(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
|
1307 |
6326 | 1308 # 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
|
1309 $(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
|
1310 $(CC) -c $(CFLAGS) $(CXXFLAGS) if_ole.cpp -o $@ |
6326 | 1311 |
14925
8b1b3228c410
patch 8.1.0474: directory where if_perl.c is written is inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
14820
diff
changeset
|
1312 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
|
1313 $(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
|
1314 $(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
|
1315 |
14925
8b1b3228c410
patch 8.1.0474: directory where if_perl.c is written is inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
14820
diff
changeset
|
1316 $(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
|
1317 $(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
|
1318 |
8b1b3228c410
patch 8.1.0474: directory where if_perl.c is written is inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
14820
diff
changeset
|
1319 |
18884
9a723f1e2d4e
patch 8.2.0003: Build file dependencies are incomplete
Bram Moolenaar <Bram@vim.org>
parents:
18862
diff
changeset
|
1320 $(OUTDIR)/if_ruby.o: if_ruby.c $(INCL) version.h |
6326 | 1321 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
|
1322 $(CC) $(CFLAGS) -U_WIN32 -c -o $@ if_ruby.c |
6326 | 1323 endif |
1324 | |
9363
f9dda6450c76
commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
9203
diff
changeset
|
1325 $(OUTDIR)/iscygpty.o: iscygpty.c $(CUI_INCL) |
30320
0763cb330a65
patch 9.0.0496: no good reason to keep supporting Windows-XP
Bram Moolenaar <Bram@vim.org>
parents:
30170
diff
changeset
|
1326 $(CC) -c $(CFLAGS) iscygpty.c -o $@ |
9363
f9dda6450c76
commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
9203
diff
changeset
|
1327 |
12525
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1328 $(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
|
1329 $(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
|
1330 |
6326 | 1331 $(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
|
1332 $(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
|
1333 |
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
|
1334 $(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
|
1335 $(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
|
1336 |
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
|
1337 $(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
|
1338 $(CC) -c $(CFLAGS) os_w32exe.c -o $@ |
6326 | 1339 |
12525
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1340 $(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
|
1341 $(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
|
1342 |
18019
68fd5296bf73
patch 8.1.2005: the regexp.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
18010
diff
changeset
|
1343 $(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
|
1344 $(CC) -c $(CFLAGS) regexp.c -o $@ |
6326 | 1345 |
18164
f57481564f2c
patch 8.1.2077: the ops.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
18135
diff
changeset
|
1346 $(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
|
1347 $(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
|
1348 |
11782
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1349 $(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
|
1350 $(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
|
1351 |
17157
bbd454d155a9
patch 8.1.1578: MS-Windows: pathdef.c should depend on build options
Bram Moolenaar <Bram@vim.org>
parents:
17131
diff
changeset
|
1352 $(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
|
1353 $(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
|
1354 |
11782
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1355 |
12210
b9b06aa0b6d9
patch 8.0.0985: libvterm has its own idea of character width
Christian Brabandt <cb@256bit.org>
parents:
11782
diff
changeset
|
1356 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
|
1357 -DVSNPRINTF=vim_vsnprintf \ |
20458
ffadba5f898c
patch 8.2.0783: libvterm code lags behind the upstream version
Bram Moolenaar <Bram@vim.org>
parents:
20237
diff
changeset
|
1358 -DSNPRINTF=vim_snprintf \ |
12210
b9b06aa0b6d9
patch 8.0.0985: libvterm has its own idea of character width
Christian Brabandt <cb@256bit.org>
parents:
11782
diff
changeset
|
1359 -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
|
1360 -DWCWIDTH_FUNCTION=utf_uint2cells \ |
8b4f9be5db73
patch 8.1.2027: MS-Windows: problem with ambiwidth characters
Bram Moolenaar <Bram@vim.org>
parents:
18019
diff
changeset
|
1361 -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
|
1362 |
18267
da6a7491e148
patch 8.1.2128: renamed libvterm sources makes merging difficult
Bram Moolenaar <Bram@vim.org>
parents:
18265
diff
changeset
|
1363 $(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
|
1364 $(CCCTERM) $< -o $@ |
6326 | 1365 |
11782
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1366 |
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
|
1367 $(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
|
1368 $(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
|
1369 |
6326 | 1370 |
22894
a852e4e61887
patch 8.2.1994: MS-Windows: MinGW always does a full build
Bram Moolenaar <Bram@vim.org>
parents:
22868
diff
changeset
|
1371 $(PATHDEF_SRC): Make_cyg_ming.mak Make_cyg.mak Make_ming.mak | $(OUTDIR) |
6326 | 1372 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
|
1373 @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
|
1374 @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
|
1375 @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
|
1376 @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
|
1377 @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
|
1378 @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
|
1379 @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
|
1380 @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
|
1381 @echo 'char_u *compiled_sys = (char_u *)"$(USERDOMAIN)";' >> $(PATHDEF_SRC) |
6326 | 1382 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
|
1383 @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
|
1384 @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
|
1385 @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
|
1386 @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
|
1387 @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
|
1388 @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
|
1389 @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
|
1390 @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
|
1391 @echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> $(PATHDEF_SRC) |
6326 | 1392 endif |
12525
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1393 |
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1394 # vim: set noet sw=8 ts=8 sts=0 wm=0 tw=0: |