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