xref: /vim-8.2.3635/src/Makefile (revision d14e00ea)
1# Makefile for Vim on Unix and Unix-like systems	vim:ts=8:sw=8:tw=78
2#
3# This Makefile is loosely based on the GNU Makefile conventions found in
4# standards.info.
5#
6# Compiling Vim, summary:
7#
8#	3. make
9#	5. make install
10#
11# Compiling Vim, details:
12#
13# Edit this file for adjusting to your system. You should not need to edit any
14# other file for machine specific things!
15# The name of this file MUST be Makefile (note the uppercase 'M').
16#
17# 1. Edit this Makefile  {{{1
18#	The defaults for Vim should work on most machines, but you may want to
19#	uncomment some lines or make other changes below to tune it to your
20#	system, compiler or preferences.  Uncommenting means that the '#' in
21#	the first column of a line is removed.
22#	- If you want a version of Vim that is small and starts up quickly,
23#	  you might want to disable the GUI, X11, Perl, Python and Tcl.
24#	- Uncomment the line with --disable-gui if you have Motif, GTK and/or
25#	  Athena but don't want to make gvim (the GUI version of Vim with nice
26#	  menus and scrollbars, but makes Vim bigger and startup slower).
27#	- Uncomment --disable-darwin if on Mac OS X but you want to compile a
28#	  Unix version.
29#	- Uncomment the line "CONF_OPT_X = --without-x" if you have X11 but
30#	  want to disable using X11 libraries.	This speeds up starting Vim,
31#	  but the window title will not be set and the X11 selection can not
32#	  be used.
33#	- Uncomment the line "CONF_OPT_XSMP = --disable-xsmp" if you have the
34#	  X11 Session Management Protocol (XSMP) library (libSM) but do not
35#	  want to use it.
36#	  This can speedup Vim startup but Vim loses the ability to catch the
37#	  user logging out from session-managers like GNOME and work
38#	  could be lost.
39#	- Uncomment one or more of these lines to include an interface;
40#	  each makes Vim quite a bit bigger:
41#		--enable-luainterp	for Lua interpreter
42#		--enable-mzschemeinterp	for MzScheme interpreter
43#		--enable-perlinterp	for Perl interpreter
44#		--enable-python3interp	for Python3 interpreter
45#		--enable-pythoninterp	for Python interpreter
46#		--enable-rubyinterp	for Ruby interpreter
47#		--enable-tclinterp	for Tcl interpreter
48#		--enable-cscope		for Cscope interface
49#	- Uncomment one of the lines with --with-features= to enable a set of
50#	  features (but not the interfaces just mentioned).
51#	- Uncomment the line with --disable-acl to disable ACL support even
52#	  though your system supports it.
53#	- Uncomment the line with --disable-gpm to disable gpm support
54#	  even though you have gpm libraries and includes.
55#	- Uncomment the line with --disable-sysmouse to disable sysmouse
56#	  support even though you have /dev/sysmouse and includes.
57#	- Uncomment one of the lines with CFLAGS and/or CC if you have
58#	  something very special or want to tune the optimizer.
59#	- Search for the name of your system to see if it needs anything
60#	  special.
61#	- A few versions of make use '.include "file"' instead of 'include
62#	  file'.  Adjust the include line below if yours does.
63#
64# 2. Edit feature.h  {{{1
65#	Only if you do not agree with the default compile features, e.g.:
66#	- you want Vim to be as vi compatible as it can be
67#	- you want to use Emacs tags files
68#	- you want right-to-left editing (Hebrew)
69#	- you want 'langmap' support (Greek)
70#	- you want to remove features to make Vim smaller
71#
72# 3. "make"  {{{1
73#	Will first run ./configure with the options in this file. Then it will
74#	start make again on this Makefile to do the compiling. You can also do
75#	this in two steps with:
76#		make config
77#		make
78#	The configuration phase creates/overwrites auto/config.h and
79#	auto/config.mk.
80#	The configure script is created with "make autoconf".  It can detect
81#	different features of your system and act accordingly.  However, it is
82#	not correct for all systems.  Check this:
83#	- If you have X windows, but configure could not find it or reported
84#	  another include/library directory then you wanted to use, you have
85#	  to set CONF_OPT_X below.  You might also check the installation of
86#	  xmkmf.
87#	- If you have --enable-gui=motif and have Motif on your system, but
88#	  configure reports "checking for location of gui... <not found>", you
89#	  have to set GUI_INC_LOC and GUI_LIB_LOC below.
90#	If you changed something, do this to run configure again:
91#		make reconfig
92#
93#	- If you do not trust the automatic configuration code, then inspect
94#	  auto/config.h and auto/config.mk, before starting the actual build
95#	  phase. If possible edit this Makefile, rather than auto/config.mk --
96#	  especially look at the definition of VIMLOC below. Note that the
97#	  configure phase overwrites auto/config.mk and auto/config.h again.
98#	- If you get error messages, find out what is wrong and try to correct
99#	  it in this Makefile. You may need to do "make reconfig" when you
100#	  change anything that configure uses (e.g. switching from an old C
101#	  compiler to an ANSI C compiler). Only when auto/configure does
102#	  something wrong you may need to change one of the other files. If
103#	  you find a clean way to fix the problem, consider sending a note to
104#	  the author of autoconf ([email protected]) or Vim
105#	  ([email protected]). Don't bother to do that when you made a hack
106#	  solution for a non-standard system.
107#
108# 4. "make test"  {{{1
109#	This is optional.  This will run Vim scripts on a number of test
110#	files, and compare the produced output with the expected output.
111#	If all is well, you will get the "ALL DONE" message in the end.  If a
112#	test fails you get "TEST FAILURE".  See below (search for "/^test").
113#
114# 5. "make install"  {{{1
115#	If the new Vim seems to be working OK you can install it and the
116#	documentation in the appropriate location. The default is
117#	"/usr/local".  Change "prefix" below to change the location.
118#	"auto/pathdef.c" will be compiled again after changing this to make
119#	the executable know where the help files are located.
120#	Note that any existing executable is removed or overwritten.  If you
121#	want to keep it you will have to make a backup copy first.
122#	The runtime files are in a different directory for each version.  You
123#	might want to delete an older version.
124#	If you don't want to install everything, there are other targets:
125#		make installvim		only installs Vim, not the tools
126#		make installvimbin	only installs the Vim executable
127#		make installruntime	installs most of the runtime files
128#		make installrtbase	only installs the Vim help and
129#							runtime files
130#		make installlinks	only installs the Vim binary links
131#		make installmanlinks	only installs the Vim manpage links
132#		make installmacros	only installs the Vim macros
133#		make installtutorbin	only installs the Vim tutor program
134#		make installtutor	only installs the Vim tutor files
135#		make installspell	only installs the spell files
136#		make installtools	only installs xxd
137#	If you install Vim, not to install for real but to prepare a package
138#	or RPM, set DESTDIR to the root of the tree.
139#
140# 6. Use Vim until a new version comes out.  {{{1
141#
142# 7. "make uninstall_runtime"  {{{1
143#	Will remove the runtime files for the current version.	This is safe
144#	to use while another version is being used, only version-specific
145#	files will be deleted.
146#	To remove the runtime files of another version:
147#		make uninstall_runtime VIMRTDIR=/vim54
148#	If you want to delete all installed files, use:
149#		make uninstall
150#	Note that this will delete files that have the same name for any
151#	version, thus you might need to do a "make install" soon after this.
152#	Be careful not to remove a version of Vim that is still being used!
153#	To find out which files and directories will be deleted, use:
154#		make -n uninstall
155# }}}
156#
157### This Makefile has been successfully tested on many systems. {{{
158### Only the ones that require special options are mentioned here.
159### Check the (*) column for remarks, listed below.
160### Later code changes may cause small problems, otherwise Vim is supposed to
161### compile and run without problems.
162
163#system:	      configurations:		     version (*) tested by:
164#-------------	      ------------------------	     -------  -  ----------
165#AIX 3.2.5	      cc (not gcc)   -			4.5  (M) Will Fiveash
166#AIX 4		      cc	     +X11 -GUI		3.27 (4) Axel Kielhorn
167#AIX 4.1.4	      cc	     +X11 +GUI		4.5  (5) Nico Bakker
168#AIX 4.2.1	      cc				5.2k (C) Will Fiveash
169#AIX 4.3.3.12	      xic 3.6.6				5.6  (5) David R. Favor
170#A/UX 3.1.1	      gcc	     +X11		4.0  (6) Jim Jagielski
171#BeOS PR	      mwcc DR3				5.0n (T) Olaf Seibert
172#BSDI 2.1 (x86)       shlicc2 gcc-2.6.3 -X11 X11R6	4.5  (1) Jos Backus
173#BSD/OS 3.0 (x86)     gcc gcc-2.7.2.1 -X11 X11R6	4.6c (1) Jos Backus
174#CX/UX 6.2	      cc	     +X11 +GUI_Mofif	5.4  (V) Kipp E. Howard
175#DG/UX 5.4*	      gcc 2.5.8      GUI		5.0e (H) Jonas Schlein
176#DG/UX 5.4R4.20       gcc 2.7.2      GUI		5.0s (H) Rocky Olive
177#HP-UX (most)	      c89 cc				5.1  (2) Bram Moolenaar
178#HP-UX_9.04	      cc	     +X11 +Motif	5.0  (2) Carton Lao
179#Irix 6.3 (O2)	      cc	     ?			4.5  (L) Edouard Poor
180#Irix 6.4	      cc	     ?			5.0m (S) Rick Sayre
181#Irix 6.5	      cc	     ?			6.0  (S) David Harrison
182#Irix 64 bit						4.5  (K) Jon Wright
183#Linux 2.0	      gcc-2.7.2      Infomagic Motif	4.3  (3) Ronald Rietman
184#Linux 2.0.31	      gcc	     +X11 +GUI Athena	5.0w (U) Darren Hiebert
185#LynxOS 3.0.1	      2.9-gnupro-98r2 +X11 +GUI Athena  5.7.1(O) Lorenz Hahn
186#LynxOS 3.1.0	      2.9-gnupro-98r2 +X11 +GUI Athena  5.7.1(O) Lorenz Hahn
187#NEC UP4800 UNIX_SV 4.2MP  cc	     +X11R6 Motif,Athena4.6b (Q) Lennart Schultz
188#NetBSD 1.0A	      gcc-2.4.5      -X11 -GUI		3.21 (X) Juergen Weigert
189#QNX 4.2	      wcc386-10.6    -X11		4.2  (D) G.F. Desrochers
190#QNX 4.23	      Watcom	     -X11		4.2  (F) John Oleynick
191#SCO Unix v3.2.5      cc	     +X11 Motif		3.27 (C) M. Kuperblum
192#SCO Open Server 5    gcc 2.7.2.3    +X11 +GUI Motif	5.3  (A) Glauber Ribeiro
193#SINIX-N 5.43 RM400 R4000   cc	     +X11 +GUI		5.0l (I) Martin Furter
194#SINIX-Z 5.42 i386    gcc 2.7.2.3    +X11 +GUI Motif	5.1  (I) Joachim Fehn
195#SINIX-Y 5.43 RM600 R4000  gcc 2.7.2.3 +X11 +GUI Motif	5.1  (I) Joachim Fehn
196#Reliant/SINIX 5.44   cc	     +X11 +GUI		5.5a (I) B. Pruemmer
197#SNI Targon31 TOS 4.1.11 gcc-2.4.5   +X11 -GUI		4.6c (B) Paul Slootman
198#Solaris 2.4 (Sparc)  cc	     +X11 +GUI		3.29 (9) Glauber
199#Solaris 2.4/2.5      clcc	     +X11 -GUI openwin	3.20 (7) Robert Colon
200#Solaris 2.5 (sun4m)  cc (SC4.0)     +X11R6 +GUI (CDE)	4.6b (E) Andrew Large
201#Solaris 2.5	      cc	     +X11 +GUI Athena	4.2  (9) Sonia Heimann
202#Solaris 2.5	      gcc 2.5.6      +X11 Motif		5.0m (R) Ant. Colombo
203#Solaris 2.6	      gcc 2.8.1      ncurses		5.3  (G) Larry W. Virden
204#Solaris with -lthread					5.5  (W) K. Nagano
205#Solaris	      gcc				     (b) Riccardo
206#SunOS 4.1.x			     +X11 -GUI		5.1b (J) Bram Moolenaar
207#SunOS 4.1.3_U1 (sun4c) gcc	     +X11 +GUI Athena	5.0w (J) Darren Hiebert
208#SUPER-UX 6.2 (NEC SX-4) cc	     +X11R6 Motif,Athena4.6b (P) Lennart Schultz
209#Tandem/NSK                                                  (c) Matthew Woehlke
210#Unisys 6035	      cc	     +X11 Motif		5.3  (8) Glauber Ribeiro
211#ESIX V4.2	      cc	     +X11		6.0  (a) Reinhard Wobst
212#Mac OS X 10.[23]     gcc	     Carbon		6.2  (x) Bram Moolenaar
213# }}}
214
215# (*)  Remarks: {{{
216#
217# (1)  Uncomment line below for shlicc2
218# (2)  HPUX with compile problems or wrong digraphs, uncomment line below
219# (3)  Infomagic Motif needs GUI_LIB_LOC and GUI_INC_LOC set, see below.
220#      And add "-lXpm" to MOTIF_LIBS2.
221# (4)  For cc the optimizer must be disabled (use CFLAGS= after running
222#      configure) (symptom: ":set termcap" output looks weird).
223# (5)  Compiler may need extra argument, see below.
224# (6)  See below for a few lines to uncomment
225# (7)  See below for lines which enable the use of clcc
226# (8)  Needs some EXTRA_LIBS, search for Unisys below
227# (9)  Needs an extra compiler flag to compile gui_at_sb.c, see below.
228# (A)  May need EXTRA_LIBS, see below
229# (B)  Can't compile GUI because there is no waitpid()...  Disable GUI below.
230# (C)  Force the use of curses instead of termcap, see below.
231# (D)  Uncomment lines below for QNX
232# (E)  You might want to use termlib instead of termcap, see below.
233# (F)  See below for instructions.
234# (G)  Using ncurses version 4.2 has reported to cause a crash.  Use the
235#      Sun curses library instead.
236# (H)  See line for EXTRA_LIBS below.
237# (I)  SINIX-N 5.42 and 5.43 need some EXTRA_LIBS.  Also for Reliant-Unix.
238# (J)  If you get undefined symbols, see below for a solution.
239# (K)  See lines to uncomment below for machines with 64 bit pointers.
240# (L)  For Silicon Graphics O2 workstations remove "-lnsl" from auto/config.mk
241# (M)  gcc version cygnus-2.0.1 does NOT work (symptom: "dl" deletes two
242#      characters instead of one).
243# (N)  SCO with decmouse.
244# (O)  LynxOS needs EXTRA_LIBS, see below.
245# (P)  For SuperUX 6.2 on NEC SX-4 see a few lines below to uncomment.
246# (Q)  For UNIXSVR 4.2MP on NEC UP4800 see below for lines to uncomment.
247# (R)  For Solaris 2.5 (or 2.5.1) with gcc > 2.5.6, uncomment line below.
248# (S)  For Irix 6.x with MipsPro compiler, use -OPT:Olimit.  See line below.
249# (T)  See ../doc/os_beos.txt.
250# (U)  Must uncomment CONF_OPT_PYTHON option below to disable Python
251#      detection, since the configure script runs into an error when it
252#      detects Python (probably because of the bash shell).
253# (V)  See lines to uncomment below.
254# (X)  Need to use the .include "auto/config.mk" line below
255# (Y)  See line with c89 below
256# (Z)  See lines with cc or c89 below
257# (a)  See line with EXTRA_LIBS below.
258# (b)  When using gcc with the Solaris linker, make sure you don't use GNU
259#      strip, otherwise the binary may not run: "Cannot find ELF".
260# (c)  Add -lfloss to EXTRA_LIBS, see below.
261# (x)  When you get warnings for precompiled header files, run
262#      "sudo fixPrecomps".  Also see CONF_OPT_DARWIN below.
263# }}}
264
265
266#DO NOT CHANGE the next line, we need it for configure to find the compiler
267#instead of using the default from the "make" program.
268#Use a line further down to change the value for CC.
269CC=
270
271# Change and use these defines if configure cannot find your Motif stuff.
272# Unfortunately there is no "standard" location for Motif. {{{
273# These defines can contain a single directory (recommended) or a list of
274# directories (for when you are working with several systems). The LAST
275# directory that exists is used.
276# When changed, run "make reconfig" next!
277#GUI_INC_LOC = -I/usr/include/Motif2.0 -I/usr/include/Motif1.2
278#GUI_LIB_LOC = -L/usr/lib/Motif2.0 -L/usr/lib/Motif1.2
279### Use these two lines for Infomagic Motif (3)
280#GUI_INC_LOC = -I/usr/X11R6/include
281#GUI_LIB_LOC = -L/usr/X11R6/lib
282# }}}
283
284# Defaults used when auto/config.mk does not exist.
285srcdir = .
286VIMNAME = vim
287EXNAME = ex
288VIEWNAME = view
289
290######################## auto/config.mk ######################## {{{1
291# At this position auto/config.mk is included. When starting from the
292# toplevel Makefile it is almost empty. After running auto/configure it
293# contains settings that have been discovered for your system. Settings below
294# this include override settings in auto/config.mk!
295
296# Note: If make fails because auto/config.mk does not exist (it is not
297# included in the repository), do:
298#    cp config.mk.dist auto/config.mk
299
300# (X) How to include auto/config.mk depends on the version of "make" you have,
301#     if the current choice doesn't work, try the other one.
302
303include auto/config.mk
304#.include "auto/config.mk"
305CClink = $(CC)
306
307#}}}
308
309# Include the configuration choices first, so we can override everything
310# below. As shipped, this file contains a target that causes to run
311# configure. Once configure was run, this file contains a list of
312# make variables with predefined values instead. Thus any second invocation
313# of make, will build Vim.
314
315# CONFIGURE - configure arguments {{{1
316# You can give a lot of options to configure.
317# Change this to your desire and do 'make config' afterwards
318
319# examples (can only use one!):
320#CONF_ARGS = --exec-prefix=/usr
321#CONF_ARGS = --with-vim-name=vim7 --with-ex-name=ex7 --with-view-name=view7
322#CONF_ARGS = --with-global-runtime=/etc/vim
323#CONF_ARGS = --with-local-dir=/usr/share
324#CONF_ARGS = --without-local-dir
325
326# Use this one if you distribute a modified version of Vim.
327#CONF_ARGS = --with-modified-by="John Doe"
328
329# GUI - For creating Vim with GUI (gvim) (B)
330# Uncomment this line when you don't want to get the GUI version, although you
331# have GTK, Motif and/or Athena.  Also use --without-x if you don't want X11
332# at all.
333#CONF_OPT_GUI = --disable-gui
334
335# Uncomment one of these lines if you have that GUI but don't want to use it.
336# The automatic check will use another one that can be found.
337# Gnome is disabled by default, it may cause trouble.
338#CONF_OPT_GUI = --disable-gtk2-check
339#CONF_OPT_GUI = --enable-gnome2-check
340#CONF_OPT_GUI = --disable-motif-check
341#CONF_OPT_GUI = --disable-athena-check
342#CONF_OPT_GUI = --disable-nextaw-check
343
344# Uncomment one of these lines to select a specific GUI to use.
345# When using "yes" or nothing, configure will use the first one found: GTK+,
346# Motif or Athena.
347#
348# GTK versions that are known not to work 100% are rejected.
349# Use "--disable-gtktest" to accept them anyway.
350# Only GTK 2 is supported, for GTK 1 use Vim 7.2.
351#
352# GNOME means GTK with Gnome support.  If using GTK and --enable-gnome-check
353# is used then GNOME will automatically be used if it is found.  If you have
354# GNOME, but do not want to use it (e.g., want a GTK-only version), then use
355# --enable-gui=gtk or leave out --enable-gnome-check.
356#
357# If the selected GUI isn't found, the GUI is disabled automatically
358#CONF_OPT_GUI = --enable-gui=gtk2
359#CONF_OPT_GUI = --enable-gui=gtk2 --disable-gtktest
360#CONF_OPT_GUI = --enable-gui=gnome2
361#CONF_OPT_GUI = --enable-gui=gnome2 --disable-gtktest
362#CONF_OPT_GUI = --enable-gui=motif
363#CONF_OPT_GUI = --enable-gui=motif --with-motif-lib="-static -lXm -shared"
364#CONF_OPT_GUI = --enable-gui=athena
365#CONF_OPT_GUI = --enable-gui=nextaw
366
367# Carbon GUI for Mac OS X
368#CONF_OPT_GUI = --enable-gui=carbon
369
370# DARWIN - detecting Mac OS X
371# Uncomment this line when you want to compile a Unix version of Vim on
372# Darwin.  None of the Mac specific options or files will be used.
373#CONF_OPT_DARWIN = --disable-darwin
374
375# Select the architecture supported.  Default is to build for the current
376# platform.  Use "both" for a universal binary.  That probably doesn't work
377# when including Perl, Python, etc.
378#CONF_OPT_DARWIN = --with-mac-arch=i386
379#CONF_OPT_DARWIN = --with-mac-arch=ppc
380#CONF_OPT_DARWIN = --with-mac-arch=both
381
382# Uncomment the next line to fail if one of the requested language interfaces
383# cannot be configured.  Without this Vim will be build anyway, without
384# the failing interfaces.
385#CONF_OPT_FAIL = --enable-fail-if-missing
386
387# LUA
388# Uncomment one of these when you want to include the Lua interface.
389# First one is for static linking, second one for dynamic loading.
390# Use --with-luajit if you want to use LuaJIT instead of Lua.
391# Set PATH environment variable to find lua or luajit executable.
392#CONF_OPT_LUA = --enable-luainterp
393#CONF_OPT_LUA = --enable-luainterp=dynamic
394#CONF_OPT_LUA = --enable-luainterp --with-luajit
395#CONF_OPT_LUA = --enable-luainterp=dynamic --with-luajit
396# Lua installation dir (when not set uses $LUA_PREFIX or defaults to /usr)
397#CONF_OPT_LUA_PREFIX = --with-lua-prefix=/usr/local
398
399# MZSCHEME
400# Uncomment this when you want to include the MzScheme interface.
401#CONF_OPT_MZSCHEME = --enable-mzschemeinterp
402# PLT/mrscheme/drscheme Home dir; the PLTHOME environment variable also works
403#CONF_OPT_PLTHOME  = --with-plthome=/usr/local/plt
404#CONF_OPT_PLTHOME  = --with-plthome=/usr/local/drscheme
405#CONF_OPT_PLTHOME  = --with-plthome=/home/me/mz
406
407# PERL
408# Uncomment one of these when you want to include the Perl interface.
409# First one is for static linking, second one for dynamic loading.
410# The Perl option sometimes causes problems, because it adds extra flags
411#
412# to the command line.	If you see strange flags during compilation, check in
413# auto/config.mk where they come from.  If it's PERL_CFLAGS, try commenting
414# the next line.
415# When you get an error for a missing "perl.exp" file, try creating an empty
416# one: "touch perl.exp".
417# This requires at least "small" features, "tiny" doesn't work.
418#CONF_OPT_PERL = --enable-perlinterp
419#CONF_OPT_PERL = --enable-perlinterp=dynamic
420
421# PYTHON
422# Uncomment this when you want to include the Python interface.
423# Requires small features or better, fails with tiny features.
424# NOTE: This may cause threading to be enabled, which has side effects (such
425# as using different libraries and debugging becomes more difficult).
426# NOTE: Using this together with Perl may cause a crash in initialization.
427# For Python3 support make a symbolic link in /usr/local/bin:
428#	ln -s python3 python3.1
429# If both python2.x and python3.x are enabled then the linking will be via
430# dlopen(), dlsym(), dlclose(), i.e. pythonX.Y.so must be available
431# However, this may still cause problems, such as "import termios" failing.
432# Build two separate versions of Vim in that case.
433#CONF_OPT_PYTHON = --enable-pythoninterp
434#CONF_OPT_PYTHON = --enable-pythoninterp=dynamic
435#CONF_OPT_PYTHON3 = --enable-python3interp
436#CONF_OPT_PYTHON3 = --enable-python3interp=dynamic
437
438# RUBY
439# Uncomment this when you want to include the Ruby interface.
440# First one for static linking, second one for loading when used.
441# Note: you need the development package (e.g., ruby1.9.1-dev on Ubuntu).
442#CONF_OPT_RUBY = --enable-rubyinterp
443#CONF_OPT_RUBY = --enable-rubyinterp=dynamic
444#CONF_OPT_RUBY = --enable-rubyinterp --with-ruby-command=ruby1.9.1
445
446# TCL
447# Uncomment this when you want to include the Tcl interface.
448# First one is for static linking, second one for dynamic loading.
449#CONF_OPT_TCL = --enable-tclinterp
450#CONF_OPT_TCL = --enable-tclinterp=dynamic
451#CONF_OPT_TCL = --enable-tclinterp --with-tclsh=tclsh8.4
452
453# CSCOPE
454# Uncomment this when you want to include the Cscope interface.
455#CONF_OPT_CSCOPE = --enable-cscope
456
457# WORKSHOP - Sun Visual Workshop interface.  Only works with Motif!
458#CONF_OPT_WORKSHOP = --enable-workshop
459
460# NETBEANS - NetBeans interface. Only works with Motif, GTK, and gnome.
461# Motif version must have XPM libraries (see |workshop-xpm|).
462# Uncomment this when you do not want the netbeans interface.
463#CONF_OPT_NETBEANS = --disable-netbeans
464
465# CHANNEL - inter process communication. Same conditions as NetBeans.
466# Uncomment this when you do not want inter process communication.
467#CONF_OPT_CHANNEL = --disable-channel
468
469# SNIFF - Include support for SNiFF+.
470#CONF_OPT_SNIFF = --enable-sniff
471
472# MULTIBYTE - To edit multi-byte characters.
473# Uncomment this when you want to edit a multibyte language.
474# It's automatically enabled with normal features, GTK or IME support.
475# Note: Compile on a machine where setlocale() actually works, otherwise the
476# configure tests may fail.
477#CONF_OPT_MULTIBYTE = --enable-multibyte
478
479# NLS - National Language Support
480# Uncomment this when you do not want to support translated messages, even
481# though configure can find support for it.
482#CONF_OPT_NLS = --disable-nls
483
484# XIM - X Input Method.  Special character input support for X11 (Chinese,
485# Japanese, special symbols, etc).  Also needed for dead-key support.
486# When omitted it's automatically enabled for the X-windows GUI.
487# HANGUL - Input Hangul (Korean) language using internal routines.
488# Uncomment one of these when you want to input a multibyte language.
489#CONF_OPT_INPUT = --enable-xim
490#CONF_OPT_INPUT = --disable-xim
491#CONF_OPT_INPUT = --enable-hangulinput
492
493# FONTSET - X fontset support for output of languages with many characters.
494# Uncomment this when you want to output a multibyte language.
495#CONF_OPT_OUTPUT = --enable-fontset
496
497# ACL - Uncomment this when you do not want to include ACL support, even
498# though your system does support it.  E.g., when it's buggy.
499#CONF_OPT_ACL = --disable-acl
500
501# gpm - For mouse support on Linux console via gpm
502# Uncomment this when you do not want to include gpm support, even
503# though you have gpm libraries and includes.
504#CONF_OPT_GPM = --disable-gpm
505
506# sysmouse - For mouse support on FreeBSD and DragonFly console via sysmouse
507# Uncomment this when you do not want do include sysmouse support, even
508# though you have /dev/sysmouse and includes.
509#CONF_OPT_SYSMOUSE = --disable-sysmouse
510
511# FEATURES - For creating Vim with more or less features
512# Uncomment one of these lines when you want to include few to many features.
513# The default is "huge" for most systems.
514#CONF_OPT_FEAT = --with-features=tiny
515#CONF_OPT_FEAT = --with-features=small
516#CONF_OPT_FEAT = --with-features=normal
517#CONF_OPT_FEAT = --with-features=big
518#CONF_OPT_FEAT = --with-features=huge
519
520# COMPILED BY - For including a specific e-mail address for ":version".
521#CONF_OPT_COMPBY = "--with-compiledby=John Doe <[email protected]>"
522
523# X WINDOWS DISABLE - For creating a plain Vim without any X11 related fancies
524# (otherwise Vim configure will try to include xterm titlebar access)
525# Also disable the GUI above, otherwise it will be included anyway.
526# When both GUI and X11 have been disabled this may save about 15% of the
527# code and make Vim startup quicker.
528#CONF_OPT_X = --without-x
529
530# X WINDOWS DIRECTORY - specify X directories
531# If configure can't find you X stuff, or if you have multiple X11 derivatives
532# installed, you may wish to specify which one to use.
533# Select nothing to let configure choose.
534# This here selects openwin (as found on sun).
535#XROOT = /usr/openwin
536#CONF_OPT_X = --x-include=$(XROOT)/include --x-libraries=$(XROOT)/lib
537
538# X11 Session Management Protocol support
539# Vim will try to use XSMP to catch the user logging out if there are unsaved
540# files.  Uncomment this line to disable that (it prevents vim trying to open
541# communications with the session manager).
542#CONF_OPT_XSMP = --disable-xsmp
543
544# You may wish to include xsmp but use exclude xsmp-interact if the logout
545# XSMP functionality does not work well with your session-manager (at time of
546# writing, this would be early GNOME-1 gnome-session: it 'freezes' other
547# applications after Vim has cancelled a logout (until Vim quits).  This
548# *might* be the Vim code, but is more likely a bug in early GNOME-1.
549# This disables the dialog that asks you if you want to save files or not.
550#CONF_OPT_XSMP = --disable-xsmp-interact
551
552# COMPILER - Name of the compiler {{{1
553# The default from configure will mostly be fine, no need to change this, just
554# an example. If a compiler is defined here, configure will use it rather than
555# probing for one. It is dangerous to change this after configure was run.
556# Make will use your choice then -- but beware: Many things may change with
557# another compiler.  It is wise to run 'make reconfig' to start all over
558# again.
559#CC = cc
560#CC = gcc
561#CC = clang
562
563# COMPILER FLAGS - change as you please. Either before running {{{1
564# configure or afterwards. For examples see below.
565# When using -g with some older versions of Linux you might get a
566# statically linked executable.
567# When not defined, configure will try to use -O2 -g for gcc and -O for cc.
568#CFLAGS = -g
569#CFLAGS = -O
570
571# Optimization limits - depends on the compiler.  Automatic check in configure
572# doesn't work very well, because many compilers only give a warning for
573# unrecognized arguments.
574#CFLAGS = -O -OPT:Olimit=2600
575#CFLAGS = -O -Olimit 2000
576#CFLAGS = -O -FOlimit,2000
577
578# Often used for GCC: mixed optimizing, lot of optimizing, debugging
579#CFLAGS = -g -O2 -fno-strength-reduce -Wall -Wshadow -Wmissing-prototypes
580#CFLAGS = -g -O2 -fno-strength-reduce -Wall -Wmissing-prototypes
581#CFLAGS = -g -Wall -Wmissing-prototypes
582#CFLAGS = -O6 -fno-strength-reduce -Wall -Wshadow -Wmissing-prototypes
583#CFLAGS = -g -DDEBUG -Wall -Wshadow -Wmissing-prototypes
584#CFLAGS = -g -O2 '-DSTARTUPTIME="vimstartup"' -fno-strength-reduce -Wall -Wmissing-prototypes
585
586# Use this with GCC to check for mistakes, unused arguments, etc.
587#CFLAGS = -g -Wall -Wextra -Wmissing-prototypes -Wunreachable-code -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
588#CFLAGS = -g -O2 -Wall -Wextra -Wmissing-prototypes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DU_DEBUG
589#PYTHON_CFLAGS_EXTRA = -Wno-missing-field-initializers
590#MZSCHEME_CFLAGS_EXTRA = -Wno-unreachable-code -Wno-unused-parameter
591
592# EFENCE - Electric-Fence malloc debugging: catches memory accesses beyond
593# allocated memory (and makes every malloc()/free() very slow).
594# Electric Fence is free (search ftp sites).
595# You may want to set the EF_PROTECT_BELOW environment variable to check the
596# other side of allocated memory.
597# On FreeBSD you might need to enlarge the number of mmaps allowed.  Do this
598# as root: sysctl -w vm.max_proc_mmap=30000
599#EXTRA_LIBS = /usr/local/lib/libefence.a
600
601# Autoconf binary.
602AUTOCONF = autoconf
603
604# PURIFY - remove the # to use the "purify" program (hoi Nia++!)
605#PURIFY = purify
606
607# NBDEBUG - debugging the netbeans interface.
608#EXTRA_DEFS = -DNBDEBUG
609
610# }}}
611
612# LINT - for running lint
613#  For standard Unix lint
614LINT = lint
615LINT_OPTIONS = -beprxzF
616#  For splint
617#  It doesn't work well, crashes on include files and non-ascii characters.
618#LINT = splint
619#LINT_OPTIONS = +unixlib -weak -macrovarprefixexclude -showfunc -linelen 9999
620
621# PROFILING - Uncomment the next two lines to do profiling with gcc and gprof.
622# Might not work with GUI or Perl.
623# For unknown reasons adding "-lc" fixes a linking problem with some versions
624# of GCC.  That's probably a bug in the "-pg" implementation.
625# After running Vim see the profile result with: gprof vim gmon.out | vim -
626# Need to recompile everything after changing this: "make clean" "make".
627#PROFILE_CFLAGS = -pg -g -DWE_ARE_PROFILING
628#PROFILE_LIBS = -pg
629#PROFILE_LIBS = -pg -lc
630
631
632# TEST COVERAGE - Uncomment the two lines below the explanation to get code
633# coverage information. (provided by Yegappan Lakshmanan)
634# 1. make clean, run configure and build Vim as usual.
635# 2. Generate the baseline code coverage information:
636#        $ lcov -c -i -b . -d objects -o objects/coverage_base.info
637# 3. Run "make test" to run the unit tests.  The code coverage information will
638#    be generated in the src/objects directory.
639# 4. Generate the code coverage information from the tests:
640#        $ lcov -c -b . -d objects/ -o objects/coverage_test.info
641# 5. Combine the baseline and test code coverage data:
642#        $ lcov -a objects/coverage_base.info -a objects/coverage_test.info -o objects/coverage_total.info
643# 6. Process the test coverage data and generate a report in html:
644#        $ genhtml objects/coverage_total.info -o objects
645# 7. Open the objects/index.html file in a web browser to view the coverage
646#    information.
647#
648# PROFILE_CFLAGS=-g -O0 -fprofile-arcs -ftest-coverage
649# LDFLAGS=--coverage
650
651
652# Uncomment one of the next two lines to compile Vim with the
653# address sanitizer or with the undefined sanitizer.  Works with gcc and
654# clang.  May make Vim twice as slow.  Errors reported on stderr.
655# More at: https://code.google.com/p/address-sanitizer/
656#SANITIZER_CFLAGS = -g -O0 -fsanitize=address -fno-omit-frame-pointer
657#SANITIZER_CFLAGS = -g -O0 -fsanitize=undefined -fno-omit-frame-pointer
658SANITIZER_LIBS = $(SANITIZER_CFLAGS)
659
660# MEMORY LEAK DETECTION
661# Requires installing the ccmalloc library.
662# Configuration is in the .ccmalloc or ~/.ccmalloc file.
663# Doesn't work very well, since memory linked to from global variables
664# (in libraries) is also marked as leaked memory.
665#LEAK_CFLAGS = -DEXITFREE
666#LEAK_LIBS = -lccmalloc
667
668#####################################################
669###  Specific systems, check if yours is listed!  ### {{{
670#####################################################
671
672### Uncomment things here only if the values chosen by configure are wrong.
673### It's better to adjust configure.in and "make autoconf", if you can!
674### Then send the required changes to configure.in to the bugs list.
675
676### (1) BSD/OS 2.0.1, 2.1 or 3.0 using shared libraries
677###
678#CC = shlicc2
679#CFLAGS = -O2 -g -m486 -Wall -Wshadow -Wmissing-prototypes -fno-builtin
680
681### (2) HP-UX with a non-ANSI cc, use the c89 ANSI compiler
682###	The first probably works on all systems
683###	The second should work a bit better on newer systems
684###	The third should work a bit better on HPUX 11.11
685###	Information provided by: Richard Allen <[email protected]>
686#CC = c89 -D_HPUX_SOURCE
687#CC = c89 -O +Onolimit +ESlit -D_HPUX_SOURCE
688#CC = c89 -O +Onolimit +ESlit +e -D_HPUX_SOURCE
689
690### (2) For HP-UX: Enable the use of a different set of digraphs.  Use this
691###	when the default (ISO) digraphs look completely wrong.
692###	After changing this do "touch digraph.c; make".
693#EXTRA_DEFS = -DHPUX_DIGRAPHS
694
695### (2) For HP-UX: 9.04 cpp default macro definition table of 128000 bytes
696###	is too small to compile many routines.	It produces too much defining
697###	and no space errors.
698###	Uncomment the following to specify a larger macro definition table.
699#CFLAGS = -Wp,-H256000
700
701### (2) For HP-UX 10.20 using the HP cc, with X11R6 and Motif 1.2, with
702###	libraries in /usr/lib instead of /lib (avoiding transition links).
703###	Information provided by: David Green
704#XROOT = /usr
705#CONF_OPT_X = --x-include=$(XROOT)/include/X11R6 --x-libraries=$(XROOT)/lib/X11R6
706#GUI_INC_LOC = -I/usr/include/Motif1.2
707#GUI_LIB_LOC = -L/usr/lib/Motif1.2_R6
708
709### (5) AIX 4.1.4 with cc
710#CFLAGS = -O -qmaxmem=8192
711
712###     AIX with c89 (Walter Briscoe)
713#CC = c89
714#CPPFLAGS = -D_ALL_SOURCE
715
716###     AIX 4.3.3.12 with xic 3.6.6 (David R. Favor)
717#       needed to avoid a problem where strings.h gets included
718#CFLAGS = -qsrcmsg -O2 -qmaxmem=8192 -D__STR31__
719
720### (W) Solaris with multi-threaded libraries (-lthread):
721###	If suspending doesn't work properly, try using this line:
722#EXTRA_DEFS = -D_REENTRANT
723
724### (7) Solaris 2.4/2.5 with Centerline compiler
725#CC = clcc
726#X_LIBS_DIR = -L/usr/openwin/lib -R/usr/openwin/lib
727#CFLAGS = -O
728
729### (9) Solaris 2.x with cc (SunPro), using Athena.
730###	Only required for compiling gui_at_sb.c.
731###	Symptom: "identifier redeclared: vim_XawScrollbarSetThumb"
732###	Use one of the lines (either Full ANSI or no ANSI at all)
733#CFLAGS = $(CFLAGS) -Xc
734#CFLAGS = $(CFLAGS) -Xs
735
736### Solaris 2.3 with X11 and specific cc
737#CC=/opt/SUNWspro/bin/cc -O -Xa -v -R/usr/openwin/lib
738
739### Solaris with /usr/ucb/cc (it is rejected by autoconf as "cc")
740#CC	    = /usr/ucb/cc
741#EXTRA_LIBS = -R/usr/ucblib
742
743### Solaris with Forte Developer and FEAT_SUN_WORKSHOP
744# The Xpm library is available from http://koala.ilog.fr/ftp/pub/xpm.
745#CC		= cc
746#XPM_DIR		= /usr/local/xpm/xpm-3.4k-solaris
747#XPM_LIB		= -L$(XPM_DIR)/lib -R$(XPM_DIR)/lib -lXpm
748#XPM_IPATH	= -I$(XPM_DIR)/include
749#EXTRA_LIBS	= $(XPM_LIB)
750#EXTRA_IPATHS	= $(XPM_IPATH)
751#EXTRA_DEFS	= -xCC -DHAVE_X11_XPM_H
752
753### Solaris with workshop compilers: Vim is unstable when compiled with
754# "-fast".  Use this instead. (Shea Martin)
755#CFLAGS = -x02 -xtarget=ultra
756
757### (R) for Solaris 2.5 (or 2.5.1) with gcc > 2.5.6 you might need this:
758#LDFLAGS = -lw -ldl -lXmu
759#GUI_LIB_LOC = -L/usr/local/lib
760
761### (8) Unisys 6035 (Glauber Ribeiro)
762#EXTRA_LIBS = -lnsl -lsocket -lgen
763
764### When builtin functions cause problems with gcc (for Sun 4.1.x)
765#CFLAGS = -O2 -Wall -traditional -Wno-implicit
766
767### Apollo DOMAIN (with SYSTYPE = bsd4.3) (TESTED for version 3.0)
768#EXTRA_DEFS = -DDOMAIN
769#CFLAGS= -O -A systype,bsd4.3
770
771### Coherent 4.2.10 on Intel 386 platform
772#EXTRA_DEFS = -Dvoid=int
773#EXTRA_LIBS = -lterm -lsocket
774
775### SCO 3.2, with different library name for terminfo
776#EXTRA_LIBS = -ltinfo
777
778### UTS2 for Amdahl UTS 2.1.x
779#EXTRA_DEFS = -DUTS2
780#EXTRA_LIBS = -lsocket
781
782### UTS4 for Amdahl UTS 4.x
783#EXTRA_DEFS = -DUTS4 -Xa
784
785### USL for Unix Systems Laboratories (SYSV 4.2)
786#EXTRA_DEFS = -DUSL
787
788### (6)  A/UX 3.1.1 with gcc (Jim Jagielski)
789#CC= gcc -D_POSIX_SOURCE
790#CFLAGS= -O2
791#EXTRA_LIBS = -lposix -lbsd -ltermcap -lX11
792
793### (A)  Some versions of SCO Open Server 5 (Jan Christiaan van Winkel)
794###	 Also use the CONF_TERM_LIB below!
795#EXTRA_LIBS = -lgen
796
797### (D)  QNX (by G.F. Desrochers)
798#CFLAGS = -g -O -mf -4
799
800### (F)  QNX (by John Oleynick)
801# 1. If you don't have an X server: Comment out CONF_OPT_GUI and uncomment
802#    CONF_OPT_X = --without-x.
803# 2. make config
804# 3. edit auto/config.mk and remove -ldir and -ltermcap from LIBS.  It doesn't
805#	have -ldir (does config find it somewhere?) and -ltermcap has at
806#	least one problem so I use termlib.o instead.  The problem with
807#	termcap is that it segfaults if you call it with the name of
808#	a non-existent terminal type.
809# 4. edit auto/config.h and add #define USE_TMPNAM
810# 5. add termlib.o to OBJ
811# 6. make
812
813### (H)  for Data general DG/UX 5.4.2 and 5.4R3.10 (Jonas J. Schlein)
814#EXTRA_LIBS = -lgen
815
816### (I) SINIX-N 5.42 or 5.43 RM400 R4000 (also SINIX-Y and SINIX-Z)
817#EXTRA_LIBS = -lgen -lnsl
818###   For SINIX-Y this is needed for the right prototype of gettimeofday()
819#EXTRA_DEFS = -D_XPG_IV
820
821### (I) Reliant-Unix (aka SINIX) 5.44 with standard cc
822#	Use both "-F O3" lines for optimization or the "-g" line for debugging
823#EXTRA_LIBS = -lgen -lsocket -lnsl -lSM -lICE
824#CFLAGS = -F O3 -DSINIXN
825#LDFLAGS = -F O3
826#CFLAGS = -g -DSINIXN
827
828### (P)  SCO 3.2.42, with different termcap names for some useful keys DJB
829#EXTRA_DEFS = -DSCOKEYS -DNETTERM_MOUSE -DDEC_MOUSE -DXTERM_MOUSE -DHAVE_GETTIMEOFDAY
830#EXTRA_LIBS = -lsocket -ltermcap -lmalloc -lc_s
831
832### (P)  SuperUX 6.2 on NEC SX-4 (Lennart Schultz)
833#GUI_INC_LOC = -I/usr/include
834#GUI_LIB_LOC = -L/usr/lib
835#EXTRA_LIBS = -lgen
836
837### (Q) UNIXSVR 4.2MP on NEC UP4800 (Lennart Schultz)
838#GUI_INC_LOC = -I/usr/necccs/include
839#GUI_LIB_LOC = -L/usr/necccs/lib/X11R6
840#XROOT = /usr/necccs
841#CONF_OPT_X = --x-include=$(XROOT)/include --x-libraries=$(XROOT)/lib/X11R6
842#EXTRA_LIBS = -lsocket -lgen
843
844### Irix 4.0 & 5.2 (Silicon Graphics Machines, __sgi will be defined)
845# Not needed for Irix 5.3, Ives Aerts reported
846#EXTRA_LIBS = -lmalloc -lc_s
847# Irix 4.0, when regexp and regcmp cannot be found when linking:
848#EXTRA_LIBS = -lmalloc -lc_s -lPW
849
850### (S) Irix 6.x (MipsPro compiler): Uses different Olimit flag:
851# Note:	This newer option style is used with the MipsPro compilers ONLY if
852#	you are compiling an "n32" or "64" ABI binary (use either a -n32
853#	flag or a -64 flag for CFLAGS).  If you explicitly use a -o32 flag,
854#	then the CFLAGS option format will be the typical style (i.e.
855#	-Olimit 3000).
856#CFLAGS = -OPT:Olimit=3000 -O
857
858### (S) Irix 6.5 with MipsPro C compiler.  Try this as a test to see new
859#	compiler features!  Beware, the optimization is EXTREMELY thorough
860#	and takes quite a long time.
861# Note: See the note above.  Here, the -mips3 option automatically
862#	enables either the "n32" or "64" ABI, depending on what machine you
863#	are compiling on (n32 is explicitly enabled here, just to make sure).
864#CFLAGS = -OPT:Olimit=3500 -O -n32 -mips3 -IPA:aggr_cprop=ON -INLINE:dfe=ON:list=ON:must=screen_char,out_char,ui_write,out_flush
865#LDFLAGS= -OPT:Olimit=3500 -O -n32 -mips3 -IPA:aggr_cprop=ON -INLINE:dfe=ON:list=ON:must=screen_char,out_char,ui_write,out_flush
866
867### (K) for SGI Irix machines with 64 bit pointers ("uname -s" says IRIX64)
868###	Suggested by Jon Wright <[email protected]>.
869###	Tested on R8000 IRIX6.1 Power Indigo2.
870###	Check /etc/compiler.defaults for your compiler settings.
871# either (for 64 bit pointers) uncomment the following line
872#GUI_LIB_LOC = -L/usr/lib64
873# then
874# 1) make config
875# 2) edit auto/config.mk and delete the -lelf entry in the LIBS line
876# 3) make
877#
878# or (for 32bit pointers) uncomment the following line
879#EXTRA_DEFS = -n32
880#GUI_LIB_LOC = -L/usr/lib32
881# then
882# 1) make config
883# 2) edit auto/config.mk, add -n32 to LDFLAGS
884# 3) make
885#
886#Alternatively: use -o32 instead of -n32.
887###
888
889### (C)  On SCO Unix v3.2.5 (and probably other versions) the termcap library,
890###	 which is found by configure, doesn't work correctly.  Symptom is the
891###	 error message "Termcap entry too long".  Uncomment the next line.
892###	 On AIX 4.2.1 (and other versions probably), libtermcap is reported
893###	 not to display properly.
894### after changing this, you need to do "make reconfig".
895#CONF_TERM_LIB = --with-tlib=curses
896
897### (E)  If you want to use termlib library instead of the automatically found
898###	 one.  After changing this, you need to do "make reconfig".
899#CONF_TERM_LIB = --with-tlib=termlib
900
901### (a)  ESIX V4.2 (Reinhard Wobst)
902#EXTRA_LIBS = -lnsl -lsocket -lgen -lXIM -lXmu -lXext
903
904### (c)  Tandem/NSK (Matthew Woehlke)
905#EXTRA_LIBS = -lfloss
906
907### If you want to use ncurses library instead of the automatically found one
908### after changing this, you need to do "make reconfig".
909#CONF_TERM_LIB = --with-tlib=ncurses
910
911### For GCC on MSDOS, the ".exe" suffix will be added.
912#EXEEXT = .exe
913#LNKEXT = .exe
914
915### (O)  For LynxOS 2.5.0, tested on PC.
916#EXTRA_LIBS = -lXext -lSM -lICE -lbsd
917###	 For LynxOS 3.0.1, tested on PPC
918#EXTRA_LIBS= -lXext -lSM -lICE -lnetinet -lXmu -liberty -lX11
919###	 For LynxOS 3.1.0, tested on PC
920#EXTRA_LIBS= -lXext -lSM -lICE -lnetinet -lXmu
921
922
923### (V)  For CX/UX 6.2	(on Harris/Concurrent NightHawk 4800, 5800). Remove
924###	 -Qtarget if only in a 5800 environment.  (Kipp E. Howard)
925#CFLAGS = -O -Qtarget=m88110compat
926#EXTRA_LIBS = -lgen
927
928# The value of QUOTESED comes from auto/config.mk.
929# Uncomment the next line to use the default value.
930# QUOTESED = sed -e 's/[\\"]/\\&/g' -e 's/\\"/"/' -e 's/\\";$$/";/'
931
932##################### end of system specific lines ################### }}}
933
934### Names of the programs and targets  {{{1
935VIMTARGET	= $(VIMNAME)$(EXEEXT)
936EXTARGET	= $(EXNAME)$(LNKEXT)
937VIEWTARGET	= $(VIEWNAME)$(LNKEXT)
938GVIMNAME	= g$(VIMNAME)
939GVIMTARGET	= $(GVIMNAME)$(LNKEXT)
940GVIEWNAME	= g$(VIEWNAME)
941GVIEWTARGET	= $(GVIEWNAME)$(LNKEXT)
942RVIMNAME	= r$(VIMNAME)
943RVIMTARGET	= $(RVIMNAME)$(LNKEXT)
944RVIEWNAME	= r$(VIEWNAME)
945RVIEWTARGET	= $(RVIEWNAME)$(LNKEXT)
946RGVIMNAME	= r$(GVIMNAME)
947RGVIMTARGET	= $(RGVIMNAME)$(LNKEXT)
948RGVIEWNAME	= r$(GVIEWNAME)
949RGVIEWTARGET	= $(RGVIEWNAME)$(LNKEXT)
950VIMDIFFNAME	= $(VIMNAME)diff
951GVIMDIFFNAME	= g$(VIMDIFFNAME)
952VIMDIFFTARGET	= $(VIMDIFFNAME)$(LNKEXT)
953GVIMDIFFTARGET	= $(GVIMDIFFNAME)$(LNKEXT)
954EVIMNAME	= e$(VIMNAME)
955EVIMTARGET	= $(EVIMNAME)$(LNKEXT)
956EVIEWNAME	= e$(VIEWNAME)
957EVIEWTARGET	= $(EVIEWNAME)$(LNKEXT)
958
959### Names of the tools that are also made  {{{1
960TOOLS = xxd/xxd$(EXEEXT)
961
962### Installation directories.  The defaults come from configure. {{{1
963#
964### prefix	the top directory for the data (default "/usr/local")
965#
966# Uncomment the next line to install Vim in your home directory.
967#prefix = $(HOME)
968
969### exec_prefix	is the top directory for the executable (default $(prefix))
970#
971# Uncomment the next line to install the Vim executable in "/usr/machine/bin"
972#exec_prefix = /usr/machine
973
974### BINDIR	dir for the executable	 (default "$(exec_prefix)/bin")
975### MANDIR	dir for the manual pages (default "$(prefix)/man")
976### DATADIR	dir for the other files  (default "$(prefix)/lib" or
977#						  "$(prefix)/share")
978# They may be different when using different architectures for the
979# executable and a common directory for the other files.
980#
981# Uncomment the next line to install Vim in "/usr/bin"
982#BINDIR   = /usr/bin
983# Uncomment the next line to install Vim manuals in "/usr/share/man/man1"
984#MANDIR   = /usr/share/man
985# Uncomment the next line to install Vim help files in "/usr/share/vim"
986#DATADIR  = /usr/share
987
988### DESTDIR	root of the installation tree.  This is prepended to the other
989#		directories.  This directory must exist.
990#DESTDIR  = ~/pkg/vim
991
992### Directory of the man pages
993MAN1DIR = /man1
994
995### Vim version (adjusted by a script)
996VIMMAJOR = 7
997VIMMINOR = 4
998
999### Location of Vim files (should not need to be changed, and  {{{1
1000### some things might not work when they are changed!)
1001VIMDIR = /vim
1002VIMRTDIR = /vim$(VIMMAJOR)$(VIMMINOR)
1003HELPSUBDIR = /doc
1004COLSUBDIR = /colors
1005SYNSUBDIR = /syntax
1006INDSUBDIR = /indent
1007AUTOSUBDIR = /autoload
1008PLUGSUBDIR = /plugin
1009FTPLUGSUBDIR = /ftplugin
1010LANGSUBDIR = /lang
1011COMPSUBDIR = /compiler
1012KMAPSUBDIR = /keymap
1013MACROSUBDIR = /macros
1014TOOLSSUBDIR = /tools
1015TUTORSUBDIR = /tutor
1016SPELLSUBDIR = /spell
1017PRINTSUBDIR = /print
1018PODIR = po
1019
1020### VIMLOC	common root of the Vim files (all versions)
1021### VIMRTLOC	common root of the runtime Vim files (this version)
1022### VIMRCLOC	compiled-in location for global [g]vimrc files (all versions)
1023### VIMRUNTIMEDIR  compiled-in location for runtime files (optional)
1024### HELPSUBLOC	location for help files
1025### COLSUBLOC	location for colorscheme files
1026### SYNSUBLOC	location for syntax files
1027### INDSUBLOC	location for indent files
1028### AUTOSUBLOC	location for standard autoload files
1029### PLUGSUBLOC	location for standard plugin files
1030### FTPLUGSUBLOC  location for ftplugin files
1031### LANGSUBLOC	location for language files
1032### COMPSUBLOC	location for compiler files
1033### KMAPSUBLOC	location for keymap files
1034### MACROSUBLOC	location for macro files
1035### TOOLSSUBLOC	location for tools files
1036### TUTORSUBLOC	location for tutor files
1037### SPELLSUBLOC	location for spell files
1038### PRINTSUBLOC	location for PostScript files (prolog, latin1, ..)
1039### SCRIPTLOC	location for script files (menu.vim, bugreport.vim, ..)
1040### You can override these if you want to install them somewhere else.
1041### Edit feature.h for compile-time settings.
1042VIMLOC		= $(DATADIR)$(VIMDIR)
1043VIMRTLOC	= $(DATADIR)$(VIMDIR)$(VIMRTDIR)
1044VIMRCLOC	= $(VIMLOC)
1045HELPSUBLOC	= $(VIMRTLOC)$(HELPSUBDIR)
1046COLSUBLOC	= $(VIMRTLOC)$(COLSUBDIR)
1047SYNSUBLOC	= $(VIMRTLOC)$(SYNSUBDIR)
1048INDSUBLOC	= $(VIMRTLOC)$(INDSUBDIR)
1049AUTOSUBLOC	= $(VIMRTLOC)$(AUTOSUBDIR)
1050PLUGSUBLOC	= $(VIMRTLOC)$(PLUGSUBDIR)
1051FTPLUGSUBLOC	= $(VIMRTLOC)$(FTPLUGSUBDIR)
1052LANGSUBLOC	= $(VIMRTLOC)$(LANGSUBDIR)
1053COMPSUBLOC	= $(VIMRTLOC)$(COMPSUBDIR)
1054KMAPSUBLOC	= $(VIMRTLOC)$(KMAPSUBDIR)
1055MACROSUBLOC	= $(VIMRTLOC)$(MACROSUBDIR)
1056TOOLSSUBLOC	= $(VIMRTLOC)$(TOOLSSUBDIR)
1057TUTORSUBLOC	= $(VIMRTLOC)$(TUTORSUBDIR)
1058SPELLSUBLOC	= $(VIMRTLOC)$(SPELLSUBDIR)
1059PRINTSUBLOC	= $(VIMRTLOC)$(PRINTSUBDIR)
1060SCRIPTLOC	= $(VIMRTLOC)
1061
1062### Only set VIMRUNTIMEDIR when VIMRTLOC is set to a different location and
1063### the runtime directory is not below it.
1064#VIMRUNTIMEDIR = $(VIMRTLOC)
1065
1066### Name of the evim file target.
1067EVIM_FILE	= $(DESTDIR)$(SCRIPTLOC)/evim.vim
1068MSWIN_FILE	= $(DESTDIR)$(SCRIPTLOC)/mswin.vim
1069
1070### Name of the menu file target.
1071SYS_MENU_FILE	= $(DESTDIR)$(SCRIPTLOC)/menu.vim
1072SYS_SYNMENU_FILE = $(DESTDIR)$(SCRIPTLOC)/synmenu.vim
1073SYS_DELMENU_FILE = $(DESTDIR)$(SCRIPTLOC)/delmenu.vim
1074
1075### Name of the bugreport file target.
1076SYS_BUGR_FILE	= $(DESTDIR)$(SCRIPTLOC)/bugreport.vim
1077
1078### Name of the file type detection file target.
1079SYS_FILETYPE_FILE = $(DESTDIR)$(SCRIPTLOC)/filetype.vim
1080
1081### Name of the file type detection file target.
1082SYS_FTOFF_FILE	= $(DESTDIR)$(SCRIPTLOC)/ftoff.vim
1083
1084### Name of the file type detection script file target.
1085SYS_SCRIPTS_FILE = $(DESTDIR)$(SCRIPTLOC)/scripts.vim
1086
1087### Name of the ftplugin-on file target.
1088SYS_FTPLUGIN_FILE = $(DESTDIR)$(SCRIPTLOC)/ftplugin.vim
1089
1090### Name of the ftplugin-off file target.
1091SYS_FTPLUGOF_FILE = $(DESTDIR)$(SCRIPTLOC)/ftplugof.vim
1092
1093### Name of the indent-on file target.
1094SYS_INDENT_FILE = $(DESTDIR)$(SCRIPTLOC)/indent.vim
1095
1096### Name of the indent-off file target.
1097SYS_INDOFF_FILE = $(DESTDIR)$(SCRIPTLOC)/indoff.vim
1098
1099### Name of the option window script file target.
1100SYS_OPTWIN_FILE = $(DESTDIR)$(SCRIPTLOC)/optwin.vim
1101
1102# Program to install the program in the target directory.  Could also be "mv".
1103INSTALL_PROG	= cp
1104
1105# Program to install the data in the target directory.	Cannot be "mv"!
1106INSTALL_DATA	= cp
1107INSTALL_DATA_R	= cp -r
1108
1109### Program to run on installed binary.  Use the second one to disable strip.
1110#STRIP = strip
1111#STRIP = /bin/true
1112
1113### Permissions for binaries  {{{1
1114BINMOD = 755
1115
1116### Permissions for man page
1117MANMOD = 644
1118
1119### Permissions for help files
1120HELPMOD = 644
1121
1122### Permissions for Perl and shell scripts
1123SCRIPTMOD = 755
1124
1125### Permission for Vim script files (menu.vim, bugreport.vim, ..)
1126VIMSCRIPTMOD = 644
1127
1128### Permissions for all directories that are created
1129DIRMOD = 755
1130
1131### Permissions for all other files that are created
1132FILEMOD = 644
1133
1134# Where to copy the man and help files from
1135HELPSOURCE = ../runtime/doc
1136
1137# Where to copy the script files from (menu, bugreport)
1138SCRIPTSOURCE = ../runtime
1139
1140# Where to copy the colorscheme files from
1141COLSOURCE = ../runtime/colors
1142
1143# Where to copy the syntax files from
1144SYNSOURCE = ../runtime/syntax
1145
1146# Where to copy the indent files from
1147INDSOURCE = ../runtime/indent
1148
1149# Where to copy the standard plugin files from
1150AUTOSOURCE = ../runtime/autoload
1151
1152# Where to copy the standard plugin files from
1153PLUGSOURCE = ../runtime/plugin
1154
1155# Where to copy the ftplugin files from
1156FTPLUGSOURCE = ../runtime/ftplugin
1157
1158# Where to copy the macro files from
1159MACROSOURCE = ../runtime/macros
1160
1161# Where to copy the tools files from
1162TOOLSSOURCE = ../runtime/tools
1163
1164# Where to copy the tutor files from
1165TUTORSOURCE = ../runtime/tutor
1166
1167# Where to copy the spell files from
1168SPELLSOURCE = ../runtime/spell
1169
1170# Where to look for language specific files
1171LANGSOURCE = ../runtime/lang
1172
1173# Where to look for compiler files
1174COMPSOURCE = ../runtime/compiler
1175
1176# Where to look for keymap files
1177KMAPSOURCE = ../runtime/keymap
1178
1179# Where to look for print resource files
1180PRINTSOURCE = ../runtime/print
1181
1182# If you are using Linux, you might want to use this to make vim the
1183# default vi editor, it will create a link from vi to Vim when doing
1184# "make install".  An existing file will be overwritten!
1185# When not using it, some make programs can't handle an undefined $(LINKIT).
1186#LINKIT = ln -f -s $(DEST_BIN)/$(VIMTARGET) $(DESTDIR)/usr/bin/vi
1187LINKIT = @echo >/dev/null
1188
1189###
1190### GRAPHICAL USER INTERFACE (GUI).  {{{1
1191### 'configure --enable-gui' can enable one of these for you if you did set
1192### a corresponding CONF_OPT_GUI above and have X11.
1193### Override configures choice by uncommenting all the following lines.
1194### As they are, the GUI is disabled.  Replace "NONE" with "ATHENA" or "MOTIF"
1195### for enabling the Athena or Motif GUI.
1196#GUI_SRC	= $(NONE_SRC)
1197#GUI_OBJ	= $(NONE_OBJ)
1198#GUI_DEFS	= $(NONE_DEFS)
1199#GUI_IPATH	= $(NONE_IPATH)
1200#GUI_LIBS_DIR	= $(NONE_LIBS_DIR)
1201#GUI_LIBS1	= $(NONE_LIBS1)
1202#GUI_LIBS2	= $(NONE_LIBS2)
1203#GUI_INSTALL    = $(NONE_INSTALL)
1204#GUI_TARGETS	= $(NONE_TARGETS)
1205#GUI_MAN_TARGETS= $(NONE_MAN_TARGETS)
1206#GUI_TESTTARGET = $(NONE_TESTTARGET)
1207#GUI_BUNDLE	= $(NONE_BUNDLE)
1208
1209# Without a GUI install the normal way.
1210NONE_INSTALL = install_normal
1211
1212### GTK GUI
1213GTK_SRC		= gui.c gui_gtk.c gui_gtk_x11.c pty.c gui_gtk_f.c \
1214			gui_beval.c $(GRESOURCE_SRC)
1215GTK_OBJ		= objects/gui.o objects/gui_gtk.o objects/gui_gtk_x11.o \
1216			objects/pty.o objects/gui_gtk_f.o \
1217			objects/gui_beval.o $(GRESOURCE_OBJ)
1218GTK_DEFS	= -DFEAT_GUI_GTK $(NARROW_PROTO)
1219GTK_IPATH	= $(GUI_INC_LOC)
1220GTK_LIBS_DIR	= $(GUI_LIB_LOC)
1221GTK_LIBS1	=
1222GTK_LIBS2	= $(GTK_LIBNAME)
1223GTK_INSTALL     = install_normal install_gui_extra
1224GTK_TARGETS	= installglinks
1225GTK_MAN_TARGETS = yes
1226GTK_TESTTARGET  = gui
1227GTK_BUNDLE	=
1228
1229### Motif GUI
1230MOTIF_SRC	= gui.c gui_motif.c gui_x11.c pty.c gui_beval.c \
1231			gui_xmdlg.c gui_xmebw.c
1232MOTIF_OBJ	= objects/gui.o objects/gui_motif.o objects/gui_x11.o \
1233			objects/pty.o objects/gui_beval.o \
1234			objects/gui_xmdlg.o objects/gui_xmebw.o
1235MOTIF_DEFS	= -DFEAT_GUI_MOTIF $(NARROW_PROTO)
1236MOTIF_IPATH	= $(GUI_INC_LOC)
1237MOTIF_LIBS_DIR	= $(GUI_LIB_LOC)
1238MOTIF_LIBS1	=
1239MOTIF_LIBS2	= $(MOTIF_LIBNAME) -lXt
1240MOTIF_INSTALL   = install_normal install_gui_extra
1241MOTIF_TARGETS	= installglinks
1242MOTIF_MAN_TARGETS = yes
1243MOTIF_TESTTARGET = gui
1244MOTIF_BUNDLE	=
1245
1246### Athena GUI
1247### Use Xaw3d to make the menus look a little bit nicer
1248#XAW_LIB = -lXaw3d
1249XAW_LIB = -lXaw
1250
1251### When using Xaw3d, uncomment/comment the following lines to also get the
1252### scrollbars from Xaw3d.
1253#ATHENA_SRC	= gui.c gui_athena.c gui_x11.c pty.c gui_beval.c gui_at_fs.c
1254#ATHENA_OBJ	= objects/gui.o objects/gui_athena.o objects/gui_x11.o \
1255#			objects/pty.o objects/gui_beval.o objects/gui_at_fs.o
1256#ATHENA_DEFS	= -DFEAT_GUI_ATHENA $(NARROW_PROTO) \
1257#		    -Dvim_scrollbarWidgetClass=scrollbarWidgetClass \
1258#		    -Dvim_XawScrollbarSetThumb=XawScrollbarSetThumb
1259ATHENA_SRC	= gui.c gui_athena.c gui_x11.c pty.c gui_beval.c \
1260			gui_at_sb.c gui_at_fs.c
1261ATHENA_OBJ	= objects/gui.o objects/gui_athena.o objects/gui_x11.o \
1262			objects/pty.o objects/gui_beval.o \
1263			objects/gui_at_sb.o objects/gui_at_fs.o
1264ATHENA_DEFS	= -DFEAT_GUI_ATHENA $(NARROW_PROTO)
1265
1266ATHENA_IPATH	= $(GUI_INC_LOC)
1267ATHENA_LIBS_DIR = $(GUI_LIB_LOC)
1268ATHENA_LIBS1	= $(XAW_LIB)
1269ATHENA_LIBS2	= -lXt
1270ATHENA_INSTALL  = install_normal install_gui_extra
1271ATHENA_TARGETS	= installglinks
1272ATHENA_MAN_TARGETS = yes
1273ATHENA_TESTTARGET = gui
1274ATHENA_BUNDLE	=
1275
1276### neXtaw GUI
1277NEXTAW_LIB = -lneXtaw
1278
1279NEXTAW_SRC	= gui.c gui_athena.c gui_x11.c pty.c gui_beval.c gui_at_fs.c
1280NEXTAW_OBJ	= objects/gui.o objects/gui_athena.o objects/gui_x11.o \
1281			objects/pty.o objects/gui_beval.o objects/gui_at_fs.o
1282NEXTAW_DEFS	= -DFEAT_GUI_ATHENA -DFEAT_GUI_NEXTAW $(NARROW_PROTO)
1283
1284NEXTAW_IPATH	= $(GUI_INC_LOC)
1285NEXTAW_LIBS_DIR = $(GUI_LIB_LOC)
1286NEXTAW_LIBS1	= $(NEXTAW_LIB)
1287NEXTAW_LIBS2	= -lXt
1288NEXTAW_INSTALL  =  install_normal install_gui_extra
1289NEXTAW_TARGETS	=  installglinks
1290NEXTAW_MAN_TARGETS = yes
1291NEXTAW_TESTTARGET = gui
1292NEXTAW_BUNDLE	=
1293
1294### (J)  Sun OpenWindows 3.2 (SunOS 4.1.x) or earlier that produce these ld
1295#	 errors:  ld: Undefined symbol
1296#		      _get_wmShellWidgetClass
1297#		      _get_applicationShellWidgetClass
1298# then you need to get patches 100512-02 and 100573-03 from Sun.  In the
1299# meantime, uncomment the following GUI_X_LIBS definition as a workaround:
1300#GUI_X_LIBS = -Bstatic -lXmu -Bdynamic -lXext
1301# If you also get cos, sin etc. as undefined symbols, try uncommenting this
1302# too:
1303#EXTRA_LIBS = /usr/openwin/lib/libXmu.sa -lm
1304
1305# PHOTON GUI
1306PHOTONGUI_SRC	= gui.c gui_photon.c pty.c
1307PHOTONGUI_OBJ	= objects/gui.o objects/gui_photon.o objects/pty.o
1308PHOTONGUI_DEFS	= -DFEAT_GUI_PHOTON
1309PHOTONGUI_IPATH	=
1310PHOTONGUI_LIBS_DIR =
1311PHOTONGUI_LIBS1	= -lph -lphexlib
1312PHOTONGUI_LIBS2	=
1313PHOTONGUI_INSTALL = install_normal install_gui_extra
1314PHOTONGUI_TARGETS = installglinks
1315PHOTONGUI_MAN_TARGETS = yes
1316PHOTONGUI_TESTTARGET = gui
1317PHOTONGUI_BUNDLE =
1318
1319# CARBON GUI
1320CARBONGUI_SRC	= gui.c gui_mac.c
1321CARBONGUI_OBJ	= objects/gui.o objects/gui_mac.o objects/pty.o
1322CARBONGUI_DEFS	= -DFEAT_GUI_MAC -fno-common -fpascal-strings \
1323		  -Wall -Wno-unknown-pragmas \
1324		  -mdynamic-no-pic -pipe
1325CARBONGUI_IPATH	= -I. -Iproto
1326CARBONGUI_LIBS_DIR =
1327CARBONGUI_LIBS1	= -framework Carbon
1328CARBONGUI_LIBS2	=
1329CARBONGUI_INSTALL = install_macosx
1330CARBONGUI_TARGETS =
1331CARBONGUI_MAN_TARGETS =
1332CARBONGUI_TESTTARGET = gui
1333CARBONGUI_BUNDLE = gui_bundle
1334APPDIR = $(VIMNAME).app
1335CARBONGUI_TESTARG = VIMPROG=../$(APPDIR)/Contents/MacOS/$(VIMTARGET)
1336
1337# All GUI files
1338ALL_GUI_SRC  = gui.c gui_gtk.c gui_gtk_f.c gui_motif.c gui_xmdlg.c gui_xmebw.c gui_athena.c gui_gtk_x11.c gui_x11.c gui_at_sb.c gui_at_fs.c pty.c
1339ALL_GUI_PRO  = gui.pro gui_gtk.pro gui_motif.pro gui_xmdlg.pro gui_athena.pro gui_gtk_x11.pro gui_x11.pro gui_w16.pro gui_w32.pro gui_photon.pro
1340
1341# }}}
1342
1343### Command to create dependencies based on #include "..."
1344### prototype headers are ignored due to -DPROTO, system
1345### headers #include <...> are ignored if we use the -MM option, as
1346### e.g. provided by gcc-cpp.
1347### Include FEAT_GUI to get dependency on gui.h
1348### Need to change "-I /<path>" to "-isystem /<path>" for GCC 3.x.
1349CPP_DEPEND = $(CC) -I$(srcdir) -M$(CPP_MM) \
1350		`echo "$(DEPEND_CFLAGS)" $(DEPEND_CFLAGS_FILTER)`
1351
1352# flags for cproto
1353#     This is for cproto 3 patchlevel 8 or below
1354#     __inline, __attribute__ and __extension__ are not recognized by cproto
1355#     G_IMPLEMENT_INLINES is to avoid functions defined in glib/gutils.h.
1356#NO_ATTR = -D__inline= -D__inline__= -DG_IMPLEMENT_INLINES \
1357#	  -D"__attribute__\\(x\\)=" -D"__asm__\\(x\\)=" \
1358#	  -D__extension__= -D__restrict="" \
1359#	  -D__gnuc_va_list=char -D__builtin_va_list=char
1360
1361#
1362#     This is for cproto 3 patchlevel 9 or above (currently 4.6, 4.7g)
1363#     __inline and __attribute__ are now recognized by cproto
1364#     -D"foo()=" is not supported by all compilers so do not use it
1365NO_ATTR=
1366#
1367# Use this for cproto 3 patchlevel 6 or below (use "cproto -V" to check):
1368# PROTO_FLAGS = -f4 -d -E"$(CPP)" $(NO_ATTR)
1369#
1370# Use this for cproto 3 patchlevel 7 or above (use "cproto -V" to check):
1371PROTO_FLAGS = -d -E"$(CPP)" $(NO_ATTR)
1372
1373
1374################################################
1375##   no changes required below this line      ##
1376################################################
1377
1378SHELL = /bin/sh
1379
1380.SUFFIXES:
1381.SUFFIXES: .c .o .pro
1382
1383PRE_DEFS = -Iproto $(DEFS) $(GUI_DEFS) $(GUI_IPATH) $(CPPFLAGS) $(EXTRA_IPATHS)
1384POST_DEFS = $(X_CFLAGS) $(MZSCHEME_CFLAGS) $(EXTRA_DEFS)
1385
1386ALL_CFLAGS = $(PRE_DEFS) $(CFLAGS) $(PROFILE_CFLAGS) $(SANITIZER_CFLAGS) $(LEAK_CFLAGS) $(POST_DEFS)
1387
1388# Exclude $CFLAGS for osdef.sh, for Mac 10.4 some flags don't work together
1389# with "-E".
1390OSDEF_CFLAGS = $(PRE_DEFS) $(POST_DEFS)
1391
1392LINT_CFLAGS = -DLINT -I. $(PRE_DEFS) $(POST_DEFS) $(RUBY_CFLAGS) $(LUA_CFLAGS) $(PERL_CFLAGS) $(PYTHON_CFLAGS) $(PYTHON3_CFLAGS) $(TCL_CFLAGS) -Dinline= -D__extension__= -Dalloca=alloca
1393
1394LINT_EXTRA = -DUSE_SNIFF -DHANGUL_INPUT -D"__attribute__(x)="
1395
1396DEPEND_CFLAGS = -DPROTO -DDEPEND -DFEAT_GUI $(LINT_CFLAGS)
1397
1398# Note: MZSCHEME_LIBS must come before LIBS, because LIBS adds -lm which is
1399# needed by racket.
1400ALL_LIB_DIRS = $(GUI_LIBS_DIR) $(X_LIBS_DIR)
1401ALL_LIBS = \
1402	   $(GUI_LIBS1) \
1403	   $(GUI_X_LIBS) \
1404	   $(GUI_LIBS2) \
1405	   $(X_PRE_LIBS) \
1406	   $(X_LIBS) \
1407	   $(X_EXTRA_LIBS) \
1408	   $(MZSCHEME_LIBS) \
1409	   $(LIBS) \
1410	   $(EXTRA_LIBS) \
1411	   $(LUA_LIBS) \
1412	   $(PERL_LIBS) \
1413	   $(PYTHON_LIBS) \
1414	   $(PYTHON3_LIBS) \
1415	   $(TCL_LIBS) \
1416	   $(RUBY_LIBS) \
1417	   $(PROFILE_LIBS) \
1418	   $(SANITIZER_LIBS) \
1419	   $(LEAK_LIBS)
1420
1421# abbreviations
1422DEST_BIN = $(DESTDIR)$(BINDIR)
1423DEST_VIM = $(DESTDIR)$(VIMLOC)
1424DEST_RT = $(DESTDIR)$(VIMRTLOC)
1425DEST_HELP = $(DESTDIR)$(HELPSUBLOC)
1426DEST_COL = $(DESTDIR)$(COLSUBLOC)
1427DEST_SYN = $(DESTDIR)$(SYNSUBLOC)
1428DEST_IND = $(DESTDIR)$(INDSUBLOC)
1429DEST_AUTO = $(DESTDIR)$(AUTOSUBLOC)
1430DEST_PLUG = $(DESTDIR)$(PLUGSUBLOC)
1431DEST_FTP = $(DESTDIR)$(FTPLUGSUBLOC)
1432DEST_LANG = $(DESTDIR)$(LANGSUBLOC)
1433DEST_COMP = $(DESTDIR)$(COMPSUBLOC)
1434DEST_KMAP = $(DESTDIR)$(KMAPSUBLOC)
1435DEST_MACRO = $(DESTDIR)$(MACROSUBLOC)
1436DEST_TOOLS = $(DESTDIR)$(TOOLSSUBLOC)
1437DEST_TUTOR = $(DESTDIR)$(TUTORSUBLOC)
1438DEST_SPELL = $(DESTDIR)$(SPELLSUBLOC)
1439DEST_SCRIPT = $(DESTDIR)$(SCRIPTLOC)
1440DEST_PRINT = $(DESTDIR)$(PRINTSUBLOC)
1441DEST_MAN_TOP = $(DESTDIR)$(MANDIR)
1442
1443# We assume that the ".../man/xx/man1/" directory is for latin1 manual pages.
1444# Some systems use UTF-8, but these should find the ".../man/xx.UTF-8/man1/"
1445# directory first.
1446# FreeBSD uses ".../man/xx.ISO8859-1/man1" for latin1, use that one too.
1447DEST_MAN = $(DEST_MAN_TOP)$(MAN1DIR)
1448DEST_MAN_FR = $(DEST_MAN_TOP)/fr$(MAN1DIR)
1449DEST_MAN_FR_I = $(DEST_MAN_TOP)/fr.ISO8859-1$(MAN1DIR)
1450DEST_MAN_FR_U = $(DEST_MAN_TOP)/fr.UTF-8$(MAN1DIR)
1451DEST_MAN_IT = $(DEST_MAN_TOP)/it$(MAN1DIR)
1452DEST_MAN_IT_I = $(DEST_MAN_TOP)/it.ISO8859-1$(MAN1DIR)
1453DEST_MAN_IT_U = $(DEST_MAN_TOP)/it.UTF-8$(MAN1DIR)
1454DEST_MAN_JA_U = $(DEST_MAN_TOP)/ja$(MAN1DIR)
1455DEST_MAN_PL = $(DEST_MAN_TOP)/pl$(MAN1DIR)
1456DEST_MAN_PL_I = $(DEST_MAN_TOP)/pl.ISO8859-2$(MAN1DIR)
1457DEST_MAN_PL_U = $(DEST_MAN_TOP)/pl.UTF-8$(MAN1DIR)
1458DEST_MAN_RU = $(DEST_MAN_TOP)/ru.KOI8-R$(MAN1DIR)
1459DEST_MAN_RU_U = $(DEST_MAN_TOP)/ru.UTF-8$(MAN1DIR)
1460
1461#	     BASIC_SRC: files that are always used
1462#	       GUI_SRC: extra GUI files for current configuration
1463#	   ALL_GUI_SRC: all GUI files for Unix
1464#
1465#		   SRC: files used for current configuration
1466#	      TAGS_SRC: source files used for make tags
1467#	     TAGS_INCL: include files used for make tags
1468#	       ALL_SRC: source files used for make depend and make lint
1469
1470TAGS_INCL = *.h
1471
1472BASIC_SRC = \
1473	blowfish.c \
1474	buffer.c \
1475	charset.c \
1476	crypt.c \
1477	crypt_zip.c \
1478	diff.c \
1479	digraph.c \
1480	edit.c \
1481	eval.c \
1482	ex_cmds.c \
1483	ex_cmds2.c \
1484	ex_docmd.c \
1485	ex_eval.c \
1486	ex_getln.c \
1487	fileio.c \
1488	fold.c \
1489	getchar.c \
1490	hardcopy.c \
1491	hashtab.c \
1492	if_cscope.c \
1493	if_xcmdsrv.c \
1494	json.c \
1495	main.c \
1496	mark.c \
1497	memfile.c \
1498	memline.c \
1499	menu.c \
1500	message.c \
1501	misc1.c \
1502	misc2.c \
1503	move.c \
1504	mbyte.c \
1505	normal.c \
1506	ops.c \
1507	option.c \
1508	os_unix.c \
1509	auto/pathdef.c \
1510	popupmnu.c \
1511	quickfix.c \
1512	regexp.c \
1513	screen.c \
1514	search.c \
1515	sha256.c \
1516	spell.c \
1517	syntax.c \
1518	tag.c \
1519	term.c \
1520	ui.c \
1521	undo.c \
1522	version.c \
1523	window.c \
1524	$(OS_EXTRA_SRC)
1525
1526SRC =	$(BASIC_SRC) \
1527	$(GUI_SRC) \
1528	$(HANGULIN_SRC) \
1529	$(LUA_SRC) \
1530	$(MZSCHEME_SRC) \
1531	$(PERL_SRC) \
1532	$(PYTHON_SRC) $(PYTHON3_SRC) \
1533	$(TCL_SRC) \
1534	$(RUBY_SRC) \
1535	$(SNIFF_SRC) \
1536	$(WORKSHOP_SRC) \
1537	$(WSDEBUG_SRC)
1538
1539TAGS_SRC = *.c *.cpp if_perl.xs
1540
1541EXTRA_SRC = hangulin.c if_lua.c if_mzsch.c auto/if_perl.c if_perlsfio.c \
1542	    if_python.c if_python3.c if_tcl.c if_ruby.c if_sniff.c \
1543	    gui_beval.c workshop.c wsdebug.c integration.c \
1544	    netbeans.c channel.c \
1545	    $(GRESOURCE_SRC)
1546
1547# Unittest files
1548MEMFILE_TEST_SRC = memfile_test.c
1549MEMFILE_TEST_TARGET = memfile_test$(EXEEXT)
1550
1551UNITTEST_SRC = $(MEMFILE_TEST_SRC)
1552UNITTEST_TARGETS = $(MEMFILE_TEST_TARGET)
1553
1554# All sources, also the ones that are not configured
1555ALL_SRC = $(BASIC_SRC) $(ALL_GUI_SRC) $(UNITTEST_SRC) $(EXTRA_SRC)
1556
1557# Which files to check with lint.  Select one of these three lines.  ALL_SRC
1558# checks more, but may not work well for checking a GUI that wasn't configured.
1559# The perl sources also don't work well with lint.
1560LINT_SRC = $(BASIC_SRC) $(GUI_SRC) $(HANGULIN_SRC) \
1561	   $(PYTHON_SRC) $(PYTHON3_SRC) $(TCL_SRC) \
1562	   $(SNIFF_SRC) $(WORKSHOP_SRC) $(WSDEBUG_SRC) \
1563	   $(NETBEANS_SRC) $(CHANNEL_SRC)
1564#LINT_SRC = $(SRC)
1565#LINT_SRC = $(ALL_SRC)
1566#LINT_SRC = $(BASIC_SRC)
1567
1568OBJ_COMMON = \
1569	objects/buffer.o \
1570	objects/blowfish.o \
1571	objects/charset.o \
1572	objects/crypt.o \
1573	objects/crypt_zip.o \
1574	objects/diff.o \
1575	objects/digraph.o \
1576	objects/edit.o \
1577	objects/eval.o \
1578	objects/ex_cmds.o \
1579	objects/ex_cmds2.o \
1580	objects/ex_docmd.o \
1581	objects/ex_eval.o \
1582	objects/ex_getln.o \
1583	objects/fileio.o \
1584	objects/fold.o \
1585	objects/getchar.o \
1586	objects/hardcopy.o \
1587	objects/hashtab.o \
1588	$(HANGULIN_OBJ) \
1589	objects/if_cscope.o \
1590	objects/if_xcmdsrv.o \
1591	objects/json.o \
1592	objects/mark.o \
1593        objects/memline.o \
1594	objects/menu.o \
1595	objects/message.o \
1596	objects/misc1.o \
1597	objects/misc2.o \
1598	objects/move.o \
1599	objects/mbyte.o \
1600	objects/normal.o \
1601	objects/ops.o \
1602	objects/option.o \
1603	objects/os_unix.o \
1604	objects/pathdef.o \
1605	objects/popupmnu.o \
1606	objects/quickfix.o \
1607	objects/regexp.o \
1608	objects/screen.o \
1609	objects/search.o \
1610	objects/sha256.o \
1611	objects/spell.o \
1612	objects/syntax.o \
1613	$(SNIFF_OBJ) \
1614	objects/tag.o \
1615	objects/term.o \
1616	objects/ui.o \
1617	objects/undo.o \
1618	objects/version.o \
1619	objects/window.o \
1620	$(GUI_OBJ) \
1621	$(LUA_OBJ) \
1622	$(MZSCHEME_OBJ) \
1623	$(PERL_OBJ) \
1624	$(PYTHON_OBJ) \
1625	$(PYTHON3_OBJ) \
1626	$(TCL_OBJ) \
1627	$(RUBY_OBJ) \
1628	$(OS_EXTRA_OBJ) \
1629	$(WORKSHOP_OBJ) \
1630	$(NETBEANS_OBJ) \
1631	$(CHANNEL_OBJ) \
1632	$(WSDEBUG_OBJ)
1633
1634OBJ = $(OBJ_COMMON) \
1635	objects/main.o \
1636	objects/memfile.o
1637
1638MEMFILE_TEST_OBJ = $(OBJ_COMMON) \
1639        objects/memfile_test.o
1640
1641PRO_AUTO = \
1642	blowfish.pro \
1643	buffer.pro \
1644	charset.pro \
1645	crypt.pro \
1646	crypt_zip.pro \
1647	diff.pro \
1648	digraph.pro \
1649	edit.pro \
1650	eval.pro \
1651	ex_cmds.pro \
1652	ex_cmds2.pro \
1653	ex_docmd.pro \
1654	ex_eval.pro \
1655	ex_getln.pro \
1656	fileio.pro \
1657	fold.pro \
1658	getchar.pro \
1659	hardcopy.pro \
1660	hashtab.pro \
1661	hangulin.pro \
1662	if_cscope.pro \
1663	if_lua.pro \
1664	if_mzsch.pro \
1665	if_python.pro \
1666	if_python3.pro \
1667	if_ruby.pro \
1668	if_xcmdsrv.pro \
1669	json.pro \
1670	main.pro \
1671	mark.pro \
1672	mbyte.pro \
1673	memfile.pro \
1674	memline.pro \
1675	menu.pro \
1676	message.pro \
1677	misc1.pro \
1678	misc2.pro \
1679	move.pro \
1680	normal.pro \
1681	ops.pro \
1682	option.pro \
1683	os_mac_conv.pro \
1684	os_unix.pro \
1685	popupmnu.pro \
1686	pty.pro \
1687	quickfix.pro \
1688	regexp.pro \
1689	screen.pro \
1690	search.pro \
1691	sha256.pro \
1692	spell.pro \
1693	syntax.pro \
1694	tag.pro \
1695	term.pro \
1696	termlib.pro \
1697	ui.pro \
1698	undo.pro \
1699	version.pro \
1700	window.pro \
1701	gui_beval.pro \
1702	workshop.pro \
1703	netbeans.pro \
1704	channel.pro \
1705	$(ALL_GUI_PRO) \
1706	$(TCL_PRO)
1707
1708# Resources used for the Mac are in one directory.
1709RSRC_DIR = os_mac_rsrc
1710
1711PRO_MANUAL = os_amiga.pro os_msdos.pro os_win16.pro os_win32.pro \
1712	os_mswin.pro winclip.pro os_beos.pro os_vms.pro $(PERL_PRO)
1713
1714# Default target is making the executable and tools
1715all: $(VIMTARGET) $(TOOLS) languages $(GUI_BUNDLE)
1716
1717tools: $(TOOLS)
1718
1719# Run configure with all the setting from above.
1720#
1721# Note: auto/config.h doesn't depend on configure, because running configure
1722# doesn't always update auto/config.h.  The timestamp isn't changed if the
1723# file contents didn't change (to avoid recompiling everything).  Including a
1724# dependency on auto/config.h would cause running configure each time when
1725# auto/config.h isn't updated.  The dependency on auto/config.mk should make
1726# sure configure is run when it's needed.
1727#
1728# Remove the config.cache every time, once in a while it causes problems that
1729# are very hard to figure out.
1730#
1731config auto/config.mk: auto/configure config.mk.in config.h.in
1732	-rm -f auto/config.cache
1733	if test "X$(MAKECMDGOALS)" != "Xclean" \
1734		-a "X$(MAKECMDGOALS)" != "Xdistclean" \
1735		-a "X$(MAKECMDGOALS)" != "Xautoconf" \
1736		-a "X$(MAKECMDGOALS)" != "Xreconfig"; then \
1737	    GUI_INC_LOC="$(GUI_INC_LOC)" GUI_LIB_LOC="$(GUI_LIB_LOC)" \
1738		CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \
1739		LDFLAGS="$(LDFLAGS)" $(CONF_SHELL) srcdir="$(srcdir)" \
1740		./configure $(CONF_OPT_GUI) $(CONF_OPT_X) $(CONF_OPT_XSMP) \
1741		$(CONF_OPT_DARWIN) $(CONF_OPT_FAIL) \
1742		$(CONF_OPT_PERL) $(CONF_OPT_PYTHON) $(CONF_OPT_PYTHON3) \
1743		$(CONF_OPT_TCL) $(CONF_OPT_RUBY) $(CONF_OPT_NLS) \
1744		$(CONF_OPT_CSCOPE) $(CONF_OPT_MULTIBYTE) $(CONF_OPT_INPUT) \
1745		$(CONF_OPT_OUTPUT) $(CONF_OPT_GPM) $(CONF_OPT_WORKSHOP) \
1746		$(CONF_OPT_SNIFF) $(CONF_OPT_FEAT) $(CONF_TERM_LIB) \
1747		$(CONF_OPT_COMPBY) $(CONF_OPT_ACL) $(CONF_OPT_NETBEANS) \
1748		$(CONF_OPT_CHANNEL) \
1749		$(CONF_ARGS) $(CONF_OPT_MZSCHEME) $(CONF_OPT_PLTHOME) \
1750		$(CONF_OPT_LUA) $(CONF_OPT_LUA_PREFIX) \
1751		$(CONF_OPT_SYSMOUSE); \
1752	fi
1753
1754# Use "make reconfig" to rerun configure without cached values.
1755# When config.h changes, most things will be recompiled automatically.
1756# Invoke $(MAKE) to run config with the empty auto/config.mk.
1757# Invoke $(MAKE) to build all with the filled auto/config.mk.
1758reconfig: scratch clean
1759	$(MAKE) -f Makefile config
1760	$(MAKE) -f Makefile all
1761
1762# Run autoconf to produce auto/configure.
1763# Note:
1764# - DO NOT RUN autoconf MANUALLY!  It will overwrite ./configure instead of
1765#   producing auto/configure.
1766# - autoconf is not run automatically, because a patch usually changes both
1767#   configure.in and auto/configure but can't update the timestamps.  People
1768#   who do not have (the correct version of) autoconf would run into trouble.
1769#
1770# Two tricks are required to make autoconf put its output in the "auto" dir:
1771# - Temporarily move the ./configure script to ./configure.save.  Don't
1772#   overwrite it, it's probably the result of an aborted autoconf.
1773# - Use sed to change ./config.log to auto/config.log in the configure script.
1774# Autoconf 2.5x (2.59 at least) produces a few more files that we need to take
1775# care of:
1776# - configure.lineno: has the line numbers replaced with $LINENO.  That
1777#   improves patches a LOT, thus use it instead (until someone says it doesn't
1778#   work on some system).
1779# - autom4te.cache directory is created and not cleaned up.  Delete it.
1780# - Uses ">config.log" instead of "./config.log".
1781autoconf:
1782	if test ! -f configure.save; then mv configure configure.save; fi
1783	$(AUTOCONF)
1784	sed -e 's+>config.log+>auto/config.log+' -e 's+\./config.log+auto/config.log+' configure > auto/configure
1785	chmod 755 auto/configure
1786	mv -f configure.save configure
1787	-rm -rf autom4te.cache
1788	-rm -f auto/config.status auto/config.cache
1789
1790# Re-execute this Makefile to include the new auto/config.mk produced by
1791# configure Only used when typing "make" with a fresh auto/config.mk.
1792myself:
1793	$(MAKE) -f Makefile all
1794
1795
1796# The normal command to compile a .c file to its .o file.
1797CCC = $(CC) -c -I$(srcdir) $(ALL_CFLAGS)
1798
1799
1800# Link the target for normal use or debugging.
1801# A shell script is used to try linking without unnecessary libraries.
1802$(VIMTARGET): auto/config.mk objects $(OBJ) version.c version.h
1803	$(CCC) version.c -o objects/version.o
1804	@LINK="$(PURIFY) $(SHRPENV) $(CClink) $(ALL_LIB_DIRS) $(LDFLAGS) \
1805		-o $(VIMTARGET) $(OBJ) $(ALL_LIBS)" \
1806		MAKE="$(MAKE)" LINK_AS_NEEDED=$(LINK_AS_NEEDED) \
1807		sh $(srcdir)/link.sh
1808
1809xxd/xxd$(EXEEXT): xxd/xxd.c
1810	cd xxd; CC="$(CC)" CFLAGS="$(CPPFLAGS) $(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
1811		$(MAKE) -f Makefile
1812
1813# Build the language specific files if they were unpacked.
1814# Generate the converted .mo files separately, it's no problem if this fails.
1815languages:
1816	@if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
1817		cd $(PODIR); \
1818		  CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix); \
1819	fi
1820	-@if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
1821		cd $(PODIR); \
1822		  CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix) converted; \
1823	fi
1824
1825# Update the *.po files for changes in the sources.  Only run manually.
1826update-po:
1827	cd $(PODIR); CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix) update-po
1828
1829# Generate function prototypes.  This is not needed to compile vim, but if
1830# you want to use it, cproto is out there on the net somewhere -- Webb
1831#
1832# When generating os_amiga.pro, os_msdos.pro and os_win32.pro there will be a
1833# few include files that can not be found, that's OK.
1834
1835proto: $(PRO_AUTO) $(PRO_MANUAL)
1836
1837# Filter out arguments that cproto doesn't support.
1838# Don't pass "-pthread", "-fwrapv" and similar arguments to cproto, it sees
1839# them as a list of individual flags.
1840# The -E"gcc -E" argument must be separate to avoid problems with shell
1841# quoting.
1842CPROTO = cproto $(PROTO_FLAGS) -DPROTO \
1843	 `echo '$(LINT_CFLAGS)' | sed -e 's/ -[a-z-]\+//g'`
1844
1845### Would be nice if this would work for "normal" make.
1846### Currently it only works for (Free)BSD make.
1847#$(PRO_AUTO): $$(*F).c
1848#	$(CPROTO) -DFEAT_GUI $(*F).c > $@
1849
1850# Always define FEAT_GUI.  This may generate a few warnings if it's also
1851# defined in auto/config.h, you can ignore that.
1852.c.pro:
1853	$(CPROTO) -DFEAT_GUI $< > proto/$@
1854	echo "/* vim: set ft=c : */" >> proto/$@
1855
1856os_amiga.pro: os_amiga.c
1857	$(CPROTO) -DAMIGA -UHAVE_CONFIG_H -DBPTR=char* $< > proto/$@
1858	echo "/* vim: set ft=c : */" >> proto/$@
1859
1860os_msdos.pro: os_msdos.c
1861	$(CPROTO) -DMSDOS -UHAVE_CONFIG_H $< > proto/$@
1862	echo "/* vim: set ft=c : */" >> proto/$@
1863
1864os_win16.pro: os_win16.c
1865	$(CPROTO) -DWIN16 -UHAVE_CONFIG_H $< > proto/$@
1866	echo "/* vim: set ft=c : */" >> proto/$@
1867
1868os_win32.pro: os_win32.c
1869	$(CPROTO) -DWIN32 -UHAVE_CONFIG_H $< > proto/$@
1870	echo "/* vim: set ft=c : */" >> proto/$@
1871
1872os_mswin.pro: os_mswin.c
1873	$(CPROTO) -DWIN16 -DWIN32 -UHAVE_CONFIG_H $< > proto/$@
1874	echo "/* vim: set ft=c : */" >> proto/$@
1875
1876winclip.pro: winclip.c
1877	$(CPROTO) -DWIN16 -DWIN32 -UHAVE_CONFIG_H $< > proto/$@
1878	echo "/* vim: set ft=c : */" >> proto/$@
1879
1880os_beos.pro: os_beos.c
1881	$(CPROTO) -D__BEOS__ -UHAVE_CONFIG_H $< > proto/$@
1882	echo "/* vim: set ft=c : */" >> proto/$@
1883
1884os_vms.pro: os_vms.c
1885# must use os_vms_conf.h for auto/config.h
1886	mv auto/config.h auto/config.h.save
1887	cp os_vms_conf.h auto/config.h
1888	$(CPROTO) -DVMS -UFEAT_GUI_ATHENA -UFEAT_GUI_NEXTAW -UFEAT_GUI_MOTIF -UFEAT_GUI_GTK $< > proto/$@
1889	echo "/* vim: set ft=c : */" >> proto/$@
1890	rm auto/config.h
1891	mv auto/config.h.save auto/config.h
1892
1893# if_perl.pro is special: Use the generated if_perl.c for input and remove
1894# prototypes for local functions.
1895if_perl.pro: auto/if_perl.c
1896	$(CPROTO) -DFEAT_GUI auto/if_perl.c | sed "/_VI/d" > proto/$@
1897
1898gui_gtk_gresources.pro: auto/gui_gtk_gresources.c
1899	$(CPROTO) -DFEAT_GUI $< > proto/$@
1900	echo "/* vim: set ft=c : */" >> proto/$@
1901
1902notags:
1903	-rm -f tags
1904
1905# Note: tags is made for the currently configured version, can't include both
1906#	Motif and Athena GUI
1907# You can ignore error messages for missing files.
1908tags TAGS: notags
1909	$(TAGPRG) $(TAGS_SRC) $(TAGS_INCL)
1910
1911# Make a highlight file for types.  Requires Exuberant ctags and awk
1912types: types.vim
1913types.vim: $(TAGS_SRC) $(TAGS_INCL)
1914	ctags --c-kinds=gstu -o- $(TAGS_SRC) $(TAGS_INCL) |\
1915		awk 'BEGIN{printf("syntax keyword Type\t")}\
1916			{printf("%s ", $$1)}END{print ""}' > $@
1917
1918# Execute the test scripts.  Run these after compiling Vim, before installing.
1919# This doesn't depend on $(VIMTARGET), because that won't work when configure
1920# wasn't run yet.  Restart make to build it instead.
1921#
1922# This will produce a lot of garbage on your screen, including a few error
1923# messages.  Don't worry about that.
1924# If there is a real error, there will be a difference between "testXX.out" and
1925# a "testXX.ok" file.
1926# If everything is alright, the final message will be "ALL DONE".  If not you
1927# get "TEST FAILURE".
1928#
1929test check:
1930	$(MAKE) -f Makefile $(VIMTARGET)
1931	if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
1932		cd $(PODIR); $(MAKE) -f Makefile check VIM=../$(VIMTARGET); \
1933	fi
1934	-if test $(VIMTARGET) != vim -a ! -r vim; then \
1935		ln -s $(VIMTARGET) vim; \
1936	fi
1937	cd testdir; $(MAKE) -f Makefile $(GUI_TESTTARGET) VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
1938	$(MAKE) -f Makefile unittest
1939
1940benchmark:
1941	cd testdir; $(MAKE) -f Makefile benchmark VIMPROG=../$(VIMTARGET) SCRIPTSOURCE=../$(SCRIPTSOURCE)
1942
1943unittesttargets:
1944	$(MAKE) -f Makefile $(UNITTEST_TARGETS)
1945
1946unittest unittests: $(UNITTEST_TARGETS)
1947	@for t in $(UNITTEST_TARGETS); do \
1948		./$$t || exit 1; echo $$t passed; \
1949	done
1950
1951# Run individual OLD style test, assuming that Vim was already compiled.
1952test1 \
1953	test_autocmd_option \
1954	test_autoformat_join \
1955	test_breakindent \
1956	test_changelist \
1957	test_charsearch \
1958	test_close_count \
1959	test_command_count \
1960	test_comparators \
1961	test_erasebackword \
1962	test_eval \
1963	test_fixeol \
1964	test_getcwd \
1965	test_insertcount \
1966	test_listchars \
1967	test_listlbr \
1968	test_listlbr_utf8 \
1969	test_mapping \
1970	test_marks \
1971	test_match_conceal \
1972	test_nested_function \
1973	test_options \
1974	test_qf_title \
1975	test_ruby \
1976	test_search_mbyte \
1977	test_signs \
1978	test_tagcase \
1979	test_textobjects \
1980	test_utf8 \
1981	test_wordcount \
1982	test_writefile \
1983	test2 test3 test4 test5 test6 test7 test8 test9 \
1984	test10 test11 test12 test13 test14 test15 test16 test17 test18 test19 \
1985	test20 test21 test22 test23 test24 test25 test26 test27 test28 test29 \
1986	test30 test31 test32 test33 test34 test35 test36 test37 test38 test39 \
1987	test40 test41 test42 test43 test44 test45 test46 test47 test48 test49 \
1988	test50 test51 test52 test53 test54 test55 test56 test57 test58 test59 \
1989	test60 test61 test62 test63 test64 test65 test66 test67 test68 test69 \
1990	test70 test71 test72 test73 test74 test75 test76 test77 test78 test79 \
1991	test80 test81 test82 test83 test84 test85 test86 test87 test88 test89 \
1992	test90 test91 test92 test93 test94 test95 test96 test97 test98 test99 \
1993	test100 test101 test102 test103 test104 test105 test106 test107 test108:
1994	cd testdir; rm -f $@.out; $(MAKE) -f Makefile $@.out VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
1995
1996# Run individual NEW style test, assuming that Vim was already compiled.
1997test_arglist \
1998	test_assert \
1999	test_backspace_opt \
2000	test_cdo \
2001	test_cursor_func \
2002	test_delete \
2003	test_expand \
2004	test_glob2regpat \
2005	test_hardcopy \
2006	test_increment \
2007	test_json \
2008	test_langmap \
2009	test_lispwords \
2010	test_menu \
2011	test_perl \
2012	test_quickfix \
2013	test_searchpos \
2014	test_set \
2015	test_sort \
2016	test_syntax \
2017	test_undolevels \
2018	test_unlet \
2019	test_viminfo \
2020	test_viml \
2021	test_alot:
2022	cd testdir; rm -f $@.res test.log messages; $(MAKE) -f Makefile $@.res VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
2023	@if test -f testdir/test.log; then \
2024		cat testdir/test.log; \
2025	fi
2026	cat testdir/messages
2027
2028newtests:
2029	cd testdir; rm -f $@.res test.log messages; $(MAKE) -f Makefile newtestssilent VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
2030	@if test -f testdir/test.log; then \
2031		cat testdir/test.log; \
2032	fi
2033	cat testdir/messages
2034
2035testclean:
2036	cd testdir; $(MAKE) -f Makefile clean
2037	if test -d $(PODIR); then \
2038		cd $(PODIR); $(MAKE) checkclean; \
2039	fi
2040
2041# Unittests
2042# It's build just like Vim to satisfy all dependencies.
2043$(MEMFILE_TEST_TARGET): auto/config.mk objects $(MEMFILE_TEST_OBJ)
2044	$(CCC) version.c -o objects/version.o
2045	@LINK="$(PURIFY) $(SHRPENV) $(CClink) $(ALL_LIB_DIRS) $(LDFLAGS) \
2046		-o $(MEMFILE_TEST_TARGET) $(MEMFILE_TEST_OBJ) $(ALL_LIBS)" \
2047		MAKE="$(MAKE)" LINK_AS_NEEDED=$(LINK_AS_NEEDED) \
2048		sh $(srcdir)/link.sh
2049
2050# install targets
2051
2052install: $(GUI_INSTALL)
2053
2054install_normal: installvim installtools $(INSTALL_LANGS) install-icons
2055
2056install_gui_extra: installgtutorbin
2057
2058installvim: installvimbin installtutorbin \
2059		installruntime installlinks installmanlinks
2060
2061#
2062# Avoid overwriting an existing executable, somebody might be running it and
2063# overwriting it could cause it to crash.  Deleting it is OK, it won't be
2064# really deleted until all running processes for it have exited.  It is
2065# renamed first, in case the deleting doesn't work.
2066#
2067# If you want to keep an older version, rename it before running "make
2068# install".
2069#
2070installvimbin: $(VIMTARGET) $(DESTDIR)$(exec_prefix) $(DEST_BIN)
2071	-if test -f $(DEST_BIN)/$(VIMTARGET); then \
2072	  mv -f $(DEST_BIN)/$(VIMTARGET) $(DEST_BIN)/$(VIMNAME).rm; \
2073	  rm -f $(DEST_BIN)/$(VIMNAME).rm; \
2074	fi
2075	$(INSTALL_PROG) $(VIMTARGET) $(DEST_BIN)
2076	$(STRIP) $(DEST_BIN)/$(VIMTARGET)
2077	chmod $(BINMOD) $(DEST_BIN)/$(VIMTARGET)
2078# may create a link to the new executable from /usr/bin/vi
2079	-$(LINKIT)
2080
2081# Long list of arguments for the shell script that installs the manual pages
2082# for one language.
2083INSTALLMANARGS = $(VIMLOC) $(SCRIPTLOC) $(VIMRCLOC) $(HELPSOURCE) $(MANMOD) \
2084		$(VIMNAME) $(VIMDIFFNAME) $(EVIMNAME)
2085
2086# Install most of the runtime files
2087installruntime: installrtbase installmacros installtutor installspell
2088
2089# install the help files; first adjust the contents for the final location
2090installrtbase: $(HELPSOURCE)/vim.1 $(DEST_VIM) $(DEST_RT) \
2091		$(DEST_HELP) $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND) \
2092		$(DEST_FTP) $(DEST_AUTO) $(DEST_AUTO)/xml $(DEST_PLUG) \
2093		$(DEST_TUTOR) $(DEST_SPELL) $(DEST_COMP)
2094	-$(SHELL) ./installman.sh install $(DEST_MAN) "" $(INSTALLMANARGS)
2095	@echo generating help tags
2096# Generate the help tags with ":helptags" to handle all languages.
2097	-@cd $(HELPSOURCE); $(MAKE) VIMEXE=$(DEST_BIN)/$(VIMTARGET) vimtags
2098	cd $(HELPSOURCE); \
2099		files=`ls *.txt tags`; \
2100		files="$$files `ls *.??x tags-?? 2>/dev/null || true`"; \
2101		$(INSTALL_DATA) $$files  $(DEST_HELP); \
2102		cd $(DEST_HELP); \
2103		chmod $(HELPMOD) $$files
2104	$(INSTALL_DATA)  $(HELPSOURCE)/*.pl $(DEST_HELP)
2105	chmod $(SCRIPTMOD) $(DEST_HELP)/*.pl
2106# install the menu files
2107	$(INSTALL_DATA) $(SCRIPTSOURCE)/menu.vim $(SYS_MENU_FILE)
2108	chmod $(VIMSCRIPTMOD) $(SYS_MENU_FILE)
2109	$(INSTALL_DATA) $(SCRIPTSOURCE)/synmenu.vim $(SYS_SYNMENU_FILE)
2110	chmod $(VIMSCRIPTMOD) $(SYS_SYNMENU_FILE)
2111	$(INSTALL_DATA) $(SCRIPTSOURCE)/delmenu.vim $(SYS_DELMENU_FILE)
2112	chmod $(VIMSCRIPTMOD) $(SYS_DELMENU_FILE)
2113# install the evim file
2114	$(INSTALL_DATA) $(SCRIPTSOURCE)/mswin.vim $(MSWIN_FILE)
2115	chmod $(VIMSCRIPTMOD) $(MSWIN_FILE)
2116	$(INSTALL_DATA) $(SCRIPTSOURCE)/evim.vim $(EVIM_FILE)
2117	chmod $(VIMSCRIPTMOD) $(EVIM_FILE)
2118# install the bugreport file
2119	$(INSTALL_DATA) $(SCRIPTSOURCE)/bugreport.vim $(SYS_BUGR_FILE)
2120	chmod $(VIMSCRIPTMOD) $(SYS_BUGR_FILE)
2121# install the example vimrc files
2122	$(INSTALL_DATA) $(SCRIPTSOURCE)/vimrc_example.vim $(DEST_SCRIPT)
2123	chmod $(VIMSCRIPTMOD) $(DEST_SCRIPT)/vimrc_example.vim
2124	$(INSTALL_DATA) $(SCRIPTSOURCE)/gvimrc_example.vim $(DEST_SCRIPT)
2125	chmod $(VIMSCRIPTMOD) $(DEST_SCRIPT)/gvimrc_example.vim
2126# install the file type detection files
2127	$(INSTALL_DATA) $(SCRIPTSOURCE)/filetype.vim $(SYS_FILETYPE_FILE)
2128	chmod $(VIMSCRIPTMOD) $(SYS_FILETYPE_FILE)
2129	$(INSTALL_DATA) $(SCRIPTSOURCE)/ftoff.vim $(SYS_FTOFF_FILE)
2130	chmod $(VIMSCRIPTMOD) $(SYS_FTOFF_FILE)
2131	$(INSTALL_DATA) $(SCRIPTSOURCE)/scripts.vim $(SYS_SCRIPTS_FILE)
2132	chmod $(VIMSCRIPTMOD) $(SYS_SCRIPTS_FILE)
2133	$(INSTALL_DATA) $(SCRIPTSOURCE)/ftplugin.vim $(SYS_FTPLUGIN_FILE)
2134	chmod $(VIMSCRIPTMOD) $(SYS_FTPLUGIN_FILE)
2135	$(INSTALL_DATA) $(SCRIPTSOURCE)/ftplugof.vim $(SYS_FTPLUGOF_FILE)
2136	chmod $(VIMSCRIPTMOD) $(SYS_FTPLUGOF_FILE)
2137	$(INSTALL_DATA) $(SCRIPTSOURCE)/indent.vim $(SYS_INDENT_FILE)
2138	chmod $(VIMSCRIPTMOD) $(SYS_INDENT_FILE)
2139	$(INSTALL_DATA) $(SCRIPTSOURCE)/indoff.vim $(SYS_INDOFF_FILE)
2140	chmod $(VIMSCRIPTMOD) $(SYS_INDOFF_FILE)
2141	$(INSTALL_DATA) $(SCRIPTSOURCE)/optwin.vim $(SYS_OPTWIN_FILE)
2142	chmod $(VIMSCRIPTMOD) $(SYS_OPTWIN_FILE)
2143# install the print resource files
2144	cd $(PRINTSOURCE); $(INSTALL_DATA) *.ps $(DEST_PRINT)
2145	cd $(DEST_PRINT); chmod $(FILEMOD) *.ps
2146# install the colorscheme files
2147	cd $(COLSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_COL)
2148	cd $(DEST_COL); chmod $(HELPMOD) *.vim README.txt
2149# install the syntax files
2150	cd $(SYNSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_SYN)
2151	cd $(DEST_SYN); chmod $(HELPMOD) *.vim README.txt
2152# install the indent files
2153	cd $(INDSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_IND)
2154	cd $(DEST_IND); chmod $(HELPMOD) *.vim README.txt
2155# install the standard autoload files
2156	cd $(AUTOSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_AUTO)
2157	cd $(DEST_AUTO); chmod $(HELPMOD) *.vim README.txt
2158	cd $(AUTOSOURCE)/xml; $(INSTALL_DATA) *.vim $(DEST_AUTO)/xml
2159	cd $(DEST_AUTO)/xml; chmod $(HELPMOD) *.vim
2160# install the standard plugin files
2161	cd $(PLUGSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_PLUG)
2162	cd $(DEST_PLUG); chmod $(HELPMOD) *.vim README.txt
2163# install the ftplugin files
2164	cd $(FTPLUGSOURCE); $(INSTALL_DATA) *.vim README.txt logtalk.dict $(DEST_FTP)
2165	cd $(DEST_FTP); chmod $(HELPMOD) *.vim README.txt
2166# install the compiler files
2167	cd $(COMPSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_COMP)
2168	cd $(DEST_COMP); chmod $(HELPMOD) *.vim README.txt
2169
2170installmacros: $(DEST_VIM) $(DEST_RT) $(DEST_MACRO)
2171	$(INSTALL_DATA_R) $(MACROSOURCE)/* $(DEST_MACRO)
2172	chmod $(DIRMOD) `find $(DEST_MACRO) -type d -print`
2173	chmod $(FILEMOD) `find $(DEST_MACRO) -type f -print`
2174	chmod $(SCRIPTMOD) $(DEST_MACRO)/less.sh
2175# When using CVS some CVS directories might have been copied.
2176# Also delete AAPDIR and *.info files.
2177	cvs=`find $(DEST_MACRO) \( -name CVS -o -name AAPDIR -o -name "*.info" \) -print`; \
2178	      if test -n "$$cvs"; then \
2179		 rm -rf $$cvs; \
2180	      fi
2181
2182# install the tutor files
2183installtutorbin: $(DEST_VIM)
2184	$(INSTALL_DATA) vimtutor $(DEST_BIN)/$(VIMNAME)tutor
2185	chmod $(SCRIPTMOD) $(DEST_BIN)/$(VIMNAME)tutor
2186
2187installgtutorbin: $(DEST_VIM)
2188	$(INSTALL_DATA) gvimtutor $(DEST_BIN)/$(GVIMNAME)tutor
2189	chmod $(SCRIPTMOD) $(DEST_BIN)/$(GVIMNAME)tutor
2190
2191installtutor: $(DEST_RT) $(DEST_TUTOR)
2192	-$(INSTALL_DATA) $(TUTORSOURCE)/README* $(TUTORSOURCE)/tutor* $(DEST_TUTOR)
2193	-rm -f $(DEST_TUTOR)/*.info
2194	chmod $(HELPMOD) $(DEST_TUTOR)/*
2195
2196# Install the spell files, if they exist.  This assumes at least the English
2197# spell file is there.
2198installspell: $(DEST_VIM) $(DEST_RT) $(DEST_SPELL)
2199	if test -f $(SPELLSOURCE)/en.latin1.spl; then \
2200	  $(INSTALL_DATA) $(SPELLSOURCE)/*.spl $(SPELLSOURCE)/*.sug $(SPELLSOURCE)/*.vim $(DEST_SPELL); \
2201	  chmod $(HELPMOD) $(DEST_SPELL)/*.spl $(DEST_SPELL)/*.sug $(DEST_SPELL)/*.vim; \
2202	fi
2203
2204# install helper program xxd
2205installtools: $(TOOLS) $(DESTDIR)$(exec_prefix) $(DEST_BIN) \
2206		$(TOOLSSOURCE) $(DEST_VIM) $(DEST_RT) $(DEST_TOOLS) \
2207		$(INSTALL_TOOL_LANGS)
2208	if test -f $(DEST_BIN)/xxd$(EXEEXT); then \
2209	  mv -f $(DEST_BIN)/xxd$(EXEEXT) $(DEST_BIN)/xxd.rm; \
2210	  rm -f $(DEST_BIN)/xxd.rm; \
2211	fi
2212	$(INSTALL_PROG) xxd/xxd$(EXEEXT) $(DEST_BIN)
2213	$(STRIP) $(DEST_BIN)/xxd$(EXEEXT)
2214	chmod $(BINMOD) $(DEST_BIN)/xxd$(EXEEXT)
2215	-$(SHELL) ./installman.sh xxd $(DEST_MAN) "" $(INSTALLMANARGS)
2216
2217# install the runtime tools
2218	$(INSTALL_DATA_R) $(TOOLSSOURCE)/* $(DEST_TOOLS)
2219# When using CVS some CVS directories might have been copied.
2220	cvs=`find $(DEST_TOOLS) \( -name CVS -o -name AAPDIR \) -print`; \
2221	      if test -n "$$cvs"; then \
2222		 rm -rf $$cvs; \
2223	      fi
2224	-chmod $(FILEMOD) $(DEST_TOOLS)/*
2225# replace the path in some tools
2226	perlpath=`./which.sh perl` && sed -e "s+/usr/bin/perl+$$perlpath+" $(TOOLSSOURCE)/efm_perl.pl >$(DEST_TOOLS)/efm_perl.pl
2227	awkpath=`./which.sh nawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \
2228		awkpath=`./which.sh gawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \
2229		awkpath=`./which.sh awk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; fi; fi
2230	-chmod $(SCRIPTMOD) `grep -l "^#!" $(DEST_TOOLS)/*`
2231
2232# install the language specific files for tools, if they were unpacked
2233install-tool-languages:
2234	-$(SHELL) ./installman.sh xxd $(DEST_MAN_FR) "-fr" $(INSTALLMANARGS)
2235	-$(SHELL) ./installman.sh xxd $(DEST_MAN_FR_I) "-fr" $(INSTALLMANARGS)
2236	-$(SHELL) ./installman.sh xxd $(DEST_MAN_FR_U) "-fr.UTF-8" $(INSTALLMANARGS)
2237	-$(SHELL) ./installman.sh xxd $(DEST_MAN_IT) "-it" $(INSTALLMANARGS)
2238	-$(SHELL) ./installman.sh xxd $(DEST_MAN_IT_I) "-it" $(INSTALLMANARGS)
2239	-$(SHELL) ./installman.sh xxd $(DEST_MAN_IT_U) "-it.UTF-8" $(INSTALLMANARGS)
2240	-$(SHELL) ./installman.sh xxd $(DEST_MAN_JA_U) "-ja.UTF-8" $(INSTALLMANARGS)
2241	-$(SHELL) ./installman.sh xxd $(DEST_MAN_PL) "-pl" $(INSTALLMANARGS)
2242	-$(SHELL) ./installman.sh xxd $(DEST_MAN_PL_I) "-pl" $(INSTALLMANARGS)
2243	-$(SHELL) ./installman.sh xxd $(DEST_MAN_PL_U) "-pl.UTF-8" $(INSTALLMANARGS)
2244	-$(SHELL) ./installman.sh xxd $(DEST_MAN_RU) "-ru" $(INSTALLMANARGS)
2245	-$(SHELL) ./installman.sh xxd $(DEST_MAN_RU_U) "-ru.UTF-8" $(INSTALLMANARGS)
2246
2247# install the language specific files, if they were unpacked
2248install-languages: languages $(DEST_LANG) $(DEST_KMAP)
2249	-$(SHELL) ./installman.sh install $(DEST_MAN_FR) "-fr" $(INSTALLMANARGS)
2250	-$(SHELL) ./installman.sh install $(DEST_MAN_FR_I) "-fr" $(INSTALLMANARGS)
2251	-$(SHELL) ./installman.sh install $(DEST_MAN_FR_U) "-fr.UTF-8" $(INSTALLMANARGS)
2252	-$(SHELL) ./installman.sh install $(DEST_MAN_IT) "-it" $(INSTALLMANARGS)
2253	-$(SHELL) ./installman.sh install $(DEST_MAN_IT_I) "-it" $(INSTALLMANARGS)
2254	-$(SHELL) ./installman.sh install $(DEST_MAN_IT_U) "-it.UTF-8" $(INSTALLMANARGS)
2255	-$(SHELL) ./installman.sh install $(DEST_MAN_JA_U) "-ja.UTF-8" $(INSTALLMANARGS)
2256	-$(SHELL) ./installman.sh install $(DEST_MAN_PL) "-pl" $(INSTALLMANARGS)
2257	-$(SHELL) ./installman.sh install $(DEST_MAN_PL_I) "-pl" $(INSTALLMANARGS)
2258	-$(SHELL) ./installman.sh install $(DEST_MAN_PL_U) "-pl.UTF-8" $(INSTALLMANARGS)
2259	-$(SHELL) ./installman.sh install $(DEST_MAN_RU) "-ru" $(INSTALLMANARGS)
2260	-$(SHELL) ./installman.sh install $(DEST_MAN_RU_U) "-ru.UTF-8" $(INSTALLMANARGS)
2261	-$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
2262		$(DEST_MAN_FR) $(INSTALLMLARGS)
2263	-$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
2264		$(DEST_MAN_FR_I) $(INSTALLMLARGS)
2265	-$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
2266		$(DEST_MAN_FR_U) $(INSTALLMLARGS)
2267	-$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
2268		$(DEST_MAN_IT) $(INSTALLMLARGS)
2269	-$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
2270		$(DEST_MAN_IT_I) $(INSTALLMLARGS)
2271	-$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
2272		$(DEST_MAN_IT_U) $(INSTALLMLARGS)
2273	-$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
2274		$(DEST_MAN_JA_U) $(INSTALLMLARGS)
2275	-$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
2276		$(DEST_MAN_PL) $(INSTALLMLARGS)
2277	-$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
2278		$(DEST_MAN_PL_I) $(INSTALLMLARGS)
2279	-$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
2280		$(DEST_MAN_PL_U) $(INSTALLMLARGS)
2281	-$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
2282		$(DEST_MAN_RU) $(INSTALLMLARGS)
2283	-$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
2284		$(DEST_MAN_RU_U) $(INSTALLMLARGS)
2285	if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
2286	   cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) LOCALEDIR=$(DEST_LANG) \
2287	   INSTALL_DATA=$(INSTALL_DATA) FILEMOD=$(FILEMOD) install; \
2288	fi
2289	if test -d $(LANGSOURCE); then \
2290	   $(INSTALL_DATA) $(LANGSOURCE)/README.txt $(LANGSOURCE)/*.vim $(DEST_LANG); \
2291	   chmod $(FILEMOD) $(DEST_LANG)/README.txt $(DEST_LANG)/*.vim; \
2292	fi
2293	if test -d $(KMAPSOURCE); then \
2294	   $(INSTALL_DATA) $(KMAPSOURCE)/README.txt $(KMAPSOURCE)/*.vim $(DEST_KMAP); \
2295	   chmod $(FILEMOD) $(DEST_KMAP)/README.txt $(DEST_KMAP)/*.vim; \
2296	fi
2297
2298# install the icons for KDE, if the directory exists and the icon doesn't.
2299ICON48PATH = $(DESTDIR)$(DATADIR)/icons/hicolor/48x48/apps
2300ICON32PATH = $(DESTDIR)$(DATADIR)/icons/locolor/32x32/apps
2301ICON16PATH = $(DESTDIR)$(DATADIR)/icons/locolor/16x16/apps
2302DESKTOPPATH = $(DESTDIR)$(DATADIR)/applications
2303KDEPATH = $(HOME)/.kde/share/icons
2304install-icons:
2305	if test -d $(ICON48PATH) -a -w $(ICON48PATH) \
2306		-a ! -f $(ICON48PATH)/gvim.png; then \
2307	   $(INSTALL_DATA) $(SCRIPTSOURCE)/vim48x48.png $(ICON48PATH)/gvim.png; \
2308	fi
2309	if test -d $(ICON32PATH) -a -w $(ICON32PATH) \
2310		-a ! -f $(ICON32PATH)/gvim.png; then \
2311	   $(INSTALL_DATA) $(SCRIPTSOURCE)/vim32x32.png $(ICON32PATH)/gvim.png; \
2312	fi
2313	if test -d $(ICON16PATH) -a -w $(ICON16PATH) \
2314		-a ! -f $(ICON16PATH)/gvim.png; then \
2315	   $(INSTALL_DATA) $(SCRIPTSOURCE)/vim16x16.png $(ICON16PATH)/gvim.png; \
2316	fi
2317	if test -d $(DESKTOPPATH) -a -w $(DESKTOPPATH); then \
2318	   $(INSTALL_DATA) $(SCRIPTSOURCE)/vim.desktop \
2319		$(SCRIPTSOURCE)/gvim.desktop \
2320		$(DESKTOPPATH); \
2321	fi
2322
2323$(HELPSOURCE)/vim.1 $(MACROSOURCE) $(TOOLSSOURCE):
2324	@echo Runtime files not found.
2325	@echo You need to unpack the runtime archive before running "make install".
2326	test -f error
2327
2328$(DESTDIR)$(exec_prefix) $(DEST_BIN) \
2329		$(DEST_VIM) $(DEST_RT) $(DEST_HELP) \
2330		$(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND) $(DEST_FTP) \
2331		$(DEST_LANG) $(DEST_KMAP) $(DEST_COMP) \
2332		$(DEST_MACRO) $(DEST_TOOLS) $(DEST_TUTOR) $(DEST_SPELL) \
2333		$(DEST_AUTO) $(DEST_AUTO)/xml $(DEST_PLUG):
2334	-$(SHELL) ./mkinstalldirs $@
2335	-chmod $(DIRMOD) $@
2336
2337# create links from various names to vim.  This is only done when the links
2338# (or executables with the same name) don't exist yet.
2339installlinks: $(GUI_TARGETS) \
2340			$(DEST_BIN)/$(EXTARGET) \
2341			$(DEST_BIN)/$(VIEWTARGET) \
2342			$(DEST_BIN)/$(RVIMTARGET) \
2343			$(DEST_BIN)/$(RVIEWTARGET) \
2344			$(INSTALLVIMDIFF)
2345
2346installglinks: $(DEST_BIN)/$(GVIMTARGET) \
2347			$(DEST_BIN)/$(GVIEWTARGET) \
2348			$(DEST_BIN)/$(RGVIMTARGET) \
2349			$(DEST_BIN)/$(RGVIEWTARGET) \
2350			$(DEST_BIN)/$(EVIMTARGET) \
2351			$(DEST_BIN)/$(EVIEWTARGET) \
2352			$(INSTALLGVIMDIFF)
2353
2354installvimdiff: $(DEST_BIN)/$(VIMDIFFTARGET)
2355installgvimdiff: $(DEST_BIN)/$(GVIMDIFFTARGET)
2356
2357$(DEST_BIN)/$(EXTARGET):
2358	cd $(DEST_BIN); ln -s $(VIMTARGET) $(EXTARGET)
2359
2360$(DEST_BIN)/$(VIEWTARGET):
2361	cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIEWTARGET)
2362
2363$(DEST_BIN)/$(GVIMTARGET):
2364	cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMTARGET)
2365
2366$(DEST_BIN)/$(GVIEWTARGET):
2367	cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIEWTARGET)
2368
2369$(DEST_BIN)/$(RVIMTARGET):
2370	cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIMTARGET)
2371
2372$(DEST_BIN)/$(RVIEWTARGET):
2373	cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIEWTARGET)
2374
2375$(DEST_BIN)/$(RGVIMTARGET):
2376	cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIMTARGET)
2377
2378$(DEST_BIN)/$(RGVIEWTARGET):
2379	cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIEWTARGET)
2380
2381$(DEST_BIN)/$(VIMDIFFTARGET):
2382	cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIMDIFFTARGET)
2383
2384$(DEST_BIN)/$(GVIMDIFFTARGET):
2385	cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMDIFFTARGET)
2386
2387$(DEST_BIN)/$(EVIMTARGET):
2388	cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIMTARGET)
2389
2390$(DEST_BIN)/$(EVIEWTARGET):
2391	cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIEWTARGET)
2392
2393# Create links for the manual pages with various names to vim.	This is only
2394# done when the links (or manpages with the same name) don't exist yet.
2395
2396INSTALLMLARGS = $(VIMNAME) $(VIMDIFFNAME) $(EVIMNAME) \
2397		$(EXNAME) $(VIEWNAME) $(RVIMNAME) $(RVIEWNAME) \
2398		$(GVIMNAME) $(GVIEWNAME) $(RGVIMNAME) $(RGVIEWNAME) \
2399		$(GVIMDIFFNAME) $(EVIEWNAME)
2400
2401installmanlinks:
2402	-$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
2403		$(DEST_MAN) $(INSTALLMLARGS)
2404
2405uninstall: uninstall_runtime
2406	-rm -f $(DEST_BIN)/$(VIMTARGET)
2407	-rm -f $(DEST_BIN)/vimtutor
2408	-rm -f $(DEST_BIN)/gvimtutor
2409	-rm -f $(DEST_BIN)/$(EXTARGET) $(DEST_BIN)/$(VIEWTARGET)
2410	-rm -f $(DEST_BIN)/$(GVIMTARGET) $(DEST_BIN)/$(GVIEWTARGET)
2411	-rm -f $(DEST_BIN)/$(RVIMTARGET) $(DEST_BIN)/$(RVIEWTARGET)
2412	-rm -f $(DEST_BIN)/$(RGVIMTARGET) $(DEST_BIN)/$(RGVIEWTARGET)
2413	-rm -f $(DEST_BIN)/$(VIMDIFFTARGET) $(DEST_BIN)/$(GVIMDIFFTARGET)
2414	-rm -f $(DEST_BIN)/$(EVIMTARGET) $(DEST_BIN)/$(EVIEWTARGET)
2415	-rm -f $(DEST_BIN)/xxd$(EXEEXT)
2416
2417# Note: the "rmdir" will fail if any files were added after "make install"
2418uninstall_runtime:
2419	-$(SHELL) ./installman.sh uninstall $(DEST_MAN) "" $(INSTALLMANARGS)
2420	-$(SHELL) ./installman.sh uninstall $(DEST_MAN_FR) "" $(INSTALLMANARGS)
2421	-$(SHELL) ./installman.sh uninstall $(DEST_MAN_FR_I) "" $(INSTALLMANARGS)
2422	-$(SHELL) ./installman.sh uninstall $(DEST_MAN_FR_U) "" $(INSTALLMANARGS)
2423	-$(SHELL) ./installman.sh uninstall $(DEST_MAN_IT) "" $(INSTALLMANARGS)
2424	-$(SHELL) ./installman.sh uninstall $(DEST_MAN_IT_I) "" $(INSTALLMANARGS)
2425	-$(SHELL) ./installman.sh uninstall $(DEST_MAN_IT_U) "" $(INSTALLMANARGS)
2426	-$(SHELL) ./installman.sh uninstall $(DEST_MAN_JA_U) "" $(INSTALLMANARGS)
2427	-$(SHELL) ./installman.sh uninstall $(DEST_MAN_PL) "" $(INSTALLMANARGS)
2428	-$(SHELL) ./installman.sh uninstall $(DEST_MAN_PL_I) "" $(INSTALLMANARGS)
2429	-$(SHELL) ./installman.sh uninstall $(DEST_MAN_PL_U) "" $(INSTALLMANARGS)
2430	-$(SHELL) ./installman.sh uninstall $(DEST_MAN_RU) "" $(INSTALLMANARGS)
2431	-$(SHELL) ./installman.sh uninstall $(DEST_MAN_RU_U) "" $(INSTALLMANARGS)
2432	-$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2433		$(DEST_MAN) $(INSTALLMLARGS)
2434	-$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2435		$(DEST_MAN_FR) $(INSTALLMLARGS)
2436	-$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2437		$(DEST_MAN_FR_I) $(INSTALLMLARGS)
2438	-$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2439		$(DEST_MAN_FR_U) $(INSTALLMLARGS)
2440	-$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2441		$(DEST_MAN_IT) $(INSTALLMLARGS)
2442	-$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2443		$(DEST_MAN_IT_I) $(INSTALLMLARGS)
2444	-$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2445		$(DEST_MAN_IT_U) $(INSTALLMLARGS)
2446	-$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2447		$(DEST_MAN_JA_U) $(INSTALLMLARGS)
2448	-$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2449		$(DEST_MAN_PL) $(INSTALLMLARGS)
2450	-$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2451		$(DEST_MAN_PL_I) $(INSTALLMLARGS)
2452	-$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2453		$(DEST_MAN_PL_U) $(INSTALLMLARGS)
2454	-$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2455		$(DEST_MAN_RU) $(INSTALLMLARGS)
2456	-$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2457		$(DEST_MAN_RU_U) $(INSTALLMLARGS)
2458	-rm -f $(DEST_MAN)/xxd.1
2459	-rm -f $(DEST_MAN_FR)/xxd.1 $(DEST_MAN_FR_I)/xxd.1 $(DEST_MAN_FR_U)/xxd.1
2460	-rm -f $(DEST_MAN_IT)/xxd.1 $(DEST_MAN_IT_I)/xxd.1 $(DEST_MAN_IT_U)/xxd.1
2461	-rm -f $(DEST_MAN_JA_U)/xxd.1
2462	-rm -f $(DEST_MAN_PL)/xxd.1 $(DEST_MAN_PL_I)/xxd.1 $(DEST_MAN_PL_U)/xxd.1
2463	-rm -f $(DEST_MAN_RU)/xxd.1 $(DEST_MAN_RU_U)/xxd.1
2464	-rm -f $(DEST_HELP)/*.txt $(DEST_HELP)/tags $(DEST_HELP)/*.pl
2465	-rm -f $(DEST_HELP)/*.??x $(DEST_HELP)/tags-??
2466	-rm -f $(SYS_MENU_FILE) $(SYS_SYNMENU_FILE) $(SYS_DELMENU_FILE)
2467	-rm -f $(SYS_BUGR_FILE) $(EVIM_FILE) $(MSWIN_FILE)
2468	-rm -f $(DEST_SCRIPT)/gvimrc_example.vim $(DEST_SCRIPT)/vimrc_example.vim
2469	-rm -f $(SYS_FILETYPE_FILE) $(SYS_FTOFF_FILE) $(SYS_SCRIPTS_FILE)
2470	-rm -f $(SYS_INDOFF_FILE) $(SYS_INDENT_FILE)
2471	-rm -f $(SYS_FTPLUGOF_FILE) $(SYS_FTPLUGIN_FILE)
2472	-rm -f $(SYS_OPTWIN_FILE)
2473	-rm -f $(DEST_COL)/*.vim $(DEST_COL)/README.txt
2474	-rm -f $(DEST_SYN)/*.vim $(DEST_SYN)/README.txt
2475	-rm -f $(DEST_IND)/*.vim $(DEST_IND)/README.txt
2476	-rm -rf $(DEST_MACRO)
2477	-rm -rf $(DEST_TUTOR)
2478	-rm -rf $(DEST_SPELL)
2479	-rm -rf $(DEST_TOOLS)
2480	-rm -rf $(DEST_LANG)
2481	-rm -rf $(DEST_KMAP)
2482	-rm -rf $(DEST_COMP)
2483	-rm -f $(DEST_PRINT)/*.ps
2484	-rmdir $(DEST_HELP) $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND)
2485	-rm -rf $(DEST_FTP)/*.vim $(DEST_FTP)/README.txt $(DEST_FTP)/logtalk.dict
2486	-rm -f $(DEST_AUTO)/*.vim $(DEST_AUTO)/README.txt $(DEST_AUTO)/xml/*.vim
2487	-rm -f $(DEST_PLUG)/*.vim $(DEST_PLUG)/README.txt
2488	-rmdir $(DEST_FTP) $(DEST_AUTO)/xml $(DEST_AUTO) $(DEST_PLUG) $(DEST_RT)
2489#	This will fail when other Vim versions are installed, no worries.
2490	-rmdir $(DEST_VIM)
2491
2492# Clean up all the files that have been produced, except configure's.
2493# We support common typing mistakes for Juergen! :-)
2494clean celan: testclean
2495	-rm -f *.o objects/* core $(VIMTARGET).core $(VIMTARGET) vim xxd/*.o
2496	-rm -f $(TOOLS) auto/osdef.h auto/pathdef.c auto/if_perl.c auto/gui_gtk_gresources.c auto/gui_gtk_gresources.h
2497	-rm -f conftest* *~ auto/link.sed
2498	-rm -f $(UNITTEST_TARGETS)
2499	-rm -f runtime pixmaps
2500	-rm -rf $(APPDIR)
2501	-rm -rf mzscheme_base.c
2502	if test -d $(PODIR); then \
2503		cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) clean; \
2504	fi
2505
2506# Make a shadow directory for compilation on another system or with different
2507# features.
2508SHADOWDIR = shadow
2509
2510shadow:	runtime pixmaps
2511	mkdir $(SHADOWDIR)
2512	cd $(SHADOWDIR); ln -s ../*.[ch] ../*.in ../*.sh ../*.xs ../*.xbm ../gui_gtk_res.xml ../toolcheck ../proto ../vimtutor ../gvimtutor ../mkinstalldirs .
2513	mkdir $(SHADOWDIR)/auto
2514	cd $(SHADOWDIR)/auto; ln -s ../../auto/configure .
2515	mkdir $(SHADOWDIR)/po
2516	cd $(SHADOWDIR)/po; ln -s ../../po/*.po ../../po/*.mak ../../po/*.vim ../../po/Makefile .
2517	cd $(SHADOWDIR); rm -f auto/link.sed
2518	cp Makefile configure $(SHADOWDIR)
2519	rm -f $(SHADOWDIR)/auto/config.mk $(SHADOWDIR)/config.mk.dist
2520	cp config.mk.dist $(SHADOWDIR)/auto/config.mk
2521	cp config.mk.dist $(SHADOWDIR)
2522	mkdir $(SHADOWDIR)/xxd
2523	cd $(SHADOWDIR)/xxd; ln -s ../../xxd/*.[ch] ../../xxd/Make* .
2524	if test -d $(RSRC_DIR); then \
2525		cd $(SHADOWDIR); \
2526		ln -s ../infplist.xml .; \
2527		ln -s ../$(RSRC_DIR) ../os_mac.rsr.hqx ../dehqx.py .; \
2528	fi
2529	mkdir $(SHADOWDIR)/testdir
2530	cd $(SHADOWDIR)/testdir; ln -s ../../testdir/Makefile \
2531				 ../../testdir/Make_all.mak \
2532				 ../../testdir/*.in \
2533				 ../../testdir/*.vim \
2534				 ../../testdir/python* \
2535				 ../../testdir/sautest \
2536				 ../../testdir/test83-tags? \
2537				 ../../testdir/*.ok .
2538
2539# Link needed for doing "make install" in a shadow directory.
2540runtime:
2541	-ln -s ../runtime .
2542
2543# Link needed for doing "make" using GTK in a shadow directory.
2544pixmaps:
2545	-ln -s ../pixmaps .
2546
2547# Update the synmenu.vim file with the latest Syntax menu.
2548# This is only needed when runtime/makemenu.vim was changed.
2549menu: ./vim ../runtime/makemenu.vim
2550	./vim -u ../runtime/makemenu.vim
2551
2552# Start configure from scratch
2553scrub scratch:
2554	-rm -f auto/config.status auto/config.cache config.log auto/config.log
2555	-rm -f auto/config.h auto/link.log auto/link.sed auto/config.mk
2556	touch auto/config.h
2557	cp config.mk.dist auto/config.mk
2558
2559distclean: clean scratch
2560	-rm -f tags
2561
2562dist: distclean
2563	@echo
2564	@echo Making the distribution has to be done in the top directory
2565
2566mdepend:
2567	-@rm -f Makefile~
2568	cp Makefile Makefile~
2569	sed -e '/\#\#\# Dependencies/q' < Makefile > tmp_make
2570	@for i in $(ALL_SRC) ; do \
2571	  echo "$$i" ; \
2572	  echo `echo "$$i" | sed -e 's/[^ ]*\.c$$/objects\/\1.o/'`": $$i" `\
2573	    $(CPP) $$i |\
2574	    grep '^# .*"\./.*\.h"' |\
2575	    sort -t'"' -u +1 -2 |\
2576	    sed -e 's/.*"\.\/\(.*\)".*/\1/'\
2577	    ` >> tmp_make ; \
2578	done
2579	mv tmp_make Makefile
2580
2581depend:
2582	-@rm -f Makefile~
2583	cp Makefile Makefile~
2584	sed -e '/\#\#\# Dependencies/q' < Makefile > tmp_make
2585	-for i in $(ALL_SRC); do echo $$i; \
2586		$(CPP_DEPEND) $$i | \
2587		sed -e 's+^\([^ ]*\.o\)+objects/\1+' >> tmp_make; done
2588	mv tmp_make Makefile
2589
2590# Run lint.  Clean up the *.ln files that are sometimes left behind.
2591lint:
2592	$(LINT) $(LINT_OPTIONS) $(LINT_CFLAGS) $(LINT_EXTRA) $(LINT_SRC)
2593	-rm -f *.ln
2594
2595# Check dosinst.c with lint.
2596lintinstall:
2597	$(LINT) $(LINT_OPTIONS) -DWIN32 -DUNIX_LINT dosinst.c
2598	-rm -f dosinst.ln
2599
2600###########################################################################
2601
2602.c.o:
2603	$(CCC) $<
2604
2605auto/if_perl.c: if_perl.xs
2606	$(PERL) -e 'unless ( $$] >= 5.005 ) { for (qw(na defgv errgv)) { print "#define PL_$$_ $$_\n" }}' > $@
2607	$(PERL) $(PERL_XSUBPP) -prototypes -typemap \
2608	    $(PERLLIB)/ExtUtils/typemap if_perl.xs >> $@
2609
2610auto/osdef.h: auto/config.h osdef.sh osdef1.h.in osdef2.h.in
2611	CC="$(CC) $(OSDEF_CFLAGS)" srcdir=$(srcdir) sh $(srcdir)/osdef.sh
2612
2613auto/pathdef.c: Makefile auto/config.mk
2614	-@echo creating $@
2615	-@echo '/* pathdef.c */' > $@
2616	-@echo '/* This file is automatically created by Makefile' >> $@
2617	-@echo ' * DO NOT EDIT!  Change Makefile only. */' >> $@
2618	-@echo '#include "vim.h"' >> $@
2619	-@echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' | $(QUOTESED) >> $@
2620	-@echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' | $(QUOTESED) >> $@
2621	-@echo 'char_u *all_cflags = (char_u *)"$(CC) -c -I$(srcdir) $(ALL_CFLAGS)";' | $(QUOTESED) >>  $@
2622	-@echo 'char_u *all_lflags = (char_u *)"$(CC) $(ALL_LIB_DIRS) $(LDFLAGS) -o $(VIMTARGET) $(ALL_LIBS) ";' | $(QUOTESED) >>  $@
2623	-@echo 'char_u *compiled_user = (char_u *)"' | tr -d $(NL) >> $@
2624	-@if test -n "$(COMPILEDBY)"; then \
2625		echo "$(COMPILEDBY)" | tr -d $(NL) >> $@; \
2626		else ((logname) 2>/dev/null || whoami) | tr -d $(NL) >> $@; fi
2627	-@echo '";' >> $@
2628	-@echo 'char_u *compiled_sys = (char_u *)"' | tr -d $(NL) >> $@
2629	-@if test -z "$(COMPILEDBY)"; then hostname | tr -d $(NL) >> $@; fi
2630	-@echo '";' >> $@
2631	-@sh $(srcdir)/pathdef.sh
2632
2633GUI_GTK_RES_INPUTS = \
2634	../pixmaps/stock_vim_build_tags.png \
2635	../pixmaps/stock_vim_find_help.png \
2636	../pixmaps/stock_vim_save_all.png \
2637	../pixmaps/stock_vim_session_load.png \
2638	../pixmaps/stock_vim_session_new.png \
2639	../pixmaps/stock_vim_session_save.png \
2640	../pixmaps/stock_vim_shell.png \
2641	../pixmaps/stock_vim_window_maximize.png \
2642	../pixmaps/stock_vim_window_maximize_width.png \
2643	../pixmaps/stock_vim_window_minimize.png \
2644	../pixmaps/stock_vim_window_minimize_width.png \
2645	../pixmaps/stock_vim_window_split.png \
2646	../pixmaps/stock_vim_window_split_vertical.png
2647
2648auto/gui_gtk_gresources.c: gui_gtk_res.xml $(GUI_GTK_RES_INPUTS)
2649	$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=../pixmaps --generate --c-name=gui_gtk --manual-register gui_gtk_res.xml
2650auto/gui_gtk_gresources.h: gui_gtk_res.xml $(GUI_GTK_RES_INPUTS)
2651	if test -z "$(GLIB_COMPILE_RESOURCES)"; then touch $@; else \
2652		$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=../pixmaps --generate --c-name=gui_gtk --manual-register gui_gtk_res.xml; \
2653	fi
2654
2655# All the object files are put in the "objects" directory.  Since not all make
2656# commands understand putting object files in another directory, it must be
2657# specified for each file separately.
2658
2659objects:
2660	mkdir objects
2661
2662objects/blowfish.o: blowfish.c
2663	$(CCC) -o $@ blowfish.c
2664
2665objects/buffer.o: buffer.c
2666	$(CCC) -o $@ buffer.c
2667
2668objects/charset.o: charset.c
2669	$(CCC) -o $@ charset.c
2670
2671objects/crypt.o: crypt.c
2672	$(CCC) -o $@ crypt.c
2673
2674objects/crypt_zip.o: crypt_zip.c
2675	$(CCC) -o $@ crypt_zip.c
2676
2677objects/diff.o: diff.c
2678	$(CCC) -o $@ diff.c
2679
2680objects/digraph.o: digraph.c
2681	$(CCC) -o $@ digraph.c
2682
2683objects/edit.o: edit.c
2684	$(CCC) -o $@ edit.c
2685
2686objects/eval.o: eval.c
2687	$(CCC) -o $@ eval.c
2688
2689objects/ex_cmds.o: ex_cmds.c
2690	$(CCC) -o $@ ex_cmds.c
2691
2692objects/ex_cmds2.o: ex_cmds2.c
2693	$(CCC) -o $@ ex_cmds2.c
2694
2695objects/ex_docmd.o: ex_docmd.c
2696	$(CCC) -o $@ ex_docmd.c
2697
2698objects/ex_eval.o: ex_eval.c
2699	$(CCC) -o $@ ex_eval.c
2700
2701objects/ex_getln.o: ex_getln.c
2702	$(CCC) -o $@ ex_getln.c
2703
2704objects/fileio.o: fileio.c
2705	$(CCC) -o $@ fileio.c
2706
2707objects/fold.o: fold.c
2708	$(CCC) -o $@ fold.c
2709
2710objects/getchar.o: getchar.c
2711	$(CCC) -o $@ getchar.c
2712
2713objects/hardcopy.o: hardcopy.c
2714	$(CCC) -o $@ hardcopy.c
2715
2716objects/hashtab.o: hashtab.c
2717	$(CCC) -o $@ hashtab.c
2718
2719objects/gui.o: gui.c
2720	$(CCC) -o $@ gui.c
2721
2722objects/gui_at_fs.o: gui_at_fs.c
2723	$(CCC) -o $@ gui_at_fs.c
2724
2725objects/gui_at_sb.o: gui_at_sb.c
2726	$(CCC) -o $@ gui_at_sb.c
2727
2728objects/gui_athena.o: gui_athena.c
2729	$(CCC) -o $@ gui_athena.c
2730
2731objects/gui_beval.o: gui_beval.c
2732	$(CCC) -o $@ gui_beval.c
2733
2734objects/gui_gtk.o: gui_gtk.c
2735	$(CCC) -o $@ gui_gtk.c
2736
2737objects/gui_gtk_f.o: gui_gtk_f.c
2738	$(CCC) -o $@ gui_gtk_f.c
2739
2740objects/gui_gtk_gresources.o: auto/gui_gtk_gresources.c
2741	$(CCC) $(PERL_CFLAGS) -o $@ auto/gui_gtk_gresources.c
2742
2743objects/gui_gtk_x11.o: gui_gtk_x11.c
2744	$(CCC) -o $@ gui_gtk_x11.c
2745
2746objects/gui_motif.o: gui_motif.c
2747	$(CCC) -o $@ gui_motif.c
2748
2749objects/gui_xmdlg.o: gui_xmdlg.c
2750	$(CCC) -o $@ gui_xmdlg.c
2751
2752objects/gui_xmebw.o: gui_xmebw.c
2753	$(CCC) -o $@ gui_xmebw.c
2754
2755objects/gui_x11.o: gui_x11.c
2756	$(CCC) -o $@ gui_x11.c
2757
2758objects/gui_photon.o: gui_photon.c
2759	$(CCC) -o $@ gui_photon.c
2760
2761objects/gui_mac.o: gui_mac.c
2762	$(CCC) -o $@ gui_mac.c
2763
2764objects/hangulin.o: hangulin.c
2765	$(CCC) -o $@ hangulin.c
2766
2767objects/if_cscope.o: if_cscope.c
2768	$(CCC) -o $@ if_cscope.c
2769
2770objects/if_xcmdsrv.o: if_xcmdsrv.c
2771	$(CCC) -o $@ if_xcmdsrv.c
2772
2773objects/if_lua.o: if_lua.c
2774	$(CCC) $(LUA_CFLAGS) -o $@ if_lua.c
2775
2776objects/if_mzsch.o: if_mzsch.c $(MZSCHEME_EXTRA)
2777	$(CCC) -o $@ $(MZSCHEME_CFLAGS_EXTRA) if_mzsch.c
2778
2779mzscheme_base.c:
2780	$(MZSCHEME_MZC) --c-mods mzscheme_base.c ++lib scheme/base
2781
2782objects/if_perl.o: auto/if_perl.c
2783	$(CCC) $(PERL_CFLAGS) -o $@ auto/if_perl.c
2784
2785objects/if_perlsfio.o: if_perlsfio.c
2786	$(CCC) $(PERL_CFLAGS) -o $@ if_perlsfio.c
2787
2788objects/py_getpath.o: $(PYTHON_CONFDIR)/getpath.c
2789	$(CCC) $(PYTHON_CFLAGS) -o $@ $(PYTHON_CONFDIR)/getpath.c \
2790		-I$(PYTHON_CONFDIR) -DHAVE_CONFIG_H -DNO_MAIN \
2791		$(PYTHON_GETPATH_CFLAGS)
2792
2793objects/if_python.o: if_python.c if_py_both.h
2794	$(CCC) $(PYTHON_CFLAGS) $(PYTHON_CFLAGS_EXTRA) -o $@ if_python.c
2795
2796objects/if_python3.o: if_python3.c if_py_both.h
2797	$(CCC) $(PYTHON3_CFLAGS) $(PYTHON3_CFLAGS_EXTRA) -o $@ if_python3.c
2798
2799objects/if_ruby.o: if_ruby.c
2800	$(CCC) $(RUBY_CFLAGS) -o $@ if_ruby.c
2801
2802objects/if_sniff.o: if_sniff.c
2803	$(CCC) -o $@ if_sniff.c
2804
2805objects/if_tcl.o: if_tcl.c
2806	$(CCC) $(TCL_CFLAGS) -o $@ if_tcl.c
2807
2808objects/integration.o: integration.c
2809	$(CCC) -o $@ integration.c
2810
2811objects/json.o: json.c
2812	$(CCC) -o $@ json.c
2813
2814objects/main.o: main.c
2815	$(CCC) -o $@ main.c
2816
2817objects/mark.o: mark.c
2818	$(CCC) -o $@ mark.c
2819
2820objects/memfile.o: memfile.c
2821	$(CCC) -o $@ memfile.c
2822
2823objects/memfile_test.o: memfile_test.c
2824	$(CCC) -o $@ memfile_test.c
2825
2826objects/memline.o: memline.c
2827	$(CCC) -o $@ memline.c
2828
2829objects/menu.o: menu.c
2830	$(CCC) -o $@ menu.c
2831
2832objects/message.o: message.c
2833	$(CCC) -o $@ message.c
2834
2835objects/misc1.o: misc1.c
2836	$(CCC) -o $@ misc1.c
2837
2838objects/misc2.o: misc2.c
2839	$(CCC) -o $@ misc2.c
2840
2841objects/move.o: move.c
2842	$(CCC) -o $@ move.c
2843
2844objects/mbyte.o: mbyte.c
2845	$(CCC) -o $@ mbyte.c
2846
2847objects/normal.o: normal.c
2848	$(CCC) -o $@ normal.c
2849
2850objects/ops.o: ops.c
2851	$(CCC) -o $@ ops.c
2852
2853objects/option.o: option.c
2854	$(CCC) $(LUA_CFLAGS) $(PERL_CFLAGS) $(PYTHON_CFLAGS) $(PYTHON3_CFLAGS) $(RUBY_CFLAGS) $(TCL_CFLAGS) -o $@ option.c
2855
2856objects/os_beos.o: os_beos.c
2857	$(CCC) -o $@ os_beos.c
2858
2859objects/os_qnx.o: os_qnx.c
2860	$(CCC) -o $@ os_qnx.c
2861
2862objects/os_macosx.o: os_macosx.m
2863	$(CCC) -o $@ os_macosx.m
2864
2865objects/os_mac_conv.o: os_mac_conv.c
2866	$(CCC) -o $@ os_mac_conv.c
2867
2868objects/os_unix.o: os_unix.c
2869	$(CCC) -o $@ os_unix.c
2870
2871objects/os_mswin.o: os_mswin.c
2872	$(CCC) -o $@ os_mswin.c
2873
2874objects/winclip.o: winclip.c
2875	$(CCC) -o $@ winclip.c
2876
2877objects/pathdef.o: auto/pathdef.c
2878	$(CCC) -o $@ auto/pathdef.c
2879
2880objects/pty.o: pty.c
2881	$(CCC) -o $@ pty.c
2882
2883objects/popupmnu.o: popupmnu.c
2884	$(CCC) -o $@ popupmnu.c
2885
2886objects/quickfix.o: quickfix.c
2887	$(CCC) -o $@ quickfix.c
2888
2889objects/regexp.o: regexp.c regexp_nfa.c
2890	$(CCC) -o $@ regexp.c
2891
2892objects/screen.o: screen.c
2893	$(CCC) -o $@ screen.c
2894
2895objects/search.o: search.c
2896	$(CCC) -o $@ search.c
2897
2898objects/sha256.o: sha256.c
2899	$(CCC) -o $@ sha256.c
2900
2901objects/spell.o: spell.c
2902	$(CCC) -o $@ spell.c
2903
2904objects/syntax.o: syntax.c
2905	$(CCC) -o $@ syntax.c
2906
2907objects/tag.o: tag.c
2908	$(CCC) -o $@ tag.c
2909
2910objects/term.o: term.c
2911	$(CCC) -o $@ term.c
2912
2913objects/ui.o: ui.c
2914	$(CCC) -o $@ ui.c
2915
2916objects/undo.o: undo.c
2917	$(CCC) -o $@ undo.c
2918
2919objects/window.o: window.c
2920	$(CCC) -o $@ window.c
2921
2922objects/workshop.o: workshop.c
2923	$(CCC) -o $@ workshop.c
2924
2925objects/wsdebug.o: wsdebug.c
2926	$(CCC) -o $@ wsdebug.c
2927
2928objects/netbeans.o: netbeans.c
2929	$(CCC) -o $@ netbeans.c
2930
2931objects/channel.o: channel.c
2932	$(CCC) -o $@ channel.c
2933
2934Makefile:
2935	@echo The name of the makefile MUST be "Makefile" (with capital M)!!!!
2936
2937###############################################################################
2938### MacOS X installation
2939###
2940### This installs a runnable Vim.app in $(prefix)
2941
2942REZ    = /Developer/Tools/Rez
2943RESDIR = $(APPDIR)/Contents/Resources
2944VERSION = $(VIMMAJOR).$(VIMMINOR)
2945
2946### Common flags
2947M4FLAGSX = $(M4FLAGS) -DAPP_EXE=$(VIMNAME) -DAPP_NAME=$(VIMNAME) \
2948		-DAPP_VER=$(VERSION)
2949
2950install_macosx: gui_bundle
2951# Remove the link to the runtime dir, don't want to copy all of that.
2952	-rm $(RESDIR)/vim/runtime
2953	$(INSTALL_DATA_R) $(APPDIR) $(DESTDIR)$(prefix)
2954# Generate the help tags file now, it won't work with "make installruntime".
2955	-@srcdir=`pwd`; cd $(HELPSOURCE); $(MAKE) VIMEXE=$$srcdir/$(VIMTARGET) vimtags
2956# Install the runtime files.  Recursive!
2957	-mkdir -p $(DESTDIR)$(prefix)/$(RESDIR)/vim/runtime
2958#	-mkdir $(DESTDIR)$(prefix)/$(APPDIR)/bin
2959	srcdir=`pwd`; $(MAKE) -f Makefile installruntime \
2960		VIMEXE=$$srcdir/$(VIMTARGET) \
2961		prefix=$(DESTDIR)$(prefix)/$(RESDIR)$(VIMDIR) \
2962		exec_prefix=$(DESTDIR)$(prefix)/$(APPDIR)/Contents \
2963		BINDIR=$(DESTDIR)$(prefix)/$(APPDIR)/Contents/MacOS \
2964		VIMLOC=$(DESTDIR)$(prefix)/$(RESDIR)$(VIMDIR) \
2965		VIMRTLOC=$(DESTDIR)$(prefix)/$(RESDIR)$(VIMDIR)/runtime
2966# Put the link back.
2967	ln -s `pwd`/../runtime $(RESDIR)/vim
2968# Copy rgb.txt, Mac doesn't always have X11
2969	$(INSTALL_DATA) $(SCRIPTSOURCE)/rgb.txt $(DESTDIR)$(prefix)/$(RESDIR)/vim/runtime
2970# TODO: Create the vimtutor and/or gvimtutor application.
2971
2972gui_bundle: $(RESDIR) bundle-dir bundle-executable bundle-info bundle-resource \
2973	bundle-language
2974
2975$(RESDIR):
2976	mkdir -p $@
2977
2978bundle-dir: $(APPDIR)/Contents $(VIMTARGET)
2979# Make a link to the runtime directory, so that we can try out the executable
2980# without installing it.
2981	mkdir -p $(RESDIR)/vim
2982	-ln -s `pwd`/../runtime $(RESDIR)/vim
2983
2984bundle-executable: $(VIMTARGET)
2985	mkdir -p $(APPDIR)/Contents/MacOS
2986	cp $(VIMTARGET) $(APPDIR)/Contents/MacOS/$(VIMTARGET)
2987
2988bundle-info:  bundle-dir
2989	@echo "Creating PkgInfo"
2990	@echo -n "APPLVIM!" > $(APPDIR)/Contents/PkgInfo
2991	@echo "Creating Info.plist"
2992	m4 $(M4FLAGSX) infplist.xml > $(APPDIR)/Contents/Info.plist
2993
2994bundle-resource: bundle-dir bundle-rsrc
2995	cp -f $(RSRC_DIR)/*.icns $(RESDIR)
2996
2997### Classic resources
2998# Resource fork (in the form of a .rsrc file) for Classic Vim (Mac OS 9)
2999# This file is also required for OS X Vim.
3000bundle-rsrc: os_mac.rsr.hqx
3001	@echo "Creating resource fork"
3002	python dehqx.py $<
3003	rm -f gui_mac.rsrc
3004	mv gui_mac.rsrc.rsrcfork $(RESDIR)/$(VIMNAME).rsrc
3005
3006# po/Make_osx.pl says something about generating a Mac message file
3007# for Ukrainian.  Would somebody using Mac OS X in Ukrainian
3008# *really* be upset that Carbon Vim was not localised in
3009# Ukrainian?
3010#
3011#bundle-language: bundle-dir po/Make_osx.pl
3012#	cd po && perl Make_osx.pl --outdir ../$(RESDIR) $(MULTILANG)
3013bundle-language: bundle-dir
3014
3015$(APPDIR)/Contents:
3016	-$(SHELL) ./mkinstalldirs $(APPDIR)/Contents/MacOS
3017	-$(SHELL) ./mkinstalldirs $(RESDIR)/English.lproj
3018
3019
3020###############################################################################
3021### (automatically generated by 'make depend')
3022### Dependencies:
3023objects/blowfish.o: blowfish.c vim.h auto/config.h feature.h os_unix.h \
3024 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3025 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3026 globals.h farsi.h arabic.h
3027objects/buffer.o: buffer.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3028 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3029 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3030 farsi.h arabic.h version.h
3031objects/charset.o: charset.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3032 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3033 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3034 farsi.h arabic.h
3035objects/crypt.o: crypt.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3036 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3037 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3038 farsi.h arabic.h
3039objects/crypt_zip.o: crypt_zip.c vim.h auto/config.h feature.h os_unix.h \
3040 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3041 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3042 globals.h farsi.h arabic.h
3043objects/diff.o: diff.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3044 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3045 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3046 farsi.h arabic.h
3047objects/digraph.o: digraph.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3048 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3049 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3050 farsi.h arabic.h
3051objects/edit.o: edit.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3052 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3053 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3054 farsi.h arabic.h
3055objects/eval.o: eval.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3056 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3057 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3058 farsi.h arabic.h version.h
3059objects/ex_cmds.o: ex_cmds.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3060 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3061 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3062 farsi.h arabic.h version.h
3063objects/ex_cmds2.o: ex_cmds2.c vim.h auto/config.h feature.h os_unix.h \
3064 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3065 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3066 globals.h farsi.h arabic.h version.h
3067objects/ex_docmd.o: ex_docmd.c vim.h auto/config.h feature.h os_unix.h \
3068 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3069 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3070 globals.h farsi.h arabic.h
3071objects/ex_eval.o: ex_eval.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3072 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3073 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3074 farsi.h arabic.h
3075objects/ex_getln.o: ex_getln.c vim.h auto/config.h feature.h os_unix.h \
3076 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3077 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3078 globals.h farsi.h arabic.h
3079objects/fileio.o: fileio.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3080 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3081 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3082 farsi.h arabic.h
3083objects/fold.o: fold.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3084 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3085 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3086 farsi.h arabic.h
3087objects/getchar.o: getchar.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3088 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3089 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3090 farsi.h arabic.h
3091objects/hardcopy.o: hardcopy.c vim.h auto/config.h feature.h os_unix.h \
3092 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3093 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3094 globals.h farsi.h arabic.h version.h
3095objects/hashtab.o: hashtab.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3096 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3097 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3098 farsi.h arabic.h
3099objects/if_cscope.o: if_cscope.c vim.h auto/config.h feature.h os_unix.h \
3100 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3101 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3102 globals.h farsi.h arabic.h if_cscope.h
3103objects/if_xcmdsrv.o: if_xcmdsrv.c vim.h auto/config.h feature.h os_unix.h \
3104 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3105 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3106 globals.h farsi.h arabic.h version.h
3107objects/json.o: json.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3108 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3109 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3110 farsi.h arabic.h
3111objects/main.o: main.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3112 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3113 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3114 farsi.h arabic.h farsi.c arabic.c
3115objects/mark.o: mark.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3116 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3117 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3118 farsi.h arabic.h
3119objects/memfile.o: memfile.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3120 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3121 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3122 farsi.h arabic.h
3123objects/memline.o: memline.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3124 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3125 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3126 farsi.h arabic.h
3127objects/menu.o: menu.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3128 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3129 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3130 farsi.h arabic.h
3131objects/message.o: message.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3132 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3133 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3134 farsi.h arabic.h
3135objects/misc1.o: misc1.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3136 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3137 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3138 farsi.h arabic.h version.h
3139objects/misc2.o: misc2.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3140 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3141 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3142 farsi.h arabic.h
3143objects/move.o: move.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3144 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3145 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3146 farsi.h arabic.h
3147objects/mbyte.o: mbyte.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3148 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3149 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3150 farsi.h arabic.h
3151objects/normal.o: normal.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3152 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3153 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3154 farsi.h arabic.h
3155objects/ops.o: ops.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \
3156 keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \
3157 proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h farsi.h arabic.h
3158objects/option.o: option.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3159 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3160 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3161 farsi.h arabic.h
3162objects/os_unix.o: os_unix.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3163 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3164 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3165 farsi.h arabic.h os_unixx.h
3166objects/pathdef.o: auto/pathdef.c vim.h auto/config.h feature.h os_unix.h \
3167 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3168 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3169 globals.h farsi.h arabic.h
3170objects/popupmnu.o: popupmnu.c vim.h auto/config.h feature.h os_unix.h \
3171 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3172 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3173 globals.h farsi.h arabic.h
3174objects/quickfix.o: quickfix.c vim.h auto/config.h feature.h os_unix.h \
3175 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3176 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3177 globals.h farsi.h arabic.h
3178objects/regexp.o: regexp.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3179 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3180 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3181 farsi.h arabic.h regexp_nfa.c
3182objects/screen.o: screen.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3183 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3184 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3185 farsi.h arabic.h
3186objects/search.o: search.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3187 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3188 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3189 farsi.h arabic.h
3190objects/sha256.o: sha256.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3191 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3192 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3193 farsi.h arabic.h
3194objects/spell.o: spell.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3195 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3196 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3197 farsi.h arabic.h
3198objects/syntax.o: syntax.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3199 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3200 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3201 farsi.h arabic.h
3202objects/tag.o: tag.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \
3203 keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \
3204 proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h farsi.h arabic.h
3205objects/term.o: term.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3206 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3207 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3208 farsi.h arabic.h
3209objects/ui.o: ui.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \
3210 keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \
3211 proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h farsi.h arabic.h
3212objects/undo.o: undo.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3213 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3214 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3215 farsi.h arabic.h
3216objects/version.o: version.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3217 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3218 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3219 farsi.h arabic.h version.h
3220objects/window.o: window.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3221 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3222 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3223 farsi.h arabic.h
3224objects/gui.o: gui.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \
3225 keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \
3226 proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h farsi.h arabic.h
3227objects/gui_gtk.o: gui_gtk.c gui_gtk_f.h vim.h auto/config.h feature.h os_unix.h \
3228 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3229 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3230 globals.h farsi.h arabic.h
3231objects/gui_gtk_f.o: gui_gtk_f.c vim.h auto/config.h feature.h os_unix.h \
3232 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3233 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3234 globals.h farsi.h arabic.h gui_gtk_f.h
3235objects/gui_motif.o: gui_motif.c vim.h auto/config.h feature.h os_unix.h \
3236 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3237 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3238 globals.h farsi.h arabic.h gui_xmebw.h ../pixmaps/alert.xpm \
3239 ../pixmaps/error.xpm ../pixmaps/generic.xpm ../pixmaps/info.xpm \
3240 ../pixmaps/quest.xpm gui_x11_pm.h ../pixmaps/tb_new.xpm \
3241 ../pixmaps/tb_open.xpm ../pixmaps/tb_close.xpm ../pixmaps/tb_save.xpm \
3242 ../pixmaps/tb_print.xpm ../pixmaps/tb_cut.xpm ../pixmaps/tb_copy.xpm \
3243 ../pixmaps/tb_paste.xpm ../pixmaps/tb_find.xpm \
3244 ../pixmaps/tb_find_next.xpm ../pixmaps/tb_find_prev.xpm \
3245 ../pixmaps/tb_find_help.xpm ../pixmaps/tb_exit.xpm \
3246 ../pixmaps/tb_undo.xpm ../pixmaps/tb_redo.xpm ../pixmaps/tb_help.xpm \
3247 ../pixmaps/tb_macro.xpm ../pixmaps/tb_make.xpm \
3248 ../pixmaps/tb_save_all.xpm ../pixmaps/tb_jump.xpm \
3249 ../pixmaps/tb_ctags.xpm ../pixmaps/tb_load_session.xpm \
3250 ../pixmaps/tb_save_session.xpm ../pixmaps/tb_new_session.xpm \
3251 ../pixmaps/tb_blank.xpm ../pixmaps/tb_maximize.xpm \
3252 ../pixmaps/tb_split.xpm ../pixmaps/tb_minimize.xpm \
3253 ../pixmaps/tb_shell.xpm ../pixmaps/tb_replace.xpm \
3254 ../pixmaps/tb_vsplit.xpm ../pixmaps/tb_maxwidth.xpm \
3255 ../pixmaps/tb_minwidth.xpm
3256objects/gui_xmdlg.o: gui_xmdlg.c vim.h auto/config.h feature.h os_unix.h \
3257 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3258 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3259 globals.h farsi.h arabic.h
3260objects/gui_xmebw.o: gui_xmebw.c vim.h auto/config.h feature.h os_unix.h \
3261 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3262 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3263 globals.h farsi.h arabic.h gui_xmebwp.h gui_xmebw.h
3264objects/gui_athena.o: gui_athena.c vim.h auto/config.h feature.h os_unix.h \
3265 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3266 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3267 globals.h farsi.h arabic.h gui_at_sb.h gui_x11_pm.h \
3268 ../pixmaps/tb_new.xpm ../pixmaps/tb_open.xpm ../pixmaps/tb_close.xpm \
3269 ../pixmaps/tb_save.xpm ../pixmaps/tb_print.xpm ../pixmaps/tb_cut.xpm \
3270 ../pixmaps/tb_copy.xpm ../pixmaps/tb_paste.xpm ../pixmaps/tb_find.xpm \
3271 ../pixmaps/tb_find_next.xpm ../pixmaps/tb_find_prev.xpm \
3272 ../pixmaps/tb_find_help.xpm ../pixmaps/tb_exit.xpm \
3273 ../pixmaps/tb_undo.xpm ../pixmaps/tb_redo.xpm ../pixmaps/tb_help.xpm \
3274 ../pixmaps/tb_macro.xpm ../pixmaps/tb_make.xpm \
3275 ../pixmaps/tb_save_all.xpm ../pixmaps/tb_jump.xpm \
3276 ../pixmaps/tb_ctags.xpm ../pixmaps/tb_load_session.xpm \
3277 ../pixmaps/tb_save_session.xpm ../pixmaps/tb_new_session.xpm \
3278 ../pixmaps/tb_blank.xpm ../pixmaps/tb_maximize.xpm \
3279 ../pixmaps/tb_split.xpm ../pixmaps/tb_minimize.xpm \
3280 ../pixmaps/tb_shell.xpm ../pixmaps/tb_replace.xpm \
3281 ../pixmaps/tb_vsplit.xpm ../pixmaps/tb_maxwidth.xpm \
3282 ../pixmaps/tb_minwidth.xpm
3283objects/gui_gtk_x11.o: gui_gtk_x11.c vim.h auto/config.h feature.h os_unix.h \
3284 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3285 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3286 globals.h farsi.h arabic.h auto/gui_gtk_gresources.h gui_gtk_f.h \
3287 ../runtime/vim32x32.xpm ../runtime/vim16x16.xpm ../runtime/vim48x48.xpm
3288objects/gui_x11.o: gui_x11.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3289 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3290 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3291 farsi.h arabic.h ../runtime/vim32x32.xpm ../runtime/vim16x16.xpm \
3292 ../runtime/vim48x48.xpm
3293objects/gui_at_sb.o: gui_at_sb.c vim.h auto/config.h feature.h os_unix.h \
3294 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3295 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3296 globals.h farsi.h arabic.h gui_at_sb.h
3297objects/gui_at_fs.o: gui_at_fs.c vim.h auto/config.h feature.h os_unix.h \
3298 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3299 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3300 globals.h farsi.h arabic.h gui_at_sb.h
3301objects/pty.o: pty.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \
3302 keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \
3303 proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h farsi.h arabic.h
3304objects/memfile_test.o: memfile_test.c main.c vim.h auto/config.h feature.h \
3305 os_unix.h auto/osdef.h ascii.h keymap.h term.h macros.h option.h \
3306 structs.h regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h \
3307 ex_cmds.h proto.h globals.h farsi.h arabic.h farsi.c arabic.c memfile.c
3308objects/hangulin.o: hangulin.c vim.h auto/config.h feature.h os_unix.h \
3309 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3310 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3311 globals.h farsi.h arabic.h
3312objects/if_lua.o: if_lua.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3313 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3314 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3315 farsi.h arabic.h
3316objects/if_mzsch.o: if_mzsch.c vim.h auto/config.h feature.h os_unix.h \
3317 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3318 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3319 globals.h farsi.h arabic.h if_mzsch.h
3320objects/if_perl.o: auto/if_perl.c vim.h auto/config.h feature.h os_unix.h \
3321 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3322 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3323 globals.h farsi.h arabic.h
3324objects/if_perlsfio.o: if_perlsfio.c vim.h auto/config.h feature.h os_unix.h \
3325 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3326 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3327 globals.h farsi.h arabic.h
3328objects/if_python.o: if_python.c vim.h auto/config.h feature.h os_unix.h \
3329 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3330 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3331 globals.h farsi.h arabic.h if_py_both.h
3332objects/if_python3.o: if_python3.c vim.h auto/config.h feature.h os_unix.h \
3333 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3334 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3335 globals.h farsi.h arabic.h if_py_both.h
3336objects/if_tcl.o: if_tcl.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3337 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3338 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3339 farsi.h arabic.h
3340objects/if_ruby.o: if_ruby.c auto/config.h vim.h feature.h os_unix.h auto/osdef.h \
3341 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3342 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3343 farsi.h arabic.h version.h
3344objects/if_sniff.o: if_sniff.c vim.h auto/config.h feature.h os_unix.h \
3345 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3346 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3347 globals.h farsi.h arabic.h os_unixx.h
3348objects/gui_beval.o: gui_beval.c vim.h auto/config.h feature.h os_unix.h \
3349 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3350 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3351 globals.h farsi.h arabic.h
3352objects/workshop.o: workshop.c auto/config.h integration.h vim.h feature.h \
3353 os_unix.h auto/osdef.h ascii.h keymap.h term.h macros.h option.h \
3354 structs.h regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h \
3355 ex_cmds.h proto.h globals.h farsi.h arabic.h version.h workshop.h
3356objects/wsdebug.o: wsdebug.c
3357objects/integration.o: integration.c vim.h auto/config.h feature.h os_unix.h \
3358 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3359 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3360 globals.h farsi.h arabic.h integration.h
3361objects/netbeans.o: netbeans.c vim.h auto/config.h feature.h os_unix.h \
3362 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3363 regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h \
3364 globals.h farsi.h arabic.h version.h
3365objects/channel.o: channel.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3366 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3367 gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h proto.h globals.h \
3368 farsi.h arabic.h
3369objects/gui_gtk_gresources.o: auto/gui_gtk_gresources.c
3370