[7.2.216] Two error messages have the same number E812.
[vim_extended.git] / src / Make_ming.mak
blobe0717b62aeb725a0351ebc19efc4963b867d98a2
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.
7 # Tested on Win32 NT 4 and Win95.
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
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'.
17 # "make upx" makes *compressed* versions of the GUI and console EXEs, using the
18 # excellent UPX compressor:
19 # http://upx.sourceforge.net/
21 # Maintained by Ron Aaron <ronaharon@yahoo.com>
22 # updated 2003 Jan 20
24 #>>>>> choose options:
25 # set to yes for a debug build
26 DEBUG=no
27 # set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization
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
34 # set to one of i386, i486, i586, i686 as the minimum target processor
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)
59 # If the user doesn't want gettext, undefine it.
60 ifeq (no, $(GETTEXT))
61 GETTEXT=
62 endif
63 # Added by E.F. Amatria <eferna1@platea.ptic.mec.es> 2001 Feb 23
64 # Uncomment the first line and one of the following three if you want Native Language
65 # Support. You'll need gnu_gettext.win32, a MINGW32 Windows PORT of gettext by
66 # Franco Bez <franco.bez@gmx.de>. It may be found at
67 # http://home.a-city.de/franco.bez/gettext/gettext_win32_en.html
68 # Tested with mingw32 with GCC-2.95.2 on Win98
69 # Updated 2001 Jun 9
70 #GETTEXT=c:/gettext.win32.msvcrt
71 #STATIC_GETTEXT=USE_STATIC_GETTEXT
72 #DYNAMIC_GETTEXT=USE_GETTEXT_DLL
73 #DYNAMIC_GETTEXT=USE_SAFE_GETTEXT_DLL
74 SAFE_GETTEXT_DLL_OBJ = $(GETTEXT)/src/safe_gettext_dll/safe_gettext_dll.o
75 # Alternatively, if you uncomment the two following lines, you get a "safe" version
76 # without linking the safe_gettext_dll.o object file.
77 #DYNAMIC_GETTEXT=DYNAMIC_GETTEXT
78 #GETTEXT_DYNAMIC=gnu_gettext.dll
79 INTLPATH=$(GETTEXT)/lib/mingw32
80 INTLLIB=gnu_gettext
82 # If you are using gettext-0.10.35 from http://sourceforge.net/projects/gettext
83 # or gettext-0.10.37 from http://sourceforge.net/projects/mingwrep/
84 # uncomment the following, but I can't build a static versiĆ³n with them, ?-(|
85 #GETTEXT=c:/gettext-0.10.37-20010430
86 #STATIC_GETTEXT=USE_STATIC_GETTEXT
87 #DYNAMIC_GETTEXT=DYNAMIC_GETTEXT
88 #INTLPATH=$(GETTEXT)/lib
89 #INTLLIB=intl
91 # uncomment 'PERL' if you want a perl-enabled version
92 #PERL=C:/perl
93 ifdef PERL
94 ifndef PERL_VER
95 PERL_VER=56
96 endif
97 ifndef DYNAMIC_PERL
98 DYNAMIC_PERL=yes
99 endif
100 # on Linux, for cross-compile, it's here:
101 #PERLLIB=/home/ron/ActivePerl/lib
102 # on NT, it's here:
103 PERLLIB=$(PERL)/lib
104 PERLLIBS=$(PERLLIB)/Core
105 endif
107 # uncomment 'MZSCHEME' if you want a MzScheme-enabled version
108 #MZSCHEME=d:/plt
109 ifdef MZSCHEME
110 ifndef DYNAMIC_MZSCHEME
111 DYNAMIC_MZSCHEME=yes
112 endif
114 ifndef MZSCHEME_VER
115 MZSCHEME_VER=205_000
116 endif
118 ifndef MZSCHEME_PRECISE_GC
119 MZSCHEME_PRECISE_GC=no
120 endif
122 # for version 4.x we need to generate byte-code for Scheme base
123 ifndef MZSCHEME_GENERATE_BASE
124 MZSCHEME_GENERATE_BASE=no
125 endif
127 ifeq (no,$(DYNAMIC_MZSCHEME))
128 ifeq (yes,$(MZSCHEME_PRECISE_GC))
129 MZSCHEME_LIB=-lmzsch$(MZSCHEME_VER)
130 else
131 MZSCHEME_LIB = -lmzsch$(MZSCHEME_VER) -lmzgc$(MZSCHEME_VER)
132 endif
133 # the modern MinGW can dynamically link to dlls directly.
134 # point MZSCHEME_DLLS to where you put libmzschXXXXXXX.dll and libgcXXXXXXX.dll
135 ifndef MZSCHEME_DLLS
136 MZSCHEME_DLLS=$(MZSCHEME)
137 endif
138 MZSCHEME_LIBDIR=-L$(MZSCHEME_DLLS)
139 endif
141 endif
143 # Python support -- works with the ActiveState python 2.0 release (and others
144 # too, probably)
146 # uncomment 'PYTHON' to make python-enabled version
147 # Put the path to the python distro here. If cross compiling from Linux, you
148 # will also need to convert the header files to unix instead of dos format:
149 # for fil in *.h ; do vim -e -c 'set ff=unix|w|q' $fil
150 # and also, you will need to make a mingw32 'libpython20.a' to link with:
151 # cd $PYTHON/libs
152 # pexports python20.dll > python20.def
153 # dlltool -d python20.def -l libpython20.a
154 # on my Linux box, I put the Python stuff here:
155 #PYTHON=/home/ron/ActivePython-2.0.0-202/src/Core
156 # on my NT box, it's here:
157 #PYTHON=c:/python20
159 ifdef PYTHON
160 ifndef DYNAMIC_PYTHON
161 DYNAMIC_PYTHON=yes
162 endif
164 ifndef PYTHON_VER
165 PYTHON_VER=22
166 endif
168 ifeq (no,$(DYNAMIC_PYTHON))
169 PYTHONLIB=-L$(PYTHON)/libs -lpython$(PYTHON_VER)
170 endif
171 # my include files are in 'win32inc' on Linux, and 'include' in the standard
172 # NT distro (ActiveState)
173 ifeq ($(CROSS),no)
174 PYTHONINC=-I $(PYTHON)/include
175 else
176 PYTHONINC=-I $(PYTHON)/win32inc
177 endif
178 endif
180 # TCL interface:
181 # TCL=[Path to TCL directory]
182 # DYNAMIC_TCL=yes (to load the TCL DLL dynamically)
183 # TCL_VER=[TCL version, eg 83, 84] (default is 83)
184 #TCL=c:/tcl
185 ifdef TCL
186 ifndef DYNAMIC_TCL
187 DYNAMIC_TCL=yes
188 endif
189 ifndef TCL_VER
190 TCL_VER = 83
191 endif
192 TCLINC += -I$(TCL)/include
193 endif
196 # Ruby interface:
197 # RUBY=[Path to Ruby directory]
198 # DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically)
199 # RUBY_VER=[Ruby version, eg 16, 17] (default is 16)
200 # RUBY_VER_LONG=[Ruby version, eg 1.6, 1.7] (default is 1.6)
201 # You must set RUBY_VER_LONG when change RUBY_VER.
202 #RUBY=c:/ruby
203 ifdef RUBY
204 ifndef DYNAMIC_RUBY
205 DYNAMIC_RUBY=yes
206 endif
207 # Set default value
208 ifndef RUBY_VER
209 RUBY_VER = 16
210 endif
211 ifndef RUBY_VER_LONG
212 RUBY_VER_LONG = 1.6
213 endif
215 ifeq ($(RUBY_VER), 16)
216 ifndef RUBY_PLATFORM
217 RUBY_PLATFORM = i586-mswin32
218 endif
219 ifndef RUBY_INSTALL_NAME
220 RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_VER)
221 endif
222 else
223 ifndef RUBY_PLATFORM
224 RUBY_PLATFORM = i386-mswin32
225 endif
226 ifndef RUBY_INSTALL_NAME
227 RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_VER)
228 endif
229 endif
231 RUBYINC =-I $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
232 ifeq (no, $(DYNAMIC_RUBY))
233 RUBYLIB = -L$(RUBY)/lib -l$(RUBY_INSTALL_NAME)
234 endif
236 endif # RUBY
238 # See feature.h for a list of options.
239 # Any other defines can be included here.
240 DEF_GUI=-DFEAT_GUI_W32 -DFEAT_CLIPBOARD
241 DEFINES=-DWIN32 -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) \
242 -DHAVE_PATHDEF -DFEAT_$(FEATURES)
243 ifeq ($(CROSS),yes)
244 # cross-compiler:
245 CC = i586-pc-mingw32msvc-gcc
246 DEL = rm
247 MKDIR = mkdir -p
248 WINDRES = i586-pc-mingw32msvc-windres
249 else
250 # normal (Windows) compilation:
251 CC = gcc
252 ifneq (sh.exe, $(SHELL))
253 DEL = rm
254 MKDIR = mkdir -p
255 DIRSLASH = /
256 else
257 DEL = del
258 MKDIR = mkdir
259 DIRSLASH = \\
260 endif
261 WINDRES = windres
262 endif
264 #>>>>> end of choices
265 ###########################################################################
267 CFLAGS = -Iproto $(DEFINES) -pipe -w -march=$(ARCH) -Wall
269 ifdef GETTEXT
270 DEFINES += -DHAVE_GETTEXT -DHAVE_LOCALE_H
271 GETTEXTINCLUDE = $(GETTEXT)/include
272 GETTEXTLIB = $(INTLPATH)
273 ifeq (yes, $(GETTEXT))
274 DEFINES += -DDYNAMIC_GETTEXT
275 else
276 ifdef DYNAMIC_GETTEXT
277 DEFINES += -D$(DYNAMIC_GETTEXT)
278 ifdef GETTEXT_DYNAMIC
279 DEFINES += -DGETTEXT_DYNAMIC -DGETTEXT_DLL=\"$(GETTEXT_DYNAMIC)\"
280 endif
281 endif
282 endif
283 endif
285 ifdef PERL
286 CFLAGS += -I$(PERLLIBS) -DFEAT_PERL -L$(PERLLIBS)
287 ifeq (yes, $(DYNAMIC_PERL))
288 CFLAGS += -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl$(PERL_VER).dll\"
289 endif
290 endif
292 ifdef MZSCHEME
293 CFLAGS += -I$(MZSCHEME)/include -DFEAT_MZSCHEME -DMZSCHEME_COLLECTS=\"$(MZSCHEME)/collects\"
294 ifeq (yes, $(DYNAMIC_MZSCHEME))
295 CFLAGS += -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"libmzsch$(MZSCHEME_VER).dll\" -DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\"
296 endif
297 endif
299 ifdef RUBY
300 CFLAGS += -DFEAT_RUBY $(RUBYINC)
301 ifeq (yes, $(DYNAMIC_RUBY))
302 CFLAGS += -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\"
303 CFLAGS += -DDYNAMIC_RUBY_VER=$(RUBY_VER)
304 endif
305 endif
307 ifdef PYTHON
308 CFLAGS += -DFEAT_PYTHON $(PYTHONINC)
309 ifeq (yes, $(DYNAMIC_PYTHON))
310 CFLAGS += -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python$(PYTHON_VER).dll\"
311 endif
312 endif
314 ifdef TCL
315 CFLAGS += -DFEAT_TCL $(TCLINC)
316 ifeq (yes, $(DYNAMIC_TCL))
317 CFLAGS += -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"tcl$(TCL_VER).dll\"
318 endif
319 endif
321 ifeq ($(POSTSCRIPT),yes)
322 DEFINES += -DMSWINPS
323 endif
325 ifeq (yes, $(OLE))
326 DEFINES += -DFEAT_OLE
327 endif
329 ifeq ($(CSCOPE),yes)
330 DEFINES += -DFEAT_CSCOPE
331 endif
333 ifeq ($(NETBEANS),yes)
334 # Only allow NETBEANS for a GUI build.
335 ifeq (yes, $(GUI))
336 DEFINES += -DFEAT_NETBEANS_INTG
338 ifeq ($(NBDEBUG), yes)
339 DEFINES += -DNBDEBUG
340 NBDEBUG_INCL = nbdebug.h
341 NBDEBUG_SRC = nbdebug.c
342 endif
343 endif
344 endif
346 ifdef XPM
347 # Only allow XPM for a GUI build.
348 ifeq (yes, $(GUI))
349 CFLAGS += -DFEAT_XPM_W32 -I $(XPM)/include
350 endif
351 endif
353 ifeq ($(DEBUG),yes)
354 CFLAGS += -g -fstack-check
355 DEBUG_SUFFIX=d
356 else
357 ifeq ($(OPTIMIZE), SIZE)
358 CFLAGS += -Os
359 else
360 ifeq ($(OPTIMIZE), MAXSPEED)
361 CFLAGS += -O3
362 CFLAGS += -fomit-frame-pointer -freg-struct-return
363 else # SPEED
364 CFLAGS += -O2
365 endif
366 endif
367 CFLAGS += -s
368 endif
370 LIB = -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32 -lcomctl32 -lversion
371 GUIOBJ = $(OUTDIR)/gui.o $(OUTDIR)/gui_w32.o $(OUTDIR)/gui_beval.o $(OUTDIR)/os_w32exe.o
372 OBJ = \
373 $(OUTDIR)/buffer.o \
374 $(OUTDIR)/charset.o \
375 $(OUTDIR)/diff.o \
376 $(OUTDIR)/digraph.o \
377 $(OUTDIR)/edit.o \
378 $(OUTDIR)/eval.o \
379 $(OUTDIR)/ex_cmds.o \
380 $(OUTDIR)/ex_cmds2.o \
381 $(OUTDIR)/ex_docmd.o \
382 $(OUTDIR)/ex_eval.o \
383 $(OUTDIR)/ex_getln.o \
384 $(OUTDIR)/fileio.o \
385 $(OUTDIR)/fold.o \
386 $(OUTDIR)/getchar.o \
387 $(OUTDIR)/hardcopy.o \
388 $(OUTDIR)/hashtab.o \
389 $(OUTDIR)/main.o \
390 $(OUTDIR)/mark.o \
391 $(OUTDIR)/memfile.o \
392 $(OUTDIR)/memline.o \
393 $(OUTDIR)/menu.o \
394 $(OUTDIR)/message.o \
395 $(OUTDIR)/misc1.o \
396 $(OUTDIR)/misc2.o \
397 $(OUTDIR)/move.o \
398 $(OUTDIR)/mbyte.o \
399 $(OUTDIR)/normal.o \
400 $(OUTDIR)/ops.o \
401 $(OUTDIR)/option.o \
402 $(OUTDIR)/os_win32.o \
403 $(OUTDIR)/os_mswin.o \
404 $(OUTDIR)/pathdef.o \
405 $(OUTDIR)/popupmnu.o \
406 $(OUTDIR)/quickfix.o \
407 $(OUTDIR)/regexp.o \
408 $(OUTDIR)/screen.o \
409 $(OUTDIR)/search.o \
410 $(OUTDIR)/spell.o \
411 $(OUTDIR)/syntax.o \
412 $(OUTDIR)/tag.o \
413 $(OUTDIR)/term.o \
414 $(OUTDIR)/ui.o \
415 $(OUTDIR)/undo.o \
416 $(OUTDIR)/version.o \
417 $(OUTDIR)/vimrc.o \
418 $(OUTDIR)/window.o
420 ifdef PERL
421 OBJ += $(OUTDIR)/if_perl.o
422 endif
423 ifdef MZSCHEME
424 OBJ += $(OUTDIR)/if_mzsch.o
425 MZSCHEME_INCL = if_mzsch.h
426 ifeq (yes,$(MZSCHEME_GENERATE_BASE))
427 CFLAGS += -DINCLUDE_MZSCHEME_BASE
428 MZ_EXTRA_DEP += mzscheme_base.c
429 endif
430 ifeq (yes,$(MZSCHEME_PRECISE_GC))
431 CFLAGS += -DMZ_PRECISE_GC
432 endif
433 endif
434 ifdef PYTHON
435 OBJ += $(OUTDIR)/if_python.o
436 endif
437 ifdef RUBY
438 OBJ += $(OUTDIR)/if_ruby.o
439 endif
440 ifdef TCL
441 OBJ += $(OUTDIR)/if_tcl.o
442 endif
443 ifeq ($(CSCOPE),yes)
444 OBJ += $(OUTDIR)/if_cscope.o
445 endif
446 ifeq ($(NETBEANS),yes)
447 # Only allow NETBEANS for a GUI build.
448 ifeq (yes, $(GUI))
449 OBJ += $(OUTDIR)/netbeans.o
450 LIB += -lwsock32
451 endif
452 endif
453 ifdef XPM
454 # Only allow XPM for a GUI build.
455 ifeq (yes, $(GUI))
456 OBJ += $(OUTDIR)/xpm_w32.o
457 # You'll need libXpm.a from http://gnuwin32.sf.net
458 LIB += -L $(XPM)/lib -lXpm
459 endif
460 endif
463 ifdef MZSCHEME
464 MZSCHEME_SUFFIX = Z
465 endif
467 ifeq ($(GUI),yes)
468 TARGET := gvim$(DEBUG_SUFFIX).exe
469 DEFINES += $(DEF_GUI)
470 OBJ += $(GUIOBJ)
471 LFLAGS += -mwindows
472 OUTDIR = gobj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)
473 else
474 TARGET := vim$(DEBUG_SUFFIX).exe
475 OUTDIR = obj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)
476 endif
478 ifdef GETTEXT
479 ifneq (yes, $(GETTEXT))
480 CFLAGS += -I$(GETTEXTINCLUDE)
481 ifndef STATIC_GETTEXT
482 LIB += -L$(GETTEXTLIB) -l$(INTLLIB)
483 ifeq (USE_SAFE_GETTEXT_DLL, $(DYNAMIC_GETTEXT))
484 OBJ+=$(SAFE_GETTEXT_DLL_OBJ)
485 endif
486 else
487 LIB += -L$(GETTEXTLIB) -lintl
488 endif
489 endif
490 endif
492 ifdef PERL
493 ifeq (no, $(DYNAMIC_PERL))
494 LIB += -lperl$(PERL_VER)
495 endif
496 endif
498 ifdef TCL
499 LIB += -L$(TCL)/lib
500 ifeq (yes, $(DYNAMIC_TCL))
501 LIB += -ltclstub$(TCL_VER)
502 else
503 LIB += -ltcl$(TCL_VER)
504 endif
505 endif
507 ifeq (yes, $(OLE))
508 LIB += -loleaut32 -lstdc++
509 OBJ += $(OUTDIR)/if_ole.o
510 endif
512 ifeq (yes, $(MBYTE))
513 DEFINES += -DFEAT_MBYTE
514 endif
516 ifeq (yes, $(IME))
517 DEFINES += -DFEAT_MBYTE_IME
518 ifeq (yes, $(DYNAMIC_IME))
519 DEFINES += -DDYNAMIC_IME
520 else
521 LIB += -limm32
522 endif
523 endif
525 ifdef ICONV
526 ifneq (yes, $(ICONV))
527 LIB += -L$(ICONV)
528 CFLAGS += -I$(ICONV)
529 endif
530 DEFINES+=-DDYNAMIC_ICONV
531 endif
533 all: $(TARGET) vimrun.exe xxd/xxd.exe install.exe uninstal.exe GvimExt/gvimext.dll
535 vimrun.exe: vimrun.c
536 $(CC) $(CFLAGS) -o vimrun.exe vimrun.c $(LIB)
538 install.exe: dosinst.c
539 $(CC) $(CFLAGS) -o install.exe dosinst.c $(LIB) -lole32 -luuid
541 uninstal.exe: uninstal.c
542 $(CC) $(CFLAGS) -o uninstal.exe uninstal.c $(LIB)
544 $(TARGET): $(OUTDIR) $(OBJ)
545 $(CC) $(CFLAGS) $(LFLAGS) -o $@ $(OBJ) $(LIB) -lole32 -luuid $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(RUBYLIB)
547 upx: exes
548 upx gvim.exe
549 upx vim.exe
551 xxd/xxd.exe: xxd/xxd.c
552 $(MAKE) -C xxd -f Make_cyg.mak
554 GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
555 $(MAKE) -C GvimExt -f Make_ming.mak
557 clean:
558 -$(DEL) $(OUTDIR)$(DIRSLASH)*.o
559 -$(DEL) $(OUTDIR)$(DIRSLASH)*.res
560 -rmdir $(OUTDIR)
561 -$(DEL) *.exe
562 -$(DEL) pathdef.c
563 ifdef PERL
564 -$(DEL) if_perl.c
565 endif
566 $(MAKE) -C GvimExt -f Make_ming.mak clean
567 $(MAKE) -C xxd -f Make_cyg.mak clean
569 ###########################################################################
570 INCL = vim.h feature.h os_win32.h os_dos.h ascii.h keymap.h term.h macros.h \
571 structs.h regexp.h option.h ex_cmds.h proto.h globals.h farsi.h \
572 gui.h
574 $(OUTDIR)/%.o : %.c $(INCL)
575 $(CC) -c $(CFLAGS) $< -o $@
577 $(OUTDIR)/vimres.res: vim.rc version.h gui_w32_rc.h
578 $(WINDRES) $(DEFINES) vim.rc $(OUTDIR)/vimres.res
580 $(OUTDIR)/vimrc.o: $(OUTDIR)/vimres.res
581 $(WINDRES) $(OUTDIR)/vimres.res $(OUTDIR)/vimrc.o
583 $(OUTDIR):
584 $(MKDIR) $(OUTDIR)
586 $(OUTDIR)/ex_docmd.o: ex_docmd.c $(INCL) ex_cmds.h
587 $(CC) -c $(CFLAGS) ex_docmd.c -o $(OUTDIR)/ex_docmd.o
589 $(OUTDIR)/ex_eval.o: ex_eval.c $(INCL) ex_cmds.h
590 $(CC) -c $(CFLAGS) ex_eval.c -o $(OUTDIR)/ex_eval.o
592 $(OUTDIR)/if_cscope.o: if_cscope.c $(INCL) if_cscope.h
593 $(CC) -c $(CFLAGS) if_cscope.c -o $(OUTDIR)/if_cscope.o
595 # Remove -D__IID_DEFINED__ for newer versions of the w32api
596 $(OUTDIR)/if_ole.o: if_ole.cpp $(INCL)
597 $(CC) $(CFLAGS) -c -o $(OUTDIR)/if_ole.o if_ole.cpp
599 $(OUTDIR)/if_ruby.o: if_ruby.c $(INCL)
600 ifeq (16, $(RUBY))
601 $(CC) $(CFLAGS) -U_WIN32 -c -o $(OUTDIR)/if_ruby.o if_ruby.c
602 endif
604 if_perl.c: if_perl.xs typemap
605 perl $(PERLLIB)/ExtUtils/xsubpp -prototypes -typemap \
606 $(PERLLIB)/ExtUtils/typemap if_perl.xs > $@
608 $(OUTDIR)/netbeans.o: netbeans.c $(INCL) $(NBDEBUG_INCL) $(NBDEBUG_SRC)
609 $(CC) -c $(CFLAGS) netbeans.c -o $(OUTDIR)/netbeans.o
611 $(OUTDIR)/if_mzsch.o: if_mzsch.c $(INCL) if_mzsch.h $(MZ_EXTRA_DEP)
612 $(CC) -c $(CFLAGS) if_mzsch.c -o $(OUTDIR)/if_mzsch.o
614 mzscheme_base.c:
615 $(MZSCHEME)/mzc --c-mods mzscheme_base.c ++lib scheme/base
617 pathdef.c: $(INCL)
618 ifneq (sh.exe, $(SHELL))
619 @echo creating pathdef.c
620 @echo '/* pathdef.c */' > pathdef.c
621 @echo '#include "vim.h"' >> pathdef.c
622 @echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' >> pathdef.c
623 @echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' >> pathdef.c
624 @echo 'char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)";' >> pathdef.c
625 @echo 'char_u *all_lflags = (char_u *)"$(CC) $(CFLAGS) $(LFLAGS) -o $(TARGET) $(LIB) -lole32 -luuid $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(RUBYLIB)";' >> pathdef.c
626 @echo 'char_u *compiled_user = (char_u *)"$(USERNAME)";' >> pathdef.c
627 @echo 'char_u *compiled_sys = (char_u *)"$(USERDOMAIN)";' >> pathdef.c
628 else
629 @echo creating pathdef.c
630 @echo /* pathdef.c */ > pathdef.c
631 @echo #include "vim.h" >> pathdef.c
632 @echo char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)"; >> pathdef.c
633 @echo char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)"; >> pathdef.c
634 @echo char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)"; >> pathdef.c
635 @echo char_u *all_lflags = (char_u *)"$(CC) $(CFLAGS) $(LFLAGS) -o $(TARGET) $(LIB) -lole32 -luuid $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(RUBYLIB)"; >> pathdef.c
636 @echo char_u *compiled_user = (char_u *)"$(USERNAME)"; >> pathdef.c
637 @echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> pathdef.c
638 endif