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