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