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