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