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