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