Mercurial > vim
annotate src/Make_cyg_ming.mak @ 16405:840fa633ad64 v8.1.1207
patch 8.1.1207: some compilers give warning messages
commit https://github.com/vim/vim/commit/1f3601e92e7fd2813b9541580d6d9649c802eb58
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 26 20:33:00 2019 +0200
patch 8.1.1207: some compilers give warning messages
Problem: Some compilers give warning messages.
Solution: Initialize variables, change printf() argument. (Christian
Brabandt, closes #4305)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 26 Apr 2019 20:45:06 +0200 |
parents | 1dcbaa780b8e |
children | 5b5c5daf57de |
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: | |
13658
c83ec560409c
patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents:
13468
diff
changeset
|
31 # FEATURES=[TINY | SMALL | NORMAL | BIG | HUGE] |
c83ec560409c
patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents:
13468
diff
changeset
|
32 # Set to TINY to make minimal version (few features). |
c83ec560409c
patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents:
13468
diff
changeset
|
33 FEATURES=HUGE |
c83ec560409c
patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents:
13468
diff
changeset
|
34 |
6326 | 35 # set to yes for a debug build |
36 DEBUG=no | |
13658
c83ec560409c
patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents:
13468
diff
changeset
|
37 |
14820
8ff32a34f25e
patch 8.1.0422: cannot create map file with MinGW
Christian Brabandt <cb@256bit.org>
parents:
14818
diff
changeset
|
38 # set to yes to create a mapfile |
8ff32a34f25e
patch 8.1.0422: cannot create map file with MinGW
Christian Brabandt <cb@256bit.org>
parents:
14818
diff
changeset
|
39 # MAP=yes |
8ff32a34f25e
patch 8.1.0422: cannot create map file with MinGW
Christian Brabandt <cb@256bit.org>
parents:
14818
diff
changeset
|
40 |
6326 | 41 # set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization |
42 OPTIMIZE=MAXSPEED | |
13658
c83ec560409c
patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents:
13468
diff
changeset
|
43 |
6326 | 44 # set to yes to make gvim, no for vim |
45 GUI=yes | |
13658
c83ec560409c
patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents:
13468
diff
changeset
|
46 |
13468
539436dcb134
patch 8.0.1608: Win32: directx not enabled by default
Christian Brabandt <cb@256bit.org>
parents:
13028
diff
changeset
|
47 # set to no if you do not want to use DirectWrite (DirectX) |
6326 | 48 # 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
|
49 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
|
50 |
c83ec560409c
patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents:
13468
diff
changeset
|
51 # 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
|
52 # (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
|
53 #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
|
54 |
6326 | 55 # Set to one of i386, i486, i586, i686 as the minimum target processor. |
56 # 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
|
57 # 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
|
58 #ARCH=i686 |
6326 | 59 # Set to yes to cross-compile from unix; no=native Windows (and Cygwin). |
60 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
|
61 |
6326 | 62 # 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
|
63 # Use "yes" when the path does not need to be define. |
6326 | 64 #ICONV="." |
65 ICONV=yes | |
66 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
|
67 |
6326 | 68 # Set to yes to include IME support. |
69 IME=yes | |
70 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
|
71 |
6326 | 72 # Set to yes to enable writing a postscript file with :hardcopy. |
73 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
|
74 |
6326 | 75 # Set to yes to enable OLE support. |
76 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
|
77 |
14222
78449866e9a9
patch 8.1.0128: building with MinGW does not work out-of-the-box
Christian Brabandt <cb@256bit.org>
parents:
14133
diff
changeset
|
78 # Set the default $(WINVER). Use 0x0501 to make it work with WinXP. |
6326 | 79 ifndef WINVER |
14222
78449866e9a9
patch 8.1.0128: building with MinGW does not work out-of-the-box
Christian Brabandt <cb@256bit.org>
parents:
14133
diff
changeset
|
80 # WINVER = 0x0501 |
78449866e9a9
patch 8.1.0128: building with MinGW does not work out-of-the-box
Christian Brabandt <cb@256bit.org>
parents:
14133
diff
changeset
|
81 WINVER = 0x0600 |
6326 | 82 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
|
83 |
6326 | 84 # Set to yes to enable Cscope support. |
85 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
|
86 |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
87 # Set to yes to enable Netbeans support (requires CHANNEL). |
6326 | 88 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
|
89 |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
90 # 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
|
91 ifeq (HUGE, $(FEATURES)) |
c096095ad9fb
commit https://github.com/vim/vim/commit/1aa07bdead2e93501c54591e31fe73b9b09c58b5
Christian Brabandt <cb@256bit.org>
parents:
8696
diff
changeset
|
92 CHANNEL=yes |
c096095ad9fb
commit https://github.com/vim/vim/commit/1aa07bdead2e93501c54591e31fe73b9b09c58b5
Christian Brabandt <cb@256bit.org>
parents:
8696
diff
changeset
|
93 else |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
94 CHANNEL=$(GUI) |
9203
c096095ad9fb
commit https://github.com/vim/vim/commit/1aa07bdead2e93501c54591e31fe73b9b09c58b5
Christian Brabandt <cb@256bit.org>
parents:
8696
diff
changeset
|
95 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
|
96 |
11774
edf1a2a247fa
patch 8.0.0769: build problems with terminal on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
11719
diff
changeset
|
97 # 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
|
98 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
|
99 TERMINAL=yes |
c3bb4552d15d
patch 8.0.1192: MS-Windows: terminal feature not enabled by default
Christian Brabandt <cb@256bit.org>
parents:
12525
diff
changeset
|
100 else |
11696
0a6136dfce35
patch 8.0.0731: cannot build the terminal feature on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
10442
diff
changeset
|
101 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
|
102 endif |
6326 | 103 |
12305
d4a3ad146204
patch 8.0.1032: "make tags" doesn't work well on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12218
diff
changeset
|
104 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
|
105 # this assumes ctags is Exuberant ctags |
d4a3ad146204
patch 8.0.1032: "make tags" doesn't work well on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12218
diff
changeset
|
106 CTAGS = ctags -I INIT+ --fields=+S |
d4a3ad146204
patch 8.0.1032: "make tags" doesn't work well on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12218
diff
changeset
|
107 endif |
6326 | 108 |
109 # Link against the shared version of libstdc++ by default. Set | |
110 # STATIC_STDCPLUS to "yes" to link against static version instead. | |
111 ifndef STATIC_STDCPLUS | |
112 STATIC_STDCPLUS=no | |
113 endif | |
114 | |
10442
70680eba1940
commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents:
10149
diff
changeset
|
115 |
70680eba1940
commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents:
10149
diff
changeset
|
116 # 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
|
117 # 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
|
118 ifndef STATIC_WINPTHREAD |
70680eba1940
commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents:
10149
diff
changeset
|
119 STATIC_WINPTHREAD=$(STATIC_STDCPLUS) |
70680eba1940
commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents:
10149
diff
changeset
|
120 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
|
121 # 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
|
122 # 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
|
123 HAS_GCC_EH=yes |
10442
70680eba1940
commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents:
10149
diff
changeset
|
124 |
6326 | 125 # If the user doesn't want gettext, undefine it. |
126 ifeq (no, $(GETTEXT)) | |
127 GETTEXT= | |
128 endif | |
129 # Added by E.F. Amatria <eferna1@platea.ptic.mec.es> 2001 Feb 23 | |
130 # Uncomment the first line and one of the following three if you want Native Language | |
131 # Support. You'll need gnu_gettext.win32, a MINGW32 Windows PORT of gettext by | |
132 # Franco Bez <franco.bez@gmx.de>. It may be found at | |
133 # http://home.a-city.de/franco.bez/gettext/gettext_win32_en.html | |
134 # Tested with mingw32 with GCC-2.95.2 on Win98 | |
135 # Updated 2001 Jun 9 | |
136 #GETTEXT=c:/gettext.win32.msvcrt | |
137 #STATIC_GETTEXT=USE_STATIC_GETTEXT | |
138 #DYNAMIC_GETTEXT=USE_GETTEXT_DLL | |
139 #DYNAMIC_GETTEXT=USE_SAFE_GETTEXT_DLL | |
140 SAFE_GETTEXT_DLL_OBJ = $(GETTEXT)/src/safe_gettext_dll/safe_gettext_dll.o | |
141 # Alternatively, if you uncomment the two following lines, you get a "safe" version | |
142 # without linking the safe_gettext_dll.o object file. | |
143 #DYNAMIC_GETTEXT=DYNAMIC_GETTEXT | |
144 #GETTEXT_DYNAMIC=gnu_gettext.dll | |
145 INTLPATH=$(GETTEXT)/lib/mingw32 | |
146 INTLLIB=gnu_gettext | |
147 | |
148 # If you are using gettext-0.10.35 from http://sourceforge.net/projects/gettext | |
149 # or gettext-0.10.37 from http://sourceforge.net/projects/mingwrep/ | |
150 # uncomment the following, but I can't build a static version with them, ?-(| | |
151 #GETTEXT=c:/gettext-0.10.37-20010430 | |
152 #STATIC_GETTEXT=USE_STATIC_GETTEXT | |
153 #DYNAMIC_GETTEXT=DYNAMIC_GETTEXT | |
154 #INTLPATH=$(GETTEXT)/lib | |
155 #INTLLIB=intl | |
156 | |
9499
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
157 |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
158 # 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
|
159 ifeq ($(CROSS),yes) |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
160 # cross-compiler prefix: |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
161 ifndef CROSS_COMPILE |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
162 CROSS_COMPILE = i586-pc-mingw32msvc- |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
163 endif |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
164 DEL = rm |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
165 MKDIR = mkdir -p |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
166 DIRSLASH = / |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
167 else |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
168 # normal (Windows) compilation: |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
169 ifndef CROSS_COMPILE |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
170 CROSS_COMPILE = |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
171 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
|
172 |
195e8b1fcbbf
patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents:
14222
diff
changeset
|
173 # 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
|
174 # |
195e8b1fcbbf
patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents:
14222
diff
changeset
|
175 # 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
|
176 # $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
|
177 # 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
|
178 # |
195e8b1fcbbf
patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents:
14222
diff
changeset
|
179 # 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
|
180 # 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
|
181 # "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
|
182 # |
195e8b1fcbbf
patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents:
14222
diff
changeset
|
183 # 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
|
184 # "/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
|
185 # 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
|
186 # |
195e8b1fcbbf
patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents:
14222
diff
changeset
|
187 # If 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
|
188 # $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
|
189 # 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
|
190 # |
9499
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
191 ifneq (sh.exe, $(SHELL)) |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
192 DEL = rm |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
193 MKDIR = mkdir -p |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
194 DIRSLASH = / |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
195 else |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
196 DEL = del |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
197 MKDIR = mkdir |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
198 DIRSLASH = \\ |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
199 endif |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
200 endif |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
201 CC := $(CROSS_COMPILE)gcc |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
202 CXX := $(CROSS_COMPILE)g++ |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
203 ifeq ($(UNDER_CYGWIN),yes) |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
204 WINDRES := $(CROSS_COMPILE)windres |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
205 else |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
206 WINDRES := windres |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
207 endif |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
208 WINDRES_CC = $(CC) |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
209 |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
210 # Get the default ARCH. |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
211 ifndef ARCH |
9507
5376c8008b3a
commit https://github.com/vim/vim/commit/f62e797ffa6ab5d4c476b4c9e9a1f7f852910652
Christian Brabandt <cb@256bit.org>
parents:
9503
diff
changeset
|
212 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
|
213 endif |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
214 |
69102e843370
commit https://github.com/vim/vim/commit/e048539195e1c0a060cf41b39fca118130bdc151
Christian Brabandt <cb@256bit.org>
parents:
9471
diff
changeset
|
215 |
6326 | 216 # Perl interface: |
217 # PERL=[Path to Perl directory] (Set inside Make_cyg.mak or Make_ming.mak) | |
218 # 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
|
219 # PERL_VER=[Perl version, eg 56, 58, 510] (default is 524) |
6326 | 220 ifdef PERL |
221 ifndef PERL_VER | |
10149
cd9823840f2e
commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
222 PERL_VER=524 |
6326 | 223 endif |
224 ifndef DYNAMIC_PERL | |
225 DYNAMIC_PERL=yes | |
226 endif | |
227 # on Linux, for cross-compile, it's here: | |
228 #PERLLIB=/home/ron/ActivePerl/lib | |
229 # on NT, it's here: | |
230 PERLEXE=$(PERL)/bin/perl | |
231 PERLLIB=$(PERL)/lib | |
232 PERLLIBS=$(PERLLIB)/Core | |
233 ifeq ($(UNDER_CYGWIN),yes) | |
234 PERLTYPEMAP:=$(shell cygpath -m $(PERLLIB)/ExtUtils/typemap) | |
235 XSUBPPTRY:=$(shell cygpath -m $(PERLLIB)/ExtUtils/xsubpp) | |
236 else | |
237 PERLTYPEMAP=$(PERLLIB)/ExtUtils/typemap | |
238 XSUBPPTRY=$(PERLLIB)/ExtUtils/xsubpp | |
239 endif | |
240 XSUBPP_EXISTS=$(shell $(PERLEXE) -e "print 1 unless -e '$(XSUBPPTRY)'") | |
241 ifeq "$(XSUBPP_EXISTS)" "" | |
6349 | 242 XSUBPP=$(PERLEXE) $(XSUBPPTRY) |
6326 | 243 else |
244 XSUBPP=xsubpp | |
245 endif | |
246 endif | |
247 | |
248 # Lua interface: | |
249 # 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
|
250 # 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
|
251 # LUA_INCDIR=[Path to Lua include directory] (default: $LUA/include) |
6326 | 252 # 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
|
253 # LUA_VER=[Lua version, eg 51, 52] (default is 53) |
6326 | 254 ifdef LUA |
255 ifndef DYNAMIC_LUA | |
256 DYNAMIC_LUA=yes | |
257 endif | |
258 | |
259 ifndef LUA_VER | |
10149
cd9823840f2e
commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
260 LUA_VER=53 |
6326 | 261 endif |
262 | |
263 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
|
264 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
|
265 LUA_LIB = -L$(LUA_LIBDIR) -llua |
6326 | 266 endif |
267 | |
268 endif | |
269 | |
270 # MzScheme interface: | |
271 # MZSCHEME=[Path to MzScheme directory] (Set inside Make_cyg.mak or Make_ming.mak) | |
272 # 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
|
273 # 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
|
274 # 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
|
275 # C:\Program Files (x86)\Racket\lib\libracket3m_XXXXXX.dll |
6326 | 276 # MZSCHEME_DEBUG=no |
277 ifdef MZSCHEME | |
278 ifndef DYNAMIC_MZSCHEME | |
279 DYNAMIC_MZSCHEME=yes | |
280 endif | |
281 | |
282 ifndef MZSCHEME_VER | |
10149
cd9823840f2e
commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
283 MZSCHEME_VER=3m_a0solc |
6326 | 284 endif |
285 | |
286 # for version 4.x we need to generate byte-code for Scheme base | |
287 ifndef MZSCHEME_GENERATE_BASE | |
288 MZSCHEME_GENERATE_BASE=no | |
289 endif | |
290 | |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
291 ifneq ($(wildcard $(MZSCHEME)/lib/msvc/libmzsch$(MZSCHEME_VER).lib),) |
6326 | 292 MZSCHEME_MAIN_LIB=mzsch |
293 else | |
294 MZSCHEME_MAIN_LIB=racket | |
295 endif | |
296 | |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
297 ifndef MZSCHEME_PRECISE_GC |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
298 MZSCHEME_PRECISE_GC=no |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
299 ifneq ($(wildcard $(MZSCHEME)\lib\lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll),) |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
300 ifeq ($(wildcard $(MZSCHEME)\lib\libmzgc$(MZSCHEME_VER).dll),) |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
301 MZSCHEME_PRECISE_GC=yes |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
302 endif |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
303 else |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
304 ifneq ($(wildcard $(MZSCHEME)\lib\msvc\lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).lib),) |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
305 ifeq ($(wildcard $(MZSCHEME)\lib\msvc\libmzgc$(MZSCHEME_VER).lib),) |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
306 MZSCHEME_PRECISE_GC=yes |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
307 endif |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
308 endif |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
309 endif |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
310 endif |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
311 |
6326 | 312 ifeq (no,$(DYNAMIC_MZSCHEME)) |
313 ifeq (yes,$(MZSCHEME_PRECISE_GC)) | |
314 MZSCHEME_LIB=-l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER) | |
315 else | |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
316 MZSCHEME_LIB=-l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER) -lmzgc$(MZSCHEME_VER) |
6326 | 317 endif |
318 # the modern MinGW can dynamically link to dlls directly. | |
319 # point MZSCHEME_DLLS to where you put libmzschXXXXXXX.dll and libgcXXXXXXX.dll | |
320 ifndef MZSCHEME_DLLS | |
321 MZSCHEME_DLLS=$(MZSCHEME) | |
322 endif | |
323 MZSCHEME_LIBDIR=-L$(MZSCHEME_DLLS) -L$(MZSCHEME_DLLS)\lib | |
324 endif | |
325 | |
326 endif | |
327 | |
328 # Python interface: | |
329 # PYTHON=[Path to Python directory] (Set inside Make_cyg.mak or Make_ming.mak) | |
330 # 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
|
331 # PYTHON_VER=[Python version, eg 22, 23, ..., 27] (default is 27) |
6326 | 332 ifdef PYTHON |
333 ifndef DYNAMIC_PYTHON | |
334 DYNAMIC_PYTHON=yes | |
335 endif | |
336 | |
337 ifndef PYTHON_VER | |
7456
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6872
diff
changeset
|
338 PYTHON_VER=27 |
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6872
diff
changeset
|
339 endif |
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6872
diff
changeset
|
340 ifndef DYNAMIC_PYTHON_DLL |
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6872
diff
changeset
|
341 DYNAMIC_PYTHON_DLL=python$(PYTHON_VER).dll |
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6872
diff
changeset
|
342 endif |
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6872
diff
changeset
|
343 ifdef PYTHON_HOME |
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6872
diff
changeset
|
344 PYTHON_HOME_DEF=-DPYTHON_HOME=\"$(PYTHON_HOME)\" |
6326 | 345 endif |
346 | |
347 ifeq (no,$(DYNAMIC_PYTHON)) | |
348 PYTHONLIB=-L$(PYTHON)/libs -lpython$(PYTHON_VER) | |
349 endif | |
350 # my include files are in 'win32inc' on Linux, and 'include' in the standard | |
351 # NT distro (ActiveState) | |
7456
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6872
diff
changeset
|
352 ifndef PYTHONINC |
6326 | 353 ifeq ($(CROSS),no) |
354 PYTHONINC=-I $(PYTHON)/include | |
355 else | |
356 PYTHONINC=-I $(PYTHON)/win32inc | |
357 endif | |
358 endif | |
7456
2c5e813e8852
commit https://github.com/vim/vim/commit/3c6f92e52ef15df4aa248ce00eacd65928044210
Christian Brabandt <cb@256bit.org>
parents:
6872
diff
changeset
|
359 endif |
6326 | 360 |
361 # Python3 interface: | |
362 # PYTHON3=[Path to Python3 directory] (Set inside Make_cyg.mak or Make_ming.mak) | |
363 # 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
|
364 # PYTHON3_VER=[Python3 version, eg 31, 32] (default is 36) |
6326 | 365 ifdef PYTHON3 |
366 ifndef DYNAMIC_PYTHON3 | |
367 DYNAMIC_PYTHON3=yes | |
368 endif | |
369 | |
370 ifndef PYTHON3_VER | |
13018
8862bf5adf7b
patch 8.0.1385: Python 3.5 is getting old
Christian Brabandt <cb@256bit.org>
parents:
12871
diff
changeset
|
371 PYTHON3_VER=36 |
6326 | 372 endif |
7695
a865f9773cb2
commit https://github.com/vim/vim/commit/a7c3795a2e65233ba2d187d680acc83bf6bf4ef5
Christian Brabandt <cb@256bit.org>
parents:
7609
diff
changeset
|
373 ifndef DYNAMIC_PYTHON3_DLL |
a865f9773cb2
commit https://github.com/vim/vim/commit/a7c3795a2e65233ba2d187d680acc83bf6bf4ef5
Christian Brabandt <cb@256bit.org>
parents:
7609
diff
changeset
|
374 DYNAMIC_PYTHON3_DLL=python$(PYTHON3_VER).dll |
a865f9773cb2
commit https://github.com/vim/vim/commit/a7c3795a2e65233ba2d187d680acc83bf6bf4ef5
Christian Brabandt <cb@256bit.org>
parents:
7609
diff
changeset
|
375 endif |
a865f9773cb2
commit https://github.com/vim/vim/commit/a7c3795a2e65233ba2d187d680acc83bf6bf4ef5
Christian Brabandt <cb@256bit.org>
parents:
7609
diff
changeset
|
376 ifdef PYTHON3_HOME |
8076
3b0127287851
commit https://github.com/vim/vim/commit/acd58ef676bb9559ac0f635f66b62f4602929c87
Christian Brabandt <cb@256bit.org>
parents:
8064
diff
changeset
|
377 PYTHON3_HOME_DEF=-DPYTHON3_HOME=L\"$(PYTHON3_HOME)\" |
7695
a865f9773cb2
commit https://github.com/vim/vim/commit/a7c3795a2e65233ba2d187d680acc83bf6bf4ef5
Christian Brabandt <cb@256bit.org>
parents:
7609
diff
changeset
|
378 endif |
6326 | 379 |
380 ifeq (no,$(DYNAMIC_PYTHON3)) | |
7695
a865f9773cb2
commit https://github.com/vim/vim/commit/a7c3795a2e65233ba2d187d680acc83bf6bf4ef5
Christian Brabandt <cb@256bit.org>
parents:
7609
diff
changeset
|
381 PYTHON3LIB=-L$(PYTHON3)/libs -lpython$(PYTHON3_VER) |
6326 | 382 endif |
383 | |
7695
a865f9773cb2
commit https://github.com/vim/vim/commit/a7c3795a2e65233ba2d187d680acc83bf6bf4ef5
Christian Brabandt <cb@256bit.org>
parents:
7609
diff
changeset
|
384 ifndef PYTHON3INC |
6326 | 385 ifeq ($(CROSS),no) |
386 PYTHON3INC=-I $(PYTHON3)/include | |
387 else | |
388 PYTHON3INC=-I $(PYTHON3)/win32inc | |
389 endif | |
390 endif | |
7695
a865f9773cb2
commit https://github.com/vim/vim/commit/a7c3795a2e65233ba2d187d680acc83bf6bf4ef5
Christian Brabandt <cb@256bit.org>
parents:
7609
diff
changeset
|
391 endif |
6326 | 392 |
393 # TCL interface: | |
394 # TCL=[Path to TCL directory] (Set inside Make_cyg.mak or Make_ming.mak) | |
395 # 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
|
396 # 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
|
397 # 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
|
398 # 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
|
399 # TCL_DLL=[TCL dll name, eg tcl86.dll] (default is tcl86.dll) |
6326 | 400 ifdef TCL |
401 ifndef DYNAMIC_TCL | |
402 DYNAMIC_TCL=yes | |
403 endif | |
404 ifndef TCL_VER | |
10149
cd9823840f2e
commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
405 TCL_VER = 86 |
6326 | 406 endif |
7523
55cd9a99514d
commit https://github.com/vim/vim/commit/eca99bd45f094b1b12e22b9d6b206bd05dc9a38c
Christian Brabandt <cb@256bit.org>
parents:
7521
diff
changeset
|
407 ifndef TCL_VER_LONG |
10149
cd9823840f2e
commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
408 TCL_VER_LONG = 8.6 |
7523
55cd9a99514d
commit https://github.com/vim/vim/commit/eca99bd45f094b1b12e22b9d6b206bd05dc9a38c
Christian Brabandt <cb@256bit.org>
parents:
7521
diff
changeset
|
409 endif |
12218
cd366d80d53e
patch 8.0.0989: ActiveTcl dll name has changed in 8.6.6
Christian Brabandt <cb@256bit.org>
parents:
12210
diff
changeset
|
410 ifndef TCL_DLL |
cd366d80d53e
patch 8.0.0989: ActiveTcl dll name has changed in 8.6.6
Christian Brabandt <cb@256bit.org>
parents:
12210
diff
changeset
|
411 TCL_DLL = tcl$(TCL_VER).dll |
cd366d80d53e
patch 8.0.0989: ActiveTcl dll name has changed in 8.6.6
Christian Brabandt <cb@256bit.org>
parents:
12210
diff
changeset
|
412 endif |
6326 | 413 TCLINC += -I$(TCL)/include |
414 endif | |
415 | |
416 | |
417 # Ruby interface: | |
418 # 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
|
419 # 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
|
420 # RUBY_VER=[Ruby version, eg 19, 22] (default is 22) |
8bfcb960e6bd
commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents:
9583
diff
changeset
|
421 # RUBY_API_VER_LONG=[Ruby API version, eg 1.8, 1.9.1, 2.2.0] |
8bfcb960e6bd
commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents:
9583
diff
changeset
|
422 # (default is 2.2.0) |
8bfcb960e6bd
commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents:
9583
diff
changeset
|
423 # You must set RUBY_API_VER_LONG when changing RUBY_VER. |
6326 | 424 # Note: If you use Ruby 1.9.3, set as follows: |
425 # RUBY_VER=19 | |
10138
8bfcb960e6bd
commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents:
9583
diff
changeset
|
426 # RUBY_API_VER_LONG=1.9.1 (not 1.9.3, because the API version is 1.9.1.) |
6326 | 427 ifdef RUBY |
428 ifndef DYNAMIC_RUBY | |
429 DYNAMIC_RUBY=yes | |
430 endif | |
431 # Set default value | |
432 ifndef RUBY_VER | |
10138
8bfcb960e6bd
commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents:
9583
diff
changeset
|
433 RUBY_VER = 22 |
6326 | 434 endif |
435 ifndef RUBY_VER_LONG | |
10138
8bfcb960e6bd
commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents:
9583
diff
changeset
|
436 RUBY_VER_LONG = 2.2.0 |
8bfcb960e6bd
commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents:
9583
diff
changeset
|
437 endif |
8bfcb960e6bd
commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents:
9583
diff
changeset
|
438 ifndef RUBY_API_VER_LONG |
10149
cd9823840f2e
commit https://github.com/vim/vim/commit/0eaadec6b275a8add49242e1940855fcd154ba64
Christian Brabandt <cb@256bit.org>
parents:
10138
diff
changeset
|
439 RUBY_API_VER_LONG = $(RUBY_VER_LONG) |
6326 | 440 endif |
441 ifndef RUBY_API_VER | |
10138
8bfcb960e6bd
commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents:
9583
diff
changeset
|
442 RUBY_API_VER = $(subst .,,$(RUBY_API_VER_LONG)) |
6326 | 443 endif |
444 | |
445 ifndef RUBY_PLATFORM | |
446 ifeq ($(RUBY_VER), 16) | |
447 RUBY_PLATFORM = i586-mswin32 | |
448 else | |
10138
8bfcb960e6bd
commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents:
9583
diff
changeset
|
449 ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_API_VER_LONG)/i386-mingw32),) |
6326 | 450 RUBY_PLATFORM = i386-mingw32 |
451 else | |
10138
8bfcb960e6bd
commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents:
9583
diff
changeset
|
452 ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_API_VER_LONG)/x64-mingw32),) |
6326 | 453 RUBY_PLATFORM = x64-mingw32 |
454 else | |
455 RUBY_PLATFORM = i386-mswin32 | |
456 endif | |
457 endif | |
458 endif | |
459 endif | |
460 | |
461 ifndef RUBY_INSTALL_NAME | |
462 ifeq ($(RUBY_VER), 16) | |
463 RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_API_VER) | |
464 else | |
7521
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
465 ifndef RUBY_MSVCRT_NAME |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
466 # 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
|
467 RUBY_MSVCRT_NAME = msvcrt |
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
468 endif |
6326 | 469 ifeq ($(ARCH),x86-64) |
7521
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
470 RUBY_INSTALL_NAME = x64-$(RUBY_MSVCRT_NAME)-ruby$(RUBY_API_VER) |
6326 | 471 else |
7521
665330ac1d78
commit https://github.com/vim/vim/commit/0bee2fe25aca7e8e5fefe55fe0f2c0e5e0878a98
Christian Brabandt <cb@256bit.org>
parents:
7456
diff
changeset
|
472 RUBY_INSTALL_NAME = $(RUBY_MSVCRT_NAME)-ruby$(RUBY_API_VER) |
6326 | 473 endif |
474 endif | |
475 endif | |
476 | |
477 ifeq (19, $(word 1,$(sort 19 $(RUBY_VER)))) | |
478 RUBY_19_OR_LATER = 1 | |
479 endif | |
480 | |
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
|
481 ifdef RUBY_19_OR_LATER |
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
|
482 RUBYINC = -I $(RUBY)/include/ruby-$(RUBY_API_VER_LONG) -I $(RUBY)/include/ruby-$(RUBY_API_VER_LONG)/$(RUBY_PLATFORM) |
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
|
483 else |
10138
8bfcb960e6bd
commit https://github.com/vim/vim/commit/6384c5db8dda70076c878d393ba19a1510695228
Christian Brabandt <cb@256bit.org>
parents:
9583
diff
changeset
|
484 RUBYINC = -I $(RUBY)/lib/ruby/$(RUBY_API_VER_LONG)/$(RUBY_PLATFORM) |
6326 | 485 endif |
486 ifeq (no, $(DYNAMIC_RUBY)) | |
487 RUBYLIB = -L$(RUBY)/lib -l$(RUBY_INSTALL_NAME) | |
488 endif | |
489 | |
490 endif # RUBY | |
491 | |
492 # See feature.h for a list of options. | |
493 # 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
|
494 DEF_GUI=-DFEAT_GUI_MSWIN -DFEAT_CLIPBOARD |
6326 | 495 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
|
496 -DHAVE_PATHDEF -DFEAT_$(FEATURES) -DHAVE_STDINT_H |
6326 | 497 ifeq ($(ARCH),x86-64) |
498 DEFINES+=-DMS_WIN64 | |
499 endif | |
500 | |
501 #>>>>> end of choices | |
502 ########################################################################### | |
503 | |
14937
d36dd08d36c1
patch 8.1.0480: MinGW build file uses different -I flags than MVC
Bram Moolenaar <Bram@vim.org>
parents:
14933
diff
changeset
|
504 CFLAGS = -I. -Iproto $(DEFINES) -pipe -march=$(ARCH) -Wall |
8696
869727342e43
commit https://github.com/vim/vim/commit/6c0e984f263fc1eef42c9b34a80eff1bceb8d05b
Christian Brabandt <cb@256bit.org>
parents:
8641
diff
changeset
|
505 CXXFLAGS = -std=gnu++11 |
6326 | 506 WINDRES_FLAGS = --preprocessor="$(WINDRES_CC) -E -xc" -DRC_INVOKED |
507 EXTRA_LIBS = | |
508 | |
509 ifdef GETTEXT | |
510 DEFINES += -DHAVE_GETTEXT -DHAVE_LOCALE_H | |
511 GETTEXTINCLUDE = $(GETTEXT)/include | |
512 GETTEXTLIB = $(INTLPATH) | |
513 ifeq (yes, $(GETTEXT)) | |
514 DEFINES += -DDYNAMIC_GETTEXT | |
515 else | |
516 ifdef DYNAMIC_GETTEXT | |
517 DEFINES += -D$(DYNAMIC_GETTEXT) | |
518 ifdef GETTEXT_DYNAMIC | |
519 DEFINES += -DGETTEXT_DYNAMIC -DGETTEXT_DLL=\"$(GETTEXT_DYNAMIC)\" | |
520 endif | |
521 endif | |
522 endif | |
523 endif | |
524 | |
525 ifdef PERL | |
6872 | 526 CFLAGS += -I$(PERLLIBS) -DFEAT_PERL -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS |
6326 | 527 ifeq (yes, $(DYNAMIC_PERL)) |
528 CFLAGS += -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl$(PERL_VER).dll\" | |
529 EXTRA_LIBS += -L$(PERLLIBS) -lperl$(PERL_VER) | |
530 endif | |
531 endif | |
532 | |
533 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
|
534 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
|
535 CFLAGS += -I$(LUA_INCDIR) -I$(LUA) -DFEAT_LUA |
6326 | 536 ifeq (yes, $(DYNAMIC_LUA)) |
537 CFLAGS += -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL=\"lua$(LUA_VER).dll\" | |
538 endif | |
539 endif | |
540 | |
541 ifdef MZSCHEME | |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
542 ifndef MZSCHEME_COLLECTS |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
543 MZSCHEME_COLLECTS=$(MZSCHEME)/collects |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
544 ifeq (yes, $(UNDER_CYGWIN)) |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
545 MZSCHEME_COLLECTS:=$(shell cygpath -m $(MZSCHEME_COLLECTS) | sed -e 's/ /\\ /g') |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
546 endif |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
547 endif |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
548 CFLAGS += -I$(MZSCHEME)/include -DFEAT_MZSCHEME -DMZSCHEME_COLLECTS=\"$(MZSCHEME_COLLECTS)\" |
6326 | 549 ifeq (yes, $(DYNAMIC_MZSCHEME)) |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
550 ifeq (yes, $(MZSCHEME_PRECISE_GC)) |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
551 # 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
|
552 CFLAGS += -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\" -DDYNAMIC_MZGC_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\" |
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
553 else |
6326 | 554 CFLAGS += -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\" -DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\" |
555 endif | |
7609
77a14f3bc18b
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Christian Brabandt <cb@256bit.org>
parents:
7532
diff
changeset
|
556 endif |
6326 | 557 ifeq (yes, "$(MZSCHEME_DEBUG)") |
558 CFLAGS += -DMZSCHEME_FORCE_GC | |
559 endif | |
560 endif | |
561 | |
562 ifdef RUBY | |
563 CFLAGS += -DFEAT_RUBY $(RUBYINC) | |
564 ifeq (yes, $(DYNAMIC_RUBY)) | |
565 CFLAGS += -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\" | |
566 CFLAGS += -DDYNAMIC_RUBY_VER=$(RUBY_VER) | |
567 endif | |
13738
1d8601bdd6e6
patch 8.0.1741: MS-Windows with msys2 cannot build Ruby statically
Christian Brabandt <cb@256bit.org>
parents:
13734
diff
changeset
|
568 ifeq (no, $(DYNAMIC_RUBY)) |
1d8601bdd6e6
patch 8.0.1741: MS-Windows with msys2 cannot build Ruby statically
Christian Brabandt <cb@256bit.org>
parents:
13734
diff
changeset
|
569 CFLAGS += -DRUBY_VERSION=$(RUBY_VER) |
1d8601bdd6e6
patch 8.0.1741: MS-Windows with msys2 cannot build Ruby statically
Christian Brabandt <cb@256bit.org>
parents:
13734
diff
changeset
|
570 endif |
6326 | 571 ifneq ($(findstring w64-mingw32,$(CC)),) |
572 # A workaround for MinGW-w64 | |
573 CFLAGS += -DHAVE_STRUCT_TIMESPEC -DHAVE_STRUCT_TIMEZONE | |
574 endif | |
575 endif | |
576 | |
577 ifdef PYTHON | |
8120
350f8040bd37
commit https://github.com/vim/vim/commit/223b723be0703137cf6373e23f8ae5c02e92ef82
Christian Brabandt <cb@256bit.org>
parents:
8076
diff
changeset
|
578 CFLAGS += -DFEAT_PYTHON |
6326 | 579 ifeq (yes, $(DYNAMIC_PYTHON)) |
7532
0acbe61244ac
commit https://github.com/vim/vim/commit/449538c3d2f7089dcaa1a888f09f41714faec9a6
Christian Brabandt <cb@256bit.org>
parents:
7523
diff
changeset
|
580 CFLAGS += -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"$(DYNAMIC_PYTHON_DLL)\" |
6326 | 581 endif |
582 endif | |
583 | |
8120
350f8040bd37
commit https://github.com/vim/vim/commit/223b723be0703137cf6373e23f8ae5c02e92ef82
Christian Brabandt <cb@256bit.org>
parents:
8076
diff
changeset
|
584 ifdef PYTHON3 |
350f8040bd37
commit https://github.com/vim/vim/commit/223b723be0703137cf6373e23f8ae5c02e92ef82
Christian Brabandt <cb@256bit.org>
parents:
8076
diff
changeset
|
585 CFLAGS += -DFEAT_PYTHON3 |
6326 | 586 ifeq (yes, $(DYNAMIC_PYTHON3)) |
7695
a865f9773cb2
commit https://github.com/vim/vim/commit/a7c3795a2e65233ba2d187d680acc83bf6bf4ef5
Christian Brabandt <cb@256bit.org>
parents:
7609
diff
changeset
|
587 CFLAGS += -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=\"$(DYNAMIC_PYTHON3_DLL)\" |
6326 | 588 endif |
589 endif | |
590 | |
591 ifdef TCL | |
592 CFLAGS += -DFEAT_TCL $(TCLINC) | |
593 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
|
594 CFLAGS += -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"$(TCL_DLL)\" -DDYNAMIC_TCL_VER=\"$(TCL_VER_LONG)\" |
6326 | 595 endif |
596 endif | |
597 | |
598 ifeq ($(POSTSCRIPT),yes) | |
599 DEFINES += -DMSWINPS | |
600 endif | |
601 | |
602 ifeq (yes, $(OLE)) | |
603 DEFINES += -DFEAT_OLE | |
604 endif | |
605 | |
606 ifeq ($(CSCOPE),yes) | |
607 DEFINES += -DFEAT_CSCOPE | |
608 endif | |
609 | |
610 ifeq ($(NETBEANS),yes) | |
611 # Only allow NETBEANS for a GUI build. | |
612 ifeq (yes, $(GUI)) | |
613 DEFINES += -DFEAT_NETBEANS_INTG | |
614 | |
615 ifeq ($(NBDEBUG), yes) | |
616 DEFINES += -DNBDEBUG | |
617 NBDEBUG_INCL = nbdebug.h | |
618 NBDEBUG_SRC = nbdebug.c | |
619 endif | |
620 endif | |
621 endif | |
622 | |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
623 ifeq ($(CHANNEL),yes) |
8493
caed4b2d305f
commit https://github.com/vim/vim/commit/509ce2a558e7e0c03242e32e844255af52f1c821
Christian Brabandt <cb@256bit.org>
parents:
8140
diff
changeset
|
624 DEFINES += -DFEAT_JOB_CHANNEL |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
625 endif |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
626 |
11696
0a6136dfce35
patch 8.0.0731: cannot build the terminal feature on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
10442
diff
changeset
|
627 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
|
628 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
|
629 TERM_DEPS = \ |
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
630 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
|
631 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
|
632 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
|
633 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
|
634 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
|
635 endif |
0a6136dfce35
patch 8.0.0731: cannot build the terminal feature on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
10442
diff
changeset
|
636 |
6326 | 637 # DirectWrite (DirectX) |
638 ifeq ($(DIRECTX),yes) | |
639 # Only allow DirectWrite for a GUI build. | |
640 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
|
641 DEFINES += -DFEAT_DIRECTX -DDYNAMIC_DIRECTX |
c83ec560409c
patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents:
13468
diff
changeset
|
642 ifneq ($(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
|
643 DEFINES += -DFEAT_DIRECTX_COLOR_EMOJI |
c83ec560409c
patch 8.0.1701: can disable COLOR_EMOJI with MSVC but not MinGW
Christian Brabandt <cb@256bit.org>
parents:
13468
diff
changeset
|
644 endif |
6326 | 645 endif |
646 endif | |
647 | |
648 # Only allow XPM for a GUI build. | |
649 ifeq (yes, $(GUI)) | |
650 | |
651 ifndef XPM | |
652 ifeq ($(ARCH),i386) | |
653 XPM = xpm/x86 | |
654 endif | |
655 ifeq ($(ARCH),i486) | |
656 XPM = xpm/x86 | |
657 endif | |
658 ifeq ($(ARCH),i586) | |
659 XPM = xpm/x86 | |
660 endif | |
661 ifeq ($(ARCH),i686) | |
662 XPM = xpm/x86 | |
663 endif | |
664 ifeq ($(ARCH),x86-64) | |
665 XPM = xpm/x64 | |
666 endif | |
667 endif | |
668 ifdef XPM | |
669 ifneq ($(XPM),no) | |
670 CFLAGS += -DFEAT_XPM_W32 -I $(XPM)/include -I $(XPM)/../include | |
671 endif | |
672 endif | |
673 | |
674 endif | |
675 | |
676 ifeq ($(DEBUG),yes) | |
677 CFLAGS += -g -fstack-check | |
678 DEBUG_SUFFIX=d | |
679 else | |
680 ifeq ($(OPTIMIZE), SIZE) | |
681 CFLAGS += -Os | |
682 else | |
683 ifeq ($(OPTIMIZE), MAXSPEED) | |
684 CFLAGS += -O3 | |
685 CFLAGS += -fomit-frame-pointer -freg-struct-return | |
686 else # SPEED | |
687 CFLAGS += -O2 | |
688 endif | |
689 endif | |
690 CFLAGS += -s | |
691 endif | |
692 | |
14133
352c2832d17f
patch 8.1.0084: user name completion does not work on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
13738
diff
changeset
|
693 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
|
694 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
|
695 CUIOBJ = $(OUTDIR)/iscygpty.o |
6326 | 696 OBJ = \ |
9403
9b048dced116
commit https://github.com/vim/vim/commit/75464dc434c43efac60e8bfd9bec2a8b736407e9
Christian Brabandt <cb@256bit.org>
parents:
9389
diff
changeset
|
697 $(OUTDIR)/arabic.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
|
698 $(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
|
699 $(OUTDIR)/beval.o \ |
15454
1d2b5c016f17
patch 8.1.0735: cannot handle binary data
Bram Moolenaar <Bram@vim.org>
parents:
15450
diff
changeset
|
700 $(OUTDIR)/blob.o \ |
6326 | 701 $(OUTDIR)/blowfish.o \ |
702 $(OUTDIR)/buffer.o \ | |
703 $(OUTDIR)/charset.o \ | |
704 $(OUTDIR)/crypt.o \ | |
705 $(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
|
706 $(OUTDIR)/debugger.o \ |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9507
diff
changeset
|
707 $(OUTDIR)/dict.o \ |
6326 | 708 $(OUTDIR)/diff.o \ |
709 $(OUTDIR)/digraph.o \ | |
710 $(OUTDIR)/edit.o \ | |
711 $(OUTDIR)/eval.o \ | |
9571
5eaa708ab50d
commit https://github.com/vim/vim/commit/73dad1e64cb42842d8259cb1a255a6fa59822f76
Christian Brabandt <cb@256bit.org>
parents:
9564
diff
changeset
|
712 $(OUTDIR)/evalfunc.o \ |
6326 | 713 $(OUTDIR)/ex_cmds.o \ |
714 $(OUTDIR)/ex_cmds2.o \ | |
715 $(OUTDIR)/ex_docmd.o \ | |
716 $(OUTDIR)/ex_eval.o \ | |
717 $(OUTDIR)/ex_getln.o \ | |
718 $(OUTDIR)/fileio.o \ | |
15814
99ebf78686a9
patch 8.1.0914: code related to findfile() is spread out
Bram Moolenaar <Bram@vim.org>
parents:
15707
diff
changeset
|
719 $(OUTDIR)/findfile.o \ |
6326 | 720 $(OUTDIR)/fold.o \ |
721 $(OUTDIR)/getchar.o \ | |
722 $(OUTDIR)/hardcopy.o \ | |
723 $(OUTDIR)/hashtab.o \ | |
15699
2d941023bd2f
patch 8.1.0857: indent functionality is not separated
Bram Moolenaar <Bram@vim.org>
parents:
15634
diff
changeset
|
724 $(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
|
725 $(OUTDIR)/insexpand.o \ |
7712
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
7699
diff
changeset
|
726 $(OUTDIR)/json.o \ |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9507
diff
changeset
|
727 $(OUTDIR)/list.o \ |
6326 | 728 $(OUTDIR)/main.o \ |
729 $(OUTDIR)/mark.o \ | |
730 $(OUTDIR)/memfile.o \ | |
731 $(OUTDIR)/memline.o \ | |
732 $(OUTDIR)/menu.o \ | |
733 $(OUTDIR)/message.o \ | |
734 $(OUTDIR)/misc1.o \ | |
735 $(OUTDIR)/misc2.o \ | |
736 $(OUTDIR)/move.o \ | |
737 $(OUTDIR)/mbyte.o \ | |
738 $(OUTDIR)/normal.o \ | |
739 $(OUTDIR)/ops.o \ | |
740 $(OUTDIR)/option.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
|
741 $(OUTDIR)/os_mswin.o \ |
b0e19f135e50
patch 8.1.1104: MS-Windows: not all environment variables can be used
Bram Moolenaar <Bram@vim.org>
parents:
16142
diff
changeset
|
742 $(OUTDIR)/os_w32exe.o \ |
6326 | 743 $(OUTDIR)/os_win32.o \ |
744 $(OUTDIR)/pathdef.o \ | |
745 $(OUTDIR)/popupmnu.o \ | |
746 $(OUTDIR)/quickfix.o \ | |
747 $(OUTDIR)/regexp.o \ | |
748 $(OUTDIR)/screen.o \ | |
749 $(OUTDIR)/search.o \ | |
750 $(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
|
751 $(OUTDIR)/sign.o \ |
6326 | 752 $(OUTDIR)/spell.o \ |
9583
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
9571
diff
changeset
|
753 $(OUTDIR)/spellfile.o \ |
6326 | 754 $(OUTDIR)/syntax.o \ |
755 $(OUTDIR)/tag.o \ | |
756 $(OUTDIR)/term.o \ | |
15138
9df130fd5e0d
patch 8.1.0579: cannot attach properties to text
Bram Moolenaar <Bram@vim.org>
parents:
14958
diff
changeset
|
757 $(OUTDIR)/textprop.o \ |
6326 | 758 $(OUTDIR)/ui.o \ |
759 $(OUTDIR)/undo.o \ | |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9507
diff
changeset
|
760 $(OUTDIR)/userfunc.o \ |
6326 | 761 $(OUTDIR)/version.o \ |
762 $(OUTDIR)/vimrc.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
|
763 $(OUTDIR)/winclip.o \ |
6326 | 764 $(OUTDIR)/window.o |
765 | |
766 ifdef PERL | |
767 OBJ += $(OUTDIR)/if_perl.o | |
768 endif | |
769 ifdef LUA | |
770 OBJ += $(OUTDIR)/if_lua.o | |
771 endif | |
772 ifdef MZSCHEME | |
773 OBJ += $(OUTDIR)/if_mzsch.o | |
774 MZSCHEME_INCL = if_mzsch.h | |
775 ifeq (yes,$(MZSCHEME_GENERATE_BASE)) | |
776 CFLAGS += -DINCLUDE_MZSCHEME_BASE | |
777 MZ_EXTRA_DEP += mzscheme_base.c | |
778 endif | |
779 ifeq (yes,$(MZSCHEME_PRECISE_GC)) | |
780 CFLAGS += -DMZ_PRECISE_GC | |
781 endif | |
782 endif | |
783 ifdef PYTHON | |
784 OBJ += $(OUTDIR)/if_python.o | |
785 endif | |
786 ifdef PYTHON3 | |
787 OBJ += $(OUTDIR)/if_python3.o | |
788 endif | |
789 ifdef RUBY | |
790 OBJ += $(OUTDIR)/if_ruby.o | |
791 endif | |
792 ifdef TCL | |
793 OBJ += $(OUTDIR)/if_tcl.o | |
794 endif | |
795 ifeq ($(CSCOPE),yes) | |
796 OBJ += $(OUTDIR)/if_cscope.o | |
797 endif | |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
798 |
6326 | 799 ifeq ($(NETBEANS),yes) |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
800 ifneq ($(CHANNEL),yes) |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
801 # Cannot use Netbeans without CHANNEL |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
802 NETBEANS=no |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
803 else |
8051
7e298e8c5741
commit https://github.com/vim/vim/commit/44d571868f4fcf000e8b03ee0a350f1f8131c9ca
Christian Brabandt <cb@256bit.org>
parents:
7755
diff
changeset
|
804 ifneq (yes, $(GUI)) |
7e298e8c5741
commit https://github.com/vim/vim/commit/44d571868f4fcf000e8b03ee0a350f1f8131c9ca
Christian Brabandt <cb@256bit.org>
parents:
7755
diff
changeset
|
805 # Cannot use Netbeans without GUI. |
7e298e8c5741
commit https://github.com/vim/vim/commit/44d571868f4fcf000e8b03ee0a350f1f8131c9ca
Christian Brabandt <cb@256bit.org>
parents:
7755
diff
changeset
|
806 NETBEANS=no |
7e298e8c5741
commit https://github.com/vim/vim/commit/44d571868f4fcf000e8b03ee0a350f1f8131c9ca
Christian Brabandt <cb@256bit.org>
parents:
7755
diff
changeset
|
807 else |
6326 | 808 OBJ += $(OUTDIR)/netbeans.o |
809 endif | |
810 endif | |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
811 endif |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
812 |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
813 ifeq ($(CHANNEL),yes) |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
814 OBJ += $(OUTDIR)/channel.o |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
815 LIB += -lwsock32 |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
816 endif |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
817 |
6326 | 818 ifeq ($(DIRECTX),yes) |
819 # Only allow DIRECTX for a GUI build. | |
820 ifeq (yes, $(GUI)) | |
821 OBJ += $(OUTDIR)/gui_dwrite.o | |
822 LIB += -ld2d1 -ldwrite | |
823 USE_STDCPLUS = yes | |
824 endif | |
825 endif | |
826 ifneq ($(XPM),no) | |
827 # Only allow XPM for a GUI build. | |
828 ifeq (yes, $(GUI)) | |
829 OBJ += $(OUTDIR)/xpm_w32.o | |
830 # You'll need libXpm.a from http://gnuwin32.sf.net | |
831 LIB += -L$(XPM)/lib -lXpm | |
832 endif | |
833 endif | |
834 | |
11696
0a6136dfce35
patch 8.0.0731: cannot build the terminal feature on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
10442
diff
changeset
|
835 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
|
836 OBJ += $(OUTDIR)/terminal.o \ |
14734
2c72fa16aa70
patch 8.1.0379: build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
14696
diff
changeset
|
837 $(OUTDIR)/encoding.o \ |
2c72fa16aa70
patch 8.1.0379: build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
14696
diff
changeset
|
838 $(OUTDIR)/keyboard.o \ |
2c72fa16aa70
patch 8.1.0379: build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
14696
diff
changeset
|
839 $(OUTDIR)/mouse.o \ |
2c72fa16aa70
patch 8.1.0379: build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
14696
diff
changeset
|
840 $(OUTDIR)/parser.o \ |
2c72fa16aa70
patch 8.1.0379: build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
14696
diff
changeset
|
841 $(OUTDIR)/pen.o \ |
2c72fa16aa70
patch 8.1.0379: build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
14696
diff
changeset
|
842 $(OUTDIR)/termscreen.o \ |
2c72fa16aa70
patch 8.1.0379: build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
14696
diff
changeset
|
843 $(OUTDIR)/state.o \ |
2c72fa16aa70
patch 8.1.0379: build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
14696
diff
changeset
|
844 $(OUTDIR)/unicode.o \ |
2c72fa16aa70
patch 8.1.0379: build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
14696
diff
changeset
|
845 $(OUTDIR)/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
|
846 endif |
0a6136dfce35
patch 8.0.0731: cannot build the terminal feature on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
10442
diff
changeset
|
847 |
14696
195e8b1fcbbf
patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents:
14222
diff
changeset
|
848 # 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
|
849 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
|
850 $(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
|
851 $(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
|
852 $(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
|
853 $(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
|
854 $(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
|
855 |
195e8b1fcbbf
patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents:
14222
diff
changeset
|
856 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
|
857 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
|
858 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
|
859 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
|
860 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
|
861 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
|
862 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
|
863 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
|
864 xdiff/xutils.h |
6326 | 865 |
866 ifdef MZSCHEME | |
867 MZSCHEME_SUFFIX = Z | |
868 endif | |
869 | |
16198
b0e19f135e50
patch 8.1.1104: MS-Windows: not all environment variables can be used
Bram Moolenaar <Bram@vim.org>
parents:
16142
diff
changeset
|
870 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
|
871 |
6326 | 872 ifeq ($(GUI),yes) |
873 TARGET := gvim$(DEBUG_SUFFIX).exe | |
874 DEFINES += $(DEF_GUI) | |
875 OBJ += $(GUIOBJ) | |
876 LFLAGS += -mwindows | |
877 OUTDIR = gobj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH) | |
878 else | |
9363
f9dda6450c76
commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
9203
diff
changeset
|
879 OBJ += $(CUIOBJ) |
6326 | 880 TARGET := vim$(DEBUG_SUFFIX).exe |
881 OUTDIR = obj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH) | |
882 endif | |
883 | |
884 ifdef GETTEXT | |
885 ifneq (yes, $(GETTEXT)) | |
886 CFLAGS += -I$(GETTEXTINCLUDE) | |
887 ifndef STATIC_GETTEXT | |
888 LIB += -L$(GETTEXTLIB) -l$(INTLLIB) | |
889 ifeq (USE_SAFE_GETTEXT_DLL, $(DYNAMIC_GETTEXT)) | |
890 OBJ+=$(SAFE_GETTEXT_DLL_OBJ) | |
891 endif | |
892 else | |
893 LIB += -L$(GETTEXTLIB) -lintl | |
894 endif | |
895 endif | |
896 endif | |
897 | |
898 ifdef PERL | |
899 ifeq (no, $(DYNAMIC_PERL)) | |
900 LIB += -L$(PERLLIBS) -lperl$(PERL_VER) | |
901 endif | |
902 endif | |
903 | |
904 ifdef TCL | |
905 LIB += -L$(TCL)/lib | |
906 ifeq (yes, $(DYNAMIC_TCL)) | |
907 LIB += -ltclstub$(TCL_VER) | |
908 else | |
909 LIB += -ltcl$(TCL_VER) | |
910 endif | |
911 endif | |
912 | |
913 ifeq (yes, $(OLE)) | |
914 LIB += -loleaut32 | |
915 OBJ += $(OUTDIR)/if_ole.o | |
916 USE_STDCPLUS = yes | |
917 endif | |
918 | |
919 ifeq (yes, $(IME)) | |
920 DEFINES += -DFEAT_MBYTE_IME | |
921 ifeq (yes, $(DYNAMIC_IME)) | |
922 DEFINES += -DDYNAMIC_IME | |
923 else | |
924 LIB += -limm32 | |
925 endif | |
926 endif | |
927 | |
928 ifdef ICONV | |
929 ifneq (yes, $(ICONV)) | |
930 LIB += -L$(ICONV) | |
931 CFLAGS += -I$(ICONV) | |
932 endif | |
933 DEFINES+=-DDYNAMIC_ICONV | |
934 endif | |
935 | |
936 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
|
937 LINK = $(CXX) |
6326 | 938 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
|
939 #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
|
940 LIB += -Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic |
14958
b898f9093199
patch 8.1.0490: MS-Windows: doesn't handle missing glibwinpthread-1.dll
Bram Moolenaar <Bram@vim.org>
parents:
14943
diff
changeset
|
941 endif |
6326 | 942 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
|
943 LINK = $(CC) |
6326 | 944 endif |
945 | |
10442
70680eba1940
commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents:
10149
diff
changeset
|
946 ifeq (yes, $(STATIC_WINPTHREAD)) |
14958
b898f9093199
patch 8.1.0490: MS-Windows: doesn't handle missing glibwinpthread-1.dll
Bram Moolenaar <Bram@vim.org>
parents:
14943
diff
changeset
|
947 ifeq (yes, $(HAS_GCC_EH)) |
b898f9093199
patch 8.1.0490: MS-Windows: doesn't handle missing glibwinpthread-1.dll
Bram Moolenaar <Bram@vim.org>
parents:
14943
diff
changeset
|
948 LIB += -lgcc_eh |
b898f9093199
patch 8.1.0490: MS-Windows: doesn't handle missing glibwinpthread-1.dll
Bram Moolenaar <Bram@vim.org>
parents:
14943
diff
changeset
|
949 endif |
10442
70680eba1940
commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents:
10149
diff
changeset
|
950 LIB += -Wl,-Bstatic -lwinpthread -Wl,-Bdynamic |
70680eba1940
commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents:
10149
diff
changeset
|
951 endif |
70680eba1940
commit https://github.com/vim/vim/commit/e3af763d5e6b90a9b5d5706920e669fd8f0b6c77
Christian Brabandt <cb@256bit.org>
parents:
10149
diff
changeset
|
952 |
14820
8ff32a34f25e
patch 8.1.0422: cannot create map file with MinGW
Christian Brabandt <cb@256bit.org>
parents:
14818
diff
changeset
|
953 ifeq (yes, $(MAP)) |
8ff32a34f25e
patch 8.1.0422: cannot create map file with MinGW
Christian Brabandt <cb@256bit.org>
parents:
14818
diff
changeset
|
954 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
|
955 endif |
8ff32a34f25e
patch 8.1.0422: cannot create map file with MinGW
Christian Brabandt <cb@256bit.org>
parents:
14818
diff
changeset
|
956 |
14943
d95d6580d84b
patch 8.1.0483: MinGW does not build tee.exe
Bram Moolenaar <Bram@vim.org>
parents:
14941
diff
changeset
|
957 all: $(TARGET) vimrun.exe xxd/xxd.exe tee/tee.exe install.exe uninstal.exe GvimExt/gvimext.dll |
6326 | 958 |
959 vimrun.exe: vimrun.c | |
960 $(CC) $(CFLAGS) -o vimrun.exe vimrun.c $(LIB) | |
961 | |
962 install.exe: dosinst.c | |
963 $(CC) $(CFLAGS) -o install.exe dosinst.c $(LIB) -lole32 -luuid | |
964 | |
965 uninstal.exe: uninstal.c | |
966 $(CC) $(CFLAGS) -o uninstal.exe uninstal.c $(LIB) | |
967 | |
968 $(TARGET): $(OUTDIR) $(OBJ) | |
14958
b898f9093199
patch 8.1.0490: MS-Windows: doesn't handle missing glibwinpthread-1.dll
Bram Moolenaar <Bram@vim.org>
parents:
14943
diff
changeset
|
969 $(LINK) $(CFLAGS) $(LFLAGS) -o $@ $(OBJ) $(LIB) -lole32 -luuid $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB) |
6326 | 970 |
971 upx: exes | |
972 upx gvim.exe | |
973 upx vim.exe | |
974 | |
975 mpress: exes | |
976 mpress gvim.exe | |
977 mpress vim.exe | |
978 | |
979 xxd/xxd.exe: xxd/xxd.c | |
980 $(MAKE) -C xxd -f Make_ming.mak CC='$(CC)' | |
981 | |
14943
d95d6580d84b
patch 8.1.0483: MinGW does not build tee.exe
Bram Moolenaar <Bram@vim.org>
parents:
14941
diff
changeset
|
982 tee/tee.exe: tee/tee.c |
d95d6580d84b
patch 8.1.0483: MinGW does not build tee.exe
Bram Moolenaar <Bram@vim.org>
parents:
14941
diff
changeset
|
983 $(MAKE) -C tee CC='$(CC)' |
d95d6580d84b
patch 8.1.0483: MinGW does not build tee.exe
Bram Moolenaar <Bram@vim.org>
parents:
14941
diff
changeset
|
984 |
6326 | 985 GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h |
986 $(MAKE) -C GvimExt -f Make_ming.mak CROSS=$(CROSS) CROSS_COMPILE=$(CROSS_COMPILE) CXX='$(CXX)' STATIC_STDCPLUS=$(STATIC_STDCPLUS) | |
987 | |
12305
d4a3ad146204
patch 8.0.1032: "make tags" doesn't work well on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12218
diff
changeset
|
988 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
|
989 $(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
|
990 |
d4a3ad146204
patch 8.0.1032: "make tags" doesn't work well on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12218
diff
changeset
|
991 notags: |
d4a3ad146204
patch 8.0.1032: "make tags" doesn't work well on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12218
diff
changeset
|
992 -$(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
|
993 |
6326 | 994 clean: |
995 -$(DEL) $(OUTDIR)$(DIRSLASH)*.o | |
996 -$(DEL) $(OUTDIR)$(DIRSLASH)*.res | |
997 -rmdir $(OUTDIR) | |
14941
da4980d6052b
patch 8.1.0482: MinGW "make clean" deletes all .exe files
Bram Moolenaar <Bram@vim.org>
parents:
14937
diff
changeset
|
998 -$(DEL) $(TARGET) vimrun.exe install.exe uninstal.exe |
6326 | 999 -$(DEL) pathdef.c |
1000 ifdef PERL | |
1001 -$(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
|
1002 -$(DEL) auto$(DIRSLASH)if_perl.c |
6326 | 1003 endif |
1004 ifdef MZSCHEME | |
1005 -$(DEL) mzscheme_base.c | |
1006 endif | |
1007 $(MAKE) -C GvimExt -f Make_ming.mak clean | |
1008 $(MAKE) -C xxd -f Make_ming.mak clean | |
14943
d95d6580d84b
patch 8.1.0483: MinGW does not build tee.exe
Bram Moolenaar <Bram@vim.org>
parents:
14941
diff
changeset
|
1009 $(MAKE) -C tee clean |
6326 | 1010 |
1011 ########################################################################### | |
16068
8c160339de22
patch 8.1.1039: MS-Windows build fails
Bram Moolenaar <Bram@vim.org>
parents:
15912
diff
changeset
|
1012 INCL = vim.h alloc.h ascii.h ex_cmds.h feature.h globals.h \ |
12525
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1013 keymap.h macros.h option.h os_dos.h os_win32.h proto.h regexp.h \ |
12871
1a450ce6980c
patch 8.0.1312: balloon_show() only works in terminal when compiled with GUI
Christian Brabandt <cb@256bit.org>
parents:
12628
diff
changeset
|
1014 spell.h structs.h term.h beval.h $(NBDEBUG_INCL) |
1a450ce6980c
patch 8.0.1312: balloon_show() only works in terminal when compiled with GUI
Christian Brabandt <cb@256bit.org>
parents:
12628
diff
changeset
|
1015 GUI_INCL = gui.h |
9363
f9dda6450c76
commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
9203
diff
changeset
|
1016 CUI_INCL = iscygpty.h |
6326 | 1017 |
12525
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1018 $(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
|
1019 $(CC) -c $(CFLAGS) $(PYTHONINC) $(PYTHON_HOME_DEF) $< -o $@ |
6326 | 1020 |
12525
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1021 $(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
|
1022 $(CC) -c $(CFLAGS) $(PYTHON3INC) $(PYTHON3_HOME_DEF) $< -o $@ |
6326 | 1023 |
1024 $(OUTDIR)/%.o : %.c $(INCL) | |
1025 $(CC) -c $(CFLAGS) $< -o $@ | |
1026 | |
12525
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1027 $(OUTDIR)/vimrc.o: vim.rc version.h gui_w32_rc.h |
6326 | 1028 $(WINDRES) $(WINDRES_FLAGS) $(DEFINES) \ |
1029 --input-format=rc --output-format=coff -i vim.rc -o $@ | |
1030 | |
1031 $(OUTDIR): | |
1032 $(MKDIR) $(OUTDIR) | |
1033 | |
11782
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1034 $(OUTDIR)/gui_dwrite.o: gui_dwrite.cpp $(INCL) gui_dwrite.h |
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1035 $(CC) -c $(CFLAGS) $(CXXFLAGS) gui_dwrite.cpp -o $(OUTDIR)/gui_dwrite.o |
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1036 |
12525
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1037 $(OUTDIR)/gui.o: gui.c $(INCL) $(GUI_INCL) |
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1038 $(CC) -c $(CFLAGS) gui.c -o $(OUTDIR)/gui.o |
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1039 |
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
|
1040 $(OUTDIR)/beval.o: beval.c $(INCL) $(GUI_INCL) |
1a450ce6980c
patch 8.0.1312: balloon_show() only works in terminal when compiled with GUI
Christian Brabandt <cb@256bit.org>
parents:
12628
diff
changeset
|
1041 $(CC) -c $(CFLAGS) beval.c -o $(OUTDIR)/beval.o |
1a450ce6980c
patch 8.0.1312: balloon_show() only works in terminal when compiled with GUI
Christian Brabandt <cb@256bit.org>
parents:
12628
diff
changeset
|
1042 |
12525
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1043 $(OUTDIR)/gui_beval.o: gui_beval.c $(INCL) $(GUI_INCL) |
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1044 $(CC) -c $(CFLAGS) gui_beval.c -o $(OUTDIR)/gui_beval.o |
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1045 |
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1046 $(OUTDIR)/gui_w32.o: gui_w32.c $(INCL) $(GUI_INCL) |
6326 | 1047 $(CC) -c $(CFLAGS) gui_w32.c -o $(OUTDIR)/gui_w32.o |
1048 | |
1049 $(OUTDIR)/if_cscope.o: if_cscope.c $(INCL) if_cscope.h | |
1050 $(CC) -c $(CFLAGS) if_cscope.c -o $(OUTDIR)/if_cscope.o | |
1051 | |
12525
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1052 $(OUTDIR)/if_mzsch.o: if_mzsch.c $(INCL) $(MZSCHEME_INCL) $(MZ_EXTRA_DEP) |
11782
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1053 $(CC) -c $(CFLAGS) if_mzsch.c -o $(OUTDIR)/if_mzsch.o |
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1054 |
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1055 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
|
1056 $(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
|
1057 |
6326 | 1058 # 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
|
1059 $(OUTDIR)/if_ole.o: if_ole.cpp $(INCL) if_ole.h |
8641
0af716a4f5d2
commit https://github.com/vim/vim/commit/cc6cf9b9f9045a7d8b5923ea0c556e9a4c2567d3
Christian Brabandt <cb@256bit.org>
parents:
8493
diff
changeset
|
1060 $(CC) $(CFLAGS) $(CXXFLAGS) -c -o $(OUTDIR)/if_ole.o if_ole.cpp |
6326 | 1061 |
14925
8b1b3228c410
patch 8.1.0474: directory where if_perl.c is written is inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
14820
diff
changeset
|
1062 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
|
1063 $(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
|
1064 $(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
|
1065 |
14925
8b1b3228c410
patch 8.1.0474: directory where if_perl.c is written is inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
14820
diff
changeset
|
1066 $(OUTDIR)/if_perl.o: auto/if_perl.c $(INCL) |
14937
d36dd08d36c1
patch 8.1.0480: MinGW build file uses different -I flags than MVC
Bram Moolenaar <Bram@vim.org>
parents:
14933
diff
changeset
|
1067 $(CC) -c $(CFLAGS) auto/if_perl.c -o $(OUTDIR)/if_perl.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
|
1068 |
8b1b3228c410
patch 8.1.0474: directory where if_perl.c is written is inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
14820
diff
changeset
|
1069 |
12525
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1070 $(OUTDIR)/if_ruby.o: if_ruby.c $(INCL) |
6326 | 1071 ifeq (16, $(RUBY)) |
1072 $(CC) $(CFLAGS) -U_WIN32 -c -o $(OUTDIR)/if_ruby.o if_ruby.c | |
1073 endif | |
1074 | |
9363
f9dda6450c76
commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
9203
diff
changeset
|
1075 $(OUTDIR)/iscygpty.o: iscygpty.c $(CUI_INCL) |
9471
2f2b96276941
commit https://github.com/vim/vim/commit/2bc127f94016801250f8f24234f90a5182d77e73
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
1076 $(CC) -c $(CFLAGS) iscygpty.c -o $(OUTDIR)/iscygpty.o -U_WIN32_WINNT -D_WIN32_WINNT=0x0600 -DUSE_DYNFILEID -DENABLE_STUB_IMPL |
9363
f9dda6450c76
commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
9203
diff
changeset
|
1077 |
12525
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1078 $(OUTDIR)/main.o: main.c $(INCL) $(CUI_INCL) |
9363
f9dda6450c76
commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
9203
diff
changeset
|
1079 $(CC) -c $(CFLAGS) main.c -o $(OUTDIR)/main.o |
f9dda6450c76
commit https://github.com/vim/vim/commit/97ff9b9cffd97219d888874b9b3811d55e99c78f
Christian Brabandt <cb@256bit.org>
parents:
9203
diff
changeset
|
1080 |
6326 | 1081 $(OUTDIR)/netbeans.o: netbeans.c $(INCL) $(NBDEBUG_INCL) $(NBDEBUG_SRC) |
1082 $(CC) -c $(CFLAGS) netbeans.c -o $(OUTDIR)/netbeans.o | |
1083 | |
12525
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1084 $(OUTDIR)/os_win32.o: os_win32.c $(INCL) $(MZSCHEME_INCL) |
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1085 $(CC) -c $(CFLAGS) os_win32.c -o $(OUTDIR)/os_win32.o |
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1086 |
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1087 $(OUTDIR)/regexp.o: regexp.c regexp_nfa.c $(INCL) |
6326 | 1088 $(CC) -c $(CFLAGS) regexp.c -o $(OUTDIR)/regexp.o |
1089 | |
11782
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1090 $(OUTDIR)/terminal.o: terminal.c $(INCL) $(TERM_DEPS) |
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1091 $(CC) -c $(CFLAGS) terminal.c -o $(OUTDIR)/terminal.o |
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1092 |
15138
9df130fd5e0d
patch 8.1.0579: cannot attach properties to text
Bram Moolenaar <Bram@vim.org>
parents:
14958
diff
changeset
|
1093 $(OUTDIR)/textprop.o: textprop.c $(INCL) |
9df130fd5e0d
patch 8.1.0579: cannot attach properties to text
Bram Moolenaar <Bram@vim.org>
parents:
14958
diff
changeset
|
1094 $(CC) -c $(CFLAGS) textprop.c -o $(OUTDIR)/textprop.o |
9df130fd5e0d
patch 8.1.0579: cannot attach properties to text
Bram Moolenaar <Bram@vim.org>
parents:
14958
diff
changeset
|
1095 |
11782
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1096 |
12210
b9b06aa0b6d9
patch 8.0.0985: libvterm has its own idea of character width
Christian Brabandt <cb@256bit.org>
parents:
11782
diff
changeset
|
1097 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
|
1098 -DVSNPRINTF=vim_vsnprintf \ |
b9b06aa0b6d9
patch 8.0.0985: libvterm has its own idea of character width
Christian Brabandt <cb@256bit.org>
parents:
11782
diff
changeset
|
1099 -DIS_COMBINING_FUNCTION=utf_iscomposing_uint \ |
b9b06aa0b6d9
patch 8.0.0985: libvterm has its own idea of character width
Christian Brabandt <cb@256bit.org>
parents:
11782
diff
changeset
|
1100 -DWCWIDTH_FUNCTION=utf_uint2cells |
b9b06aa0b6d9
patch 8.0.0985: libvterm has its own idea of character width
Christian Brabandt <cb@256bit.org>
parents:
11782
diff
changeset
|
1101 |
14734
2c72fa16aa70
patch 8.1.0379: build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
14696
diff
changeset
|
1102 $(OUTDIR)/encoding.o: libvterm/src/encoding.c $(TERM_DEPS) |
11782
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1103 $(CCCTERM) libvterm/src/encoding.c -o $@ |
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1104 |
14734
2c72fa16aa70
patch 8.1.0379: build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
14696
diff
changeset
|
1105 $(OUTDIR)/keyboard.o: libvterm/src/keyboard.c $(TERM_DEPS) |
11782
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1106 $(CCCTERM) libvterm/src/keyboard.c -o $@ |
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1107 |
14734
2c72fa16aa70
patch 8.1.0379: build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
14696
diff
changeset
|
1108 $(OUTDIR)/mouse.o: libvterm/src/mouse.c $(TERM_DEPS) |
11782
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1109 $(CCCTERM) libvterm/src/mouse.c -o $@ |
6326 | 1110 |
14734
2c72fa16aa70
patch 8.1.0379: build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
14696
diff
changeset
|
1111 $(OUTDIR)/parser.o: libvterm/src/parser.c $(TERM_DEPS) |
11782
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1112 $(CCCTERM) libvterm/src/parser.c -o $@ |
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1113 |
14734
2c72fa16aa70
patch 8.1.0379: build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
14696
diff
changeset
|
1114 $(OUTDIR)/pen.o: libvterm/src/pen.c $(TERM_DEPS) |
11782
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1115 $(CCCTERM) libvterm/src/pen.c -o $@ |
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1116 |
14734
2c72fa16aa70
patch 8.1.0379: build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
14696
diff
changeset
|
1117 $(OUTDIR)/termscreen.o: libvterm/src/termscreen.c $(TERM_DEPS) |
2c72fa16aa70
patch 8.1.0379: build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
14696
diff
changeset
|
1118 $(CCCTERM) libvterm/src/termscreen.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
|
1119 |
14734
2c72fa16aa70
patch 8.1.0379: build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
14696
diff
changeset
|
1120 $(OUTDIR)/state.o: libvterm/src/state.c $(TERM_DEPS) |
11782
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1121 $(CCCTERM) libvterm/src/state.c -o $@ |
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1122 |
14734
2c72fa16aa70
patch 8.1.0379: build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
14696
diff
changeset
|
1123 $(OUTDIR)/unicode.o: libvterm/src/unicode.c $(TERM_DEPS) |
11782
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1124 $(CCCTERM) libvterm/src/unicode.c -o $@ |
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1125 |
14734
2c72fa16aa70
patch 8.1.0379: build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
14696
diff
changeset
|
1126 $(OUTDIR)/vterm.o: libvterm/src/vterm.c $(TERM_DEPS) |
11782
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1127 $(CCCTERM) libvterm/src/vterm.c -o $@ |
112427b2de52
patch 8.0.0773: mixing 32 and 64 bit libvterm builds fails
Christian Brabandt <cb@256bit.org>
parents:
11774
diff
changeset
|
1128 |
14696
195e8b1fcbbf
patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents:
14222
diff
changeset
|
1129 $(OUTDIR)/xdiffi.o: xdiff/xdiffi.c $(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
|
1130 $(CC) -c $(CFLAGS) xdiff/xdiffi.c -o $(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
|
1131 |
195e8b1fcbbf
patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents:
14222
diff
changeset
|
1132 $(OUTDIR)/xemit.o: xdiff/xemit.c $(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
|
1133 $(CC) -c $(CFLAGS) xdiff/xemit.c -o $(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
|
1134 |
195e8b1fcbbf
patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents:
14222
diff
changeset
|
1135 $(OUTDIR)/xprepare.o: xdiff/xprepare.c $(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
|
1136 $(CC) -c $(CFLAGS) xdiff/xprepare.c -o $(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
|
1137 |
195e8b1fcbbf
patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents:
14222
diff
changeset
|
1138 $(OUTDIR)/xutils.o: xdiff/xutils.c $(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
|
1139 $(CC) -c $(CFLAGS) xdiff/xutils.c -o $(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
|
1140 |
195e8b1fcbbf
patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents:
14222
diff
changeset
|
1141 $(OUTDIR)/xhistogram.o: xdiff/xhistogram.c $(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
|
1142 $(CC) -c $(CFLAGS) xdiff/xhistogram.c -o $(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
|
1143 |
195e8b1fcbbf
patch 8.1.0360: using an external diff program is slow and inflexible
Christian Brabandt <cb@256bit.org>
parents:
14222
diff
changeset
|
1144 $(OUTDIR)/xpatience.o: xdiff/xpatience.c $(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
|
1145 $(CC) -c $(CFLAGS) xdiff/xpatience.c -o $(OUTDIR)/xpatience.o |
6326 | 1146 |
1147 pathdef.c: $(INCL) | |
1148 ifneq (sh.exe, $(SHELL)) | |
1149 @echo creating pathdef.c | |
1150 @echo '/* pathdef.c */' > pathdef.c | |
1151 @echo '#include "vim.h"' >> pathdef.c | |
1152 @echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' >> pathdef.c | |
1153 @echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' >> pathdef.c | |
1154 @echo 'char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)";' >> pathdef.c | |
14958
b898f9093199
patch 8.1.0490: MS-Windows: doesn't handle missing glibwinpthread-1.dll
Bram Moolenaar <Bram@vim.org>
parents:
14943
diff
changeset
|
1155 @echo 'char_u *all_lflags = (char_u *)"$(LINK) $(CFLAGS) $(LFLAGS) -o $(TARGET) $(LIB) -lole32 -luuid $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB)";' >> pathdef.c |
6326 | 1156 @echo 'char_u *compiled_user = (char_u *)"$(USERNAME)";' >> pathdef.c |
1157 @echo 'char_u *compiled_sys = (char_u *)"$(USERDOMAIN)";' >> pathdef.c | |
1158 else | |
1159 @echo creating pathdef.c | |
1160 @echo /* pathdef.c */ > pathdef.c | |
1161 @echo #include "vim.h" >> pathdef.c | |
1162 @echo char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)"; >> pathdef.c | |
1163 @echo char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)"; >> pathdef.c | |
1164 @echo char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)"; >> pathdef.c | |
1165 @echo char_u *all_lflags = (char_u *)"$(CC) $(CFLAGS) $(LFLAGS) -o $(TARGET) $(LIB) -lole32 -luuid $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB)"; >> pathdef.c | |
1166 @echo char_u *compiled_user = (char_u *)"$(USERNAME)"; >> pathdef.c | |
1167 @echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> pathdef.c | |
1168 endif | |
12525
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1169 |
626fb8e8bb8a
patch 8.0.1141: MS-Windows build dependencies are incomplete
Christian Brabandt <cb@256bit.org>
parents:
12489
diff
changeset
|
1170 # vim: set noet sw=8 ts=8 sts=0 wm=0 tw=0: |