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