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