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