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