blob: 4c757e1b32af1fbe558a9a174fa47016401d7cbc [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001#
2# Makefile for VIM on Win32, using Cygnus gcc
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00003# Last updated by Dan Sharp. Last Change: 2006 Apr 30
Bram Moolenaar65c1b012005-01-31 19:02:28 +00004#
5# Also read INSTALLpc.txt!
Bram Moolenaar071d4272004-06-13 20:20:40 +00006#
7# This compiles Vim as a Windows application. If you want Vim to run as a
8# Cygwin application use the Makefile (just like on Unix).
9#
10# GUI no or yes: set to yes if you want the GUI version (yes)
11# PERL define to path to Perl dir to get Perl support (not defined)
12# PERL_VER define to version of Perl being used (56)
13# DYNAMIC_PERL no or yes: set to yes to load the Perl DLL dynamically (yes)
14# PYTHON define to path to Python dir to get PYTHON support (not defined)
15# PYTHON_VER define to version of Python being used (22)
16# DYNAMIC_PYTHON no or yes: use yes to load the Python DLL dynamically (yes)
17# TCL define to path to TCL dir to get TCL support (not defined)
18# TCL_VER define to version of TCL being used (83)
19# DYNAMIC_TCL no or yes: use yes to load the TCL DLL dynamically (yes)
20# RUBY define to path to Ruby dir to get Ruby support (not defined)
21# RUBY_VER define to version of Ruby being used (16)
22# DYNAMIC_RUBY no or yes: use yes to load the Ruby DLL dynamically (yes)
Bram Moolenaar281bdce2005-01-25 21:53:18 +000023# MZSCHEME define to path to MzScheme dir to get MZSCHEME support (not defined)
24# MZSCHEME_VER define to version of MzScheme being used (209_000)
25# DYNAMIC_MZSCHEME no or yes: use yes to load the MzScheme DLLs dynamically (yes)
Bram Moolenaar65c1b012005-01-31 19:02:28 +000026# MZSCHEME_DLLS path to MzScheme DLLs (libmzgc and libmzsch), for "static" build.
Bram Moolenaar071d4272004-06-13 20:20:40 +000027# GETTEXT no or yes: set to yes for dynamic gettext support (yes)
28# ICONV no or yes: set to yes for dynamic iconv support (yes)
29# MBYTE no or yes: set to yes to include multibyte support (yes)
30# IME no or yes: set to yes to include IME support (yes)
31# DYNAMIC_IME no or yes: set to yes to load imm32.dll dynamically (yes)
32# OLE no or yes: set to yes to make OLE gvim (no)
33# DEBUG no or yes: set to yes if you wish a DEBUGging build (no)
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000034# CPUNR No longer supported, use ARCH.
Bram Moolenaar071d4272004-06-13 20:20:40 +000035# ARCH i386 through pentium4: select -march argument to compile with (i386)
36# USEDLL no or yes: set to yes to use the Runtime library DLL (no)
37# For USEDLL=yes the cygwin1.dll is required to run Vim.
38# POSTSCRIPT no or yes: set to yes for PostScript printing (no)
39# FEATURES TINY, SMALL, NORMAL, BIG or HUGE (BIG)
40# WINVER Lowest Win32 version to support. (0x0400)
41# CSCOPE no or yes: to include cscope interface support (yes)
42# OPTIMIZE SPACE, SPEED, or MAXSPEED: set optimization level (MAXSPEED)
43# NETBEANS no or yes: to include netbeans interface support (yes when GUI
44# is yes)
Bram Moolenaarc9b4b052006-04-30 18:54:39 +000045# NBDEBUG no or yes: to include netbeans interface debugging support (no)
Bram Moolenaar071d4272004-06-13 20:20:40 +000046# XPM define to path to XPM dir to get XPM image support (not defined)
47#>>>>> choose options:
48ifndef GUI
49GUI=yes
50endif
51
52ifndef FEATURES
53FEATURES = BIG
54endif
55
56ifndef GETTEXT
57GETTEXT = yes
58endif
59
60ifndef ICONV
61ICONV = yes
62endif
63
64ifndef MBYTE
65MBYTE = yes
66endif
67
68ifndef IME
69IME = yes
70endif
71
Bram Moolenaar071d4272004-06-13 20:20:40 +000072ifndef ARCH
73ARCH = i386
74endif
75
76ifndef WINVER
77WINVER = 0x0400
78endif
79
80ifndef CSCOPE
81CSCOPE = yes
82endif
83
84ifndef NETBEANS
85ifeq ($(GUI),yes)
86NETBEANS = yes
87endif
88endif
89
90ifndef OPTIMIZE
91OPTIMIZE = MAXSPEED
92endif
93
94### See feature.h for a list of optionals.
95### Any other defines can be included here.
96
97DEFINES = -DWIN32 -DHAVE_PATHDEF -DFEAT_$(FEATURES) \
98 -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER)
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000099INCLUDES = -march=$(ARCH) -Iproto
Bram Moolenaar071d4272004-06-13 20:20:40 +0000100
101#>>>>> name of the compiler and linker, name of lib directory
102CC = gcc
103RC = windres
104
105##############################
106# DYNAMIC_PERL=yes and no both work
107##############################
108ifdef PERL
109DEFINES += -DFEAT_PERL
110INCLUDES += -I$(PERL)/lib/CORE
111EXTRA_OBJS += $(OUTDIR)/if_perl.o
112
113ifndef DYNAMIC_PERL
114DYNAMIC_PERL = yes
115endif
116
117ifndef PERL_VER
118PERL_VER = 56
119endif
120
121ifeq (yes, $(DYNAMIC_PERL))
122DEFINES += -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl$(PERL_VER).dll\"
123else
124EXTRA_LIBS += $(PERL)/lib/CORE/perl$(PERL_VER).lib
125endif
126endif
127
128##############################
129# DYNAMIC_PYTHON=yes works.
130# DYNAMIC_PYTHON=no does not (unresolved externals on link).
131##############################
132ifdef PYTHON
133DEFINES += -DFEAT_PYTHON
134INCLUDES += -I$(PYTHON)/include
135EXTRA_OBJS += $(OUTDIR)/if_python.o
136
137ifndef DYNAMIC_PYTHON
138DYNAMIC_PYTHON = yes
139endif
140
141ifndef PYTHON_VER
142PYTHON_VER = 22
143endif
144
145ifeq (yes, $(DYNAMIC_PYTHON))
146DEFINES += -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python$(PYTHON_VER).dll\"
147else
148EXTRA_LIBS += $(PYTHON)/libs/python$(PYTHON_VER).lib
149endif
150endif
151
152##############################
153# DYNAMIC_RUBY=yes works.
154# DYNAMIC_RUBY=no does not (process exits).
155##############################
156ifdef RUBY
157
158ifndef RUBY_VER
159RUBY_VER=16
160endif
161
162ifndef RUBY_VER_LONG
163RUBY_VER_LONG=1.6
164endif
165
166ifndef DYNAMIC_RUBY
167DYNAMIC_RUBY = yes
168endif
169
170ifeq ($(RUBY_VER), 16)
171ifndef RUBY_PLATFORM
172RUBY_PLATFORM = i586-mswin32
173endif
174ifndef RUBY_INSTALL_NAME
175RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_VER)
176endif
177else
178ifndef RUBY_PLATFORM
179RUBY_PLATFORM = i386-mswin32
180endif
181ifndef RUBY_INSTALL_NAME
182RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_VER)
183endif
184endif
185
186DEFINES += -DFEAT_RUBY
187INCLUDES += -I$(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
188EXTRA_OBJS += $(OUTDIR)/if_ruby.o
189
190ifeq (yes, $(DYNAMIC_RUBY))
191DEFINES += -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\"
192DEFINES += -DDYNAMIC_RUBY_VER=$(RUBY_VER)
193else
194EXTRA_LIBS += $(RUBY)/lib/$(RUBY_INSTALL_NAME).lib
195endif
196endif
197
198##############################
Bram Moolenaar281bdce2005-01-25 21:53:18 +0000199# DYNAMIC_MZSCHEME=yes works
200# DYNAMIC_MZSCHEME=no works too
201##############################
202ifdef MZSCHEME
203DEFINES += -DFEAT_MZSCHEME
204INCLUDES += -I$(MZSCHEME)/include
205EXTRA_OBJS += $(OUTDIR)/if_mzsch.o
206
207ifndef DYNAMIC_MZSCHEME
208DYNAMIC_MZSCHEME = yes
209endif
210
211ifndef MZSCHEME_VER
212MZSCHEME_VER = 209_000
213endif
214
215ifeq (yes, $(DYNAMIC_MZSCHEME))
216DEFINES += -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"libmzsch$(MZSCHEME_VER).dll\" -DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\"
217else
218ifndef MZSCHEME_DLLS
219MZSCHEME_DLLS = $(MZSCHEME)
220endif
221EXTRA_LIBS += -L$(MZSCHEME_DLLS) -lmzsch$(MZSCHEME_VER) -lmzgc$(MZSCHEME_VER)
222endif
223endif
224
225##############################
Bram Moolenaar071d4272004-06-13 20:20:40 +0000226# DYNAMIC_TCL=yes and no both work.
227##############################
228ifdef TCL
229DEFINES += -DFEAT_TCL
230INCLUDES += -I$(TCL)/include
231EXTRA_OBJS += $(OUTDIR)/if_tcl.o
232
233ifndef DYNAMIC_TCL
234DYNAMIC_TCL = yes
235endif
236
237ifndef TCL_VER
238TCL_VER = 83
239endif
240
241ifeq (yes, $(DYNAMIC_TCL))
242DEFINES += -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"tcl$(TCL_VER).dll\"
243EXTRA_LIBS += $(TCL)/lib/tclstub$(TCL_VER).lib
244else
245EXTRA_LIBS += $(TCL)/lib/tcl$(TCL_VER).lib
246endif
247endif
248
249##############################
250ifeq (yes, $(GETTEXT))
251DEFINES += -DDYNAMIC_GETTEXT
252endif
253
254##############################
255ifeq (yes, $(ICONV))
256DEFINES += -DDYNAMIC_ICONV
257endif
258
259##############################
260ifeq (yes, $(MBYTE))
261DEFINES += -DFEAT_MBYTE
262endif
263
264##############################
265ifeq (yes, $(IME))
266DEFINES += -DFEAT_MBYTE_IME
267
268ifndef DYNAMIC_IME
269DYNAMIC_IME = yes
270endif
271
272ifeq (yes, $(DYNAMIC_IME))
273DEFINES += -DDYNAMIC_IME
274else
275EXTRA_LIBS += -limm32
276endif
277endif
278
279##############################
280ifeq (yes, $(DEBUG))
281DEFINES += -DDEBUG
282INCLUDES += -g -fstack-check
283DEBUG_SUFFIX = d
284else
285
286ifeq ($(OPTIMIZE), SIZE)
287OPTFLAG = -Os
288else
289ifeq ($(OPTIMIZE), MAXSPEED)
Bram Moolenaar1cd871b2004-12-19 22:46:22 +0000290OPTFLAG = -O3 -fomit-frame-pointer -freg-struct-return
Bram Moolenaar071d4272004-06-13 20:20:40 +0000291else
292OPTFLAG = -O2
293endif
294endif
295
296# A bug in the GCC <= 3.2 optimizer can cause a crash. The
297# following option removes the problem optimization.
298OPTFLAG += -fno-strength-reduce
299
300INCLUDES += -s
301
302endif
303
304##############################
305# USEDLL=yes will build a Cygwin32 executable that relies on cygwin1.dll.
306# USEDLL=no will build a Mingw32 executable with no extra dll dependencies.
307##############################
308ifeq (yes, $(USEDLL))
309DEFINES += -D_MAX_PATH=256 -D__CYGWIN__
310else
311INCLUDES += -mno-cygwin
312endif
313
314##############################
315ifeq (yes, $(POSTSCRIPT))
316DEFINES += -DMSWINPS
317endif
318
319##############################
320ifeq (yes, $(CSCOPE))
321DEFINES += -DFEAT_CSCOPE
322EXTRA_OBJS += $(OUTDIR)/if_cscope.o
323endif
324
325##############################
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000326ifeq ($(GUI),yes)
327
328##############################
Bram Moolenaar071d4272004-06-13 20:20:40 +0000329ifeq (yes, $(NETBEANS))
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000330# Only allow NETBEANS for a GUI build.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000331DEFINES += -DFEAT_NETBEANS_INTG
Bram Moolenaar408fb622005-03-07 23:03:19 +0000332EXTRA_OBJS += $(OUTDIR)/netbeans.o
Bram Moolenaar071d4272004-06-13 20:20:40 +0000333EXTRA_LIBS += -lwsock32
334
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000335ifeq (yes, $(NBDEBUG))
Bram Moolenaar071d4272004-06-13 20:20:40 +0000336DEFINES += -DNBDEBUG
337NBDEBUG_DEP = nbdebug.h nbdebug.c
338endif
339
340endif
341
342##############################
343ifdef XPM
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000344# Only allow XPM for a GUI build.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000345DEFINES += -DFEAT_XPM_W32
346INCLUDES += -I$(XPM)/include
347EXTRA_OBJS += $(OUTDIR)/xpm_w32.o
348EXTRA_LIBS += -L$(XPM)/lib -lXpm
349endif
350
351##############################
Bram Moolenaar071d4272004-06-13 20:20:40 +0000352EXE = gvim$(DEBUG_SUFFIX).exe
353OUTDIR = gobj$(DEBUG_SUFFIX)
354DEFINES += -DFEAT_GUI_W32 -DFEAT_CLIPBOARD
Bram Moolenaar408fb622005-03-07 23:03:19 +0000355EXTRA_OBJS += $(OUTDIR)/gui.o $(OUTDIR)/gui_w32.o $(OUTDIR)/gui_beval.o $(OUTDIR)/os_w32exe.o
Bram Moolenaar45360022005-07-21 21:08:21 +0000356EXTRA_LIBS += -mwindows -lcomctl32 -lversion
Bram Moolenaar071d4272004-06-13 20:20:40 +0000357else
358EXE = vim$(DEBUG_SUFFIX).exe
359OUTDIR = obj$(DEBUG_SUFFIX)
360LIBS += -luser32 -lgdi32 -lcomdlg32
361endif
362
363##############################
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000364ifeq (yes, $(OLE))
365DEFINES += -DFEAT_OLE
366EXTRA_OBJS += $(OUTDIR)/if_ole.o
367EXTRA_LIBS += -loleaut32 -lstdc++
368endif
369
370##############################
Bram Moolenaar071d4272004-06-13 20:20:40 +0000371ifneq (sh.exe, $(SHELL))
372DEL = rm
Bram Moolenaar32e4e1f2005-01-16 21:57:33 +0000373MKDIR = mkdir -p
Bram Moolenaar071d4272004-06-13 20:20:40 +0000374DIRSLASH = /
375else
376DEL = del
Bram Moolenaar32e4e1f2005-01-16 21:57:33 +0000377MKDIR = mkdir
Bram Moolenaar071d4272004-06-13 20:20:40 +0000378DIRSLASH = \\
379endif
380
381#>>>>> end of choices
382###########################################################################
383
384INCL = vim.h globals.h option.h keymap.h macros.h ascii.h term.h os_win32.h \
385 structs.h version.h
386
387CFLAGS = $(OPTFLAG) $(DEFINES) $(INCLUDES)
388
389RCFLAGS = -O coff $(DEFINES)
390
391OBJ = \
392 $(OUTDIR)/buffer.o \
393 $(OUTDIR)/charset.o \
394 $(OUTDIR)/diff.o \
395 $(OUTDIR)/digraph.o \
396 $(OUTDIR)/edit.o \
397 $(OUTDIR)/eval.o \
398 $(OUTDIR)/ex_cmds.o \
399 $(OUTDIR)/ex_cmds2.o \
400 $(OUTDIR)/ex_docmd.o \
401 $(OUTDIR)/ex_eval.o \
402 $(OUTDIR)/ex_getln.o \
403 $(OUTDIR)/fileio.o \
404 $(OUTDIR)/fold.o \
405 $(OUTDIR)/getchar.o \
Bram Moolenaar58d98232005-07-23 22:25:46 +0000406 $(OUTDIR)/hardcopy.o \
Bram Moolenaar76b92b22006-03-24 22:46:53 +0000407 $(OUTDIR)/hashtab.o \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000408 $(OUTDIR)/main.o \
409 $(OUTDIR)/mark.o \
410 $(OUTDIR)/memfile.o \
411 $(OUTDIR)/memline.o \
412 $(OUTDIR)/menu.o \
413 $(OUTDIR)/message.o \
414 $(OUTDIR)/misc1.o \
415 $(OUTDIR)/misc2.o \
416 $(OUTDIR)/move.o \
417 $(OUTDIR)/mbyte.o \
418 $(OUTDIR)/normal.o \
419 $(OUTDIR)/ops.o \
420 $(OUTDIR)/option.o \
421 $(OUTDIR)/os_win32.o \
422 $(OUTDIR)/os_mswin.o \
423 $(OUTDIR)/pathdef.o \
Bram Moolenaar76b92b22006-03-24 22:46:53 +0000424 $(OUTDIR)/popupmnu.o \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000425 $(OUTDIR)/quickfix.o \
426 $(OUTDIR)/regexp.o \
427 $(OUTDIR)/screen.o \
428 $(OUTDIR)/search.o \
Bram Moolenaarfc735152005-03-22 22:54:12 +0000429 $(OUTDIR)/spell.o \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000430 $(OUTDIR)/syntax.o \
431 $(OUTDIR)/tag.o \
432 $(OUTDIR)/term.o \
433 $(OUTDIR)/ui.o \
434 $(OUTDIR)/undo.o \
435 $(OUTDIR)/version.o \
436 $(OUTDIR)/vimrc.o \
437 $(OUTDIR)/window.o \
438 $(EXTRA_OBJS)
439
440all: $(EXE) xxd/xxd.exe vimrun.exe install.exe uninstal.exe GvimExt/gvimext.dll
441
442# According to the Cygwin doc 1.2 FAQ, kernel32 should not be specified for
443# linking unless calling ld directly.
444# See /usr/doc/cygwin-doc-1.2/html/faq_toc.html#TOC93 for more information.
445$(EXE): $(OUTDIR) $(OBJ)
446 $(CC) $(CFLAGS) -o $(EXE) $(OBJ) $(LIBS) -luuid -lole32 $(EXTRA_LIBS)
447
448xxd/xxd.exe: xxd/xxd.c
449 $(MAKE) -C xxd -f Make_cyg.mak USEDLL=$(USEDLL)
450
451GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
452 $(MAKE) -C GvimExt -f Make_ming.mak
453
454vimrun.exe: vimrun.c
455 $(CC) $(CFLAGS) -o vimrun.exe vimrun.c $(LIBS)
456
457install.exe: dosinst.c
458 $(CC) $(CFLAGS) -o install.exe dosinst.c $(LIBS) -luuid -lole32
459
460uninstal.exe: uninstal.c
461 $(CC) $(CFLAGS) -o uninstal.exe uninstal.c $(LIBS)
462
463$(OUTDIR):
Bram Moolenaar32e4e1f2005-01-16 21:57:33 +0000464 $(MKDIR) $(OUTDIR)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000465
466tags:
467 command /c ctags *.c $(INCL)
468
469clean:
470 -$(DEL) $(OUTDIR)$(DIRSLASH)*.o
471 -rmdir $(OUTDIR)
Bram Moolenaarcf3630f2005-01-08 16:04:29 +0000472 -$(DEL) $(EXE) vimrun.exe install.exe uninstal.exe
Bram Moolenaar071d4272004-06-13 20:20:40 +0000473ifdef PERL
474 -$(DEL) if_perl.c
475endif
476 -$(DEL) pathdef.c
477 $(MAKE) -C xxd -f Make_cyg.mak clean
478 $(MAKE) -C GvimExt -f Make_ming.mak clean
479
Bram Moolenaarcf3630f2005-01-08 16:04:29 +0000480distclean: clean
481 -$(DEL) obj$(DIRSLASH)*.o
482 -rmdir obj
483 -$(DEL) gobj$(DIRSLASH)*.o
484 -rmdir gobj
485 -$(DEL) objd$(DIRSLASH)*.o
486 -rmdir objd
487 -$(DEL) gobjd$(DIRSLASH)*.o
488 -rmdir gobjd
489 -$(DEL) *.exe
490
Bram Moolenaar071d4272004-06-13 20:20:40 +0000491###########################################################################
492
493$(OUTDIR)/%.o : %.c $(INCL)
494 $(CC) -c $(CFLAGS) $< -o $@
495
496$(OUTDIR)/ex_docmd.o: ex_docmd.c $(INCL) ex_cmds.h
497 $(CC) -c $(CFLAGS) ex_docmd.c -o $(OUTDIR)/ex_docmd.o
498
499$(OUTDIR)/ex_eval.o: ex_eval.c $(INCL) ex_cmds.h
500 $(CC) -c $(CFLAGS) ex_eval.c -o $(OUTDIR)/ex_eval.o
501
502$(OUTDIR)/if_cscope.o: if_cscope.c $(INCL) if_cscope.h
503 $(CC) -c $(CFLAGS) if_cscope.c -o $(OUTDIR)/if_cscope.o
504
505$(OUTDIR)/if_ole.o: if_ole.cpp $(INCL)
506 $(CC) -c $(CFLAGS) -D__IID_DEFINED__ if_ole.cpp -o $(OUTDIR)/if_ole.o
507
508if_perl.c: if_perl.xs typemap
Bram Moolenaarcf3630f2005-01-08 16:04:29 +0000509 $(PERL)/bin/perl `cygpath -d $(PERL)/lib/ExtUtils/xsubpp` \
510 -prototypes -typemap \
511 `cygpath -d $(PERL)/lib/ExtUtils/typemap` if_perl.xs > $@
Bram Moolenaar071d4272004-06-13 20:20:40 +0000512
513$(OUTDIR)/if_perl.o: if_perl.c $(INCL)
514ifeq (yes, $(USEDLL))
515 $(CC) -c $(CFLAGS) -I/usr/include/mingw -D__MINGW32__ if_perl.c -o $(OUTDIR)/if_perl.o
516endif
517
518$(OUTDIR)/if_ruby.o: if_ruby.c $(INCL)
519ifeq (16, $(RUBY_VER))
520 $(CC) -c $(CFLAGS) -U_WIN32 if_ruby.c -o $(OUTDIR)/if_ruby.o
521endif
522
523$(OUTDIR)/netbeans.o: netbeans.c $(INCL) $(NBDEBUG_DEP)
524 $(CC) -c $(CFLAGS) netbeans.c -o $(OUTDIR)/netbeans.o
525
526$(OUTDIR)/vimrc.o: vim.rc version.h gui_w32_rc.h
527 $(RC) $(RCFLAGS) vim.rc -o $(OUTDIR)/vimrc.o
528
529pathdef.c: $(INCL)
530ifneq (sh.exe, $(SHELL))
531 @echo creating pathdef.c
532 @echo '/* pathdef.c */' > pathdef.c
533 @echo '#include "vim.h"' >> pathdef.c
534 @echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' >> pathdef.c
535 @echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' >> pathdef.c
536 @echo 'char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)";' >> pathdef.c
537 @echo 'char_u *all_lflags = (char_u *)"$(CC) -s -o $(EXE) $(LIBS) -luuid -lole32 $(EXTRA_LIBS)";' >> pathdef.c
538 @echo 'char_u *compiled_user = (char_u *)"$(USERNAME)";' >> pathdef.c
539 @echo 'char_u *compiled_sys = (char_u *)"$(USERDOMAIN)";' >> pathdef.c
540else
541 @echo creating pathdef.c
542 @echo /* pathdef.c */ > pathdef.c
543 @echo #include "vim.h" >> pathdef.c
544 @echo char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)"; >> pathdef.c
545 @echo char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)"; >> pathdef.c
546 @echo char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)"; >> pathdef.c
547 @echo char_u *all_lflags = (char_u *)"$(CC) -s -o $(EXE) $(LIBS) -luuid -lole32 $(EXTRA_LIBS)"; >> pathdef.c
548 @echo char_u *compiled_user = (char_u *)"$(USERNAME)"; >> pathdef.c
549 @echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> pathdef.c
550endif