Mercurial > vim
annotate src/Make_ming.mak @ 5349:73cc7272de5e v7.4.027
updated for version 7.4.027
Problem: Another valgrind error when using CTRL-X CTRL-F at the start of
the line. (Dominique Pelle)
Solution: Don't call mb_ptr_back() at the start of the line. Add a test.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 08 Sep 2013 20:00:48 +0200 |
parents | afbc9dd67cea |
children | 805ad8488dc8 |
rev | line source |
---|---|
3790 | 1 # Makefile for VIM on Win32 |
2 # | |
7 | 3 # Info at http://www.mingw.org |
3790 | 4 # Alternative x86 and 64-builds: http://mingw-w64.sourceforge.net |
5 # Also requires GNU make, which you can download from the same sites. | |
7 | 6 # Get missing libraries from http://gnuwin32.sf.net. |
7 # | |
8 # Tested on Win32 NT 4 and Win95. | |
9 # | |
3790 | 10 # To make everything, just 'make -f Make_ming.mak'. |
11 # To make just e.g. gvim.exe, 'make -f Make_ming.mak gvim.exe'. | |
12 # After a run, you can 'make -f Make_ming.mak clean' to clean up. | |
7 | 13 # |
14 # NOTE: Sometimes 'GNU Make' will stop after building vimrun.exe -- I think | |
15 # it's just run out of memory or something. Run again, and it will continue | |
16 # with 'xxd'. | |
17 # | |
3388 | 18 # "make upx" makes *compressed* versions of the 32 bit GUI and console EXEs, |
19 # using the excellent UPX compressor: | |
7 | 20 # http://upx.sourceforge.net/ |
3388 | 21 # "make mpress" uses the MPRESS compressor for 32- and 64-bit EXEs: |
22 # http://www.matcode.com/mpress.htm | |
7 | 23 # |
3790 | 24 # Maintained by Ron Aaron <ronaharon@yahoo.com> et al. |
25 # Updated 2012 Sep 5. | |
7 | 26 |
27 #>>>>> choose options: | |
28 # set to yes for a debug build | |
29 DEBUG=no | |
1201 | 30 # set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization |
7 | 31 OPTIMIZE=MAXSPEED |
32 # set to yes to make gvim, no for vim | |
33 GUI=yes | |
34 # FEATURES=[TINY | SMALL | NORMAL | BIG | HUGE] | |
3790 | 35 # Set to TINY to make minimal version (few features). |
7 | 36 FEATURES=BIG |
3790 | 37 # Set to one of i386, i486, i586, i686 as the minimum target processor. |
38 # For amd64/x64 architecture set ARCH=x86-64 . | |
7 | 39 ARCH=i386 |
3790 | 40 # Set to yes to cross-compile from unix; no=native Windows. |
7 | 41 CROSS=no |
3790 | 42 # Set to path to iconv.h and libiconv.a to enable using 'iconv.dll'. |
7 | 43 #ICONV="." |
44 ICONV=yes | |
45 GETTEXT=yes | |
3790 | 46 # Set to yes to include multibyte support. |
7 | 47 MBYTE=yes |
3790 | 48 # Set to yes to include IME support. |
7 | 49 IME=yes |
50 DYNAMIC_IME=yes | |
3790 | 51 # Set to yes to enable writing a postscript file with :hardcopy. |
7 | 52 POSTSCRIPT=no |
3790 | 53 # Set to yes to enable OLE support. |
7 | 54 OLE=no |
3790 | 55 # Set the default $(WINVER) to make it work with pre-Win2k. |
3472 | 56 ifndef WINVER |
3652 | 57 WINVER = 0x0500 |
3472 | 58 endif |
3790 | 59 # Set to yes to enable Cscope support. |
7 | 60 CSCOPE=yes |
3790 | 61 # Set to yes to enable Netbeans support. |
7 | 62 NETBEANS=$(GUI) |
63 | |
64 | |
2674 | 65 # Link against the shared version of libstdc++ by default. Set |
66 # STATIC_STDCPLUS to "yes" to link against static version instead. | |
67 ifndef STATIC_STDCPLUS | |
68 STATIC_STDCPLUS=no | |
69 endif | |
70 | |
7 | 71 # If the user doesn't want gettext, undefine it. |
72 ifeq (no, $(GETTEXT)) | |
73 GETTEXT= | |
74 endif | |
75 # Added by E.F. Amatria <eferna1@platea.ptic.mec.es> 2001 Feb 23 | |
76 # Uncomment the first line and one of the following three if you want Native Language | |
77 # Support. You'll need gnu_gettext.win32, a MINGW32 Windows PORT of gettext by | |
78 # Franco Bez <franco.bez@gmx.de>. It may be found at | |
79 # http://home.a-city.de/franco.bez/gettext/gettext_win32_en.html | |
80 # Tested with mingw32 with GCC-2.95.2 on Win98 | |
81 # Updated 2001 Jun 9 | |
82 #GETTEXT=c:/gettext.win32.msvcrt | |
83 #STATIC_GETTEXT=USE_STATIC_GETTEXT | |
84 #DYNAMIC_GETTEXT=USE_GETTEXT_DLL | |
85 #DYNAMIC_GETTEXT=USE_SAFE_GETTEXT_DLL | |
86 SAFE_GETTEXT_DLL_OBJ = $(GETTEXT)/src/safe_gettext_dll/safe_gettext_dll.o | |
87 # Alternatively, if you uncomment the two following lines, you get a "safe" version | |
88 # without linking the safe_gettext_dll.o object file. | |
89 #DYNAMIC_GETTEXT=DYNAMIC_GETTEXT | |
90 #GETTEXT_DYNAMIC=gnu_gettext.dll | |
91 INTLPATH=$(GETTEXT)/lib/mingw32 | |
92 INTLLIB=gnu_gettext | |
93 | |
94 # If you are using gettext-0.10.35 from http://sourceforge.net/projects/gettext | |
95 # or gettext-0.10.37 from http://sourceforge.net/projects/mingwrep/ | |
2900 | 96 # uncomment the following, but I can't build a static version with them, ?-(| |
7 | 97 #GETTEXT=c:/gettext-0.10.37-20010430 |
98 #STATIC_GETTEXT=USE_STATIC_GETTEXT | |
99 #DYNAMIC_GETTEXT=DYNAMIC_GETTEXT | |
100 #INTLPATH=$(GETTEXT)/lib | |
101 #INTLLIB=intl | |
102 | |
103 # uncomment 'PERL' if you want a perl-enabled version | |
104 #PERL=C:/perl | |
105 ifdef PERL | |
106 ifndef PERL_VER | |
107 PERL_VER=56 | |
108 endif | |
109 ifndef DYNAMIC_PERL | |
110 DYNAMIC_PERL=yes | |
111 endif | |
112 # on Linux, for cross-compile, it's here: | |
113 #PERLLIB=/home/ron/ActivePerl/lib | |
114 # on NT, it's here: | |
115 PERLLIB=$(PERL)/lib | |
116 PERLLIBS=$(PERLLIB)/Core | |
3127 | 117 XSUBPPTRY=$(PERLLIB)/ExtUtils/xsubpp |
118 XSUBPP_EXISTS=$(shell perl -e "print 1 unless -e '$(XSUBPPTRY)'") | |
3064 | 119 ifeq "$(XSUBPP_EXISTS)" "" |
3127 | 120 XSUBPP=perl $(XSUBPPTRY) |
3064 | 121 else |
122 XSUBPP=xsubpp | |
123 endif | |
7 | 124 endif |
125 | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
126 # uncomment 'LUA' if you want a Lua-enabled version |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
127 #LUA=/usr/local |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
128 ifdef LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
129 ifndef DYNAMIC_LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
130 DYNAMIC_LUA=yes |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
131 endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
132 |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
133 ifndef LUA_VER |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
134 LUA_VER=51 |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
135 endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
136 |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
137 ifeq (no,$(DYNAMIC_LUA)) |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
138 LUA_LIB = -L$(LUA)/lib -llua |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
139 endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
140 |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
141 endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
142 |
14 | 143 # uncomment 'MZSCHEME' if you want a MzScheme-enabled version |
144 #MZSCHEME=d:/plt | |
145 ifdef MZSCHEME | |
128 | 146 ifndef DYNAMIC_MZSCHEME |
147 DYNAMIC_MZSCHEME=yes | |
148 endif | |
149 | |
14 | 150 ifndef MZSCHEME_VER |
151 MZSCHEME_VER=205_000 | |
152 endif | |
128 | 153 |
1894 | 154 ifndef MZSCHEME_PRECISE_GC |
155 MZSCHEME_PRECISE_GC=no | |
156 endif | |
157 | |
158 # for version 4.x we need to generate byte-code for Scheme base | |
159 ifndef MZSCHEME_GENERATE_BASE | |
160 MZSCHEME_GENERATE_BASE=no | |
161 endif | |
162 | |
2628 | 163 ifndef MZSCHEME_USE_RACKET |
164 MZSCHEME_MAIN_LIB=mzsch | |
165 else | |
166 MZSCHEME_MAIN_LIB=racket | |
167 endif | |
168 | |
128 | 169 ifeq (no,$(DYNAMIC_MZSCHEME)) |
1894 | 170 ifeq (yes,$(MZSCHEME_PRECISE_GC)) |
2628 | 171 MZSCHEME_LIB=-l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER) |
1894 | 172 else |
2628 | 173 MZSCHEME_LIB = -l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER) -lmzgc$(MZSCHEME_VER) |
1894 | 174 endif |
128 | 175 # the modern MinGW can dynamically link to dlls directly. |
176 # point MZSCHEME_DLLS to where you put libmzschXXXXXXX.dll and libgcXXXXXXX.dll | |
177 ifndef MZSCHEME_DLLS | |
178 MZSCHEME_DLLS=$(MZSCHEME) | |
14 | 179 endif |
1951 | 180 MZSCHEME_LIBDIR=-L$(MZSCHEME_DLLS) -L$(MZSCHEME_DLLS)\lib |
128 | 181 endif |
182 | |
14 | 183 endif |
184 | |
7 | 185 # Python support -- works with the ActiveState python 2.0 release (and others |
186 # too, probably) | |
187 # | |
188 # uncomment 'PYTHON' to make python-enabled version | |
189 # Put the path to the python distro here. If cross compiling from Linux, you | |
190 # will also need to convert the header files to unix instead of dos format: | |
191 # for fil in *.h ; do vim -e -c 'set ff=unix|w|q' $fil | |
192 # and also, you will need to make a mingw32 'libpython20.a' to link with: | |
193 # cd $PYTHON/libs | |
194 # pexports python20.dll > python20.def | |
195 # dlltool -d python20.def -l libpython20.a | |
196 # on my Linux box, I put the Python stuff here: | |
197 #PYTHON=/home/ron/ActivePython-2.0.0-202/src/Core | |
198 # on my NT box, it's here: | |
199 #PYTHON=c:/python20 | |
200 | |
201 ifdef PYTHON | |
202 ifndef DYNAMIC_PYTHON | |
203 DYNAMIC_PYTHON=yes | |
204 endif | |
205 | |
206 ifndef PYTHON_VER | |
207 PYTHON_VER=22 | |
208 endif | |
209 | |
210 ifeq (no,$(DYNAMIC_PYTHON)) | |
211 PYTHONLIB=-L$(PYTHON)/libs -lpython$(PYTHON_VER) | |
212 endif | |
213 # my include files are in 'win32inc' on Linux, and 'include' in the standard | |
214 # NT distro (ActiveState) | |
215 ifeq ($(CROSS),no) | |
216 PYTHONINC=-I $(PYTHON)/include | |
217 else | |
218 PYTHONINC=-I $(PYTHON)/win32inc | |
219 endif | |
220 endif | |
221 | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
222 #PYTHON3: See comment for Python 2 above |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
223 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
224 ifdef PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
225 ifndef DYNAMIC_PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
226 DYNAMIC_PYTHON3=yes |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
227 endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
228 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
229 ifndef PYTHON3_VER |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
230 PYTHON3_VER=31 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
231 endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
232 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
233 ifeq (no,$(DYNAMIC_PYTHON3)) |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
234 PYTHON3LIB=-L$(PYTHON3)/libs -lPYTHON$(PYTHON3_VER) |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
235 endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
236 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
237 ifeq ($(CROSS),no) |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
238 PYTHON3INC=-I $(PYTHON3)/include |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
239 else |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
240 PYTHON3INC=-I $(PYTHON3)/win32inc |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
241 endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
242 endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
243 |
7 | 244 # TCL interface: |
245 # TCL=[Path to TCL directory] | |
246 # DYNAMIC_TCL=yes (to load the TCL DLL dynamically) | |
247 # TCL_VER=[TCL version, eg 83, 84] (default is 83) | |
248 #TCL=c:/tcl | |
249 ifdef TCL | |
250 ifndef DYNAMIC_TCL | |
251 DYNAMIC_TCL=yes | |
252 endif | |
253 ifndef TCL_VER | |
254 TCL_VER = 83 | |
255 endif | |
256 TCLINC += -I$(TCL)/include | |
257 endif | |
258 | |
259 | |
260 # Ruby interface: | |
261 # RUBY=[Path to Ruby directory] | |
262 # DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically) | |
263 # RUBY_VER=[Ruby version, eg 16, 17] (default is 16) | |
264 # RUBY_VER_LONG=[Ruby version, eg 1.6, 1.7] (default is 1.6) | |
3722 | 265 # You must set RUBY_VER_LONG when changing RUBY_VER. |
266 # You must set RUBY_API_VER version to RUBY_VER_LONG. | |
267 # Don't set ruby API version to RUBY_VER like 191. | |
7 | 268 #RUBY=c:/ruby |
269 ifdef RUBY | |
270 ifndef DYNAMIC_RUBY | |
271 DYNAMIC_RUBY=yes | |
272 endif | |
273 # Set default value | |
274 ifndef RUBY_VER | |
275 RUBY_VER = 16 | |
276 endif | |
277 ifndef RUBY_VER_LONG | |
278 RUBY_VER_LONG = 1.6 | |
279 endif | |
3722 | 280 ifndef RUBY_API_VER |
281 RUBY_API_VER = $(subst .,,$(RUBY_VER_LONG)) | |
282 endif | |
7 | 283 |
2105
8562c6804861
updated for version 7.2.388
Bram Moolenaar <bram@zimbu.org>
parents:
2093
diff
changeset
|
284 ifndef RUBY_PLATFORM |
7 | 285 ifeq ($(RUBY_VER), 16) |
286 RUBY_PLATFORM = i586-mswin32 | |
2116
2832243e801e
updated for version 7.2.399
Bram Moolenaar <bram@zimbu.org>
parents:
2105
diff
changeset
|
287 else |
2832243e801e
updated for version 7.2.399
Bram Moolenaar <bram@zimbu.org>
parents:
2105
diff
changeset
|
288 ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/i386-mingw32),) |
2105
8562c6804861
updated for version 7.2.388
Bram Moolenaar <bram@zimbu.org>
parents:
2093
diff
changeset
|
289 RUBY_PLATFORM = i386-mingw32 |
7 | 290 else |
4193 | 291 ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/x64-mingw32),) |
292 RUBY_PLATFORM = x64-mingw32 | |
293 else | |
7 | 294 RUBY_PLATFORM = i386-mswin32 |
295 endif | |
2105
8562c6804861
updated for version 7.2.388
Bram Moolenaar <bram@zimbu.org>
parents:
2093
diff
changeset
|
296 endif |
2116
2832243e801e
updated for version 7.2.399
Bram Moolenaar <bram@zimbu.org>
parents:
2105
diff
changeset
|
297 endif |
4193 | 298 endif |
2105
8562c6804861
updated for version 7.2.388
Bram Moolenaar <bram@zimbu.org>
parents:
2093
diff
changeset
|
299 |
7 | 300 ifndef RUBY_INSTALL_NAME |
2105
8562c6804861
updated for version 7.2.388
Bram Moolenaar <bram@zimbu.org>
parents:
2093
diff
changeset
|
301 ifeq ($(RUBY_VER), 16) |
3722 | 302 RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_API_VER) |
2105
8562c6804861
updated for version 7.2.388
Bram Moolenaar <bram@zimbu.org>
parents:
2093
diff
changeset
|
303 else |
4193 | 304 ifeq ($(ARCH),x86-64) |
305 RUBY_INSTALL_NAME = x64-msvcrt-ruby$(RUBY_API_VER) | |
306 else | |
3722 | 307 RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_API_VER) |
7 | 308 endif |
309 endif | |
4193 | 310 endif |
7 | 311 |
3959 | 312 ifeq (19, $(word 1,$(sort 19 $(RUBY_VER)))) |
313 RUBY_19_OR_LATER = 1 | |
314 endif | |
315 | |
316 RUBYINC = -I $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM) | |
317 ifdef RUBY_19_OR_LATER | |
318 RUBYINC += -I $(RUBY)/include/ruby-$(RUBY_VER_LONG) -I $(RUBY)/include/ruby-$(RUBY_VER_LONG)/$(RUBY_PLATFORM) | |
319 endif | |
7 | 320 ifeq (no, $(DYNAMIC_RUBY)) |
321 RUBYLIB = -L$(RUBY)/lib -l$(RUBY_INSTALL_NAME) | |
322 endif | |
323 | |
324 endif # RUBY | |
325 | |
326 # See feature.h for a list of options. | |
327 # Any other defines can be included here. | |
328 DEF_GUI=-DFEAT_GUI_W32 -DFEAT_CLIPBOARD | |
329 DEFINES=-DWIN32 -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) \ | |
330 -DHAVE_PATHDEF -DFEAT_$(FEATURES) | |
5141
afbc9dd67cea
updated for version 7.3.1313
Bram Moolenaar <bram@vim.org>
parents:
4724
diff
changeset
|
331 ifeq ($(ARCH),x86-64) |
afbc9dd67cea
updated for version 7.3.1313
Bram Moolenaar <bram@vim.org>
parents:
4724
diff
changeset
|
332 DEFINES+=-DMS_WIN64 |
afbc9dd67cea
updated for version 7.3.1313
Bram Moolenaar <bram@vim.org>
parents:
4724
diff
changeset
|
333 endif |
7 | 334 ifeq ($(CROSS),yes) |
2088
4ec11bb387a5
updated for version 7.2.372
Bram Moolenaar <bram@zimbu.org>
parents:
1951
diff
changeset
|
335 # cross-compiler prefix: |
4ec11bb387a5
updated for version 7.2.372
Bram Moolenaar <bram@zimbu.org>
parents:
1951
diff
changeset
|
336 CROSS_COMPILE = i586-pc-mingw32msvc- |
7 | 337 DEL = rm |
107 | 338 MKDIR = mkdir -p |
2088
4ec11bb387a5
updated for version 7.2.372
Bram Moolenaar <bram@zimbu.org>
parents:
1951
diff
changeset
|
339 DIRSLASH = / |
7 | 340 else |
341 # normal (Windows) compilation: | |
2093
0e4631bf9441
updated for version 7.2.377
Bram Moolenaar <bram@zimbu.org>
parents:
2088
diff
changeset
|
342 CROSS_COMPILE = |
7 | 343 ifneq (sh.exe, $(SHELL)) |
344 DEL = rm | |
107 | 345 MKDIR = mkdir -p |
7 | 346 DIRSLASH = / |
347 else | |
348 DEL = del | |
107 | 349 MKDIR = mkdir |
7 | 350 DIRSLASH = \\ |
351 endif | |
352 endif | |
2088
4ec11bb387a5
updated for version 7.2.372
Bram Moolenaar <bram@zimbu.org>
parents:
1951
diff
changeset
|
353 CC := $(CROSS_COMPILE)gcc |
2674 | 354 WINDRES := $(CROSS_COMPILE)windres |
355 WINDRES_CC = $(CC) | |
7 | 356 |
357 #>>>>> end of choices | |
358 ########################################################################### | |
359 | |
39 | 360 CFLAGS = -Iproto $(DEFINES) -pipe -w -march=$(ARCH) -Wall |
2674 | 361 WINDRES_FLAGS = --preprocessor="$(WINDRES_CC) -E -xc" -DRC_INVOKED |
7 | 362 |
363 ifdef GETTEXT | |
177 | 364 DEFINES += -DHAVE_GETTEXT -DHAVE_LOCALE_H |
7 | 365 GETTEXTINCLUDE = $(GETTEXT)/include |
366 GETTEXTLIB = $(INTLPATH) | |
367 ifeq (yes, $(GETTEXT)) | |
177 | 368 DEFINES += -DDYNAMIC_GETTEXT |
7 | 369 else |
370 ifdef DYNAMIC_GETTEXT | |
177 | 371 DEFINES += -D$(DYNAMIC_GETTEXT) |
7 | 372 ifdef GETTEXT_DYNAMIC |
373 DEFINES += -DGETTEXT_DYNAMIC -DGETTEXT_DLL=\"$(GETTEXT_DYNAMIC)\" | |
374 endif | |
375 endif | |
376 endif | |
377 endif | |
378 | |
379 ifdef PERL | |
380 CFLAGS += -I$(PERLLIBS) -DFEAT_PERL -L$(PERLLIBS) | |
381 ifeq (yes, $(DYNAMIC_PERL)) | |
382 CFLAGS += -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl$(PERL_VER).dll\" | |
383 endif | |
384 endif | |
385 | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
386 ifdef LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
387 CFLAGS += -I$(LUA)/include -DFEAT_LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
388 ifeq (yes, $(DYNAMIC_LUA)) |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
389 CFLAGS += -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL=\"lua$(LUA_VER).dll\" |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
390 endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
391 endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
392 |
14 | 393 ifdef MZSCHEME |
394 CFLAGS += -I$(MZSCHEME)/include -DFEAT_MZSCHEME -DMZSCHEME_COLLECTS=\"$(MZSCHEME)/collects\" | |
128 | 395 ifeq (yes, $(DYNAMIC_MZSCHEME)) |
2628 | 396 CFLAGS += -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\" -DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\" |
128 | 397 endif |
4074 | 398 ifeq (yes, "$(MZSCHEME_DEBUG)") |
399 CFLAGS += -DMZSCHEME_FORCE_GC | |
400 endif | |
14 | 401 endif |
402 | |
7 | 403 ifdef RUBY |
404 CFLAGS += -DFEAT_RUBY $(RUBYINC) | |
405 ifeq (yes, $(DYNAMIC_RUBY)) | |
406 CFLAGS += -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\" | |
407 CFLAGS += -DDYNAMIC_RUBY_VER=$(RUBY_VER) | |
408 endif | |
409 endif | |
410 | |
411 ifdef PYTHON | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
412 CFLAGS += -DFEAT_PYTHON |
7 | 413 ifeq (yes, $(DYNAMIC_PYTHON)) |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
414 CFLAGS += -DDYNAMIC_PYTHON |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
415 endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
416 endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
417 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
418 ifdef PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
419 CFLAGS += -DFEAT_PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
420 ifeq (yes, $(DYNAMIC_PYTHON3)) |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
421 CFLAGS += -DDYNAMIC_PYTHON3 |
7 | 422 endif |
423 endif | |
424 | |
425 ifdef TCL | |
426 CFLAGS += -DFEAT_TCL $(TCLINC) | |
427 ifeq (yes, $(DYNAMIC_TCL)) | |
428 CFLAGS += -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"tcl$(TCL_VER).dll\" | |
429 endif | |
430 endif | |
431 | |
432 ifeq ($(POSTSCRIPT),yes) | |
433 DEFINES += -DMSWINPS | |
434 endif | |
435 | |
436 ifeq (yes, $(OLE)) | |
437 DEFINES += -DFEAT_OLE | |
438 endif | |
439 | |
440 ifeq ($(CSCOPE),yes) | |
441 DEFINES += -DFEAT_CSCOPE | |
442 endif | |
443 | |
444 ifeq ($(NETBEANS),yes) | |
12 | 445 # Only allow NETBEANS for a GUI build. |
446 ifeq (yes, $(GUI)) | |
7 | 447 DEFINES += -DFEAT_NETBEANS_INTG |
12 | 448 |
449 ifeq ($(NBDEBUG), yes) | |
7 | 450 DEFINES += -DNBDEBUG |
451 NBDEBUG_INCL = nbdebug.h | |
452 NBDEBUG_SRC = nbdebug.c | |
453 endif | |
454 endif | |
12 | 455 endif |
7 | 456 |
12 | 457 # Only allow XPM for a GUI build. |
458 ifeq (yes, $(GUI)) | |
3790 | 459 |
460 ifndef XPM | |
461 ifeq ($(ARCH),i386) | |
462 XPM = xpm/x86 | |
463 endif | |
464 ifeq ($(ARCH),i486) | |
465 XPM = xpm/x86 | |
466 endif | |
467 ifeq ($(ARCH),i586) | |
468 XPM = xpm/x86 | |
7 | 469 endif |
3790 | 470 ifeq ($(ARCH),i686) |
471 XPM = xpm/x86 | |
472 endif | |
473 ifeq ($(ARCH),x86-64) | |
474 XPM = xpm/x64 | |
475 endif | |
476 endif | |
477 ifdef XPM | |
478 ifneq ($(XPM),no) | |
479 CFLAGS += -DFEAT_XPM_W32 -I $(XPM)/include -I $(XPM)/../include | |
480 endif | |
481 endif | |
482 | |
12 | 483 endif |
7 | 484 |
485 ifeq ($(DEBUG),yes) | |
486 CFLAGS += -g -fstack-check | |
487 DEBUG_SUFFIX=d | |
488 else | |
489 ifeq ($(OPTIMIZE), SIZE) | |
490 CFLAGS += -Os | |
491 else | |
492 ifeq ($(OPTIMIZE), MAXSPEED) | |
493 CFLAGS += -O3 | |
39 | 494 CFLAGS += -fomit-frame-pointer -freg-struct-return |
7 | 495 else # SPEED |
496 CFLAGS += -O2 | |
497 endif | |
498 endif | |
499 CFLAGS += -s | |
500 endif | |
501 | |
434 | 502 LIB = -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32 -lcomctl32 -lversion |
188 | 503 GUIOBJ = $(OUTDIR)/gui.o $(OUTDIR)/gui_w32.o $(OUTDIR)/gui_beval.o $(OUTDIR)/os_w32exe.o |
7 | 504 OBJ = \ |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
2116
diff
changeset
|
505 $(OUTDIR)/blowfish.o \ |
7 | 506 $(OUTDIR)/buffer.o \ |
507 $(OUTDIR)/charset.o \ | |
508 $(OUTDIR)/diff.o \ | |
509 $(OUTDIR)/digraph.o \ | |
510 $(OUTDIR)/edit.o \ | |
511 $(OUTDIR)/eval.o \ | |
512 $(OUTDIR)/ex_cmds.o \ | |
513 $(OUTDIR)/ex_cmds2.o \ | |
514 $(OUTDIR)/ex_docmd.o \ | |
515 $(OUTDIR)/ex_eval.o \ | |
516 $(OUTDIR)/ex_getln.o \ | |
517 $(OUTDIR)/fileio.o \ | |
518 $(OUTDIR)/fold.o \ | |
519 $(OUTDIR)/getchar.o \ | |
440 | 520 $(OUTDIR)/hardcopy.o \ |
799 | 521 $(OUTDIR)/hashtab.o \ |
7 | 522 $(OUTDIR)/main.o \ |
523 $(OUTDIR)/mark.o \ | |
524 $(OUTDIR)/memfile.o \ | |
525 $(OUTDIR)/memline.o \ | |
526 $(OUTDIR)/menu.o \ | |
527 $(OUTDIR)/message.o \ | |
528 $(OUTDIR)/misc1.o \ | |
529 $(OUTDIR)/misc2.o \ | |
530 $(OUTDIR)/move.o \ | |
531 $(OUTDIR)/mbyte.o \ | |
532 $(OUTDIR)/normal.o \ | |
533 $(OUTDIR)/ops.o \ | |
534 $(OUTDIR)/option.o \ | |
535 $(OUTDIR)/os_win32.o \ | |
536 $(OUTDIR)/os_mswin.o \ | |
4168 | 537 $(OUTDIR)/winclip.o \ |
7 | 538 $(OUTDIR)/pathdef.o \ |
799 | 539 $(OUTDIR)/popupmnu.o \ |
7 | 540 $(OUTDIR)/quickfix.o \ |
541 $(OUTDIR)/regexp.o \ | |
542 $(OUTDIR)/screen.o \ | |
543 $(OUTDIR)/search.o \ | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
2116
diff
changeset
|
544 $(OUTDIR)/sha256.o \ |
227 | 545 $(OUTDIR)/spell.o \ |
7 | 546 $(OUTDIR)/syntax.o \ |
547 $(OUTDIR)/tag.o \ | |
548 $(OUTDIR)/term.o \ | |
549 $(OUTDIR)/ui.o \ | |
550 $(OUTDIR)/undo.o \ | |
551 $(OUTDIR)/version.o \ | |
552 $(OUTDIR)/vimrc.o \ | |
553 $(OUTDIR)/window.o | |
554 | |
555 ifdef PERL | |
556 OBJ += $(OUTDIR)/if_perl.o | |
557 endif | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
558 ifdef LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
559 OBJ += $(OUTDIR)/if_lua.o |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
560 endif |
14 | 561 ifdef MZSCHEME |
562 OBJ += $(OUTDIR)/if_mzsch.o | |
563 MZSCHEME_INCL = if_mzsch.h | |
1894 | 564 ifeq (yes,$(MZSCHEME_GENERATE_BASE)) |
565 CFLAGS += -DINCLUDE_MZSCHEME_BASE | |
566 MZ_EXTRA_DEP += mzscheme_base.c | |
567 endif | |
568 ifeq (yes,$(MZSCHEME_PRECISE_GC)) | |
569 CFLAGS += -DMZ_PRECISE_GC | |
570 endif | |
14 | 571 endif |
7 | 572 ifdef PYTHON |
573 OBJ += $(OUTDIR)/if_python.o | |
574 endif | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
575 ifdef PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
576 OBJ += $(OUTDIR)/if_python3.o |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
577 endif |
7 | 578 ifdef RUBY |
579 OBJ += $(OUTDIR)/if_ruby.o | |
580 endif | |
581 ifdef TCL | |
582 OBJ += $(OUTDIR)/if_tcl.o | |
583 endif | |
584 ifeq ($(CSCOPE),yes) | |
585 OBJ += $(OUTDIR)/if_cscope.o | |
586 endif | |
587 ifeq ($(NETBEANS),yes) | |
12 | 588 # Only allow NETBEANS for a GUI build. |
589 ifeq (yes, $(GUI)) | |
188 | 590 OBJ += $(OUTDIR)/netbeans.o |
7 | 591 LIB += -lwsock32 |
592 endif | |
12 | 593 endif |
7 | 594 ifdef XPM |
12 | 595 # Only allow XPM for a GUI build. |
596 ifeq (yes, $(GUI)) | |
7 | 597 OBJ += $(OUTDIR)/xpm_w32.o |
598 # You'll need libXpm.a from http://gnuwin32.sf.net | |
599 LIB += -L $(XPM)/lib -lXpm | |
600 endif | |
12 | 601 endif |
7 | 602 |
603 | |
14 | 604 ifdef MZSCHEME |
605 MZSCHEME_SUFFIX = Z | |
606 endif | |
607 | |
7 | 608 ifeq ($(GUI),yes) |
609 TARGET := gvim$(DEBUG_SUFFIX).exe | |
610 DEFINES += $(DEF_GUI) | |
611 OBJ += $(GUIOBJ) | |
612 LFLAGS += -mwindows | |
3790 | 613 OUTDIR = gobj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH) |
7 | 614 else |
615 TARGET := vim$(DEBUG_SUFFIX).exe | |
3790 | 616 OUTDIR = obj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH) |
7 | 617 endif |
618 | |
619 ifdef GETTEXT | |
620 ifneq (yes, $(GETTEXT)) | |
621 CFLAGS += -I$(GETTEXTINCLUDE) | |
622 ifndef STATIC_GETTEXT | |
623 LIB += -L$(GETTEXTLIB) -l$(INTLLIB) | |
624 ifeq (USE_SAFE_GETTEXT_DLL, $(DYNAMIC_GETTEXT)) | |
625 OBJ+=$(SAFE_GETTEXT_DLL_OBJ) | |
626 endif | |
627 else | |
628 LIB += -L$(GETTEXTLIB) -lintl | |
629 endif | |
630 endif | |
631 endif | |
632 | |
633 ifdef PERL | |
634 ifeq (no, $(DYNAMIC_PERL)) | |
635 LIB += -lperl$(PERL_VER) | |
636 endif | |
637 endif | |
638 | |
639 ifdef TCL | |
640 LIB += -L$(TCL)/lib | |
641 ifeq (yes, $(DYNAMIC_TCL)) | |
642 LIB += -ltclstub$(TCL_VER) | |
643 else | |
644 LIB += -ltcl$(TCL_VER) | |
645 endif | |
646 endif | |
647 | |
648 ifeq (yes, $(OLE)) | |
2674 | 649 LIB += -loleaut32 |
7 | 650 OBJ += $(OUTDIR)/if_ole.o |
2674 | 651 ifeq (yes, $(STATIC_STDCPLUS)) |
652 LIB += -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic | |
653 else | |
654 LIB += -lstdc++ | |
655 endif | |
7 | 656 endif |
657 | |
658 ifeq (yes, $(MBYTE)) | |
659 DEFINES += -DFEAT_MBYTE | |
660 endif | |
661 | |
662 ifeq (yes, $(IME)) | |
663 DEFINES += -DFEAT_MBYTE_IME | |
664 ifeq (yes, $(DYNAMIC_IME)) | |
665 DEFINES += -DDYNAMIC_IME | |
666 else | |
667 LIB += -limm32 | |
668 endif | |
669 endif | |
670 | |
671 ifdef ICONV | |
672 ifneq (yes, $(ICONV)) | |
673 LIB += -L$(ICONV) | |
674 CFLAGS += -I$(ICONV) | |
675 endif | |
676 DEFINES+=-DDYNAMIC_ICONV | |
677 endif | |
678 | |
679 all: $(TARGET) vimrun.exe xxd/xxd.exe install.exe uninstal.exe GvimExt/gvimext.dll | |
680 | |
681 vimrun.exe: vimrun.c | |
682 $(CC) $(CFLAGS) -o vimrun.exe vimrun.c $(LIB) | |
683 | |
684 install.exe: dosinst.c | |
685 $(CC) $(CFLAGS) -o install.exe dosinst.c $(LIB) -lole32 -luuid | |
686 | |
687 uninstal.exe: uninstal.c | |
688 $(CC) $(CFLAGS) -o uninstal.exe uninstal.c $(LIB) | |
689 | |
690 $(TARGET): $(OUTDIR) $(OBJ) | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
691 $(CC) $(CFLAGS) $(LFLAGS) -o $@ $(OBJ) $(LIB) -lole32 -luuid $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB) |
7 | 692 |
693 upx: exes | |
694 upx gvim.exe | |
695 upx vim.exe | |
696 | |
3388 | 697 mpress: exes |
698 mpress gvim.exe | |
699 mpress vim.exe | |
700 | |
7 | 701 xxd/xxd.exe: xxd/xxd.c |
3110 | 702 $(MAKE) -C xxd -f Make_ming.mak CC=$(CC) |
7 | 703 |
704 GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h | |
2088
4ec11bb387a5
updated for version 7.2.372
Bram Moolenaar <bram@zimbu.org>
parents:
1951
diff
changeset
|
705 $(MAKE) -C GvimExt -f Make_ming.mak CROSS=$(CROSS) CROSS_COMPILE=$(CROSS_COMPILE) |
7 | 706 |
707 clean: | |
708 -$(DEL) $(OUTDIR)$(DIRSLASH)*.o | |
709 -$(DEL) $(OUTDIR)$(DIRSLASH)*.res | |
710 -rmdir $(OUTDIR) | |
711 -$(DEL) *.exe | |
712 -$(DEL) pathdef.c | |
713 ifdef PERL | |
714 -$(DEL) if_perl.c | |
715 endif | |
1951 | 716 ifdef MZSCHEME |
717 -$(DEL) mzscheme_base.c | |
718 endif | |
7 | 719 $(MAKE) -C GvimExt -f Make_ming.mak clean |
3110 | 720 $(MAKE) -C xxd -f Make_ming.mak clean |
7 | 721 |
722 ########################################################################### | |
723 INCL = vim.h feature.h os_win32.h os_dos.h ascii.h keymap.h term.h macros.h \ | |
724 structs.h regexp.h option.h ex_cmds.h proto.h globals.h farsi.h \ | |
725 gui.h | |
726 | |
4724
450e13fe1621
updated for version 7.3.1109
Bram Moolenaar <bram@vim.org>
parents:
4444
diff
changeset
|
727 $(OUTDIR)/if_python.o : if_python.c if_py_both.h $(INCL) |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
728 $(CC) -c $(CFLAGS) $(PYTHONINC) -DDYNAMIC_PYTHON_DLL=\"python$(PYTHON_VER).dll\" $< -o $@ |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
729 |
4724
450e13fe1621
updated for version 7.3.1109
Bram Moolenaar <bram@vim.org>
parents:
4444
diff
changeset
|
730 $(OUTDIR)/if_python3.o : if_python3.c if_py_both.h $(INCL) |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
731 $(CC) -c $(CFLAGS) $(PYTHON3INC) -DDYNAMIC_PYTHON3_DLL=\"PYTHON$(PYTHON3_VER).dll\" $< -o $@ |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
732 |
7 | 733 $(OUTDIR)/%.o : %.c $(INCL) |
734 $(CC) -c $(CFLAGS) $< -o $@ | |
735 | |
3441 | 736 $(OUTDIR)/vimrc.o: vim.rc version.h gui_w32_rc.h |
737 $(WINDRES) $(WINDRES_FLAGS) $(DEFINES) \ | |
738 --input-format=rc --output-format=coff -i vim.rc -o $@ | |
7 | 739 |
740 $(OUTDIR): | |
107 | 741 $(MKDIR) $(OUTDIR) |
7 | 742 |
743 $(OUTDIR)/ex_docmd.o: ex_docmd.c $(INCL) ex_cmds.h | |
744 $(CC) -c $(CFLAGS) ex_docmd.c -o $(OUTDIR)/ex_docmd.o | |
745 | |
746 $(OUTDIR)/ex_eval.o: ex_eval.c $(INCL) ex_cmds.h | |
747 $(CC) -c $(CFLAGS) ex_eval.c -o $(OUTDIR)/ex_eval.o | |
748 | |
4041 | 749 $(OUTDIR)/gui_w32.o: gui_w32.c gui_w48.c $(INCL) |
750 $(CC) -c $(CFLAGS) gui_w32.c -o $(OUTDIR)/gui_w32.o | |
751 | |
7 | 752 $(OUTDIR)/if_cscope.o: if_cscope.c $(INCL) if_cscope.h |
753 $(CC) -c $(CFLAGS) if_cscope.c -o $(OUTDIR)/if_cscope.o | |
754 | |
1351 | 755 # Remove -D__IID_DEFINED__ for newer versions of the w32api |
7 | 756 $(OUTDIR)/if_ole.o: if_ole.cpp $(INCL) |
1351 | 757 $(CC) $(CFLAGS) -c -o $(OUTDIR)/if_ole.o if_ole.cpp |
7 | 758 |
759 $(OUTDIR)/if_ruby.o: if_ruby.c $(INCL) | |
760 ifeq (16, $(RUBY)) | |
761 $(CC) $(CFLAGS) -U_WIN32 -c -o $(OUTDIR)/if_ruby.o if_ruby.c | |
762 endif | |
763 | |
764 if_perl.c: if_perl.xs typemap | |
3064 | 765 $(XSUBPP) -prototypes -typemap \ |
7 | 766 $(PERLLIB)/ExtUtils/typemap if_perl.xs > $@ |
767 | |
768 $(OUTDIR)/netbeans.o: netbeans.c $(INCL) $(NBDEBUG_INCL) $(NBDEBUG_SRC) | |
769 $(CC) -c $(CFLAGS) netbeans.c -o $(OUTDIR)/netbeans.o | |
770 | |
4444 | 771 $(OUTDIR)/regexp.o: regexp.c regexp_nfa.c $(INCL) |
772 $(CC) -c $(CFLAGS) regexp.c -o $(OUTDIR)/regexp.o | |
773 | |
1894 | 774 $(OUTDIR)/if_mzsch.o: if_mzsch.c $(INCL) if_mzsch.h $(MZ_EXTRA_DEP) |
775 $(CC) -c $(CFLAGS) if_mzsch.c -o $(OUTDIR)/if_mzsch.o | |
776 | |
777 mzscheme_base.c: | |
778 $(MZSCHEME)/mzc --c-mods mzscheme_base.c ++lib scheme/base | |
779 | |
7 | 780 pathdef.c: $(INCL) |
781 ifneq (sh.exe, $(SHELL)) | |
782 @echo creating pathdef.c | |
783 @echo '/* pathdef.c */' > pathdef.c | |
784 @echo '#include "vim.h"' >> pathdef.c | |
785 @echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' >> pathdef.c | |
786 @echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' >> pathdef.c | |
787 @echo 'char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)";' >> pathdef.c | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
788 @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 |
7 | 789 @echo 'char_u *compiled_user = (char_u *)"$(USERNAME)";' >> pathdef.c |
790 @echo 'char_u *compiled_sys = (char_u *)"$(USERDOMAIN)";' >> pathdef.c | |
791 else | |
792 @echo creating pathdef.c | |
793 @echo /* pathdef.c */ > pathdef.c | |
794 @echo #include "vim.h" >> pathdef.c | |
795 @echo char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)"; >> pathdef.c | |
796 @echo char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)"; >> pathdef.c | |
797 @echo char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)"; >> pathdef.c | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
798 @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 |
7 | 799 @echo char_u *compiled_user = (char_u *)"$(USERNAME)"; >> pathdef.c |
800 @echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> pathdef.c | |
801 endif |