blob: 83732a28a7f715b32dde869cc5c60b56b01a65d7 [file] [log] [blame]
Bram Moolenaare1d12892004-06-13 13:02:36 +00001# 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 (bug-gnu-utils@prep.ai.mit.edu) or Vim
100# (Bram@vim.org). 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
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000125# make installmanlinks only installs the Vim manpage links
Bram Moolenaare1d12892004-06-13 13:02:36 +0000126# make installmacros only installs the Vim macros
127# make installtutor only installs the Vim tutor
Bram Moolenaar217ad922005-03-20 22:37:15 +0000128# make installspell only installs the spell files
Bram Moolenaare1d12892004-06-13 13:02:36 +0000129# 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#
Bram Moolenaar81695252004-12-29 20:58:21 +0000339# KDE doesn't fully work, unfortunately. See the todo list.
340#
Bram Moolenaare1d12892004-06-13 13:02:36 +0000341# 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
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000349#CONF_OPT_GUI = --enable-gui=kde
Bram Moolenaare1d12892004-06-13 13:02:36 +0000350#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
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000360# PERL
Bram Moolenaare1d12892004-06-13 13:02:36 +0000361# 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
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000371# PYTHON
Bram Moolenaare1d12892004-06-13 13:02:36 +0000372# Uncomment this when you want to include the Python interface.
Bram Moolenaar0e21a3f2005-04-17 20:28:32 +0000373# NOTE: This may cause threading to be enabled, which has side effects (such
374# as using different libraries and debugging becomes more difficult).
Bram Moolenaare1d12892004-06-13 13:02:36 +0000375#CONF_OPT_PYTHON = --enable-pythoninterp
376
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000377# TCL
Bram Moolenaare1d12892004-06-13 13:02:36 +0000378# Uncomment this when you want to include the Tcl interface.
379#CONF_OPT_TCL = --enable-tclinterp
380
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000381# RUBY
Bram Moolenaare1d12892004-06-13 13:02:36 +0000382# Uncomment this when you want to include the Ruby interface.
383#CONF_OPT_RUBY = --enable-rubyinterp
384
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000385# 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
Bram Moolenaare1d12892004-06-13 13:02:36 +0000394# 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
Bram Moolenaar69a7cb42004-06-20 12:51:53 +0000449#CONF_OPT_FEAT = --with-features=huge
Bram Moolenaare1d12892004-06-13 13:02:36 +0000450
451# COMPILED BY - For including a specific e-mail address for ":version".
452#CONF_OPT_COMPBY = "--with-compiledby=John Doe <JohnDoe@yahoo.com>"
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
Bram Moolenaar69a7cb42004-06-20 12:51:53 +0000510#CFLAGS = -g -O2 -fno-strength-reduce -Wall -Wmissing-prototypes
Bram Moolenaardf177f62005-02-22 08:39:57 +0000511#CFLAGS = -g -Wall -Wmissing-prototypes
Bram Moolenaare1d12892004-06-13 13:02:36 +0000512#CFLAGS = -O6 -fno-strength-reduce -Wall -Wshadow -Wmissing-prototypes
513#CFLAGS = -g -DDEBUG -Wall -Wshadow -Wmissing-prototypes
Bram Moolenaar592e0a22004-07-03 16:05:59 +0000514#CFLAGS = -g -O2 '-DSTARTUPTIME="vimstartup"' -fno-strength-reduce -Wall -Wmissing-prototypes
Bram Moolenaare1d12892004-06-13 13:02:36 +0000515
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).
Bram Moolenaar53180ce2005-07-05 21:48:14 +0000519# You may want to set the EF_PROTECT_BELOW environment variable to check the
520# other side of allocated memory.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000521# On FreeBSD you might need to enlarge the number of mmaps allowed. Do this
522# as root: sysctl -w vm.max_proc_mmap=30000
523#EXTRA_LIBS = /usr/local/lib/libefence.a
524
525# PURIFY - remove the # to use the "purify" program (hoi Nia++!)
526#PURIFY = purify
527# }}}
528
529# LINT - for running lint
530LINT_OPTIONS = -beprxzF
531
532# PROFILING - Uncomment the next two lines to do profiling with gcc and gprof.
533# Might not work with GUI or Perl.
534# Need to recompile everything after changing this: "make clean" "make".
535#PROFILE_CFLAGS = -pg -g
536#PROFILE_LIBS = -pg
537
Bram Moolenaar0a5fe212005-06-24 23:01:23 +0000538# MEMORY LEAK DETECTION
539# Requires installing the ccmalloc library.
540# Configuration is in the .ccmalloc file.
541# Doesn't work very well, since memory linked to from global variables
542# (indirectly) is also marked as leaked memory.
543#PROFILE_CFLAGS = -DEXITFREE
544#PROFILE_LIBS = -lccmalloc
545
Bram Moolenaare1d12892004-06-13 13:02:36 +0000546#####################################################
547### Specific systems, check if yours is listed! ### {{{
548#####################################################
549
550### Uncomment things here only if the values chosen by configure are wrong.
551### It's better to adjust configure.in and "make autoconf", if you can!
552### Then send the required changes to configure.in to the bugs list.
553
554### (1) BSD/OS 2.0.1, 2.1 or 3.0 using shared libraries
555###
556#CC = shlicc2
557#CFLAGS = -O2 -g -m486 -Wall -Wshadow -Wmissing-prototypes -fno-builtin
558
559### (2) HP-UX with a non-ANSI cc, use the c89 ANSI compiler
560### The first probably works on all systems
561### The second should work a bit better on newer systems
562### The third should work a bit better on HPUX 11.11
563### Information provided by: Richard Allen <ra@rhi.hi.is>
564#CC = c89 -D_HPUX_SOURCE
565#CC = c89 -O +Onolimit +ESlit -D_HPUX_SOURCE
566#CC = c89 -O +Onolimit +ESlit +e -D_HPUX_SOURCE
567
568### (2) For HP-UX: Enable the use of a different set of digraphs. Use this
569### when the default (ISO) digraphs look completely wrong.
570### After changing this do "touch digraph.c; make".
571#EXTRA_DEFS = -DHPUX_DIGRAPHS
572
573### (2) For HP-UX: 9.04 cpp default macro definition table of 128000 bytes
574### is too small to compile many routines. It produces too much defining
575### and no space errors.
576### Uncomment the following to specify a larger macro definition table.
577#CFLAGS = -Wp,-H256000
578
579### (2) For HP-UX 10.20 using the HP cc, with X11R6 and Motif 1.2, with
580### libraries in /usr/lib instead of /lib (avoiding transition links).
581### Information provided by: David Green
582#XROOT = /usr
583#CONF_OPT_X = --x-include=$(XROOT)/include/X11R6 --x-libraries=$(XROOT)/lib/X11R6
584#GUI_INC_LOC = -I/usr/include/Motif1.2
585#GUI_LIB_LOC = -L/usr/lib/Motif1.2_R6
586
587### (5) AIX 4.1.4 with cc
588#CFLAGS = -O -qmaxmem=8192
589
590### AIX with c89 (Walter Briscoe)
591#CC = c89
592#CPPFLAGS = -D_ALL_SOURCE
593
594### AIX 4.3.3.12 with xic 3.6.6 (David R. Favor)
595# needed to avoid a problem where strings.h gets included
596#CFLAGS = -qsrcmsg -O2 -qmaxmem=8192 -D__STR31__
597
598### (W) Solaris with multi-threaded libraries (-lthread):
599### If suspending doesn't work properly, try using this line:
600#EXTRA_DEFS = -D_REENTRANT
601
602### (7) Solaris 2.4/2.5 with Centerline compiler
603#CC = clcc
604#X_LIBS_DIR = -L/usr/openwin/lib -R/usr/openwin/lib
605#CFLAGS = -O
606
607### (9) Solaris 2.x with cc (SunPro), using Athena.
608### Only required for compiling gui_at_sb.c.
609### Symptom: "identifier redeclared: vim_XawScrollbarSetThumb"
610### Use one of the lines (either Full ANSI or no ANSI at all)
611#CFLAGS = $(CFLAGS) -Xc
612#CFLAGS = $(CFLAGS) -Xs
613
614### Solaris 2.3 with X11 and specific cc
615#CC=/opt/SUNWspro/bin/cc -O -Xa -v -R/usr/openwin/lib
616
617### Solaris with /usr/ucb/cc (it is rejected by autoconf as "cc")
618#CC = /usr/ucb/cc
619#EXTRA_LIBS = -R/usr/ucblib
620
621### Solaris with Forte Developer and FEAT_SUN_WORKSHOP
622# The Xpm library is available from http://koala.ilog.fr/ftp/pub/xpm.
623#CC = cc
624#XPM_DIR = /usr/local/xpm/xpm-3.4k-solaris
625#XPM_LIB = -L$(XPM_DIR)/lib -R$(XPM_DIR)/lib -lXpm
626#XPM_IPATH = -I$(XPM_DIR)/include
627#EXTRA_LIBS = $(XPM_LIB)
628#EXTRA_IPATHS = $(XPM_IPATH)
629#EXTRA_DEFS = -xCC -DHAVE_X11_XPM_H
630
631### Solaris with workshop compilers: Vim is unstable when compiled with
632# "-fast". Use this instead. (Shea Martin)
633#CFLAGS = -x02 -xtarget=ultra
634
635### (R) for Solaris 2.5 (or 2.5.1) with gcc > 2.5.6 you might need this:
636#LDFLAGS = -lw -ldl -lXmu
637#GUI_LIB_LOC = -L/usr/local/lib
638
639### (8) Unisys 6035 (Glauber Ribeiro)
640#EXTRA_LIBS = -lnsl -lsocket -lgen
641
642### When builtin functions cause problems with gcc (for Sun 4.1.x)
643#CFLAGS = -O2 -Wall -traditional -Wno-implicit
644
645### Apollo DOMAIN (with SYSTYPE = bsd4.3) (TESTED for version 3.0)
646#EXTRA_DEFS = -DDOMAIN
647#CFLAGS= -O -A systype,bsd4.3
648
649### Coherent 4.2.10 on Intel 386 platform
650#EXTRA_DEFS = -Dvoid=int
651#EXTRA_LIBS = -lterm -lsocket
652
653### SCO 3.2, with different library name for terminfo
654#EXTRA_LIBS = -ltinfo
655
656### UTS2 for Amdahl UTS 2.1.x
657#EXTRA_DEFS = -DUTS2
658#EXTRA_LIBS = -lsocket
659
660### UTS4 for Amdahl UTS 4.x
661#EXTRA_DEFS = -DUTS4 -Xa
662
663### USL for Unix Systems Laboratories (SYSV 4.2)
664#EXTRA_DEFS = -DUSL
665
666### RISCos on MIPS without X11
667#EXTRA_DEFS = -DMIPS
668
669### RISCos on MIPS with X11
670#EXTRA_LIBS = -lsun
671
672### (6) A/UX 3.1.1 with gcc (Jim Jagielski)
673#CC= gcc -D_POSIX_SOURCE
674#CFLAGS= -O2
675#EXTRA_LIBS = -lposix -lbsd -ltermcap -lX11
676
677### (A) Some versions of SCO Open Server 5 (Jan Christiaan van Winkel)
678### Also use the CONF_TERM_LIB below!
679#EXTRA_LIBS = -lgen
680
681### (D) QNX (by G.F. Desrochers)
682#CFLAGS = -g -O -mf -4
683
684### (F) QNX (by John Oleynick)
685# 1. If you don't have an X server: Comment out CONF_OPT_GUI and uncomment
686# CONF_OPT_X = --without-x.
687# 2. make config
688# 3. edit auto/config.mk and remove -ldir and -ltermcap from LIBS. It doesn't
689# have -ldir (does config find it somewhere?) and -ltermcap has at
690# least one problem so I use termlib.o instead. The problem with
691# termcap is that it segfaults if you call it with the name of
692# a non-existent terminal type.
693# 4. edit auto/config.h and add #define USE_TMPNAM
694# 5. add termlib.o to OBJ
695# 6. make
696
697### (H) for Data general DG/UX 5.4.2 and 5.4R3.10 (Jonas J. Schlein)
698#EXTRA_LIBS = -lgen
699
700### (I) SINIX-N 5.42 or 5.43 RM400 R4000 (also SINIX-Y and SINIX-Z)
701#EXTRA_LIBS = -lgen -lnsl
702### For SINIX-Y this is needed for the right prototype of gettimeofday()
703#EXTRA_DEFS = -D_XPG_IV
704
705### (I) Reliant-Unix (aka SINIX) 5.44 with standard cc
706# Use both "-F O3" lines for optimization or the "-g" line for debugging
707#EXTRA_LIBS = -lgen -lsocket -lnsl -lSM -lICE
708#CFLAGS = -F O3 -DSINIXN
709#LDFLAGS = -F O3
710#CFLAGS = -g -DSINIXN
711
712### (P) SCO 3.2.42, with different termcap names for some useful keys DJB
713#EXTRA_DEFS = -DSCOKEYS -DNETTERM_MOUSE -DDEC_MOUSE -DXTERM_MOUSE -DHAVE_GETTIMEOFDAY
714#EXTRA_LIBS = -lsocket -ltermcap -lmalloc -lc_s
715
716### (P) SuperUX 6.2 on NEC SX-4 (Lennart Schultz)
717#GUI_INC_LOC = -I/usr/include
718#GUI_LIB_LOC = -L/usr/lib
719#EXTRA_LIBS = -lgen
720
721### (Q) UNIXSVR 4.2MP on NEC UP4800 (Lennart Schultz)
722#GUI_INC_LOC = -I/usr/necccs/include
723#GUI_LIB_LOC = -L/usr/necccs/lib/X11R6
724#XROOT = /usr/necccs
725#CONF_OPT_X = --x-include=$(XROOT)/include --x-libraries=$(XROOT)/lib/X11R6
726#EXTRA_LIBS = -lsocket -lgen
727
728### Irix 4.0 & 5.2 (Silicon Graphics Machines, __sgi will be defined)
729# Not needed for Irix 5.3, Ives Aerts reported
730#EXTRA_LIBS = -lmalloc -lc_s
731# Irix 4.0, when regexp and regcmp cannot be found when linking:
732#EXTRA_LIBS = -lmalloc -lc_s -lPW
733
734### (S) Irix 6.x (MipsPro compiler): Uses different Olimit flag:
735# Note: This newer option style is used with the MipsPro compilers ONLY if
736# you are compiling an "n32" or "64" ABI binary (use either a -n32
737# flag or a -64 flag for CFLAGS). If you explicitly use a -o32 flag,
738# then the CFLAGS option format will be the typical style (i.e.
739# -Olimit 3000).
740#CFLAGS = -OPT:Olimit=3000 -O
741
742### (S) Irix 6.5 with MipsPro C compiler. Try this as a test to see new
743# compiler features! Beware, the optimization is EXTREMELY thorough
744# and takes quite a long time.
745# Note: See the note above. Here, the -mips3 option automatically
746# enables either the "n32" or "64" ABI, depending on what machine you
747# are compiling on (n32 is explicitly enabled here, just to make sure).
748#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
749#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
750
751### (K) for SGI Irix machines with 64 bit pointers ("uname -s" says IRIX64)
752### Suggested by Jon Wright <jon@gate.sinica.edu.tw>.
753### Tested on R8000 IRIX6.1 Power Indigo2.
754### Check /etc/compiler.defaults for your compiler settings.
755# either (for 64 bit pointers) uncomment the following line
756#GUI_LIB_LOC = -L/usr/lib64
757# then
758# 1) make config
759# 2) edit auto/config.mk and delete the -lelf entry in the LIBS line
760# 3) make
761#
762# or (for 32bit pointers) uncomment the following line
763#EXTRA_DEFS = -n32
764#GUI_LIB_LOC = -L/usr/lib32
765# then
766# 1) make config
767# 2) edit auto/config.mk, add -n32 to LDFLAGS
768# 3) make
769###
770
771### (C) On SCO Unix v3.2.5 (and probably other versions) the termcap library,
772### which is found by configure, doesn't work correctly. Symptom is the
773### error message "Termcap entry too long". Uncomment the next line.
774### On AIX 4.2.1 (and other versions probably), libtermcap is reported
775### not to display properly.
776### after changing this, you need to do "make reconfig".
777#CONF_TERM_LIB = --with-tlib=curses
778
779### (E) If you want to use termlib library instead of the automatically found
780### one. After changing this, you need to do "make reconfig".
781#CONF_TERM_LIB = --with-tlib=termlib
782
783### (a) ESIX V4.2 (Reinhard Wobst)
784#EXTRA_LIBS = -lnsl -lsocket -lgen -lXIM -lXmu -lXext
785
786### If you want to use ncurses library instead of the automatically found one
787### after changing this, you need to do "make reconfig".
788#CONF_TERM_LIB = --with-tlib=ncurses
789
790### For GCC on MSDOS, the ".exe" suffix will be added.
791#EXEEXT = .exe
792#LNKEXT = .exe
793
794### (O) For LynxOS 2.5.0, tested on PC.
795#EXTRA_LIBS = -lXext -lSM -lICE -lbsd
796### For LynxOS 3.0.1, tested on PPC
797#EXTRA_LIBS= -lXext -lSM -lICE -lnetinet -lXmu -liberty -lX11
798### For LynxOS 3.1.0, tested on PC
799#EXTRA_LIBS= -lXext -lSM -lICE -lnetinet -lXmu
800
801
802### (V) For CX/UX 6.2 (on Harris/Concurrent NightHawk 4800, 5800). Remove
803### -Qtarget if only in a 5800 environment. (Kipp E. Howard)
804#CFLAGS = -O -Qtarget=m88110compat
805#EXTRA_LIBS = -lgen
806
807##################### end of system specific lines ################### }}}
808
809### Names of the programs and targets {{{1
810VIMTARGET = $(VIMNAME)$(EXEEXT)
811EXTARGET = $(EXNAME)$(LNKEXT)
812VIEWTARGET = $(VIEWNAME)$(LNKEXT)
813GVIMNAME = g$(VIMNAME)
814GVIMTARGET = $(GVIMNAME)$(LNKEXT)
815GVIEWNAME = g$(VIEWNAME)
816GVIEWTARGET = $(GVIEWNAME)$(LNKEXT)
817RVIMNAME = r$(VIMNAME)
818RVIMTARGET = $(RVIMNAME)$(LNKEXT)
819RVIEWNAME = r$(VIEWNAME)
820RVIEWTARGET = $(RVIEWNAME)$(LNKEXT)
821RGVIMNAME = r$(GVIMNAME)
822RGVIMTARGET = $(RGVIMNAME)$(LNKEXT)
823RGVIEWNAME = r$(GVIEWNAME)
824RGVIEWTARGET = $(RGVIEWNAME)$(LNKEXT)
825VIMDIFFNAME = $(VIMNAME)diff
826GVIMDIFFNAME = g$(VIMDIFFNAME)
827VIMDIFFTARGET = $(VIMDIFFNAME)$(LNKEXT)
828GVIMDIFFTARGET = $(GVIMDIFFNAME)$(LNKEXT)
829EVIMNAME = e$(VIMNAME)
830EVIMTARGET = $(EVIMNAME)$(LNKEXT)
831EVIEWNAME = e$(VIEWNAME)
832EVIEWTARGET = $(EVIEWNAME)$(LNKEXT)
833
834### Names of the tools that are also made {{{1
835TOOLS = xxd/xxd$(EXEEXT)
836
837### Installation directories. The defaults come from configure. {{{1
838#
839### prefix the top directory for the data (default "/usr/local")
840#
841# Uncomment the next line to install Vim in your home directory.
842#prefix = $(HOME)
843
844### exec_prefix is the top directory for the executable (default $(prefix))
845#
846# Uncomment the next line to install the Vim executable in "/usr/machine/bin"
847#exec_prefix = /usr/machine
848
849### BINDIR dir for the executable (default "$(exec_prefix)/bin")
850### MANDIR dir for the manual pages (default "$(prefix)/man")
851### DATADIR dir for the other files (default "$(prefix)/lib" or
852# "$(prefix)/share")
853# They may be different when using different architectures for the
854# executable and a common directory for the other files.
855#
856# Uncomment the next line to install Vim in "/usr/bin"
857#BINDIR = /usr/bin
858# Uncomment the next line to install Vim manuals in "/usr/share/man/man1"
859#MANDIR = /usr/share/man
860# Uncomment the next line to install Vim help files in "/usr/share/vim"
861#DATADIR = /usr/share
862
863### DESTDIR root of the installation tree. This is prepended to the other
864# directories. This directory must exist.
865#DESTDIR = ~/pkg/vim
866
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000867### Directory of the man pages
868MAN1DIR = /man1
Bram Moolenaare1d12892004-06-13 13:02:36 +0000869
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000870### Vim version (adjusted by a script)
871VIMMAJOR = 7
872VIMMINOR = 0aa
873
Bram Moolenaare1d12892004-06-13 13:02:36 +0000874### Location of Vim files (should not need to be changed, and {{{1
875### some things might not work when they are changed!)
876VIMDIR = /vim
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000877VIMRTDIR = /vim$(VIMMAJOR)$(VIMMINOR)
Bram Moolenaare1d12892004-06-13 13:02:36 +0000878HELPSUBDIR = /doc
879COLSUBDIR = /colors
880SYNSUBDIR = /syntax
881INDSUBDIR = /indent
882PLUGSUBDIR = /plugin
883FTPLUGSUBDIR = /ftplugin
884LANGSUBDIR = /lang
885COMPSUBDIR = /compiler
886KMAPSUBDIR = /keymap
887MACROSUBDIR = /macros
888TOOLSSUBDIR = /tools
889TUTORSUBDIR = /tutor
Bram Moolenaar217ad922005-03-20 22:37:15 +0000890SPELLSUBDIR = /spell
Bram Moolenaare1d12892004-06-13 13:02:36 +0000891PRINTSUBDIR = /print
892PODIR = po
893
894### VIMLOC common root of the Vim files (all versions)
895### VIMRTLOC common root of the runtime Vim files (this version)
896### VIMRCLOC compiled-in location for global [g]vimrc files (all versions)
897### VIMRUNTIMEDIR compiled-in location for runtime files (optional)
898### HELPSUBLOC location for help files
899### COLSUBLOC location for colorscheme files
900### SYNSUBLOC location for syntax files
901### INDSUBLOC location for indent files
902### PLUGSUBLOC location for standard plugin files
903### FTPLUGSUBLOC location for ftplugin files
904### LANGSUBLOC location for language files
905### COMPSUBLOC location for compiler files
906### KMAPSUBLOC location for keymap files
907### MACROSUBLOC location for macro files
908### TOOLSSUBLOC location for tools files
909### TUTORSUBLOC location for tutor files
Bram Moolenaar217ad922005-03-20 22:37:15 +0000910### SPELLSUBLOC location for spell files
Bram Moolenaare1d12892004-06-13 13:02:36 +0000911### PRINTSUBLOC location for PostScript files (prolog, latin1, ..)
912### SCRIPTLOC location for script files (menu.vim, bugreport.vim, ..)
913### You can override these if you want to install them somewhere else.
914### Edit feature.h for compile-time settings.
915VIMLOC = $(DATADIR)$(VIMDIR)
916VIMRTLOC = $(DATADIR)$(VIMDIR)$(VIMRTDIR)
917VIMRCLOC = $(VIMLOC)
918HELPSUBLOC = $(VIMRTLOC)$(HELPSUBDIR)
919COLSUBLOC = $(VIMRTLOC)$(COLSUBDIR)
920SYNSUBLOC = $(VIMRTLOC)$(SYNSUBDIR)
921INDSUBLOC = $(VIMRTLOC)$(INDSUBDIR)
922PLUGSUBLOC = $(VIMRTLOC)$(PLUGSUBDIR)
923FTPLUGSUBLOC = $(VIMRTLOC)$(FTPLUGSUBDIR)
924LANGSUBLOC = $(VIMRTLOC)$(LANGSUBDIR)
925COMPSUBLOC = $(VIMRTLOC)$(COMPSUBDIR)
926KMAPSUBLOC = $(VIMRTLOC)$(KMAPSUBDIR)
927MACROSUBLOC = $(VIMRTLOC)$(MACROSUBDIR)
928TOOLSSUBLOC = $(VIMRTLOC)$(TOOLSSUBDIR)
929TUTORSUBLOC = $(VIMRTLOC)$(TUTORSUBDIR)
Bram Moolenaar217ad922005-03-20 22:37:15 +0000930SPELLSUBLOC = $(VIMRTLOC)$(SPELLSUBDIR)
Bram Moolenaare1d12892004-06-13 13:02:36 +0000931PRINTSUBLOC = $(VIMRTLOC)$(PRINTSUBDIR)
932SCRIPTLOC = $(VIMRTLOC)
933
934### Only set VIMRUNTIMEDIR when VIMRTLOC is set to a different location and
935### the runtime directory is not below it.
936#VIMRUNTIMEDIR = $(VIMRTLOC)
937
938### Name of the evim file target.
939EVIM_FILE = $(DESTDIR)$(SCRIPTLOC)/evim.vim
940MSWIN_FILE = $(DESTDIR)$(SCRIPTLOC)/mswin.vim
941
942### Name of the menu file target.
943SYS_MENU_FILE = $(DESTDIR)$(SCRIPTLOC)/menu.vim
944SYS_SYNMENU_FILE = $(DESTDIR)$(SCRIPTLOC)/synmenu.vim
945SYS_DELMENU_FILE = $(DESTDIR)$(SCRIPTLOC)/delmenu.vim
946
947### Name of the bugreport file target.
948SYS_BUGR_FILE = $(DESTDIR)$(SCRIPTLOC)/bugreport.vim
949
950### Name of the file type detection file target.
951SYS_FILETYPE_FILE = $(DESTDIR)$(SCRIPTLOC)/filetype.vim
952
953### Name of the file type detection file target.
954SYS_FTOFF_FILE = $(DESTDIR)$(SCRIPTLOC)/ftoff.vim
955
956### Name of the file type detection script file target.
957SYS_SCRIPTS_FILE = $(DESTDIR)$(SCRIPTLOC)/scripts.vim
958
959### Name of the ftplugin-on file target.
960SYS_FTPLUGIN_FILE = $(DESTDIR)$(SCRIPTLOC)/ftplugin.vim
961
962### Name of the ftplugin-off file target.
963SYS_FTPLUGOF_FILE = $(DESTDIR)$(SCRIPTLOC)/ftplugof.vim
964
965### Name of the indent-on file target.
966SYS_INDENT_FILE = $(DESTDIR)$(SCRIPTLOC)/indent.vim
967
968### Name of the indent-off file target.
969SYS_INDOFF_FILE = $(DESTDIR)$(SCRIPTLOC)/indoff.vim
970
971### Name of the option window script file target.
972SYS_OPTWIN_FILE = $(DESTDIR)$(SCRIPTLOC)/optwin.vim
973
974# Program to install the program in the target directory. Could also be "mv".
975INSTALL_PROG = cp
976
977# Program to install the data in the target directory. Cannot be "mv"!
978INSTALL_DATA = cp
979INSTALL_DATA_R = cp -r
980
981### Program to run on installed binary
982#STRIP = strip
983
984### Permissions for binaries {{{1
985BINMOD = 755
986
987### Permissions for man page
988MANMOD = 644
989
990### Permissions for help files
991HELPMOD = 644
992
993### Permissions for Perl and shell scripts
994SCRIPTMOD = 755
995
996### Permission for Vim script files (menu.vim, bugreport.vim, ..)
997VIMSCRIPTMOD = 644
998
999### Permissions for all directories that are created
1000DIRMOD = 755
1001
1002### Permissions for all other files that are created
1003FILEMOD = 644
1004
1005# Where to copy the man and help files from
1006HELPSOURCE = ../runtime/doc
1007
1008# Where to copy the script files from (menu, bugreport)
1009SCRIPTSOURCE = ../runtime
1010
1011# Where to copy the colorscheme files from
1012COLSOURCE = ../runtime/colors
1013
1014# Where to copy the syntax files from
1015SYNSOURCE = ../runtime/syntax
1016
1017# Where to copy the indent files from
1018INDSOURCE = ../runtime/indent
1019
1020# Where to copy the standard plugin files from
1021PLUGSOURCE = ../runtime/plugin
1022
1023# Where to copy the ftplugin files from
1024FTPLUGSOURCE = ../runtime/ftplugin
1025
1026# Where to copy the macro files from
1027MACROSOURCE = ../runtime/macros
1028
1029# Where to copy the tools files from
1030TOOLSSOURCE = ../runtime/tools
1031
1032# Where to copy the tutor files from
1033TUTORSOURCE = ../runtime/tutor
1034
Bram Moolenaar217ad922005-03-20 22:37:15 +00001035# Where to copy the spell files from
1036SPELLSOURCE = ../runtime/spell
1037
Bram Moolenaare1d12892004-06-13 13:02:36 +00001038# Where to look for language specific files
1039LANGSOURCE = ../runtime/lang
1040
1041# Where to look for compiler files
1042COMPSOURCE = ../runtime/compiler
1043
1044# Where to look for keymap files
1045KMAPSOURCE = ../runtime/keymap
1046
1047# Where to look for print resource files
1048PRINTSOURCE = ../runtime/print
1049
1050# If you are using Linux, you might want to use this to make vim the
1051# default vi editor, it will create a link from vi to Vim when doing
1052# "make install". An existing file will be overwritten!
1053# When not using it, some make programs can't handle an undefined $(LINKIT).
1054#LINKIT = -ln -f -s $(BINDIR)/$(VIMTARGET) /usr/bin/vi
1055LINKIT = @echo >/dev/null
1056
1057###
1058### GRAPHICAL USER INTERFACE (GUI). {{{1
1059### 'configure --enable-gui' can enable one of these for you if you did set
1060### a corresponding CONF_OPT_GUI above and have X11.
1061### Override configures choice by uncommenting all the following lines.
1062### As they are, the GUI is disabled. Replace "NONE" with "ATHENA" or "MOTIF"
1063### for enabling the Athena or Motif GUI.
1064#GUI_SRC = $(NONE_SRC)
1065#GUI_OBJ = $(NONE_OBJ)
1066#GUI_DEFS = $(NONE_DEFS)
1067#GUI_IPATH = $(NONE_IPATH)
1068#GUI_LIBS_DIR = $(NONE_LIBS_DIR)
1069#GUI_LIBS1 = $(NONE_LIBS1)
1070#GUI_LIBS2 = $(NONE_LIBS2)
1071#GUI_INSTALL = $(NONE_INSTALL)
1072#GUI_TARGETS = $(NONE_TARGETS)
1073#GUI_MAN_TARGETS= $(NONE_MAN_TARGETS)
1074#GUI_TESTTARGET = $(NONE_TESTTARGET)
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001075#GUI_BUNDLE = $(NONE_BUNDLE)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001076
1077# Without a GUI install the normal way.
1078NONE_INSTALL = install_normal
1079
Bram Moolenaar843ee412004-06-30 16:16:41 +00001080### KDE GUI interface.
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00001081KDE_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
Bram Moolenaar843ee412004-06-30 16:16:41 +00001082KDE_OBJ = objects/gui.o objects/pty.o objects/gui_kde.o objects/gui_kde_x11.o \
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00001083 objects/gui_kde_wid.o objects/gui_kde_wid_moc.o \
Bram Moolenaar843ee412004-06-30 16:16:41 +00001084 objects/kvim_iface_skel.o
1085KDE_DEFS = -DFEAT_GUI_KDE $(NARROW_PROTO)
1086KDE_IPATH = $(GUI_INC_LOC)
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001087KDE_LIBS_DIR = $(GUI_LIB_LOC) # Includes the libraries themselves
1088KDE_DIR = $(KDE_PREFIX)
Bram Moolenaar843ee412004-06-30 16:16:41 +00001089KDE_LIBS1 =
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001090KDE_LIBS2 =
Bram Moolenaar843ee412004-06-30 16:16:41 +00001091KDE_INSTALL = install_normal
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001092KDE_TARGETS = installglinks installkdeicons
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001093KDE_MAN_TARGETS = yes
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001094KDE_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001095KDE_BUNDLE =
Bram Moolenaar843ee412004-06-30 16:16:41 +00001096
Bram Moolenaare1d12892004-06-13 13:02:36 +00001097### GTK GUI
1098GTK_SRC = gui.c gui_gtk.c gui_gtk_x11.c pty.c gui_gtk_f.c \
1099 gui_beval.c
1100GTK_OBJ = objects/gui.o objects/gui_gtk.o objects/gui_gtk_x11.o \
1101 objects/pty.o objects/gui_gtk_f.o \
1102 objects/gui_beval.o
1103GTK_DEFS = -DFEAT_GUI_GTK $(NARROW_PROTO)
1104GTK_IPATH = $(GUI_INC_LOC)
1105GTK_LIBS_DIR = $(GUI_LIB_LOC)
1106GTK_LIBS1 =
1107GTK_LIBS2 = $(GTK_LIBNAME)
1108GTK_INSTALL = install_normal
1109GTK_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001110GTK_MAN_TARGETS = yes
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001111GTK_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001112GTK_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001113
1114### Motif GUI
Bram Moolenaardfccaf02004-12-31 20:56:11 +00001115MOTIF_SRC = gui.c gui_motif.c gui_x11.c pty.c gui_beval.c \
Bram Moolenaarb7fcef52005-01-02 11:31:05 +00001116 gui_xmdlg.c gui_xmebw.c
Bram Moolenaare1d12892004-06-13 13:02:36 +00001117MOTIF_OBJ = objects/gui.o objects/gui_motif.o objects/gui_x11.o \
Bram Moolenaardfccaf02004-12-31 20:56:11 +00001118 objects/pty.o objects/gui_beval.o \
Bram Moolenaarb7fcef52005-01-02 11:31:05 +00001119 objects/gui_xmdlg.o objects/gui_xmebw.o
Bram Moolenaare1d12892004-06-13 13:02:36 +00001120MOTIF_DEFS = -DFEAT_GUI_MOTIF $(NARROW_PROTO)
1121MOTIF_IPATH = $(GUI_INC_LOC)
1122MOTIF_LIBS_DIR = $(GUI_LIB_LOC)
1123MOTIF_LIBS1 =
1124MOTIF_LIBS2 = $(MOTIF_LIBNAME) -lXt
1125MOTIF_INSTALL = install_normal
1126MOTIF_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001127MOTIF_MAN_TARGETS = yes
Bram Moolenaare1d12892004-06-13 13:02:36 +00001128MOTIF_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001129MOTIF_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001130
1131### Athena GUI
1132### Use Xaw3d to make the menus look a little bit nicer
1133#XAW_LIB = -lXaw3d
1134XAW_LIB = -lXaw
1135
1136### When using Xaw3d, uncomment/comment the following lines to also get the
1137### scrollbars from Xaw3d.
1138#ATHENA_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c gui_at_fs.c
1139#ATHENA_OBJ = objects/gui.o objects/gui_athena.o objects/gui_x11.o \
1140# objects/pty.o objects/gui_beval.o objects/gui_at_fs.o
1141#ATHENA_DEFS = -DFEAT_GUI_ATHENA $(NARROW_PROTO) \
1142# -Dvim_scrollbarWidgetClass=scrollbarWidgetClass \
1143# -Dvim_XawScrollbarSetThumb=XawScrollbarSetThumb
1144ATHENA_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c \
1145 gui_at_sb.c gui_at_fs.c
1146ATHENA_OBJ = objects/gui.o objects/gui_athena.o objects/gui_x11.o \
1147 objects/pty.o objects/gui_beval.o \
1148 objects/gui_at_sb.o objects/gui_at_fs.o
1149ATHENA_DEFS = -DFEAT_GUI_ATHENA $(NARROW_PROTO)
1150
1151ATHENA_IPATH = $(GUI_INC_LOC)
1152ATHENA_LIBS_DIR = $(GUI_LIB_LOC)
1153ATHENA_LIBS1 = $(XAW_LIB)
1154ATHENA_LIBS2 = -lXt
1155ATHENA_INSTALL = install_normal
1156ATHENA_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001157ATHENA_MAN_TARGETS = yes
Bram Moolenaare1d12892004-06-13 13:02:36 +00001158ATHENA_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001159ATHENA_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001160
1161### neXtaw GUI
1162NEXTAW_LIB = -lneXtaw
1163
1164NEXTAW_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c gui_at_fs.c
1165NEXTAW_OBJ = objects/gui.o objects/gui_athena.o objects/gui_x11.o \
1166 objects/pty.o objects/gui_beval.o objects/gui_at_fs.o
1167NEXTAW_DEFS = -DFEAT_GUI_ATHENA -DFEAT_GUI_NEXTAW $(NARROW_PROTO)
1168
1169NEXTAW_IPATH = $(GUI_INC_LOC)
1170NEXTAW_LIBS_DIR = $(GUI_LIB_LOC)
1171NEXTAW_LIBS1 = $(NEXTAW_LIB)
1172NEXTAW_LIBS2 = -lXt
1173NEXTAW_INSTALL = install_normal
1174NEXTAW_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001175NEXTAW_MAN_TARGETS = yes
Bram Moolenaare1d12892004-06-13 13:02:36 +00001176NEXTAW_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001177NEXTAW_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001178
1179### (J) Sun OpenWindows 3.2 (SunOS 4.1.x) or earlier that produce these ld
1180# errors: ld: Undefined symbol
1181# _get_wmShellWidgetClass
1182# _get_applicationShellWidgetClass
1183# then you need to get patches 100512-02 and 100573-03 from Sun. In the
1184# meantime, uncomment the following GUI_X_LIBS definition as a workaround:
1185#GUI_X_LIBS = -Bstatic -lXmu -Bdynamic -lXext
1186# If you also get cos, sin etc. as undefined symbols, try uncommenting this
1187# too:
1188#EXTRA_LIBS = /usr/openwin/lib/libXmu.sa -lm
1189
Bram Moolenaare1d12892004-06-13 13:02:36 +00001190# PHOTON GUI
1191PHOTONGUI_SRC = gui.c gui_photon.c pty.c
1192PHOTONGUI_OBJ = objects/gui.o objects/gui_photon.o objects/pty.o
1193PHOTONGUI_DEFS = -DFEAT_GUI_PHOTON
1194PHOTONGUI_IPATH =
1195PHOTONGUI_LIBS_DIR =
1196PHOTONGUI_LIBS1 = -lph -lphexlib
1197PHOTONGUI_LIBS2 =
1198PHOTONGUI_INSTALL = install_normal
1199PHOTONGUI_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001200PHOTONGUI_MAN_TARGETS = yes
Bram Moolenaare1d12892004-06-13 13:02:36 +00001201PHOTONGUI_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001202PHOTONGUI_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001203
1204# CARBON GUI
1205CARBONGUI_SRC = gui.c gui_mac.c
1206CARBONGUI_OBJ = objects/gui.o objects/gui_mac.o objects/pty.o
1207CARBONGUI_DEFS = -DFEAT_GUI_MAC -arch ppc -fno-common -fpascal-strings \
1208 -Wall -Wno-unknown-pragmas \
1209 -mdynamic-no-pic -pipe
1210CARBONGUI_IPATH = -I. -Iproto
1211CARBONGUI_LIBS_DIR =
1212CARBONGUI_LIBS1 = -framework Carbon
1213CARBONGUI_LIBS2 =
1214CARBONGUI_INSTALL = install_macosx
1215CARBONGUI_TARGETS =
1216CARBONGUI_MAN_TARGETS =
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00001217CARBONGUI_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001218CARBONGUI_BUNDLE = gui_bundle
1219APPDIR = $(VIMNAME).app
1220CARBONGUI_TESTARG = VIMPROG=../$(APPDIR)/Contents/MacOS/$(VIMTARGET)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001221
1222# All GUI files
Bram Moolenaarb7fcef52005-01-02 11:31:05 +00001223ALL_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
Bram Moolenaar323850c2005-01-04 21:24:54 +00001224ALL_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
Bram Moolenaare1d12892004-06-13 13:02:36 +00001225
1226# }}}
1227
1228### Command to create dependencies based on #include "..."
1229### prototype headers are ignored due to -DPROTO, system
1230### headers #include <...> are ignored if we use the -MM option, as
1231### e.g. provided by gcc-cpp.
1232### Include FEAT_GUI to get gependency on gui.h
1233CPP_DEPEND = $(CC) -I$(srcdir) -M$(CPP_MM) $(DEPEND_CFLAGS)
1234
1235# flags for cproto
1236# This is for cproto 3 patchlevel 8 or below
1237# __inline, __attribute__ and __extension__ are not recognized by cproto
Bram Moolenaar051b7822005-05-19 21:00:46 +00001238NO_ATTR = -D__inline= -D__inline__= -DG_IMPLEMENT_INLINES \
1239 -D"__attribute__\\(x\\)=" -D"__asm__\\(x\\)=" \
1240 -D__extension__= -D__restrict="" \
1241 -D__gnuc_va_list=char -D__builtin_va_list=char
Bram Moolenaare1d12892004-06-13 13:02:36 +00001242
1243#
1244# This is for cproto 3 patchlevel 9 or above (currently 4.6)
1245# __inline and __attribute__ are now recognized by cproto
1246# -D"foo()=" is not supported by all compilers so do not use it
1247# NO_ATTR=
1248#
1249# maybe the "/usr/bin/cc -E" has to be adjusted for some systems
1250# This is for cproto 3.5 patchlevel 3:
1251# PROTO_FLAGS = -f4 -m__ARGS -d -E"$(CPP)" $(NO_ATTR)
1252#
1253# Use this for cproto 3 patchlevel 6 or below (use "cproto -V" to check):
1254# PROTO_FLAGS = -f4 -m__ARGS -d -E"$(CPP)" $(NO_ATTR)
1255#
1256# Use this for cproto 3 patchlevel 7 or above (use "cproto -V" to check):
1257PROTO_FLAGS = -m -M__ARGS -d -E"$(CPP)" $(NO_ATTR)
1258
1259
1260################################################
1261## no changes required below this line ##
1262################################################
1263
1264SHELL = /bin/sh
1265
1266.SUFFIXES:
1267.SUFFIXES: .cc .c .o .pro
1268
1269PRE_DEFS = -Iproto $(DEFS) $(GUI_DEFS) $(GUI_IPATH) $(CPPFLAGS) $(EXTRA_IPATHS)
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001270POST_DEFS = $(X_CFLAGS) $(MZSCHEME_CFLAGS) $(PERL_CFLAGS) $(PYTHON_CFLAGS) $(TCL_CFLAGS) $(RUBY_CFLAGS) $(EXTRA_DEFS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001271
1272ALL_CFLAGS = $(PRE_DEFS) $(CFLAGS) $(PROFILE_CFLAGS) $(POST_DEFS)
1273
Bram Moolenaar051b7822005-05-19 21:00:46 +00001274LINT_CFLAGS = -DLINT -I. $(PRE_DEFS) $(POST_DEFS) -Dinline= -D__extension__= -Dalloca=alloca
1275
1276LINT_EXTRA = -DUSE_SNIFF -DHANGUL_INPUT -D"__attribute__(x)="
Bram Moolenaare1d12892004-06-13 13:02:36 +00001277
1278DEPEND_CFLAGS = -DPROTO -DDEPEND -DFEAT_GUI $(LINT_CFLAGS)
1279
1280PFLAGS = $(PROTO_FLAGS) -DPROTO $(LINT_CFLAGS)
1281
1282ALL_LIB_DIRS = $(GUI_LIBS_DIR) $(X_LIBS_DIR)
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001283ALL_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)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001284
1285# abbreviations
1286DEST_BIN = $(DESTDIR)$(BINDIR)
1287DEST_VIM = $(DESTDIR)$(VIMLOC)
1288DEST_RT = $(DESTDIR)$(VIMRTLOC)
1289DEST_HELP = $(DESTDIR)$(HELPSUBLOC)
1290DEST_COL = $(DESTDIR)$(COLSUBLOC)
1291DEST_SYN = $(DESTDIR)$(SYNSUBLOC)
1292DEST_IND = $(DESTDIR)$(INDSUBLOC)
1293DEST_PLUG = $(DESTDIR)$(PLUGSUBLOC)
1294DEST_FTP = $(DESTDIR)$(FTPLUGSUBLOC)
1295DEST_LANG = $(DESTDIR)$(LANGSUBLOC)
1296DEST_COMP = $(DESTDIR)$(COMPSUBLOC)
1297DEST_KMAP = $(DESTDIR)$(KMAPSUBLOC)
1298DEST_MACRO = $(DESTDIR)$(MACROSUBLOC)
1299DEST_TOOLS = $(DESTDIR)$(TOOLSSUBLOC)
1300DEST_TUTOR = $(DESTDIR)$(TUTORSUBLOC)
Bram Moolenaar217ad922005-03-20 22:37:15 +00001301DEST_SPELL = $(DESTDIR)$(SPELLSUBLOC)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001302DEST_SCRIPT = $(DESTDIR)$(SCRIPTLOC)
1303DEST_PRINT = $(DESTDIR)$(PRINTSUBLOC)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001304DEST_MAN_TOP = $(DESTDIR)$(MANDIR)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001305
1306# We assume that the ".../man/xx/man1/" directory is for latin1 manual pages.
1307# Some systems use UTF-8, but these should find the ".../man/xx.UTF-8/man1/"
1308# directory first.
Bram Moolenaar217ad922005-03-20 22:37:15 +00001309# FreeBSD uses ".../man/xx.ISO8859-1/man1" for latin1, use that one too.
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001310DEST_MAN = $(DEST_MAN_TOP)$(MAN1DIR)
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00001311DEST_MAN_FR = $(DEST_MAN_TOP)/fr$(MAN1DIR)
1312DEST_MAN_FR_I = $(DEST_MAN_TOP)/fr.ISO8859-1$(MAN1DIR)
1313DEST_MAN_FR_U = $(DEST_MAN_TOP)/fr.UTF-8$(MAN1DIR)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001314DEST_MAN_IT = $(DEST_MAN_TOP)/it$(MAN1DIR)
Bram Moolenaar217ad922005-03-20 22:37:15 +00001315DEST_MAN_IT_I = $(DEST_MAN_TOP)/it.ISO8859-1$(MAN1DIR)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001316DEST_MAN_IT_U = $(DEST_MAN_TOP)/it.UTF-8$(MAN1DIR)
1317DEST_MAN_RU = $(DEST_MAN_TOP)/ru.KOI8-R$(MAN1DIR)
1318DEST_MAN_RU_U = $(DEST_MAN_TOP)/ru.UTF-8$(MAN1DIR)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001319
1320# BASIC_SRC: files that are always used
1321# GUI_SRC: extra GUI files for current configuration
1322# ALL_GUI_SRC: all GUI files for Unix
1323#
1324# SRC: files used for current configuration
1325# TAGS_SRC: source files used for make tags
1326# TAGS_INCL: include files used for make tags
1327# ALL_SRC: source files used for make depend and make lint
1328
1329TAGS_INCL = *.h
1330
1331BASIC_SRC = \
1332 buffer.c \
1333 charset.c \
1334 diff.c \
1335 digraph.c \
1336 edit.c \
1337 eval.c \
1338 ex_cmds.c \
1339 ex_cmds2.c \
1340 ex_docmd.c \
1341 ex_eval.c \
1342 ex_getln.c \
1343 fileio.c \
1344 fold.c \
1345 getchar.c \
Bram Moolenaar58d98232005-07-23 22:25:46 +00001346 hardcopy.c \
Bram Moolenaar383f9bc2005-01-19 22:18:32 +00001347 hashtable.c \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001348 if_cscope.c \
1349 if_xcmdsrv.c \
1350 main.c \
1351 mark.c \
1352 memfile.c \
1353 memline.c \
1354 menu.c \
1355 message.c \
1356 misc1.c \
1357 misc2.c \
1358 move.c \
1359 mbyte.c \
1360 normal.c \
1361 ops.c \
1362 option.c \
1363 os_unix.c \
1364 auto/pathdef.c \
1365 quickfix.c \
1366 regexp.c \
1367 screen.c \
1368 search.c \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001369 spell.c \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001370 syntax.c \
1371 tag.c \
1372 term.c \
1373 ui.c \
1374 undo.c \
1375 version.c \
1376 window.c \
1377 $(OS_EXTRA_SRC)
1378
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001379SRC = $(BASIC_SRC) $(GUI_SRC) $(HANGULIN_SRC) $(MZSCHEME_SRC) \
1380 $(PERL_SRC) $(PYTHON_SRC) $(TCL_SRC) $(RUBY_SRC) \
1381 $(SNIFF_SRC) $(WORKSHOP_SRC) $(WSDEBUG_SRC)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001382
Bram Moolenaar843ee412004-06-30 16:16:41 +00001383TAGS_SRC = *.c *.cpp *.cc if_perl.xs
Bram Moolenaare1d12892004-06-13 13:02:36 +00001384
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001385EXTRA_SRC = hangulin.c if_mzsch.c auto/if_perl.c if_perlsfio.c \
1386 if_python.c if_tcl.c if_ruby.c if_sniff.c gui_beval.c \
1387 workshop.c wsdebug.c integration.c netbeans.c
Bram Moolenaare1d12892004-06-13 13:02:36 +00001388
1389# All sources, also the ones that are not configured
1390ALL_SRC = $(BASIC_SRC) $(ALL_GUI_SRC) $(EXTRA_SRC)
1391
1392# Which files to check with lint. Select one of these three lines. ALL_SRC
1393# checks more, but may not work well for checking a GUI that wasn't configured.
1394# The perl sources also don't work well with lint.
1395LINT_SRC = $(BASIC_SRC) $(GUI_SRC) $(HANGULIN_SRC) $(PYTHON_SRC) $(TCL_SRC) \
1396 $(SNIFF_SRC) $(WORKSHOP_SRC) $(WSDEBUG_SRC) $(NETBEANS_SRC)
1397#LINT_SRC = $(SRC)
1398#LINT_SRC = $(ALL_SRC)
1399
1400OBJ = \
1401 objects/buffer.o \
1402 objects/charset.o \
1403 objects/diff.o \
1404 objects/digraph.o \
1405 objects/edit.o \
1406 objects/eval.o \
1407 objects/ex_cmds.o \
1408 objects/ex_cmds2.o \
1409 objects/ex_docmd.o \
1410 objects/ex_eval.o \
1411 objects/ex_getln.o \
1412 objects/fileio.o \
1413 objects/fold.o \
1414 objects/getchar.o \
Bram Moolenaar58d98232005-07-23 22:25:46 +00001415 objects/hardcopy.o \
Bram Moolenaar383f9bc2005-01-19 22:18:32 +00001416 objects/hashtable.o \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001417 $(HANGULIN_OBJ) \
1418 objects/if_cscope.o \
1419 objects/if_xcmdsrv.o \
1420 objects/main.o \
1421 objects/mark.o \
1422 objects/memfile.o \
1423 objects/memline.o \
1424 objects/menu.o \
1425 objects/message.o \
1426 objects/misc1.o \
1427 objects/misc2.o \
1428 objects/move.o \
1429 objects/mbyte.o \
1430 objects/normal.o \
1431 objects/ops.o \
1432 objects/option.o \
1433 objects/os_unix.o \
1434 objects/pathdef.o \
1435 objects/quickfix.o \
1436 objects/regexp.o \
1437 objects/screen.o \
1438 objects/search.o \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001439 objects/spell.o \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001440 objects/syntax.o \
1441 $(SNIFF_OBJ) \
1442 objects/tag.o \
1443 objects/term.o \
1444 objects/ui.o \
1445 objects/undo.o \
1446 objects/window.o \
1447 $(GUI_OBJ) \
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001448 $(MZSCHEME_OBJ) \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001449 $(PERL_OBJ) \
1450 $(PYTHON_OBJ) \
1451 $(TCL_OBJ) \
1452 $(RUBY_OBJ) \
1453 $(OS_EXTRA_OBJ) \
1454 $(WORKSHOP_OBJ) \
1455 $(NETBEANS_OBJ) \
1456 $(WSDEBUG_OBJ)
1457
1458PRO_AUTO = \
1459 buffer.pro \
1460 charset.pro \
1461 diff.pro \
1462 digraph.pro \
1463 edit.pro \
1464 eval.pro \
1465 ex_cmds.pro \
1466 ex_cmds2.pro \
1467 ex_docmd.pro \
1468 ex_eval.pro \
1469 ex_getln.pro \
1470 fileio.pro \
1471 fold.pro \
1472 getchar.pro \
Bram Moolenaar58d98232005-07-23 22:25:46 +00001473 hardcopy.pro \
Bram Moolenaar383f9bc2005-01-19 22:18:32 +00001474 hashtable.pro \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001475 hangulin.pro \
1476 if_cscope.pro \
1477 if_xcmdsrv.pro \
1478 if_python.pro \
1479 if_ruby.pro \
1480 main.pro \
1481 mark.pro \
1482 memfile.pro \
1483 memline.pro \
1484 menu.pro \
1485 message.pro \
1486 misc1.pro \
1487 misc2.pro \
1488 move.pro \
1489 mbyte.pro \
1490 normal.pro \
1491 ops.pro \
1492 option.pro \
1493 os_unix.pro \
1494 quickfix.pro \
1495 regexp.pro \
1496 screen.pro \
1497 search.pro \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001498 spell.pro \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001499 syntax.pro \
1500 tag.pro \
1501 term.pro \
1502 termlib.pro \
1503 ui.pro \
1504 undo.pro \
1505 version.pro \
1506 window.pro \
1507 gui_beval.pro \
1508 workshop.pro \
1509 netbeans.pro \
1510 $(ALL_GUI_PRO) \
1511 $(TCL_PRO)
1512
1513PRO_MANUAL = os_amiga.pro os_msdos.pro os_win16.pro os_win32.pro \
1514 os_mswin.pro os_beos.pro os_vms.pro os_riscos.pro $(PERL_PRO)
1515
1516# Default target is making the executable and tools
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00001517all: $(VIMTARGET) $(TOOLS) languages $(GUI_BUNDLE)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001518
1519tools: $(TOOLS)
1520
1521# Run configure with all the setting from above.
1522#
1523# Note: auto/config.h doesn't depend on configure, because running configure
1524# doesn't always update auto/config.h. The timestamp isn't changed if the
1525# file contents didn't change (to avoid recompiling everything). Including a
1526# dependency on auto/config.h would cause running configure each time when
1527# auto/config.h isn't updated. The dependency on auto/config.mk should make
1528# sure configure is run when it's needed.
1529#
1530config auto/config.mk: auto/configure config.mk.in config.h.in
1531 GUI_INC_LOC="$(GUI_INC_LOC)" GUI_LIB_LOC="$(GUI_LIB_LOC)" \
1532 CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \
1533 LDFLAGS="$(LDFLAGS)" $(CONF_SHELL) srcdir="$(srcdir)" \
1534 ./configure $(CONF_OPT_GUI) $(CONF_OPT_X) $(CONF_OPT_XSMP) \
1535 $(CONF_OPT_DARWIN) $(CONF_OPT_PERL) $(CONF_OPT_PYTHON) \
1536 $(CONF_OPT_TCL) $(CONF_OPT_RUBY) $(CONF_OPT_NLS) \
1537 $(CONF_OPT_CSCOPE) $(CONF_OPT_MULTIBYTE) $(CONF_OPT_INPUT) \
1538 $(CONF_OPT_OUTPUT) $(CONF_OPT_GPM) $(CONF_OPT_WORKSHOP) \
1539 $(CONF_OPT_SNIFF) $(CONF_OPT_FEAT) $(CONF_TERM_LIB) \
1540 $(CONF_OPT_COMPBY) $(CONF_OPT_ACL) $(CONF_OPT_NETBEANS) \
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001541 $(CONF_ARGS) $(CONF_OPT_MZSCHEME) $(CONF_OPT_PLTHOME)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001542
1543# Use "make reconfig" to rerun configure without cached values.
1544# When config.h changes, most things will be recompiled automatically.
Bram Moolenaar592e0a22004-07-03 16:05:59 +00001545# Invoke $(MAKE) to run config with the empty auto/config.mk.
1546# Invoke $(MAKE) to build all with the filled auto/config.mk.
1547reconfig: scratch clean
1548 $(MAKE) -f Makefile config
1549 $(MAKE) -f Makefile all
Bram Moolenaare1d12892004-06-13 13:02:36 +00001550
1551# Run autoconf to produce auto/configure.
1552# Note:
1553# - DO NOT RUN autoconf MANUALLY! It will overwrite ./configure instead of
1554# producing auto/configure.
1555# - autoconf is not run automatically, because a patch usually changes both
1556# configure.in and auto/configure but can't update the timestamps. People
1557# who do not have (the correct version of) autoconf would run into trouble.
1558#
1559# Two tricks are required to make autoconf put its output in the "auto" dir:
1560# - Temporarily move the ./configure script to ./configure.save. Don't
1561# overwrite it, it's probably the result of an aborted autoconf.
1562# - Use sed to change ./config.log to auto/config.log in the configure script.
Bram Moolenaar9d75c832005-01-25 21:57:23 +00001563# Autoconf 2.5x (2.59 at least) produces a few more files that we need to take
1564# care of:
1565# - configure.lineno: has the line numbers replaced with $LINENO. That
1566# improves patches a LOT, thus use it instead (until someone says it doesn't
1567# work on some system).
1568# - autom4te.cache directory is created and not cleaned up. Delete it.
1569# - Uses ">config.log" instead of "./config.log".
Bram Moolenaare1d12892004-06-13 13:02:36 +00001570autoconf:
1571 if test ! -f configure.save; then mv configure configure.save; fi
1572 autoconf
Bram Moolenaar9d75c832005-01-25 21:57:23 +00001573 sed -e 's+>config.log+>auto/config.log+' -e 's+\./config.log+auto/config.log+' configure > auto/configure
Bram Moolenaare1d12892004-06-13 13:02:36 +00001574 chmod 755 auto/configure
1575 mv -f configure.save configure
Bram Moolenaar9d75c832005-01-25 21:57:23 +00001576 -rm -rf autom4te.cache
Bram Moolenaare1d12892004-06-13 13:02:36 +00001577 -rm -f auto/config.status auto/config.cache
1578
1579# Re-execute this Makefile to include the new auto/config.mk produced by
1580# configure Only used when typing "make" with a fresh auto/config.mk.
1581myself:
1582 $(MAKE) -f Makefile all
1583
1584
1585# The normal command to compile a .c file to its .o file.
1586CCC = $(CC) -c -I$(srcdir) $(ALL_CFLAGS)
1587
1588
1589# Link the target for normal use or debugging.
1590# A shell script is used to try linking without unneccesary libraries.
1591$(VIMTARGET): auto/config.mk objects $(OBJ) version.c version.h
1592 $(CCC) version.c -o objects/version.o
1593 @LINK="$(PURIFY) $(SHRPENV) $(CClink) $(ALL_LIB_DIRS) $(LDFLAGS) \
1594 -o $(VIMTARGET) $(OBJ) objects/version.o $(ALL_LIBS)" \
1595 MAKE="$(MAKE)" sh $(srcdir)/link.sh
1596
1597xxd/xxd$(EXEEXT): xxd/xxd.c
1598 cd xxd; CC="$(CC)" CFLAGS="$(CPPFLAGS) $(CFLAGS)" \
1599 $(MAKE) -f Makefile
1600
1601# Build the language specific files if they were unpacked.
1602# Generate the converted .mo files separately, it's no problem if this fails.
1603languages:
1604 @if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
Bram Moolenaar58d98232005-07-23 22:25:46 +00001605 cd $(PODIR); \
1606 CC="$(CC)" $(MAKE) check; \
1607 CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix); \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001608 fi
1609 -@if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
1610 cd $(PODIR); CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix) converted; \
1611 fi
1612
1613# Update the *.po files for changes in the sources. Only run manually.
1614update-po:
1615 cd $(PODIR); CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix) update-po
1616
1617# Generate function prototypes. This is not needed to compile vim, but if
1618# you want to use it, cproto is out there on the net somewhere -- Webb
1619#
1620# When generating os_amiga.pro, os_msdos.pro and os_win32.pro there will be a
1621# few include files that can not be found, that's OK.
1622
1623proto: $(PRO_AUTO) $(PRO_MANUAL)
1624
1625### Would be nice if this would work for "normal" make.
1626### Currently it only works for (Free)BSD make.
1627#$(PRO_AUTO): $$(*F).c
1628# cproto $(PFLAGS) -DFEAT_GUI $(*F).c > $@
1629
1630# Always define FEAT_GUI. This may generate a few warnings if it's also
1631# defined in auto/config.h, you can ignore that.
1632.c.pro:
1633 cproto $(PFLAGS) -DFEAT_GUI $< > proto/$@
1634 echo "/* vim: set ft=c : */" >> proto/$@
1635
1636os_amiga.pro: os_amiga.c
1637 cproto $(PFLAGS) -DAMIGA -UHAVE_CONFIG_H -DBPTR=char* $< > proto/$@
1638 echo "/* vim: set ft=c : */" >> proto/$@
1639
1640os_msdos.pro: os_msdos.c
1641 cproto $(PFLAGS) -DMSDOS -UHAVE_CONFIG_H $< > proto/$@
1642 echo "/* vim: set ft=c : */" >> proto/$@
1643
1644os_win16.pro: os_win16.c
1645 cproto $(PFLAGS) -DWIN16 -UHAVE_CONFIG_H $< > proto/$@
1646 echo "/* vim: set ft=c : */" >> proto/$@
1647
1648os_win32.pro: os_win32.c
1649 cproto $(PFLAGS) -DWIN32 -UHAVE_CONFIG_H $< > proto/$@
1650 echo "/* vim: set ft=c : */" >> proto/$@
1651
1652os_mswin.pro: os_mswin.c
1653 cproto $(PFLAGS) -DWIN16 -DWIN32 -UHAVE_CONFIG_H $< > proto/$@
1654 echo "/* vim: set ft=c : */" >> proto/$@
1655
1656os_beos.pro: os_beos.c
1657 cproto $(PFLAGS) -D__BEOS__ -UHAVE_CONFIG_H $< > proto/$@
1658 echo "/* vim: set ft=c : */" >> proto/$@
1659
1660os_vms.pro: os_vms.c
1661# must use os_vms_conf.h for auto/config.h
1662 mv auto/config.h auto/config.h.save
1663 cp os_vms_conf.h auto/config.h
1664 cproto $(PFLAGS) -DVMS -UFEAT_GUI_ATHENA -UFEAT_GUI_NEXTAW -UFEAT_GUI_MOTIF -UFEAT_GUI_GTK $< > proto/$@
1665 echo "/* vim: set ft=c : */" >> proto/$@
1666 rm auto/config.h
1667 mv auto/config.h.save auto/config.h
1668
1669# if_perl.pro is special: Use the generated if_perl.c for input and remove
1670# prototypes for local functions.
1671if_perl.pro: auto/if_perl.c
1672 cproto $(PFLAGS) -DFEAT_GUI auto/if_perl.c | sed "/_VI/d" > proto/$@
1673
1674
1675notags:
1676 -rm -f tags
1677
1678# Note: tags is made for the currently configured version, can't include both
1679# Motif and Athena GUI
1680# You can ignore error messages for missing files.
1681tags TAGS: notags
1682 $(TAGPRG) $(TAGS_SRC) $(TAGS_INCL)
1683
1684# Make a highlight file for types. Requires Exuberant ctags and awk
1685types: types.vim
1686types.vim: $(TAGS_SRC) $(TAGS_INCL)
1687 ctags --c-kinds=gstu -o- $(TAGS_SRC) $(TAGS_INCL) |\
1688 awk 'BEGIN{printf("syntax keyword Type\t")}\
1689 {printf("%s ", $$1)}END{print ""}' > $@
1690
1691# Execute the test scripts. Run these after compiling Vim, before installing.
1692# This doesn't depend on $(VIMTARGET), because that won't work when configure
1693# wasn't run yet. Restart make to build it instead.
1694#
1695# This will produce a lot of garbage on your screen, including a few error
1696# messages. Don't worry about that.
1697# If there is a real error, there will be a difference between "test.out" and
1698# a "test99.ok" file.
1699# If everything is allright, the final message will be "ALL DONE".
1700#
1701test check:
1702 $(MAKE) -f Makefile $(VIMTARGET)
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00001703 cd testdir; $(MAKE) -f Makefile $(GUI_TESTTARGET) VIMPROG=../$(VIMTARGET) $(GUI_TESTARG)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001704
1705testclean:
1706 cd testdir; $(MAKE) -f Makefile clean
1707
1708#
1709# Avoid overwriting an existing executable, somebody might be running it and
1710# overwriting it could cause it to crash. Deleting it is OK, it won't be
1711# really deleted until all running processes for it have exited. It is
1712# renamed first, in case the deleting doesn't work.
1713#
1714# If you want to keep an older version, rename it before running "make
1715# install".
1716#
1717install: $(GUI_INSTALL)
1718
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00001719install_normal: installvim installtools $(INSTALL_LANGS) install-icons
Bram Moolenaare1d12892004-06-13 13:02:36 +00001720
Bram Moolenaar217ad922005-03-20 22:37:15 +00001721installvim: installvimbin installruntime installlinks installmanlinks installmacros installtutor installspell
Bram Moolenaare1d12892004-06-13 13:02:36 +00001722
1723installvimbin: $(VIMTARGET) $(DESTDIR)$(exec_prefix) $(DEST_BIN)
1724 -if test -f $(DEST_BIN)/$(VIMTARGET); then \
1725 mv -f $(DEST_BIN)/$(VIMTARGET) $(DEST_BIN)/$(VIMNAME).rm; \
1726 rm -f $(DEST_BIN)/$(VIMNAME).rm; \
1727 fi
1728 $(INSTALL_PROG) $(VIMTARGET) $(DEST_BIN)
1729 $(STRIP) $(DEST_BIN)/$(VIMTARGET)
1730 chmod $(BINMOD) $(DEST_BIN)/$(VIMTARGET)
1731# may create a link to the new executable from /usr/bin/vi
1732 -$(LINKIT)
1733
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001734# Long list of arguments for the shell script that installs the manual pages
1735# for one language.
1736INSTALLMANARGS = $(VIMLOC) $(SCRIPTLOC) $(VIMRCLOC) $(HELPSOURCE) $(MANMOD) \
1737 $(VIMNAME) $(VIMDIFFNAME) $(EVIMNAME)
1738
1739# install the help files; first adjust the contents for the final location
1740installruntime: $(HELPSOURCE)/vim.1 $(DEST_VIM) $(DEST_RT) \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001741 $(DEST_HELP) $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND) \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001742 $(DEST_FTP) $(DEST_PLUG) $(DEST_TUTOR) $(DEST_SPELL) $(DEST_COMP)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001743 -$(SHELL) ./installman.sh install $(DEST_MAN) "" $(INSTALLMANARGS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001744 @echo generating help tags
1745# Generate the help tags with ":helptags" to handle all languages.
1746 -@cd $(HELPSOURCE); $(MAKE) VIMEXE=$(DEST_BIN)/$(VIMTARGET) vimtags
1747 cd $(HELPSOURCE); \
1748 files=`ls *.txt tags`; \
1749 files="$$files `ls *.??x tags-?? 2>/dev/null || true`"; \
1750 $(INSTALL_DATA) $$files $(DEST_HELP); \
1751 cd $(DEST_HELP); \
1752 chmod $(HELPMOD) $$files
1753 $(INSTALL_DATA) $(HELPSOURCE)/*.pl $(DEST_HELP)
1754 chmod $(SCRIPTMOD) $(DEST_HELP)/*.pl
1755# install the menu files
1756 $(INSTALL_DATA) $(SCRIPTSOURCE)/menu.vim $(SYS_MENU_FILE)
1757 chmod $(VIMSCRIPTMOD) $(SYS_MENU_FILE)
1758 $(INSTALL_DATA) $(SCRIPTSOURCE)/synmenu.vim $(SYS_SYNMENU_FILE)
1759 chmod $(VIMSCRIPTMOD) $(SYS_SYNMENU_FILE)
1760 $(INSTALL_DATA) $(SCRIPTSOURCE)/delmenu.vim $(SYS_DELMENU_FILE)
1761 chmod $(VIMSCRIPTMOD) $(SYS_DELMENU_FILE)
1762# install the evim file
1763 $(INSTALL_DATA) $(SCRIPTSOURCE)/mswin.vim $(MSWIN_FILE)
1764 chmod $(VIMSCRIPTMOD) $(MSWIN_FILE)
1765 $(INSTALL_DATA) $(SCRIPTSOURCE)/evim.vim $(EVIM_FILE)
1766 chmod $(VIMSCRIPTMOD) $(EVIM_FILE)
1767# install the bugreport file
1768 $(INSTALL_DATA) $(SCRIPTSOURCE)/bugreport.vim $(SYS_BUGR_FILE)
1769 chmod $(VIMSCRIPTMOD) $(SYS_BUGR_FILE)
1770# install the example vimrc files
1771 $(INSTALL_DATA) $(SCRIPTSOURCE)/vimrc_example.vim $(DEST_SCRIPT)
1772 chmod $(VIMSCRIPTMOD) $(DEST_SCRIPT)/vimrc_example.vim
1773 $(INSTALL_DATA) $(SCRIPTSOURCE)/gvimrc_example.vim $(DEST_SCRIPT)
1774 chmod $(VIMSCRIPTMOD) $(DEST_SCRIPT)/gvimrc_example.vim
1775# install the file type detection files
1776 $(INSTALL_DATA) $(SCRIPTSOURCE)/filetype.vim $(SYS_FILETYPE_FILE)
1777 chmod $(VIMSCRIPTMOD) $(SYS_FILETYPE_FILE)
1778 $(INSTALL_DATA) $(SCRIPTSOURCE)/ftoff.vim $(SYS_FTOFF_FILE)
1779 chmod $(VIMSCRIPTMOD) $(SYS_FTOFF_FILE)
1780 $(INSTALL_DATA) $(SCRIPTSOURCE)/scripts.vim $(SYS_SCRIPTS_FILE)
1781 chmod $(VIMSCRIPTMOD) $(SYS_SCRIPTS_FILE)
1782 $(INSTALL_DATA) $(SCRIPTSOURCE)/ftplugin.vim $(SYS_FTPLUGIN_FILE)
1783 chmod $(VIMSCRIPTMOD) $(SYS_FTPLUGIN_FILE)
1784 $(INSTALL_DATA) $(SCRIPTSOURCE)/ftplugof.vim $(SYS_FTPLUGOF_FILE)
1785 chmod $(VIMSCRIPTMOD) $(SYS_FTPLUGOF_FILE)
1786 $(INSTALL_DATA) $(SCRIPTSOURCE)/indent.vim $(SYS_INDENT_FILE)
1787 chmod $(VIMSCRIPTMOD) $(SYS_INDENT_FILE)
1788 $(INSTALL_DATA) $(SCRIPTSOURCE)/indoff.vim $(SYS_INDOFF_FILE)
1789 chmod $(VIMSCRIPTMOD) $(SYS_INDOFF_FILE)
1790 $(INSTALL_DATA) $(SCRIPTSOURCE)/optwin.vim $(SYS_OPTWIN_FILE)
1791 chmod $(VIMSCRIPTMOD) $(SYS_OPTWIN_FILE)
1792# install the print resource files
1793 cd $(PRINTSOURCE); $(INSTALL_DATA) *.ps $(DEST_PRINT)
1794 cd $(DEST_PRINT); chmod $(FILEMOD) *.ps
1795# install the colorscheme files
1796 cd $(COLSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_COL)
1797 cd $(DEST_COL); chmod $(HELPMOD) *.vim README.txt
1798# install the syntax files
1799 cd $(SYNSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_SYN)
1800 cd $(DEST_SYN); chmod $(HELPMOD) *.vim README.txt
1801# install the indent files
1802 cd $(INDSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_IND)
1803 cd $(DEST_IND); chmod $(HELPMOD) *.vim README.txt
1804# install the standard plugin files
1805 cd $(PLUGSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_PLUG)
1806 cd $(DEST_PLUG); chmod $(HELPMOD) *.vim README.txt
1807# install the ftplugin files
1808 cd $(FTPLUGSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_FTP)
1809 cd $(DEST_FTP); chmod $(HELPMOD) *.vim README.txt
1810# install the compiler files
1811 cd $(COMPSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_COMP)
1812 cd $(DEST_COMP); chmod $(HELPMOD) *.vim README.txt
1813
Bram Moolenaar582fd852005-03-28 20:58:01 +00001814installmacros: $(DEST_VIM) $(DEST_RT) $(DEST_MACRO)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001815 $(INSTALL_DATA_R) $(MACROSOURCE)/* $(DEST_MACRO)
1816 chmod $(DIRMOD) `find $(DEST_MACRO) -type d -print`
1817 chmod $(FILEMOD) `find $(DEST_MACRO) -type f -print`
1818 chmod $(SCRIPTMOD) $(DEST_MACRO)/less.sh
1819# When using CVS some CVS directories might have been copied.
1820 cvs=`find $(DEST_MACRO) \( -name CVS -o -name AAPDIR \) -print`; \
1821 if test -n "$$cvs"; then \
1822 rm -rf $$cvs; \
1823 fi
1824
1825# install the tutor files
Bram Moolenaar582fd852005-03-28 20:58:01 +00001826installtutor: $(DEST_VIM) $(DEST_RT) $(DEST_TUTOR)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001827 $(INSTALL_DATA) vimtutor $(DEST_BIN)/$(VIMNAME)tutor
1828 chmod $(SCRIPTMOD) $(DEST_BIN)/$(VIMNAME)tutor
1829 -$(INSTALL_DATA) $(TUTORSOURCE)/README* $(TUTORSOURCE)/tutor* $(DEST_TUTOR)
1830 chmod $(HELPMOD) $(DEST_TUTOR)/*
1831
Bram Moolenaar217ad922005-03-20 22:37:15 +00001832# Install the spell files, if they exist.
Bram Moolenaar582fd852005-03-28 20:58:01 +00001833installspell: $(DEST_VIM) $(DEST_RT) $(DEST_SPELL)
Bram Moolenaar0e21a3f2005-04-17 20:28:32 +00001834 if test -f $(SPELLSOURCE)/en.latin1.spl; then \
1835 $(INSTALL_DATA) $(SPELLSOURCE)/*.spl $(DEST_SPELL); \
1836 chmod $(HELPMOD) $(DEST_SPELL)/*.spl; \
1837 fi
1838 if test -f $(SPELLSOURCE)/en.utf-8.spl; then \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001839 $(INSTALL_DATA) $(SPELLSOURCE)/*.spl $(DEST_SPELL); \
1840 chmod $(HELPMOD) $(DEST_SPELL)/*.spl; \
1841 fi
1842
Bram Moolenaare1d12892004-06-13 13:02:36 +00001843# install helper program xxd
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001844installtools: $(TOOLS) $(DESTDIR)$(exec_prefix) $(DEST_BIN) \
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00001845 $(TOOLSSOURCE) $(DEST_VIM) $(DEST_RT) $(DEST_TOOLS) \
1846 $(INSTALL_TOOL_LANGS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001847 if test -f $(DEST_BIN)/xxd$(EXEEXT); then \
1848 mv -f $(DEST_BIN)/xxd$(EXEEXT) $(DEST_BIN)/xxd.rm; \
1849 rm -f $(DEST_BIN)/xxd.rm; \
1850 fi
1851 $(INSTALL_PROG) xxd/xxd$(EXEEXT) $(DEST_BIN)
1852 $(STRIP) $(DEST_BIN)/xxd$(EXEEXT)
1853 chmod $(BINMOD) $(DEST_BIN)/xxd$(EXEEXT)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001854 -$(SHELL) ./installman.sh xxd $(DEST_MAN) "" $(INSTALLMANARGS)
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00001855
Bram Moolenaare1d12892004-06-13 13:02:36 +00001856# install the runtime tools
1857 $(INSTALL_DATA_R) $(TOOLSSOURCE)/* $(DEST_TOOLS)
1858# When using CVS some CVS directories might have been copied.
1859 cvs=`find $(DEST_TOOLS) \( -name CVS -o -name AAPDIR \) -print`; \
1860 if test -n "$$cvs"; then \
1861 rm -rf $$cvs; \
1862 fi
1863 -chmod $(FILEMOD) $(DEST_TOOLS)/*
1864# replace the path in some tools
1865 perlpath=`./which.sh perl` && sed -e "s+/usr/bin/perl+$$perlpath+" $(TOOLSSOURCE)/efm_perl.pl >$(DEST_TOOLS)/efm_perl.pl
1866 awkpath=`./which.sh nawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \
1867 awkpath=`./which.sh gawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \
1868 awkpath=`./which.sh awk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; fi; fi
1869 -chmod $(SCRIPTMOD) `grep -l "^#!" $(DEST_TOOLS)/*`
1870
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00001871# install the language specific files for tools, if they were unpacked
1872install-tool-languages:
1873 -$(SHELL) ./installman.sh xxd $(DEST_MAN_FR) "-fr" $(INSTALLMANARGS)
1874 -$(SHELL) ./installman.sh xxd $(DEST_MAN_FR_I) "-fr" $(INSTALLMANARGS)
1875 -$(SHELL) ./installman.sh xxd $(DEST_MAN_FR_U) "-fr.UTF-8" $(INSTALLMANARGS)
1876 -$(SHELL) ./installman.sh xxd $(DEST_MAN_IT) "-it" $(INSTALLMANARGS)
1877 -$(SHELL) ./installman.sh xxd $(DEST_MAN_IT_I) "-it" $(INSTALLMANARGS)
1878 -$(SHELL) ./installman.sh xxd $(DEST_MAN_IT_U) "-it.UTF-8" $(INSTALLMANARGS)
1879 -$(SHELL) ./installman.sh xxd $(DEST_MAN_RU) "-ru" $(INSTALLMANARGS)
1880 -$(SHELL) ./installman.sh xxd $(DEST_MAN_RU_U) "-ru.UTF-8" $(INSTALLMANARGS)
1881
Bram Moolenaare1d12892004-06-13 13:02:36 +00001882# install the language specific files, if they were unpacked
1883install-languages: languages $(DEST_LANG) $(DEST_KMAP)
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00001884 -$(SHELL) ./installman.sh install $(DEST_MAN_FR) "-fr" $(INSTALLMANARGS)
1885 -$(SHELL) ./installman.sh install $(DEST_MAN_FR_I) "-fr" $(INSTALLMANARGS)
1886 -$(SHELL) ./installman.sh install $(DEST_MAN_FR_U) "-fr.UTF-8" $(INSTALLMANARGS)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001887 -$(SHELL) ./installman.sh install $(DEST_MAN_IT) "-it" $(INSTALLMANARGS)
Bram Moolenaar217ad922005-03-20 22:37:15 +00001888 -$(SHELL) ./installman.sh install $(DEST_MAN_IT_I) "-it" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001889 -$(SHELL) ./installman.sh install $(DEST_MAN_IT_U) "-it.UTF-8" $(INSTALLMANARGS)
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001890 -$(SHELL) ./installman.sh install $(DEST_MAN_RU) "-ru" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001891 -$(SHELL) ./installman.sh install $(DEST_MAN_RU_U) "-ru.UTF-8" $(INSTALLMANARGS)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001892 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00001893 $(DEST_MAN_FR) $(INSTALLMLARGS)
1894 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
1895 $(DEST_MAN_FR_I) $(INSTALLMLARGS)
1896 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
1897 $(DEST_MAN_FR_U) $(INSTALLMLARGS)
1898 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001899 $(DEST_MAN_IT) $(INSTALLMLARGS)
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001900 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001901 $(DEST_MAN_IT_I) $(INSTALLMLARGS)
1902 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001903 $(DEST_MAN_IT_U) $(INSTALLMLARGS)
1904 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001905 $(DEST_MAN_RU) $(INSTALLMLARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001906 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
1907 $(DEST_MAN_RU_U) $(INSTALLMLARGS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001908 if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
1909 cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) LOCALEDIR=$(DEST_LANG) \
1910 INSTALL_DATA=$(INSTALL_DATA) FILEMOD=$(FILEMOD) install; \
1911 fi
1912 if test -d $(LANGSOURCE); then \
1913 $(INSTALL_DATA) $(LANGSOURCE)/README.txt $(LANGSOURCE)/*.vim $(DEST_LANG); \
1914 chmod $(FILEMOD) $(DEST_LANG)/README.txt $(DEST_LANG)/*.vim; \
1915 fi
1916 if test -d $(KMAPSOURCE); then \
1917 $(INSTALL_DATA) $(KMAPSOURCE)/README.txt $(KMAPSOURCE)/*.vim $(DEST_KMAP); \
1918 chmod $(FILEMOD) $(DEST_KMAP)/README.txt $(DEST_KMAP)/*.vim; \
1919 fi
1920
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001921# Install the icons for the KDE GUI. This differs from the KDE icons for
1922# other GUIs.
Bram Moolenaar843ee412004-06-30 16:16:41 +00001923installkdeicons:
1924 mkdir -p $(DESTDIR)$(KDE_DIR)/share/applnk/Editors/
1925 mkdir -p $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/32x32/apps/
1926 mkdir -p $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/48x48/apps/
1927 mkdir -p $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/22x22/actions/
1928 mkdir -p $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/16x16/actions/
1929 mkdir -p $(DESTDIR)$(KDE_DIR)/share/apps/kvim
1930
1931 cp ../runtime/KVim.desktop $(DESTDIR)$(KDE_DIR)/share/applnk/Editors/ && chmod 644 $(DESTDIR)$(KDE_DIR)/share/applnk/Editors/KVim.desktop
1932 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
1933 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
1934 cp ../runtime/hi16-action-make.png $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/16x16/actions/hi16-action-make.png
1935 cp ../runtime/hi22-action-make.png $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/22x22/actions/hi22-action-make.png
1936 cp ../runtime/kde-tips $(DESTDIR)$(KDE_DIR)/share/apps/kvim/tips && chmod 644 $(DESTDIR)$(KDE_DIR)/share/apps/kvim/tips
1937
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001938# install the icons for KDE, if the directory exists and the icon doesn't.
Bram Moolenaare1d12892004-06-13 13:02:36 +00001939ICON48PATH = $(DESTDIR)$(DATADIR)/icons/hicolor/48x48/apps
1940ICON32PATH = $(DESTDIR)$(DATADIR)/icons/locolor/32x32/apps
1941ICON16PATH = $(DESTDIR)$(DATADIR)/icons/locolor/16x16/apps
1942KDEPATH = $(HOME)/.kde/share/icons
1943install-icons:
1944 if test -d $(ICON48PATH) -a -w $(ICON48PATH) \
1945 -a ! -f $(ICON48PATH)/gvim.png; then \
1946 $(INSTALL_DATA) $(SCRIPTSOURCE)/vim48x48.png $(ICON48PATH)/gvim.png; \
1947 fi
1948 if test -d $(ICON32PATH) -a -w $(ICON32PATH) \
1949 -a ! -f $(ICON32PATH)/gvim.png; then \
1950 $(INSTALL_DATA) $(SCRIPTSOURCE)/vim32x32.png $(ICON32PATH)/gvim.png; \
1951 fi
1952 if test -d $(ICON16PATH) -a -w $(ICON16PATH) \
1953 -a ! -f $(ICON16PATH)/gvim.png; then \
1954 $(INSTALL_DATA) $(SCRIPTSOURCE)/vim16x16.png $(ICON16PATH)/gvim.png; \
1955 fi
1956
1957
1958$(HELPSOURCE)/vim.1 $(MACROSOURCE) $(TOOLSSOURCE):
1959 @echo Runtime files not found.
1960 @echo You need to unpack the runtime archive before running "make install".
1961 test -f error
1962
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001963$(DESTDIR)$(exec_prefix) $(DEST_BIN) \
1964 $(DEST_VIM) $(DEST_RT) $(DEST_HELP) \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001965 $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND) $(DEST_FTP) \
1966 $(DEST_LANG) $(DEST_KMAP) $(DEST_COMP) \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001967 $(DEST_MACRO) $(DEST_TOOLS) $(DEST_TUTOR) $(DEST_SPELL) \
1968 $(DEST_PLUG):
Bram Moolenaare1d12892004-06-13 13:02:36 +00001969 -$(SHELL) ./mkinstalldirs $@
1970 -chmod $(DIRMOD) $@
1971
1972# create links from various names to vim. This is only done when the links
1973# (or executables with the same name) don't exist yet.
1974installlinks: $(GUI_TARGETS) \
1975 $(DEST_BIN)/$(EXTARGET) \
1976 $(DEST_BIN)/$(VIEWTARGET) \
1977 $(DEST_BIN)/$(RVIMTARGET) \
1978 $(DEST_BIN)/$(RVIEWTARGET) \
1979 $(INSTALLVIMDIFF)
1980
1981installglinks: $(DEST_BIN)/$(GVIMTARGET) \
1982 $(DEST_BIN)/$(GVIEWTARGET) \
1983 $(DEST_BIN)/$(RGVIMTARGET) \
1984 $(DEST_BIN)/$(RGVIEWTARGET) \
1985 $(DEST_BIN)/$(EVIMTARGET) \
1986 $(DEST_BIN)/$(EVIEWTARGET) \
1987 $(INSTALLGVIMDIFF)
1988
1989installvimdiff: $(DEST_BIN)/$(VIMDIFFTARGET)
1990installgvimdiff: $(DEST_BIN)/$(GVIMDIFFTARGET)
1991
1992$(DEST_BIN)/$(EXTARGET):
1993 cd $(DEST_BIN); ln -s $(VIMTARGET) $(EXTARGET)
1994
1995$(DEST_BIN)/$(VIEWTARGET):
1996 cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIEWTARGET)
1997
1998$(DEST_BIN)/$(GVIMTARGET):
1999 cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMTARGET)
2000
2001$(DEST_BIN)/$(GVIEWTARGET):
2002 cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIEWTARGET)
2003
2004$(DEST_BIN)/$(RVIMTARGET):
2005 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIMTARGET)
2006
2007$(DEST_BIN)/$(RVIEWTARGET):
2008 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIEWTARGET)
2009
2010$(DEST_BIN)/$(RGVIMTARGET):
2011 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIMTARGET)
2012
2013$(DEST_BIN)/$(RGVIEWTARGET):
2014 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIEWTARGET)
2015
2016$(DEST_BIN)/$(VIMDIFFTARGET):
2017 cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIMDIFFTARGET)
2018
2019$(DEST_BIN)/$(GVIMDIFFTARGET):
2020 cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMDIFFTARGET)
2021
2022$(DEST_BIN)/$(EVIMTARGET):
2023 cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIMTARGET)
2024
2025$(DEST_BIN)/$(EVIEWTARGET):
2026 cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIEWTARGET)
2027
2028# create links for the manual pages with various names to vim. This is only
2029# done when the links (or manpages with the same name) don't exist yet.
Bram Moolenaare1d12892004-06-13 13:02:36 +00002030
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002031INSTALLMLARGS = $(VIMNAME) $(VIMDIFFNAME) $(EVIMNAME) \
2032 $(EXNAME) $(VIEWNAME) $(RVIMNAME) $(RVIEWNAME) \
2033 $(GVIMNAME) $(GVIEWNAME) $(RGVIMNAME) $(RGVIEWNAME) \
2034 $(GVIMDIFFNAME) $(EVIEWNAME)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002035
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002036installmanlinks:
2037 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
2038 $(DEST_MAN) $(INSTALLMLARGS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002039
2040uninstall: uninstall_runtime
2041 -rm -f $(DEST_BIN)/$(VIMTARGET)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002042 -rm -f $(DEST_BIN)/vimtutor
Bram Moolenaare1d12892004-06-13 13:02:36 +00002043 -rm -f $(DEST_BIN)/$(EXTARGET) $(DEST_BIN)/$(VIEWTARGET)
2044 -rm -f $(DEST_BIN)/$(GVIMTARGET) $(DEST_BIN)/$(GVIEWTARGET)
2045 -rm -f $(DEST_BIN)/$(RVIMTARGET) $(DEST_BIN)/$(RVIEWTARGET)
2046 -rm -f $(DEST_BIN)/$(RGVIMTARGET) $(DEST_BIN)/$(RGVIEWTARGET)
2047 -rm -f $(DEST_BIN)/$(VIMDIFFTARGET) $(DEST_BIN)/$(GVIMDIFFTARGET)
2048 -rm -f $(DEST_BIN)/$(EVIMTARGET) $(DEST_BIN)/$(EVIEWTARGET)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002049 -rm -f $(DEST_BIN)/xxd$(EXEEXT)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002050
2051# Note: the "rmdir" will fail if any files were added after "make install"
2052uninstall_runtime:
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002053 -$(SHELL) ./installman.sh uninstall $(DEST_MAN) "" $(INSTALLMANARGS)
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00002054 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_FR) "" $(INSTALLMANARGS)
2055 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_FR_I) "" $(INSTALLMANARGS)
2056 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_FR_U) "" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002057 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_IT) "" $(INSTALLMANARGS)
Bram Moolenaar217ad922005-03-20 22:37:15 +00002058 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_IT_I) "" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002059 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_IT_U) "" $(INSTALLMANARGS)
2060 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_RU) "" $(INSTALLMANARGS)
2061 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_RU_U) "" $(INSTALLMANARGS)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002062 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2063 $(DEST_MAN) $(INSTALLMLARGS)
2064 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00002065 $(DEST_MAN_FR) $(INSTALLMLARGS)
2066 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2067 $(DEST_MAN_FR_I) $(INSTALLMLARGS)
2068 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2069 $(DEST_MAN_FR_U) $(INSTALLMLARGS)
2070 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002071 $(DEST_MAN_IT) $(INSTALLMLARGS)
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002072 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaar217ad922005-03-20 22:37:15 +00002073 $(DEST_MAN_IT_I) $(INSTALLMLARGS)
2074 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002075 $(DEST_MAN_IT_U) $(INSTALLMLARGS)
2076 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002077 $(DEST_MAN_RU) $(INSTALLMLARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002078 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2079 $(DEST_MAN_RU_U) $(INSTALLMLARGS)
2080 -rm -f $(DEST_MAN)/xxd.1
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00002081 -rm -f $(DEST_MAN_FR)/xxd.1 $(DEST_MAN_FR_I)/xxd.1 $(DEST_MAN_FR_U)/xxd.1
Bram Moolenaar217ad922005-03-20 22:37:15 +00002082 -rm -f $(DEST_MAN_IT)/xxd.1 $(DEST_MAN_IT_I)/xxd.1 $(DEST_MAN_IT_U)/xxd.1
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002083 -rm -f $(DEST_MAN_RU)/xxd.1 $(DEST_MAN_RU_U)/xxd.1
Bram Moolenaare1d12892004-06-13 13:02:36 +00002084 -rm -f $(DEST_HELP)/*.txt $(DEST_HELP)/tags $(DEST_HELP)/*.pl
2085 -rm -f $(DEST_HELP)/*.??x $(DEST_HELP)/tags-??
2086 -rm -f $(SYS_MENU_FILE) $(SYS_SYNMENU_FILE) $(SYS_DELMENU_FILE)
2087 -rm -f $(SYS_BUGR_FILE) $(EVIM_FILE) $(MSWIN_FILE)
2088 -rm -f $(DEST_SCRIPT)/gvimrc_example.vim $(DEST_SCRIPT)/vimrc_example.vim
2089 -rm -f $(SYS_FILETYPE_FILE) $(SYS_FTOFF_FILE) $(SYS_SCRIPTS_FILE)
2090 -rm -f $(SYS_INDOFF_FILE) $(SYS_INDENT_FILE)
2091 -rm -f $(SYS_FTPLUGOF_FILE) $(SYS_FTPLUGIN_FILE)
2092 -rm -f $(SYS_OPTWIN_FILE)
2093 -rm -f $(DEST_COL)/*.vim $(DEST_COL)/README.txt
2094 -rm -f $(DEST_SYN)/*.vim $(DEST_SYN)/README.txt
2095 -rm -f $(DEST_IND)/*.vim $(DEST_IND)/README.txt
2096 -rm -rf $(DEST_MACRO)
2097 -rm -rf $(DEST_TUTOR)
Bram Moolenaar217ad922005-03-20 22:37:15 +00002098 -rm -rf $(DEST_SPELL)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002099 -rm -rf $(DEST_TOOLS)
2100 -rm -rf $(DEST_LANG)
2101 -rm -rf $(DEST_KMAP)
2102 -rm -rf $(DEST_COMP)
2103 -rm -f $(DEST_PRINT)/*.ps
2104 -rmdir $(DEST_HELP) $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND)
2105 -rm -rf $(DEST_FTP)/*.vim $(DEST_FTP)/README.txt
2106 -rm -f $(DEST_PLUG)/*.vim $(DEST_PLUG)/README.txt
2107 -rmdir $(DEST_FTP) $(DEST_PLUG) $(DEST_RT)
2108# This will fail when other Vim versions are installed, no worries.
2109 -rmdir $(DEST_VIM)
2110
2111# Clean up all the files that have been produced, except configure's.
2112# We support common typing mistakes for Juergen! :-)
2113clean celan: testclean
2114 -rm -f *.o objects/* core $(VIMTARGET).core $(VIMTARGET) xxd/*.o
2115 -rm -f $(TOOLS) auto/osdef.h auto/pathdef.c auto/if_perl.c
2116 -rm -f conftest* *~ auto/link.sed
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002117 -rm -rf $(APPDIR)
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00002118 -rm -f gui_kde_wid_moc.cc kvim_iface_skel.cc *.kidl
Bram Moolenaare1d12892004-06-13 13:02:36 +00002119 if test -d $(PODIR); then \
2120 cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) clean; \
2121 fi
2122
2123# Make a shadow directory for compilation on another system or with different
2124# features.
2125SHADOWDIR = shadow
2126
2127shadow: runtime pixmaps
2128 mkdir $(SHADOWDIR)
2129 cd $(SHADOWDIR); ln -s ../*.[ch] ../*.in ../*.sh ../*.xs ../*.xbm ../toolcheck ../proto ../vimtutor ../mkinstalldirs .
2130 mkdir $(SHADOWDIR)/auto
2131 cd $(SHADOWDIR)/auto; ln -s ../../auto/configure .
2132 cd $(SHADOWDIR); rm -f auto/link.sed
2133 cp Makefile configure $(SHADOWDIR)
2134 rm -f $(SHADOWDIR)/auto/config.mk $(SHADOWDIR)/config.mk.dist
2135 cp config.mk.dist $(SHADOWDIR)/auto/config.mk
2136 cp config.mk.dist $(SHADOWDIR)
2137 mkdir $(SHADOWDIR)/xxd
2138 cd $(SHADOWDIR)/xxd; ln -s ../../xxd/*.[ch] ../../xxd/Make* .
2139 mkdir $(SHADOWDIR)/testdir
2140 cd $(SHADOWDIR)/testdir; ln -s ../../testdir/Makefile \
2141 ../../testdir/vimrc.unix \
2142 ../../testdir/*.in \
2143 ../../testdir/unix.vim \
2144 ../../testdir/*.ok .
2145
2146# Link needed for doing "make install" in a shadow directory.
2147runtime:
2148 -ln -s ../runtime .
2149
2150# Link needed for doing "make" using GTK in a shadow directory.
2151pixmaps:
2152 -ln -s ../pixmaps .
2153
2154# Update the synmenu.vim file with the latest Syntax menu.
2155# This is only needed when runtime/makemenu.vim was changed.
2156menu: ./vim ../runtime/makemenu.vim
2157 ./vim -u ../runtime/makemenu.vim
2158
2159# Start configure from scratch
2160scrub scratch:
2161 -rm -f auto/config.status auto/config.cache config.log auto/config.log
2162 -rm -f auto/config.h auto/link.log auto/link.sed auto/config.mk
2163 touch auto/config.h
2164 cp config.mk.dist auto/config.mk
2165
2166distclean: clean scratch
2167 -rm -f tags
2168
2169dist: distclean
2170 @echo
2171 @echo Making the distribution has to be done in the top directory
2172
2173mdepend:
2174 -@rm -f Makefile~
2175 cp Makefile Makefile~
2176 sed -e '/\#\#\# Dependencies/q' < Makefile > tmp_make
2177 @for i in $(ALL_SRC) ; do \
2178 echo "$$i" ; \
2179 echo `echo "$$i" | sed -e 's/[^ ]*\.c$$/objects\/\1.o/'`": $$i" `\
2180 $(CPP) $$i |\
2181 grep '^# .*"\./.*\.h"' |\
2182 sort -t'"' -u +1 -2 |\
2183 sed -e 's/.*"\.\/\(.*\)".*/\1/'\
2184 ` >> tmp_make ; \
2185 done
2186 mv tmp_make Makefile
2187
2188depend:
2189 -@rm -f Makefile~
2190 cp Makefile Makefile~
2191 sed -e '/\#\#\# Dependencies/q' < Makefile > tmp_make
2192 -for i in $(ALL_SRC); do echo $$i; \
2193 $(CPP_DEPEND) $$i | \
2194 sed -e 's+^\([^ ]*\.o\)+objects/\1+' >> tmp_make; done
2195 mv tmp_make Makefile
2196
Bram Moolenaar9d75c832005-01-25 21:57:23 +00002197# Run lint. Clean up the *.ln files that are sometimes left behind.
Bram Moolenaare1d12892004-06-13 13:02:36 +00002198lint:
Bram Moolenaar051b7822005-05-19 21:00:46 +00002199 lint $(LINT_OPTIONS) $(LINT_CFLAGS) $(LINT_EXTRA) $(LINT_SRC)
Bram Moolenaar9d75c832005-01-25 21:57:23 +00002200 -rm -f *.ln
Bram Moolenaare1d12892004-06-13 13:02:36 +00002201
2202# Check dosinst.c with lint.
2203lintinstall:
2204 lint $(LINT_OPTIONS) -DWIN32 -DUNIX_LINT dosinst.c
Bram Moolenaar9d75c832005-01-25 21:57:23 +00002205 -rm -f dosinst.ln
Bram Moolenaare1d12892004-06-13 13:02:36 +00002206
2207###########################################################################
2208
2209.c.o:
2210 $(CCC) $<
2211
2212.cc.o:
2213 $(CCC) $<
2214
2215auto/if_perl.c: if_perl.xs
2216 $(PERL) -e 'unless ( $$] >= 5.005 ) { for (qw(na defgv errgv)) { print "#define PL_$$_ $$_\n" }}' > $@
2217 $(PERL) $(PERLLIB)/ExtUtils/xsubpp -prototypes -typemap \
2218 $(PERLLIB)/ExtUtils/typemap if_perl.xs >> $@
2219
2220auto/osdef.h: auto/config.h osdef.sh osdef1.h.in osdef2.h.in
2221 CC="$(CC) $(ALL_CFLAGS)" srcdir=$(srcdir) sh $(srcdir)/osdef.sh
2222
2223QUOTESED = sed -e 's/"/\\"/g' -e 's/\\"/"/' -e 's/\\";$$/";/'
2224auto/pathdef.c: Makefile auto/config.mk
2225 -@echo creating $@
2226 -@echo '/* pathdef.c */' > $@
2227 -@echo '/* This file is automatically created by Makefile' >> $@
2228 -@echo ' * DO NOT EDIT! Change Makefile only. */' >> $@
2229 -@echo '#include "vim.h"' >> $@
2230 -@echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' | $(QUOTESED) >> $@
2231 -@echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' | $(QUOTESED) >> $@
2232 -@echo 'char_u *all_cflags = (char_u *)"$(CC) -c -I$(srcdir) $(ALL_CFLAGS)";' | $(QUOTESED) >> $@
2233 -@echo 'char_u *all_lflags = (char_u *)"$(CC) $(ALL_LIB_DIRS) $(LDFLAGS) -o $(VIMTARGET) $(ALL_LIBS) ";' | $(QUOTESED) >> $@
2234 -@echo 'char_u *compiled_user = (char_u *)"' | tr -d $(NL) >> $@
2235 -@if test -n "$(COMPILEDBY)"; then \
2236 echo "$(COMPILEDBY)" | tr -d $(NL) >> $@; \
2237 else ((logname) 2>/dev/null || whoami) | tr -d $(NL) >> $@; fi
2238 -@echo '";' >> $@
2239 -@echo 'char_u *compiled_sys = (char_u *)"' | tr -d $(NL) >> $@
2240 -@if test -z "$(COMPILEDBY)"; then hostname | tr -d $(NL) >> $@; fi
2241 -@echo '";' >> $@
2242 -@sh $(srcdir)/pathdef.sh
2243
2244# All the object files are put in the "objects" directory. Since not all make
2245# commands understand putting object files in another directory, it must be
2246# specified for each file separately.
2247
2248objects:
2249 mkdir objects
2250
2251objects/buffer.o: buffer.c
2252 $(CCC) -o $@ buffer.c
2253
2254objects/charset.o: charset.c
2255 $(CCC) -o $@ charset.c
2256
2257objects/diff.o: diff.c
2258 $(CCC) -o $@ diff.c
2259
2260objects/digraph.o: digraph.c
2261 $(CCC) -o $@ digraph.c
2262
2263objects/edit.o: edit.c
2264 $(CCC) -o $@ edit.c
2265
2266objects/eval.o: eval.c
2267 $(CCC) -o $@ eval.c
2268
2269objects/ex_cmds.o: ex_cmds.c
2270 $(CCC) -o $@ ex_cmds.c
2271
2272objects/ex_cmds2.o: ex_cmds2.c
2273 $(CCC) -o $@ ex_cmds2.c
2274
2275objects/ex_docmd.o: ex_docmd.c
2276 $(CCC) -o $@ ex_docmd.c
2277
2278objects/ex_eval.o: ex_eval.c
2279 $(CCC) -o $@ ex_eval.c
2280
2281objects/ex_getln.o: ex_getln.c
2282 $(CCC) -o $@ ex_getln.c
2283
2284objects/fileio.o: fileio.c
2285 $(CCC) -o $@ fileio.c
2286
2287objects/fold.o: fold.c
2288 $(CCC) -o $@ fold.c
2289
2290objects/getchar.o: getchar.c
2291 $(CCC) -o $@ getchar.c
2292
Bram Moolenaar58d98232005-07-23 22:25:46 +00002293objects/hardcopy.o: hardcopy.c
2294 $(CCC) -o $@ hardcopy.c
2295
Bram Moolenaar383f9bc2005-01-19 22:18:32 +00002296objects/hashtable.o: hashtable.c
2297 $(CCC) -o $@ hashtable.c
2298
Bram Moolenaare1d12892004-06-13 13:02:36 +00002299objects/gui.o: gui.c
2300 $(CCC) -o $@ gui.c
2301
2302objects/gui_at_fs.o: gui_at_fs.c
2303 $(CCC) -o $@ gui_at_fs.c
2304
2305objects/gui_at_sb.o: gui_at_sb.c
2306 $(CCC) -o $@ gui_at_sb.c
2307
2308objects/gui_athena.o: gui_athena.c
2309 $(CCC) -o $@ gui_athena.c
2310
Bram Moolenaare1d12892004-06-13 13:02:36 +00002311objects/gui_beval.o: gui_beval.c
2312 $(CCC) -o $@ gui_beval.c
2313
2314objects/gui_gtk.o: gui_gtk.c
2315 $(CCC) -o $@ gui_gtk.c
2316
2317objects/gui_gtk_f.o: gui_gtk_f.c
2318 $(CCC) -o $@ gui_gtk_f.c
2319
2320objects/gui_gtk_x11.o: gui_gtk_x11.c
2321 $(CCC) -o $@ gui_gtk_x11.c
2322
2323objects/gui_motif.o: gui_motif.c
2324 $(CCC) -o $@ gui_motif.c
2325
Bram Moolenaardfccaf02004-12-31 20:56:11 +00002326objects/gui_xmdlg.o: gui_xmdlg.c
2327 $(CCC) -o $@ gui_xmdlg.c
2328
Bram Moolenaarb7fcef52005-01-02 11:31:05 +00002329objects/gui_xmebw.o: gui_xmebw.c
2330 $(CCC) -o $@ gui_xmebw.c
2331
Bram Moolenaare1d12892004-06-13 13:02:36 +00002332objects/gui_x11.o: gui_x11.c
2333 $(CCC) -o $@ gui_x11.c
2334
2335objects/gui_photon.o: gui_photon.c
2336 $(CCC) -o $@ gui_photon.c
2337
2338objects/gui_mac.o: gui_mac.c
2339 $(CCC) -o $@ gui_mac.c
2340
2341objects/hangulin.o: hangulin.c
2342 $(CCC) -o $@ hangulin.c
2343
2344objects/if_cscope.o: if_cscope.c
2345 $(CCC) -o $@ if_cscope.c
2346
2347objects/if_xcmdsrv.o: if_xcmdsrv.c
2348 $(CCC) -o $@ if_xcmdsrv.c
2349
Bram Moolenaar325b7a22004-07-05 15:58:32 +00002350objects/if_mzsch.o: if_mzsch.c
2351 $(CCC) -o $@ if_mzsch.c
2352
Bram Moolenaare1d12892004-06-13 13:02:36 +00002353objects/if_perl.o: auto/if_perl.c
2354 $(CCC) -o $@ auto/if_perl.c
2355
2356objects/if_perlsfio.o: if_perlsfio.c
2357 $(CCC) -o $@ if_perlsfio.c
2358
2359objects/if_python.o: if_python.c
2360 $(CCC) -o $@ if_python.c
2361
2362objects/if_ruby.o: if_ruby.c
2363 $(CCC) -o $@ if_ruby.c
2364
2365objects/if_sniff.o: if_sniff.c
2366 $(CCC) -o $@ if_sniff.c
2367
2368objects/if_tcl.o: if_tcl.c
2369 $(CCC) -o $@ if_tcl.c
2370
2371objects/integration.o: integration.c
2372 $(CCC) -o $@ integration.c
2373
2374objects/main.o: main.c
2375 $(CCC) -o $@ main.c
2376
2377objects/mark.o: mark.c
2378 $(CCC) -o $@ mark.c
2379
2380objects/memfile.o: memfile.c
2381 $(CCC) -o $@ memfile.c
2382
2383objects/memline.o: memline.c
2384 $(CCC) -o $@ memline.c
2385
2386objects/menu.o: menu.c
2387 $(CCC) -o $@ menu.c
2388
2389objects/message.o: message.c
2390 $(CCC) -o $@ message.c
2391
2392objects/misc1.o: misc1.c
2393 $(CCC) -o $@ misc1.c
2394
2395objects/misc2.o: misc2.c
2396 $(CCC) -o $@ misc2.c
2397
2398objects/move.o: move.c
2399 $(CCC) -o $@ move.c
2400
2401objects/mbyte.o: mbyte.c
2402 $(CCC) -o $@ mbyte.c
2403
2404objects/normal.o: normal.c
2405 $(CCC) -o $@ normal.c
2406
2407objects/ops.o: ops.c
2408 $(CCC) -o $@ ops.c
2409
2410objects/option.o: option.c
2411 $(CCC) -o $@ option.c
2412
2413objects/os_beos.o: os_beos.c
2414 $(CCC) -o $@ os_beos.c
2415
2416objects/os_qnx.o: os_qnx.c
2417 $(CCC) -o $@ os_qnx.c
2418
2419objects/os_macosx.o: os_macosx.c
2420 $(CCC) -o $@ os_macosx.c
2421
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002422objects/os_mac_conv.o: os_mac_conv.c
2423 $(CCC) -o $@ os_mac_conv.c
2424
Bram Moolenaare1d12892004-06-13 13:02:36 +00002425objects/os_unix.o: os_unix.c
2426 $(CCC) -o $@ os_unix.c
2427
2428objects/pathdef.o: auto/pathdef.c
2429 $(CCC) -o $@ auto/pathdef.c
2430
2431objects/py_config.o: $(PYTHON_CONFDIR)/config.c
2432 $(CCC) -o $@ $(PYTHON_CONFDIR)/config.c \
2433 -I$(PYTHON_CONFDIR) -DHAVE_CONFIG_H -DNO_MAIN
2434
2435objects/py_getpath.o: $(PYTHON_CONFDIR)/getpath.c
2436 $(CCC) -o $@ $(PYTHON_CONFDIR)/getpath.c \
2437 -I$(PYTHON_CONFDIR) -DHAVE_CONFIG_H -DNO_MAIN \
2438 $(PYTHON_GETPATH_CFLAGS)
2439
2440objects/pty.o: pty.c
2441 $(CCC) -o $@ pty.c
2442
2443objects/quickfix.o: quickfix.c
2444 $(CCC) -o $@ quickfix.c
2445
2446objects/regexp.o: regexp.c
2447 $(CCC) -o $@ regexp.c
2448
2449objects/screen.o: screen.c
2450 $(CCC) -o $@ screen.c
2451
2452objects/search.o: search.c
2453 $(CCC) -o $@ search.c
2454
Bram Moolenaar217ad922005-03-20 22:37:15 +00002455objects/spell.o: spell.c
2456 $(CCC) -o $@ spell.c
2457
Bram Moolenaare1d12892004-06-13 13:02:36 +00002458objects/syntax.o: syntax.c
2459 $(CCC) -o $@ syntax.c
2460
2461objects/tag.o: tag.c
2462 $(CCC) -o $@ tag.c
2463
2464objects/term.o: term.c
2465 $(CCC) -o $@ term.c
2466
2467objects/ui.o: ui.c
2468 $(CCC) -o $@ ui.c
2469
2470objects/undo.o: undo.c
2471 $(CCC) -o $@ undo.c
2472
2473objects/window.o: window.c
2474 $(CCC) -o $@ window.c
2475
2476objects/workshop.o: workshop.c
2477 $(CCC) -o $@ workshop.c
2478
2479objects/wsdebug.o: wsdebug.c
2480 $(CCC) -o $@ wsdebug.c
2481
Bram Moolenaar843ee412004-06-30 16:16:41 +00002482objects/gui_kde.o: gui_kde.cc
2483 $(CCC) -o $@ gui_kde.cc
2484
2485objects/gui_kde_x11.o: gui_kde_x11.cc
2486 $(CCC) -o $@ gui_kde_x11.cc
2487
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00002488objects/gui_kde_wid.o: gui_kde_wid.cc
2489 $(MOC) -o gui_kde_wid_moc.cc gui_kde_wid.h
Bram Moolenaar843ee412004-06-30 16:16:41 +00002490 $(KDE_DIR)/bin/dcopidl kvim_iface.h > kvim_iface.kidl || ( rm -f kvim_iface.kidl ; /bin/false )
2491 $(KDE_DIR)/bin/dcopidl2cpp --c++-suffix cc --no-stub kvim_iface.kidl
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00002492 $(CCC) -o $@ gui_kde_wid.cc
Bram Moolenaar843ee412004-06-30 16:16:41 +00002493
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00002494gui_kde_wid_moc.cc: objects/gui_kde_wid.o
2495objects/gui_kde_wid_moc.o: gui_kde_wid_moc.cc
2496 $(CCC) -o $@ gui_kde_wid_moc.cc
Bram Moolenaar843ee412004-06-30 16:16:41 +00002497
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00002498kvim_iface_skel.cc: objects/gui_kde_wid.o
Bram Moolenaar843ee412004-06-30 16:16:41 +00002499objects/kvim_iface_skel.o: kvim_iface_skel.cc
2500 $(CCC) -o $@ kvim_iface_skel.cc
2501
Bram Moolenaare1d12892004-06-13 13:02:36 +00002502objects/netbeans.o: netbeans.c
2503 $(CCC) -o $@ netbeans.c
2504
2505Makefile:
2506 @echo The name of the makefile MUST be "Makefile" (with capital M)!!!!
2507
2508###############################################################################
2509### MacOS X installation
2510###
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002511### This installs a runnable Vim.app in $(prefix)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002512
2513REZ = /Developer/Tools/Rez
Bram Moolenaare1d12892004-06-13 13:02:36 +00002514RESDIR = $(APPDIR)/Contents/Resources
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00002515VERSION = $(VIMMAJOR).$(VIMMINOR)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002516
2517### Common flags
2518M4FLAGSX = $(M4FLAGS) -DAPP_EXE=$(VIMNAME) -DAPP_NAME=$(VIMNAME) \
2519 -DAPP_VER=$(VERSION) -DICON_APP=$(ICON_APP)
2520
2521### Icons
2522ICON_APP = gui_mac.icns
2523ICONS = $(RESDIR)/$(ICON_APP)
2524
2525# If you uncomment the following lines the *.icns in the src directory will be
2526# detected by this Makefile automatically, and used for Vim.
2527#ICON_APP = $(shell if [ -e app.icns ] ; then echo app.icns ; else echo gui_mac.icns ; fi)
2528#ICON_DOC = $(shell if [ -e doc.icns ] ; then echo doc.icns ; else echo ; fi)
2529#ICON_DOCTXT = $(shell if [ -e doc-txt.icns ] ; then echo doc-txt.icns ; else echo ; fi)
2530#ICONS = $(addprefix $(RESDIR)/, $(ICON_APP) $(ICON_DOC) $(ICON_DOCTXT))
2531
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002532install_macosx: gui_bundle
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002533 $(INSTALL_DATA_R) $(APPDIR) $(DESTDIR)$(prefix)
2534
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002535gui_bundle: $(APPDIR) bundle-dir bundle-executable bundle-info bundle-resource \
Bram Moolenaare1d12892004-06-13 13:02:36 +00002536 bundle-language
2537
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002538$(APPDIR):
2539 mkdir -p $@
2540
Bram Moolenaare1d12892004-06-13 13:02:36 +00002541bundle-dir: $(APPDIR)/Contents $(VIMTARGET)
2542 -@srcdir=`pwd`; cd $(HELPSOURCE); $(MAKE) VIMEXE=$$srcdir/$(VIMTARGET) vimtags
2543 cp -R ../runtime $(APPDIR)
Bram Moolenaardf177f62005-02-22 08:39:57 +00002544# When using CVS some CVS directories might have been copied.
2545 cvs=`find $(APPDIR) \( -name CVS -o -name AAPDIR \) -print`; \
2546 if test -n "$$cvs"; then \
2547 rm -rf $$cvs; \
2548 fi
Bram Moolenaare1d12892004-06-13 13:02:36 +00002549
2550bundle-executable: $(VIMTARGET)
2551 cp $(VIMTARGET) $(APPDIR)/Contents/MacOS/$(VIMTARGET)
2552
2553bundle-info: bundle-dir
2554 @echo "Creating PkgInfo"
2555 @echo -n "APPLVIM!" > $(APPDIR)/Contents/PkgInfo
2556 @echo "Creating Info.plist"
2557 m4 $(M4FLAGSX) infplist.xml > $(APPDIR)/Contents/Info.plist
2558
2559bundle-resource: bundle-dir bundle-icons bundle-rsrc
2560
2561bundle-icons: $(ICONS)
2562
2563### Classic resources
2564# Resource fork (in the form of a .rsrc file) for Classic Vim (Mac OS 9)
2565# This file is also required for OS X Vim.
2566bundle-rsrc: os_mac.rsr.hqx
2567 @echo "Creating resource fork"
2568 python dehqx.py $<
2569 rm -f gui_mac.rsrc
2570 mv gui_mac.rsrc.rsrcfork $(RESDIR)/$(VIMNAME).rsrc
2571
2572# po/Make_osx.pl says something about generating a Mac message file
2573# for Ukrananian. Would somebody using Mac OS X in Ukranian
2574# *really* be upset that Carbon Vim was not localised in
2575# Ukranian?
2576#
2577#bundle-language: bundle-dir po/Make_osx.pl
2578# cd po && perl Make_osx.pl --outdir ../$(RESDIR) $(MULTILANG)
2579bundle-language: bundle-dir
2580
2581$(APPDIR)/Contents:
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002582 -$(SHELL) ./mkinstalldirs $(APPDIR)/Contents/MacOS
2583 -$(SHELL) ./mkinstalldirs $(RESDIR)/English.lproj
Bram Moolenaare1d12892004-06-13 13:02:36 +00002584
2585$(RESDIR)/%.icns: %.icns
2586 cp $< $@
2587
2588
2589###############################################################################
2590### (automatically generated by 'make depend')
2591### Dependencies:
2592objects/buffer.o: buffer.c vim.h auto/config.h feature.h os_unix.h \
2593 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2594 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2595 globals.h farsi.h arabic.h version.h
2596objects/charset.o: charset.c vim.h auto/config.h feature.h os_unix.h \
2597 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2598 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2599 globals.h farsi.h arabic.h
2600objects/diff.o: diff.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2601 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2602 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2603 arabic.h
2604objects/digraph.o: digraph.c vim.h auto/config.h feature.h os_unix.h \
2605 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2606 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2607 globals.h farsi.h arabic.h
2608objects/edit.o: edit.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2609 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2610 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2611 arabic.h
2612objects/eval.o: eval.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2613 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2614 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2615 arabic.h version.h
2616objects/ex_cmds.o: ex_cmds.c vim.h auto/config.h feature.h os_unix.h \
2617 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2618 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2619 globals.h farsi.h arabic.h version.h
2620objects/ex_cmds2.o: ex_cmds2.c vim.h auto/config.h feature.h os_unix.h \
2621 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2622 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2623 globals.h farsi.h arabic.h version.h
2624objects/ex_docmd.o: ex_docmd.c vim.h auto/config.h feature.h os_unix.h \
2625 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2626 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2627 globals.h farsi.h arabic.h
2628objects/ex_eval.o: ex_eval.c vim.h auto/config.h feature.h os_unix.h \
2629 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2630 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2631 globals.h farsi.h arabic.h
2632objects/ex_getln.o: ex_getln.c vim.h auto/config.h feature.h os_unix.h \
2633 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2634 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2635 globals.h farsi.h arabic.h
2636objects/fileio.o: fileio.c vim.h auto/config.h feature.h os_unix.h \
2637 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2638 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2639 globals.h farsi.h arabic.h
2640objects/fold.o: fold.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2641 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2642 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2643 arabic.h
2644objects/getchar.o: getchar.c vim.h auto/config.h feature.h os_unix.h \
2645 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2646 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2647 globals.h farsi.h arabic.h
Bram Moolenaar58d98232005-07-23 22:25:46 +00002648objects/hardcopy.o: hardcopy.c vim.h auto/config.h feature.h os_unix.h \
2649 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2650 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2651 globals.h farsi.h arabic.h
Bram Moolenaar383f9bc2005-01-19 22:18:32 +00002652objects/hashtable.o: hashtable.c vim.h auto/config.h feature.h os_unix.h \
2653 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2654 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2655 globals.h farsi.h arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002656objects/if_cscope.o: if_cscope.c vim.h auto/config.h feature.h os_unix.h \
2657 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2658 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2659 globals.h farsi.h arabic.h if_cscope.h
2660objects/if_xcmdsrv.o: if_xcmdsrv.c vim.h auto/config.h feature.h os_unix.h \
2661 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2662 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2663 globals.h farsi.h arabic.h version.h
2664objects/main.o: main.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2665 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2666 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2667 arabic.h farsi.c arabic.c
2668objects/mark.o: mark.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2669 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2670 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2671 arabic.h
2672objects/memfile.o: memfile.c vim.h auto/config.h feature.h os_unix.h \
2673 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2674 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2675 globals.h farsi.h arabic.h
2676objects/memline.o: memline.c vim.h auto/config.h feature.h os_unix.h \
2677 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2678 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2679 globals.h farsi.h arabic.h
2680objects/menu.o: menu.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2681 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2682 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2683 arabic.h
2684objects/message.o: message.c vim.h auto/config.h feature.h os_unix.h \
2685 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2686 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2687 globals.h farsi.h arabic.h
2688objects/misc1.o: misc1.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2689 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2690 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2691 arabic.h version.h
2692objects/misc2.o: misc2.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2693 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2694 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2695 arabic.h
2696objects/move.o: move.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2697 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2698 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2699 arabic.h
2700objects/mbyte.o: mbyte.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2701 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2702 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2703 arabic.h
2704objects/normal.o: normal.c vim.h auto/config.h feature.h os_unix.h \
2705 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2706 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2707 globals.h farsi.h arabic.h
2708objects/ops.o: ops.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2709 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2710 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2711 arabic.h
2712objects/option.o: option.c vim.h auto/config.h feature.h os_unix.h \
2713 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2714 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2715 globals.h farsi.h arabic.h
2716objects/os_unix.o: os_unix.c vim.h auto/config.h feature.h os_unix.h \
2717 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2718 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2719 globals.h farsi.h arabic.h os_unixx.h
2720objects/pathdef.o: auto/pathdef.c vim.h auto/config.h feature.h os_unix.h \
2721 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2722 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2723 globals.h farsi.h arabic.h
2724objects/quickfix.o: quickfix.c vim.h auto/config.h feature.h os_unix.h \
2725 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2726 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2727 globals.h farsi.h arabic.h
2728objects/regexp.o: regexp.c vim.h auto/config.h feature.h os_unix.h \
2729 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2730 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2731 globals.h farsi.h arabic.h
2732objects/screen.o: screen.c vim.h auto/config.h feature.h os_unix.h \
2733 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2734 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2735 globals.h farsi.h arabic.h
2736objects/search.o: search.c vim.h auto/config.h feature.h os_unix.h \
2737 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2738 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2739 globals.h farsi.h arabic.h
Bram Moolenaar217ad922005-03-20 22:37:15 +00002740objects/spell.o: spell.c vim.h auto/config.h feature.h os_unix.h \
2741 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2742 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2743 globals.h farsi.h arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002744objects/syntax.o: syntax.c vim.h auto/config.h feature.h os_unix.h \
2745 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2746 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2747 globals.h farsi.h arabic.h
2748objects/tag.o: tag.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2749 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2750 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2751 arabic.h
2752objects/term.o: term.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2753 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2754 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2755 arabic.h
2756objects/ui.o: ui.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2757 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2758 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2759 arabic.h
2760objects/undo.o: undo.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2761 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2762 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2763 arabic.h
2764objects/version.o: version.c vim.h auto/config.h feature.h os_unix.h \
2765 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2766 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2767 globals.h farsi.h arabic.h version.h
2768objects/window.o: window.c vim.h auto/config.h feature.h os_unix.h \
2769 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2770 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2771 globals.h farsi.h arabic.h
2772objects/gui.o: gui.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2773 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2774 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2775 arabic.h
2776objects/gui_gtk.o: gui_gtk.c gui_gtk_f.h vim.h auto/config.h feature.h \
2777 os_unix.h auto/osdef.h ascii.h keymap.h term.h macros.h structs.h \
2778 regexp.h gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h \
2779 proto.h globals.h farsi.h arabic.h ../pixmaps/stock_icons.h
2780objects/gui_gtk_f.o: gui_gtk_f.c vim.h auto/config.h feature.h os_unix.h \
2781 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2782 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2783 globals.h farsi.h arabic.h gui_gtk_f.h
2784objects/gui_motif.o: gui_motif.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 ../pixmaps/alert.xpm ../pixmaps/error.xpm \
2788 ../pixmaps/generic.xpm ../pixmaps/info.xpm ../pixmaps/quest.xpm
2789objects/gui_athena.o: gui_athena.c vim.h auto/config.h feature.h os_unix.h \
2790 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2791 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2792 globals.h farsi.h arabic.h gui_at_sb.h
2793objects/gui_gtk_x11.o: gui_gtk_x11.c vim.h auto/config.h feature.h os_unix.h \
2794 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2795 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2796 globals.h farsi.h arabic.h gui_gtk_f.h ../runtime/vim32x32.xpm \
2797 ../runtime/vim16x16.xpm ../runtime/vim48x48.xpm
2798objects/gui_x11.o: gui_x11.c vim.h auto/config.h feature.h os_unix.h \
2799 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2800 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2801 globals.h farsi.h arabic.h ../runtime/vim32x32.xpm \
2802 ../runtime/vim16x16.xpm ../runtime/vim48x48.xpm ../pixmaps/tb_new.xpm \
2803 ../pixmaps/tb_open.xpm ../pixmaps/tb_close.xpm ../pixmaps/tb_save.xpm \
2804 ../pixmaps/tb_print.xpm ../pixmaps/tb_cut.xpm ../pixmaps/tb_copy.xpm \
2805 ../pixmaps/tb_paste.xpm ../pixmaps/tb_find.xpm \
2806 ../pixmaps/tb_find_next.xpm ../pixmaps/tb_find_prev.xpm \
2807 ../pixmaps/tb_find_help.xpm ../pixmaps/tb_exit.xpm \
2808 ../pixmaps/tb_undo.xpm ../pixmaps/tb_redo.xpm ../pixmaps/tb_help.xpm \
2809 ../pixmaps/tb_macro.xpm ../pixmaps/tb_make.xpm \
2810 ../pixmaps/tb_save_all.xpm ../pixmaps/tb_jump.xpm \
2811 ../pixmaps/tb_ctags.xpm ../pixmaps/tb_load_session.xpm \
2812 ../pixmaps/tb_save_session.xpm ../pixmaps/tb_new_session.xpm \
2813 ../pixmaps/tb_blank.xpm ../pixmaps/tb_maximize.xpm \
2814 ../pixmaps/tb_split.xpm ../pixmaps/tb_minimize.xpm \
2815 ../pixmaps/tb_shell.xpm ../pixmaps/tb_replace.xpm \
2816 ../pixmaps/tb_vsplit.xpm ../pixmaps/tb_maxwidth.xpm \
2817 ../pixmaps/tb_minwidth.xpm
2818objects/gui_at_sb.o: gui_at_sb.c vim.h auto/config.h feature.h os_unix.h \
2819 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2820 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2821 globals.h farsi.h arabic.h gui_at_sb.h
2822objects/gui_at_fs.o: gui_at_fs.c vim.h auto/config.h feature.h os_unix.h \
2823 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2824 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2825 globals.h farsi.h arabic.h gui_at_sb.h
2826objects/pty.o: pty.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2827 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2828 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2829 arabic.h
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00002830objects/gui_kde.o: gui_kde.cc gui_kde_wid.h kvim_iface.h vim.h \
Bram Moolenaar843ee412004-06-30 16:16:41 +00002831 auto/config.h feature.h os_unix.h auto/osdef.h ascii.h keymap.h \
2832 term.h macros.h structs.h regexp.h gui.h option.h ex_cmds.h proto.h \
2833 globals.h farsi.h
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00002834objects/gui_kde_wid.o: gui_kde_wid.cc gui_kde_wid.h kvim_iface.h \
Bram Moolenaar843ee412004-06-30 16:16:41 +00002835 vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h keymap.h \
2836 term.h macros.h structs.h regexp.h gui.h option.h ex_cmds.h proto.h \
2837 globals.h farsi.h proto/../../pixmaps/alert.xpm proto/../../pixmaps/error.xpm \
2838 proto/../../pixmaps/generic.xpm proto/../../pixmaps/info.xpm \
2839 proto/../../pixmaps/quest.xpm
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00002840objects/gui_kde_x11.o: gui_kde_x11.cc gui_kde_wid.h kvim_iface.h vim.h \
Bram Moolenaar843ee412004-06-30 16:16:41 +00002841 auto/config.h feature.h os_unix.h auto/osdef.h ascii.h keymap.h \
2842 term.h macros.h structs.h regexp.h gui.h option.h ex_cmds.h proto.h \
2843 globals.h farsi.h version.h ../runtime/vim32x32.xpm
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00002844objects/gui_kde_wid_moc.o: gui_kde_wid_moc.cc gui_kde_wid.h \
Bram Moolenaar843ee412004-06-30 16:16:41 +00002845 kvim_iface.h vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2846 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h option.h \
2847 ex_cmds.h proto.h globals.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002848objects/hangulin.o: hangulin.c vim.h auto/config.h feature.h os_unix.h \
2849 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2850 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2851 globals.h farsi.h arabic.h
Bram Moolenaar325b7a22004-07-05 15:58:32 +00002852objects/if_mzsch.o: if_mzsch.c vim.h auto/config.h feature.h os_unix.h \
2853 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2854 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2855 globals.h farsi.h arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002856objects/if_perl.o: auto/if_perl.c vim.h auto/config.h feature.h os_unix.h \
2857 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2858 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2859 globals.h farsi.h arabic.h
2860objects/if_perlsfio.o: if_perlsfio.c vim.h auto/config.h feature.h os_unix.h \
2861 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2862 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2863 globals.h farsi.h arabic.h
2864objects/if_python.o: if_python.c vim.h auto/config.h feature.h os_unix.h \
2865 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2866 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2867 globals.h farsi.h arabic.h
2868objects/if_tcl.o: if_tcl.c vim.h auto/config.h feature.h os_unix.h \
2869 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2870 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2871 globals.h farsi.h arabic.h
2872objects/if_ruby.o: if_ruby.c vim.h auto/config.h feature.h os_unix.h \
2873 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2874 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2875 globals.h farsi.h arabic.h version.h
2876objects/if_sniff.o: if_sniff.c vim.h auto/config.h feature.h os_unix.h \
2877 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2878 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2879 globals.h farsi.h arabic.h os_unixx.h
2880objects/gui_beval.o: gui_beval.c vim.h auto/config.h feature.h os_unix.h \
2881 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2882 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2883 globals.h farsi.h arabic.h
2884objects/workshop.o: workshop.c auto/config.h integration.h vim.h feature.h \
2885 os_unix.h auto/osdef.h ascii.h keymap.h term.h macros.h structs.h \
2886 regexp.h gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h \
2887 proto.h globals.h farsi.h arabic.h version.h workshop.h
2888objects/wsdebug.o: wsdebug.c
2889objects/integration.o: integration.c vim.h auto/config.h feature.h os_unix.h \
2890 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2891 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2892 globals.h farsi.h arabic.h integration.h
2893objects/netbeans.o: netbeans.c vim.h auto/config.h feature.h os_unix.h \
2894 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2895 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2896 globals.h farsi.h arabic.h version.h