Mercurial > vim
annotate src/Make_ming.mak @ 5770:839cca5ec18d v7.4.229
updated for version 7.4.229
Problem: Using ":let" for listing variables and the second one is a curly
braces expression may fail.
Solution: Check for an "=" in a better way. (ZyX)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 30 Mar 2014 16:49:09 +0200 |
parents | 0defb460a0eb |
children | 1bff71d20262 |
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 |
5537 | 362 EXTRA_LIBS = |
7 | 363 |
364 ifdef GETTEXT | |
177 | 365 DEFINES += -DHAVE_GETTEXT -DHAVE_LOCALE_H |
7 | 366 GETTEXTINCLUDE = $(GETTEXT)/include |
367 GETTEXTLIB = $(INTLPATH) | |
368 ifeq (yes, $(GETTEXT)) | |
177 | 369 DEFINES += -DDYNAMIC_GETTEXT |
7 | 370 else |
371 ifdef DYNAMIC_GETTEXT | |
177 | 372 DEFINES += -D$(DYNAMIC_GETTEXT) |
7 | 373 ifdef GETTEXT_DYNAMIC |
374 DEFINES += -DGETTEXT_DYNAMIC -DGETTEXT_DLL=\"$(GETTEXT_DYNAMIC)\" | |
375 endif | |
376 endif | |
377 endif | |
378 endif | |
379 | |
380 ifdef PERL | |
5537 | 381 CFLAGS += -I$(PERLLIBS) -DFEAT_PERL |
7 | 382 ifeq (yes, $(DYNAMIC_PERL)) |
383 CFLAGS += -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl$(PERL_VER).dll\" | |
5537 | 384 EXTRA_LIBS += -L$(PERLLIBS) -lperl$(PERL_VER) |
7 | 385 endif |
386 endif | |
387 | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
388 ifdef LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
389 CFLAGS += -I$(LUA)/include -DFEAT_LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
390 ifeq (yes, $(DYNAMIC_LUA)) |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
391 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
|
392 endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
393 endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
394 |
14 | 395 ifdef MZSCHEME |
396 CFLAGS += -I$(MZSCHEME)/include -DFEAT_MZSCHEME -DMZSCHEME_COLLECTS=\"$(MZSCHEME)/collects\" | |
128 | 397 ifeq (yes, $(DYNAMIC_MZSCHEME)) |
2628 | 398 CFLAGS += -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\" -DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\" |
128 | 399 endif |
4074 | 400 ifeq (yes, "$(MZSCHEME_DEBUG)") |
401 CFLAGS += -DMZSCHEME_FORCE_GC | |
402 endif | |
14 | 403 endif |
404 | |
7 | 405 ifdef RUBY |
406 CFLAGS += -DFEAT_RUBY $(RUBYINC) | |
407 ifeq (yes, $(DYNAMIC_RUBY)) | |
408 CFLAGS += -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\" | |
409 CFLAGS += -DDYNAMIC_RUBY_VER=$(RUBY_VER) | |
410 endif | |
411 endif | |
412 | |
413 ifdef PYTHON | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
414 CFLAGS += -DFEAT_PYTHON |
7 | 415 ifeq (yes, $(DYNAMIC_PYTHON)) |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
416 CFLAGS += -DDYNAMIC_PYTHON |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
417 endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
418 endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
419 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
420 ifdef PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
421 CFLAGS += -DFEAT_PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
422 ifeq (yes, $(DYNAMIC_PYTHON3)) |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
423 CFLAGS += -DDYNAMIC_PYTHON3 |
7 | 424 endif |
425 endif | |
426 | |
427 ifdef TCL | |
428 CFLAGS += -DFEAT_TCL $(TCLINC) | |
429 ifeq (yes, $(DYNAMIC_TCL)) | |
430 CFLAGS += -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"tcl$(TCL_VER).dll\" | |
431 endif | |
432 endif | |
433 | |
434 ifeq ($(POSTSCRIPT),yes) | |
435 DEFINES += -DMSWINPS | |
436 endif | |
437 | |
438 ifeq (yes, $(OLE)) | |
439 DEFINES += -DFEAT_OLE | |
440 endif | |
441 | |
442 ifeq ($(CSCOPE),yes) | |
443 DEFINES += -DFEAT_CSCOPE | |
444 endif | |
445 | |
446 ifeq ($(NETBEANS),yes) | |
12 | 447 # Only allow NETBEANS for a GUI build. |
448 ifeq (yes, $(GUI)) | |
7 | 449 DEFINES += -DFEAT_NETBEANS_INTG |
12 | 450 |
451 ifeq ($(NBDEBUG), yes) | |
7 | 452 DEFINES += -DNBDEBUG |
453 NBDEBUG_INCL = nbdebug.h | |
454 NBDEBUG_SRC = nbdebug.c | |
455 endif | |
456 endif | |
12 | 457 endif |
7 | 458 |
12 | 459 # Only allow XPM for a GUI build. |
460 ifeq (yes, $(GUI)) | |
3790 | 461 |
462 ifndef XPM | |
463 ifeq ($(ARCH),i386) | |
464 XPM = xpm/x86 | |
465 endif | |
466 ifeq ($(ARCH),i486) | |
467 XPM = xpm/x86 | |
468 endif | |
469 ifeq ($(ARCH),i586) | |
470 XPM = xpm/x86 | |
7 | 471 endif |
3790 | 472 ifeq ($(ARCH),i686) |
473 XPM = xpm/x86 | |
474 endif | |
475 ifeq ($(ARCH),x86-64) | |
476 XPM = xpm/x64 | |
477 endif | |
478 endif | |
479 ifdef XPM | |
480 ifneq ($(XPM),no) | |
481 CFLAGS += -DFEAT_XPM_W32 -I $(XPM)/include -I $(XPM)/../include | |
482 endif | |
483 endif | |
484 | |
12 | 485 endif |
7 | 486 |
487 ifeq ($(DEBUG),yes) | |
488 CFLAGS += -g -fstack-check | |
489 DEBUG_SUFFIX=d | |
490 else | |
491 ifeq ($(OPTIMIZE), SIZE) | |
492 CFLAGS += -Os | |
493 else | |
494 ifeq ($(OPTIMIZE), MAXSPEED) | |
495 CFLAGS += -O3 | |
39 | 496 CFLAGS += -fomit-frame-pointer -freg-struct-return |
7 | 497 else # SPEED |
498 CFLAGS += -O2 | |
499 endif | |
500 endif | |
501 CFLAGS += -s | |
502 endif | |
503 | |
434 | 504 LIB = -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32 -lcomctl32 -lversion |
188 | 505 GUIOBJ = $(OUTDIR)/gui.o $(OUTDIR)/gui_w32.o $(OUTDIR)/gui_beval.o $(OUTDIR)/os_w32exe.o |
7 | 506 OBJ = \ |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
2116
diff
changeset
|
507 $(OUTDIR)/blowfish.o \ |
7 | 508 $(OUTDIR)/buffer.o \ |
509 $(OUTDIR)/charset.o \ | |
510 $(OUTDIR)/diff.o \ | |
511 $(OUTDIR)/digraph.o \ | |
512 $(OUTDIR)/edit.o \ | |
513 $(OUTDIR)/eval.o \ | |
514 $(OUTDIR)/ex_cmds.o \ | |
515 $(OUTDIR)/ex_cmds2.o \ | |
516 $(OUTDIR)/ex_docmd.o \ | |
517 $(OUTDIR)/ex_eval.o \ | |
518 $(OUTDIR)/ex_getln.o \ | |
519 $(OUTDIR)/fileio.o \ | |
520 $(OUTDIR)/fold.o \ | |
521 $(OUTDIR)/getchar.o \ | |
440 | 522 $(OUTDIR)/hardcopy.o \ |
799 | 523 $(OUTDIR)/hashtab.o \ |
7 | 524 $(OUTDIR)/main.o \ |
525 $(OUTDIR)/mark.o \ | |
526 $(OUTDIR)/memfile.o \ | |
527 $(OUTDIR)/memline.o \ | |
528 $(OUTDIR)/menu.o \ | |
529 $(OUTDIR)/message.o \ | |
530 $(OUTDIR)/misc1.o \ | |
531 $(OUTDIR)/misc2.o \ | |
532 $(OUTDIR)/move.o \ | |
533 $(OUTDIR)/mbyte.o \ | |
534 $(OUTDIR)/normal.o \ | |
535 $(OUTDIR)/ops.o \ | |
536 $(OUTDIR)/option.o \ | |
537 $(OUTDIR)/os_win32.o \ | |
538 $(OUTDIR)/os_mswin.o \ | |
4168 | 539 $(OUTDIR)/winclip.o \ |
7 | 540 $(OUTDIR)/pathdef.o \ |
799 | 541 $(OUTDIR)/popupmnu.o \ |
7 | 542 $(OUTDIR)/quickfix.o \ |
543 $(OUTDIR)/regexp.o \ | |
544 $(OUTDIR)/screen.o \ | |
545 $(OUTDIR)/search.o \ | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
2116
diff
changeset
|
546 $(OUTDIR)/sha256.o \ |
227 | 547 $(OUTDIR)/spell.o \ |
7 | 548 $(OUTDIR)/syntax.o \ |
549 $(OUTDIR)/tag.o \ | |
550 $(OUTDIR)/term.o \ | |
551 $(OUTDIR)/ui.o \ | |
552 $(OUTDIR)/undo.o \ | |
553 $(OUTDIR)/version.o \ | |
554 $(OUTDIR)/vimrc.o \ | |
555 $(OUTDIR)/window.o | |
556 | |
557 ifdef PERL | |
558 OBJ += $(OUTDIR)/if_perl.o | |
559 endif | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
560 ifdef LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
561 OBJ += $(OUTDIR)/if_lua.o |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2192
diff
changeset
|
562 endif |
14 | 563 ifdef MZSCHEME |
564 OBJ += $(OUTDIR)/if_mzsch.o | |
565 MZSCHEME_INCL = if_mzsch.h | |
1894 | 566 ifeq (yes,$(MZSCHEME_GENERATE_BASE)) |
567 CFLAGS += -DINCLUDE_MZSCHEME_BASE | |
568 MZ_EXTRA_DEP += mzscheme_base.c | |
569 endif | |
570 ifeq (yes,$(MZSCHEME_PRECISE_GC)) | |
571 CFLAGS += -DMZ_PRECISE_GC | |
572 endif | |
14 | 573 endif |
7 | 574 ifdef PYTHON |
575 OBJ += $(OUTDIR)/if_python.o | |
576 endif | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
577 ifdef PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
578 OBJ += $(OUTDIR)/if_python3.o |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
579 endif |
7 | 580 ifdef RUBY |
581 OBJ += $(OUTDIR)/if_ruby.o | |
582 endif | |
583 ifdef TCL | |
584 OBJ += $(OUTDIR)/if_tcl.o | |
585 endif | |
586 ifeq ($(CSCOPE),yes) | |
587 OBJ += $(OUTDIR)/if_cscope.o | |
588 endif | |
589 ifeq ($(NETBEANS),yes) | |
12 | 590 # Only allow NETBEANS for a GUI build. |
591 ifeq (yes, $(GUI)) | |
188 | 592 OBJ += $(OUTDIR)/netbeans.o |
7 | 593 LIB += -lwsock32 |
594 endif | |
12 | 595 endif |
7 | 596 ifdef XPM |
12 | 597 # Only allow XPM for a GUI build. |
598 ifeq (yes, $(GUI)) | |
7 | 599 OBJ += $(OUTDIR)/xpm_w32.o |
600 # You'll need libXpm.a from http://gnuwin32.sf.net | |
5573 | 601 LIB += -L$(XPM)/lib -lXpm |
7 | 602 endif |
12 | 603 endif |
7 | 604 |
605 | |
14 | 606 ifdef MZSCHEME |
607 MZSCHEME_SUFFIX = Z | |
608 endif | |
609 | |
7 | 610 ifeq ($(GUI),yes) |
611 TARGET := gvim$(DEBUG_SUFFIX).exe | |
612 DEFINES += $(DEF_GUI) | |
613 OBJ += $(GUIOBJ) | |
614 LFLAGS += -mwindows | |
3790 | 615 OUTDIR = gobj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH) |
7 | 616 else |
617 TARGET := vim$(DEBUG_SUFFIX).exe | |
3790 | 618 OUTDIR = obj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH) |
7 | 619 endif |
620 | |
621 ifdef GETTEXT | |
622 ifneq (yes, $(GETTEXT)) | |
623 CFLAGS += -I$(GETTEXTINCLUDE) | |
624 ifndef STATIC_GETTEXT | |
625 LIB += -L$(GETTEXTLIB) -l$(INTLLIB) | |
626 ifeq (USE_SAFE_GETTEXT_DLL, $(DYNAMIC_GETTEXT)) | |
627 OBJ+=$(SAFE_GETTEXT_DLL_OBJ) | |
628 endif | |
629 else | |
630 LIB += -L$(GETTEXTLIB) -lintl | |
631 endif | |
632 endif | |
633 endif | |
634 | |
635 ifdef PERL | |
636 ifeq (no, $(DYNAMIC_PERL)) | |
5537 | 637 LIB += -L$(PERLLIBS) -lperl$(PERL_VER) |
7 | 638 endif |
639 endif | |
640 | |
641 ifdef TCL | |
642 LIB += -L$(TCL)/lib | |
643 ifeq (yes, $(DYNAMIC_TCL)) | |
644 LIB += -ltclstub$(TCL_VER) | |
645 else | |
646 LIB += -ltcl$(TCL_VER) | |
647 endif | |
648 endif | |
649 | |
650 ifeq (yes, $(OLE)) | |
2674 | 651 LIB += -loleaut32 |
7 | 652 OBJ += $(OUTDIR)/if_ole.o |
2674 | 653 ifeq (yes, $(STATIC_STDCPLUS)) |
654 LIB += -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic | |
655 else | |
656 LIB += -lstdc++ | |
657 endif | |
7 | 658 endif |
659 | |
660 ifeq (yes, $(MBYTE)) | |
661 DEFINES += -DFEAT_MBYTE | |
662 endif | |
663 | |
664 ifeq (yes, $(IME)) | |
665 DEFINES += -DFEAT_MBYTE_IME | |
666 ifeq (yes, $(DYNAMIC_IME)) | |
667 DEFINES += -DDYNAMIC_IME | |
668 else | |
669 LIB += -limm32 | |
670 endif | |
671 endif | |
672 | |
673 ifdef ICONV | |
674 ifneq (yes, $(ICONV)) | |
675 LIB += -L$(ICONV) | |
676 CFLAGS += -I$(ICONV) | |
677 endif | |
678 DEFINES+=-DDYNAMIC_ICONV | |
679 endif | |
680 | |
681 all: $(TARGET) vimrun.exe xxd/xxd.exe install.exe uninstal.exe GvimExt/gvimext.dll | |
682 | |
683 vimrun.exe: vimrun.c | |
684 $(CC) $(CFLAGS) -o vimrun.exe vimrun.c $(LIB) | |
685 | |
686 install.exe: dosinst.c | |
687 $(CC) $(CFLAGS) -o install.exe dosinst.c $(LIB) -lole32 -luuid | |
688 | |
689 uninstal.exe: uninstal.c | |
690 $(CC) $(CFLAGS) -o uninstal.exe uninstal.c $(LIB) | |
691 | |
692 $(TARGET): $(OUTDIR) $(OBJ) | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
693 $(CC) $(CFLAGS) $(LFLAGS) -o $@ $(OBJ) $(LIB) -lole32 -luuid $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB) |
7 | 694 |
695 upx: exes | |
696 upx gvim.exe | |
697 upx vim.exe | |
698 | |
3388 | 699 mpress: exes |
700 mpress gvim.exe | |
701 mpress vim.exe | |
702 | |
7 | 703 xxd/xxd.exe: xxd/xxd.c |
3110 | 704 $(MAKE) -C xxd -f Make_ming.mak CC=$(CC) |
7 | 705 |
706 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
|
707 $(MAKE) -C GvimExt -f Make_ming.mak CROSS=$(CROSS) CROSS_COMPILE=$(CROSS_COMPILE) |
7 | 708 |
709 clean: | |
710 -$(DEL) $(OUTDIR)$(DIRSLASH)*.o | |
711 -$(DEL) $(OUTDIR)$(DIRSLASH)*.res | |
712 -rmdir $(OUTDIR) | |
713 -$(DEL) *.exe | |
714 -$(DEL) pathdef.c | |
715 ifdef PERL | |
716 -$(DEL) if_perl.c | |
717 endif | |
1951 | 718 ifdef MZSCHEME |
719 -$(DEL) mzscheme_base.c | |
720 endif | |
7 | 721 $(MAKE) -C GvimExt -f Make_ming.mak clean |
3110 | 722 $(MAKE) -C xxd -f Make_ming.mak clean |
7 | 723 |
724 ########################################################################### | |
725 INCL = vim.h feature.h os_win32.h os_dos.h ascii.h keymap.h term.h macros.h \ | |
726 structs.h regexp.h option.h ex_cmds.h proto.h globals.h farsi.h \ | |
727 gui.h | |
728 | |
4724
450e13fe1621
updated for version 7.3.1109
Bram Moolenaar <bram@vim.org>
parents:
4444
diff
changeset
|
729 $(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
|
730 $(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
|
731 |
4724
450e13fe1621
updated for version 7.3.1109
Bram Moolenaar <bram@vim.org>
parents:
4444
diff
changeset
|
732 $(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
|
733 $(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
|
734 |
7 | 735 $(OUTDIR)/%.o : %.c $(INCL) |
736 $(CC) -c $(CFLAGS) $< -o $@ | |
737 | |
3441 | 738 $(OUTDIR)/vimrc.o: vim.rc version.h gui_w32_rc.h |
739 $(WINDRES) $(WINDRES_FLAGS) $(DEFINES) \ | |
740 --input-format=rc --output-format=coff -i vim.rc -o $@ | |
7 | 741 |
742 $(OUTDIR): | |
107 | 743 $(MKDIR) $(OUTDIR) |
7 | 744 |
745 $(OUTDIR)/ex_docmd.o: ex_docmd.c $(INCL) ex_cmds.h | |
746 $(CC) -c $(CFLAGS) ex_docmd.c -o $(OUTDIR)/ex_docmd.o | |
747 | |
748 $(OUTDIR)/ex_eval.o: ex_eval.c $(INCL) ex_cmds.h | |
749 $(CC) -c $(CFLAGS) ex_eval.c -o $(OUTDIR)/ex_eval.o | |
750 | |
4041 | 751 $(OUTDIR)/gui_w32.o: gui_w32.c gui_w48.c $(INCL) |
752 $(CC) -c $(CFLAGS) gui_w32.c -o $(OUTDIR)/gui_w32.o | |
753 | |
7 | 754 $(OUTDIR)/if_cscope.o: if_cscope.c $(INCL) if_cscope.h |
755 $(CC) -c $(CFLAGS) if_cscope.c -o $(OUTDIR)/if_cscope.o | |
756 | |
1351 | 757 # Remove -D__IID_DEFINED__ for newer versions of the w32api |
7 | 758 $(OUTDIR)/if_ole.o: if_ole.cpp $(INCL) |
1351 | 759 $(CC) $(CFLAGS) -c -o $(OUTDIR)/if_ole.o if_ole.cpp |
7 | 760 |
761 $(OUTDIR)/if_ruby.o: if_ruby.c $(INCL) | |
762 ifeq (16, $(RUBY)) | |
763 $(CC) $(CFLAGS) -U_WIN32 -c -o $(OUTDIR)/if_ruby.o if_ruby.c | |
764 endif | |
765 | |
766 if_perl.c: if_perl.xs typemap | |
3064 | 767 $(XSUBPP) -prototypes -typemap \ |
7 | 768 $(PERLLIB)/ExtUtils/typemap if_perl.xs > $@ |
769 | |
770 $(OUTDIR)/netbeans.o: netbeans.c $(INCL) $(NBDEBUG_INCL) $(NBDEBUG_SRC) | |
771 $(CC) -c $(CFLAGS) netbeans.c -o $(OUTDIR)/netbeans.o | |
772 | |
4444 | 773 $(OUTDIR)/regexp.o: regexp.c regexp_nfa.c $(INCL) |
774 $(CC) -c $(CFLAGS) regexp.c -o $(OUTDIR)/regexp.o | |
775 | |
1894 | 776 $(OUTDIR)/if_mzsch.o: if_mzsch.c $(INCL) if_mzsch.h $(MZ_EXTRA_DEP) |
777 $(CC) -c $(CFLAGS) if_mzsch.c -o $(OUTDIR)/if_mzsch.o | |
778 | |
779 mzscheme_base.c: | |
780 $(MZSCHEME)/mzc --c-mods mzscheme_base.c ++lib scheme/base | |
781 | |
7 | 782 pathdef.c: $(INCL) |
783 ifneq (sh.exe, $(SHELL)) | |
784 @echo creating pathdef.c | |
785 @echo '/* pathdef.c */' > pathdef.c | |
786 @echo '#include "vim.h"' >> pathdef.c | |
787 @echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' >> pathdef.c | |
788 @echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' >> pathdef.c | |
789 @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
|
790 @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 | 791 @echo 'char_u *compiled_user = (char_u *)"$(USERNAME)";' >> pathdef.c |
792 @echo 'char_u *compiled_sys = (char_u *)"$(USERDOMAIN)";' >> pathdef.c | |
793 else | |
794 @echo creating pathdef.c | |
795 @echo /* pathdef.c */ > pathdef.c | |
796 @echo #include "vim.h" >> pathdef.c | |
797 @echo char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)"; >> pathdef.c | |
798 @echo char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)"; >> pathdef.c | |
799 @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
|
800 @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 | 801 @echo char_u *compiled_user = (char_u *)"$(USERNAME)"; >> pathdef.c |
802 @echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> pathdef.c | |
803 endif |