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