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