blob: 16d3338ecde04266ef49c03c3972b83f93ff956d [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.
373#CONF_OPT_PYTHON = --enable-pythoninterp
374
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000375# TCL
Bram Moolenaare1d12892004-06-13 13:02:36 +0000376# Uncomment this when you want to include the Tcl interface.
377#CONF_OPT_TCL = --enable-tclinterp
378
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000379# RUBY
Bram Moolenaare1d12892004-06-13 13:02:36 +0000380# Uncomment this when you want to include the Ruby interface.
381#CONF_OPT_RUBY = --enable-rubyinterp
382
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000383# MZSCHEME
384# Uncomment this when you want to include the MzScheme interface.
385#CONF_OPT_MZSCHEME = --enable-mzschemeinterp
386# PLT/mrscheme/drscheme Home dir; the PLTHOME environment variable also works
387#CONF_OPT_PLTHOME = --with-plthome=/usr/local/plt
388#CONF_OPT_PLTHOME = --with-plthome=/usr/local/drscheme
389#CONF_OPT_PLTHOME = --with-plthome=/home/me/mz
390
391# CSCOPE
Bram Moolenaare1d12892004-06-13 13:02:36 +0000392# Uncomment this when you want to include the Cscope interface.
393#CONF_OPT_CSCOPE = --enable-cscope
394
395# WORKSHOP - Sun Visual Workshop interface. Only works with Motif!
396#CONF_OPT_WORKSHOP = --enable-workshop
397
398# NETBEANS - NetBeans interface. Only works with Motif, GTK, and gnome.
399# Motif version must have XPM libraries (see |workshop-xpm|).
400# Uncomment this when you do not want the netbeans interface.
401#CONF_OPT_NETBEANS = --disable-netbeans
402
403# SNIFF - Include support for SNiFF+.
404#CONF_OPT_SNIFF = --enable-sniff
405
406# MULTIBYTE - To edit multi-byte characters.
407# Uncomment this when you want to edit a multibyte language.
408# It's automatically enabled with big features or IME support.
409# Note: Compile on a machine where setlocale() actually works, otherwise the
410# configure tests may fail.
411#CONF_OPT_MULTIBYTE = --enable-multibyte
412
413# NLS - National Language Support
414# Uncomment this when you do not want to support translated messages, even
415# though configure can find support for it.
416#CONF_OPT_NLS = --disable-nls
417
418# XIM - X Input Method. Special character input support for X11 (chinese,
419# japanese, special symbols, etc). Also needed for dead-key support.
420# When omitted it's automatically enabled for the X-windows GUI.
421# HANGUL - Input Hangul (korean) language using internal routines.
422# Uncomment one of these when you want to input a multibyte language.
423#CONF_OPT_INPUT = --enable-xim
424#CONF_OPT_INPUT = --disable-xim
425#CONF_OPT_INPUT = --enable-hangulinput
426
427# FONTSET - X fontset support for output of languages with many characters.
428# Uncomment this when you want to output a multibyte language.
429#CONF_OPT_OUTPUT = --enable-fontset
430
431# ACL - Uncomment this when you do not want to include ACL support, even
432# though your system does support it. E.g., when it's buggy.
433#CONF_OPT_ACL = --disable-acl
434
435# gpm - For mouse support on Linux console via gpm
436# Uncomment this when you do not want to include gpm support, even
437# though you have gpm libraries and includes
438#CONF_OPT_GPM = --disable-gpm
439
440# FEATURES - For creating Vim with more or less features
441# Uncomment one of these lines when you want to include few to many features.
442# The default is "normal".
443#CONF_OPT_FEAT = --with-features=tiny
444#CONF_OPT_FEAT = --with-features=small
445#CONF_OPT_FEAT = --with-features=normal
446#CONF_OPT_FEAT = --with-features=big
Bram Moolenaar69a7cb42004-06-20 12:51:53 +0000447#CONF_OPT_FEAT = --with-features=huge
Bram Moolenaare1d12892004-06-13 13:02:36 +0000448
449# COMPILED BY - For including a specific e-mail address for ":version".
450#CONF_OPT_COMPBY = "--with-compiledby=John Doe <JohnDoe@yahoo.com>"
451
452# X WINDOWS DISABLE - For creating a plain Vim without any X11 related fancies
453# (otherwise Vim configure will try to include xterm titlebar access)
454# Also disable the GUI above, otherwise it will be included anyway.
455# When both GUI and X11 have been disabled this may save about 15% of the
456# code and make Vim startup quicker.
457#CONF_OPT_X = --without-x
458
459# X WINDOWS DIRECTORY - specify X directories
460# If configure can't find you X stuff, or if you have multiple X11 derivates
461# installed, you may wish to specify which one to use.
462# Select nothing to let configure choose.
463# This here selects openwin (as found on sun).
464#XROOT = /usr/openwin
465#CONF_OPT_X = --x-include=$(XROOT)/include --x-libraries=$(XROOT)/lib
466
467# X11 Session Management Protocol support
468# Vim will try to use XSMP to catch the user logging out if there are unsaved
469# files. Uncomment this line to disable that (it prevents vim trying to open
470# communications with the session manager).
471#CONF_OPT_XSMP = --disable-xsmp
472
473# You may wish to include xsmp but use exclude xsmp-interact if the logout
474# XSMP functionality does not work well with your session-manager (at time of
475# writing, this would be early GNOME-1 gnome-session: it 'freezes' other
476# applications after Vim has cancelled a logout (until Vim quits). This
477# *might* be the Vim code, but is more likely a bug in early GNOME-1.
478# This disables the dialog that asks you if you want to save files or not.
479#CONF_OPT_XSMP = --disable-xsmp-interact
480
481# COMPILER - Name of the compiler {{{1
482# The default from configure will mostly be fine, no need to change this, just
483# an example. If a compiler is defined here, configure will use it rather than
484# probing for one. It is dangerous to change this after configure was run.
485# Make will use your choice then -- but beware: Many things may change with
486# another compiler. It is wise to run 'make reconfig' to start all over
487# again.
488#CC = cc
489#CC = gcc
490
491# COMPILER FLAGS - change as you please. Either before running {{{1
492# configure or afterwards. For examples see below.
493# When using -g with some older versions of Linux you might get a
494# statically linked executable.
495# When not defined, configure will try to use -O2 -g for gcc and -O for cc.
496#CFLAGS = -g
497#CFLAGS = -O
498
499# Optimization limits - depends on the compiler. Automatic check in configure
500# doesn't work very well, because many compilers only give a warning for
501# unrecognized arguments.
502#CFLAGS = -O -OPT:Olimit=2600
503#CFLAGS = -O -Olimit 2000
504#CFLAGS = -O -FOlimit,2000
505
506# Often used for GCC: mixed optimizing, lot of optimizing, debugging
507#CFLAGS = -g -O2 -fno-strength-reduce -Wall -Wshadow -Wmissing-prototypes
Bram Moolenaar69a7cb42004-06-20 12:51:53 +0000508#CFLAGS = -g -O2 -fno-strength-reduce -Wall -Wmissing-prototypes
Bram Moolenaardf177f62005-02-22 08:39:57 +0000509#CFLAGS = -g -Wall -Wmissing-prototypes
Bram Moolenaare1d12892004-06-13 13:02:36 +0000510#CFLAGS = -O6 -fno-strength-reduce -Wall -Wshadow -Wmissing-prototypes
511#CFLAGS = -g -DDEBUG -Wall -Wshadow -Wmissing-prototypes
Bram Moolenaar592e0a22004-07-03 16:05:59 +0000512#CFLAGS = -g -O2 '-DSTARTUPTIME="vimstartup"' -fno-strength-reduce -Wall -Wmissing-prototypes
Bram Moolenaare1d12892004-06-13 13:02:36 +0000513
514# EFENCE - Electric-Fence malloc debugging: catches memory accesses beyond
515# allocated memory (and makes every malloc()/free() very slow).
516# Electric Fence is free (search ftp sites).
517# On FreeBSD you might need to enlarge the number of mmaps allowed. Do this
518# as root: sysctl -w vm.max_proc_mmap=30000
519#EXTRA_LIBS = /usr/local/lib/libefence.a
520
521# PURIFY - remove the # to use the "purify" program (hoi Nia++!)
522#PURIFY = purify
523# }}}
524
525# LINT - for running lint
526LINT_OPTIONS = -beprxzF
527
528# PROFILING - Uncomment the next two lines to do profiling with gcc and gprof.
529# Might not work with GUI or Perl.
530# Need to recompile everything after changing this: "make clean" "make".
531#PROFILE_CFLAGS = -pg -g
532#PROFILE_LIBS = -pg
533
534#####################################################
535### Specific systems, check if yours is listed! ### {{{
536#####################################################
537
538### Uncomment things here only if the values chosen by configure are wrong.
539### It's better to adjust configure.in and "make autoconf", if you can!
540### Then send the required changes to configure.in to the bugs list.
541
542### (1) BSD/OS 2.0.1, 2.1 or 3.0 using shared libraries
543###
544#CC = shlicc2
545#CFLAGS = -O2 -g -m486 -Wall -Wshadow -Wmissing-prototypes -fno-builtin
546
547### (2) HP-UX with a non-ANSI cc, use the c89 ANSI compiler
548### The first probably works on all systems
549### The second should work a bit better on newer systems
550### The third should work a bit better on HPUX 11.11
551### Information provided by: Richard Allen <ra@rhi.hi.is>
552#CC = c89 -D_HPUX_SOURCE
553#CC = c89 -O +Onolimit +ESlit -D_HPUX_SOURCE
554#CC = c89 -O +Onolimit +ESlit +e -D_HPUX_SOURCE
555
556### (2) For HP-UX: Enable the use of a different set of digraphs. Use this
557### when the default (ISO) digraphs look completely wrong.
558### After changing this do "touch digraph.c; make".
559#EXTRA_DEFS = -DHPUX_DIGRAPHS
560
561### (2) For HP-UX: 9.04 cpp default macro definition table of 128000 bytes
562### is too small to compile many routines. It produces too much defining
563### and no space errors.
564### Uncomment the following to specify a larger macro definition table.
565#CFLAGS = -Wp,-H256000
566
567### (2) For HP-UX 10.20 using the HP cc, with X11R6 and Motif 1.2, with
568### libraries in /usr/lib instead of /lib (avoiding transition links).
569### Information provided by: David Green
570#XROOT = /usr
571#CONF_OPT_X = --x-include=$(XROOT)/include/X11R6 --x-libraries=$(XROOT)/lib/X11R6
572#GUI_INC_LOC = -I/usr/include/Motif1.2
573#GUI_LIB_LOC = -L/usr/lib/Motif1.2_R6
574
575### (5) AIX 4.1.4 with cc
576#CFLAGS = -O -qmaxmem=8192
577
578### AIX with c89 (Walter Briscoe)
579#CC = c89
580#CPPFLAGS = -D_ALL_SOURCE
581
582### AIX 4.3.3.12 with xic 3.6.6 (David R. Favor)
583# needed to avoid a problem where strings.h gets included
584#CFLAGS = -qsrcmsg -O2 -qmaxmem=8192 -D__STR31__
585
586### (W) Solaris with multi-threaded libraries (-lthread):
587### If suspending doesn't work properly, try using this line:
588#EXTRA_DEFS = -D_REENTRANT
589
590### (7) Solaris 2.4/2.5 with Centerline compiler
591#CC = clcc
592#X_LIBS_DIR = -L/usr/openwin/lib -R/usr/openwin/lib
593#CFLAGS = -O
594
595### (9) Solaris 2.x with cc (SunPro), using Athena.
596### Only required for compiling gui_at_sb.c.
597### Symptom: "identifier redeclared: vim_XawScrollbarSetThumb"
598### Use one of the lines (either Full ANSI or no ANSI at all)
599#CFLAGS = $(CFLAGS) -Xc
600#CFLAGS = $(CFLAGS) -Xs
601
602### Solaris 2.3 with X11 and specific cc
603#CC=/opt/SUNWspro/bin/cc -O -Xa -v -R/usr/openwin/lib
604
605### Solaris with /usr/ucb/cc (it is rejected by autoconf as "cc")
606#CC = /usr/ucb/cc
607#EXTRA_LIBS = -R/usr/ucblib
608
609### Solaris with Forte Developer and FEAT_SUN_WORKSHOP
610# The Xpm library is available from http://koala.ilog.fr/ftp/pub/xpm.
611#CC = cc
612#XPM_DIR = /usr/local/xpm/xpm-3.4k-solaris
613#XPM_LIB = -L$(XPM_DIR)/lib -R$(XPM_DIR)/lib -lXpm
614#XPM_IPATH = -I$(XPM_DIR)/include
615#EXTRA_LIBS = $(XPM_LIB)
616#EXTRA_IPATHS = $(XPM_IPATH)
617#EXTRA_DEFS = -xCC -DHAVE_X11_XPM_H
618
619### Solaris with workshop compilers: Vim is unstable when compiled with
620# "-fast". Use this instead. (Shea Martin)
621#CFLAGS = -x02 -xtarget=ultra
622
623### (R) for Solaris 2.5 (or 2.5.1) with gcc > 2.5.6 you might need this:
624#LDFLAGS = -lw -ldl -lXmu
625#GUI_LIB_LOC = -L/usr/local/lib
626
627### (8) Unisys 6035 (Glauber Ribeiro)
628#EXTRA_LIBS = -lnsl -lsocket -lgen
629
630### When builtin functions cause problems with gcc (for Sun 4.1.x)
631#CFLAGS = -O2 -Wall -traditional -Wno-implicit
632
633### Apollo DOMAIN (with SYSTYPE = bsd4.3) (TESTED for version 3.0)
634#EXTRA_DEFS = -DDOMAIN
635#CFLAGS= -O -A systype,bsd4.3
636
637### Coherent 4.2.10 on Intel 386 platform
638#EXTRA_DEFS = -Dvoid=int
639#EXTRA_LIBS = -lterm -lsocket
640
641### SCO 3.2, with different library name for terminfo
642#EXTRA_LIBS = -ltinfo
643
644### UTS2 for Amdahl UTS 2.1.x
645#EXTRA_DEFS = -DUTS2
646#EXTRA_LIBS = -lsocket
647
648### UTS4 for Amdahl UTS 4.x
649#EXTRA_DEFS = -DUTS4 -Xa
650
651### USL for Unix Systems Laboratories (SYSV 4.2)
652#EXTRA_DEFS = -DUSL
653
654### RISCos on MIPS without X11
655#EXTRA_DEFS = -DMIPS
656
657### RISCos on MIPS with X11
658#EXTRA_LIBS = -lsun
659
660### (6) A/UX 3.1.1 with gcc (Jim Jagielski)
661#CC= gcc -D_POSIX_SOURCE
662#CFLAGS= -O2
663#EXTRA_LIBS = -lposix -lbsd -ltermcap -lX11
664
665### (A) Some versions of SCO Open Server 5 (Jan Christiaan van Winkel)
666### Also use the CONF_TERM_LIB below!
667#EXTRA_LIBS = -lgen
668
669### (D) QNX (by G.F. Desrochers)
670#CFLAGS = -g -O -mf -4
671
672### (F) QNX (by John Oleynick)
673# 1. If you don't have an X server: Comment out CONF_OPT_GUI and uncomment
674# CONF_OPT_X = --without-x.
675# 2. make config
676# 3. edit auto/config.mk and remove -ldir and -ltermcap from LIBS. It doesn't
677# have -ldir (does config find it somewhere?) and -ltermcap has at
678# least one problem so I use termlib.o instead. The problem with
679# termcap is that it segfaults if you call it with the name of
680# a non-existent terminal type.
681# 4. edit auto/config.h and add #define USE_TMPNAM
682# 5. add termlib.o to OBJ
683# 6. make
684
685### (H) for Data general DG/UX 5.4.2 and 5.4R3.10 (Jonas J. Schlein)
686#EXTRA_LIBS = -lgen
687
688### (I) SINIX-N 5.42 or 5.43 RM400 R4000 (also SINIX-Y and SINIX-Z)
689#EXTRA_LIBS = -lgen -lnsl
690### For SINIX-Y this is needed for the right prototype of gettimeofday()
691#EXTRA_DEFS = -D_XPG_IV
692
693### (I) Reliant-Unix (aka SINIX) 5.44 with standard cc
694# Use both "-F O3" lines for optimization or the "-g" line for debugging
695#EXTRA_LIBS = -lgen -lsocket -lnsl -lSM -lICE
696#CFLAGS = -F O3 -DSINIXN
697#LDFLAGS = -F O3
698#CFLAGS = -g -DSINIXN
699
700### (P) SCO 3.2.42, with different termcap names for some useful keys DJB
701#EXTRA_DEFS = -DSCOKEYS -DNETTERM_MOUSE -DDEC_MOUSE -DXTERM_MOUSE -DHAVE_GETTIMEOFDAY
702#EXTRA_LIBS = -lsocket -ltermcap -lmalloc -lc_s
703
704### (P) SuperUX 6.2 on NEC SX-4 (Lennart Schultz)
705#GUI_INC_LOC = -I/usr/include
706#GUI_LIB_LOC = -L/usr/lib
707#EXTRA_LIBS = -lgen
708
709### (Q) UNIXSVR 4.2MP on NEC UP4800 (Lennart Schultz)
710#GUI_INC_LOC = -I/usr/necccs/include
711#GUI_LIB_LOC = -L/usr/necccs/lib/X11R6
712#XROOT = /usr/necccs
713#CONF_OPT_X = --x-include=$(XROOT)/include --x-libraries=$(XROOT)/lib/X11R6
714#EXTRA_LIBS = -lsocket -lgen
715
716### Irix 4.0 & 5.2 (Silicon Graphics Machines, __sgi will be defined)
717# Not needed for Irix 5.3, Ives Aerts reported
718#EXTRA_LIBS = -lmalloc -lc_s
719# Irix 4.0, when regexp and regcmp cannot be found when linking:
720#EXTRA_LIBS = -lmalloc -lc_s -lPW
721
722### (S) Irix 6.x (MipsPro compiler): Uses different Olimit flag:
723# Note: This newer option style is used with the MipsPro compilers ONLY if
724# you are compiling an "n32" or "64" ABI binary (use either a -n32
725# flag or a -64 flag for CFLAGS). If you explicitly use a -o32 flag,
726# then the CFLAGS option format will be the typical style (i.e.
727# -Olimit 3000).
728#CFLAGS = -OPT:Olimit=3000 -O
729
730### (S) Irix 6.5 with MipsPro C compiler. Try this as a test to see new
731# compiler features! Beware, the optimization is EXTREMELY thorough
732# and takes quite a long time.
733# Note: See the note above. Here, the -mips3 option automatically
734# enables either the "n32" or "64" ABI, depending on what machine you
735# are compiling on (n32 is explicitly enabled here, just to make sure).
736#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
737#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
738
739### (K) for SGI Irix machines with 64 bit pointers ("uname -s" says IRIX64)
740### Suggested by Jon Wright <jon@gate.sinica.edu.tw>.
741### Tested on R8000 IRIX6.1 Power Indigo2.
742### Check /etc/compiler.defaults for your compiler settings.
743# either (for 64 bit pointers) uncomment the following line
744#GUI_LIB_LOC = -L/usr/lib64
745# then
746# 1) make config
747# 2) edit auto/config.mk and delete the -lelf entry in the LIBS line
748# 3) make
749#
750# or (for 32bit pointers) uncomment the following line
751#EXTRA_DEFS = -n32
752#GUI_LIB_LOC = -L/usr/lib32
753# then
754# 1) make config
755# 2) edit auto/config.mk, add -n32 to LDFLAGS
756# 3) make
757###
758
759### (C) On SCO Unix v3.2.5 (and probably other versions) the termcap library,
760### which is found by configure, doesn't work correctly. Symptom is the
761### error message "Termcap entry too long". Uncomment the next line.
762### On AIX 4.2.1 (and other versions probably), libtermcap is reported
763### not to display properly.
764### after changing this, you need to do "make reconfig".
765#CONF_TERM_LIB = --with-tlib=curses
766
767### (E) If you want to use termlib library instead of the automatically found
768### one. After changing this, you need to do "make reconfig".
769#CONF_TERM_LIB = --with-tlib=termlib
770
771### (a) ESIX V4.2 (Reinhard Wobst)
772#EXTRA_LIBS = -lnsl -lsocket -lgen -lXIM -lXmu -lXext
773
774### If you want to use ncurses library instead of the automatically found one
775### after changing this, you need to do "make reconfig".
776#CONF_TERM_LIB = --with-tlib=ncurses
777
778### For GCC on MSDOS, the ".exe" suffix will be added.
779#EXEEXT = .exe
780#LNKEXT = .exe
781
782### (O) For LynxOS 2.5.0, tested on PC.
783#EXTRA_LIBS = -lXext -lSM -lICE -lbsd
784### For LynxOS 3.0.1, tested on PPC
785#EXTRA_LIBS= -lXext -lSM -lICE -lnetinet -lXmu -liberty -lX11
786### For LynxOS 3.1.0, tested on PC
787#EXTRA_LIBS= -lXext -lSM -lICE -lnetinet -lXmu
788
789
790### (V) For CX/UX 6.2 (on Harris/Concurrent NightHawk 4800, 5800). Remove
791### -Qtarget if only in a 5800 environment. (Kipp E. Howard)
792#CFLAGS = -O -Qtarget=m88110compat
793#EXTRA_LIBS = -lgen
794
795##################### end of system specific lines ################### }}}
796
797### Names of the programs and targets {{{1
798VIMTARGET = $(VIMNAME)$(EXEEXT)
799EXTARGET = $(EXNAME)$(LNKEXT)
800VIEWTARGET = $(VIEWNAME)$(LNKEXT)
801GVIMNAME = g$(VIMNAME)
802GVIMTARGET = $(GVIMNAME)$(LNKEXT)
803GVIEWNAME = g$(VIEWNAME)
804GVIEWTARGET = $(GVIEWNAME)$(LNKEXT)
805RVIMNAME = r$(VIMNAME)
806RVIMTARGET = $(RVIMNAME)$(LNKEXT)
807RVIEWNAME = r$(VIEWNAME)
808RVIEWTARGET = $(RVIEWNAME)$(LNKEXT)
809RGVIMNAME = r$(GVIMNAME)
810RGVIMTARGET = $(RGVIMNAME)$(LNKEXT)
811RGVIEWNAME = r$(GVIEWNAME)
812RGVIEWTARGET = $(RGVIEWNAME)$(LNKEXT)
813VIMDIFFNAME = $(VIMNAME)diff
814GVIMDIFFNAME = g$(VIMDIFFNAME)
815VIMDIFFTARGET = $(VIMDIFFNAME)$(LNKEXT)
816GVIMDIFFTARGET = $(GVIMDIFFNAME)$(LNKEXT)
817EVIMNAME = e$(VIMNAME)
818EVIMTARGET = $(EVIMNAME)$(LNKEXT)
819EVIEWNAME = e$(VIEWNAME)
820EVIEWTARGET = $(EVIEWNAME)$(LNKEXT)
821
822### Names of the tools that are also made {{{1
823TOOLS = xxd/xxd$(EXEEXT)
824
825### Installation directories. The defaults come from configure. {{{1
826#
827### prefix the top directory for the data (default "/usr/local")
828#
829# Uncomment the next line to install Vim in your home directory.
830#prefix = $(HOME)
831
832### exec_prefix is the top directory for the executable (default $(prefix))
833#
834# Uncomment the next line to install the Vim executable in "/usr/machine/bin"
835#exec_prefix = /usr/machine
836
837### BINDIR dir for the executable (default "$(exec_prefix)/bin")
838### MANDIR dir for the manual pages (default "$(prefix)/man")
839### DATADIR dir for the other files (default "$(prefix)/lib" or
840# "$(prefix)/share")
841# They may be different when using different architectures for the
842# executable and a common directory for the other files.
843#
844# Uncomment the next line to install Vim in "/usr/bin"
845#BINDIR = /usr/bin
846# Uncomment the next line to install Vim manuals in "/usr/share/man/man1"
847#MANDIR = /usr/share/man
848# Uncomment the next line to install Vim help files in "/usr/share/vim"
849#DATADIR = /usr/share
850
851### DESTDIR root of the installation tree. This is prepended to the other
852# directories. This directory must exist.
853#DESTDIR = ~/pkg/vim
854
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000855### Directory of the man pages
856MAN1DIR = /man1
Bram Moolenaare1d12892004-06-13 13:02:36 +0000857
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000858### Vim version (adjusted by a script)
859VIMMAJOR = 7
860VIMMINOR = 0aa
861
Bram Moolenaare1d12892004-06-13 13:02:36 +0000862### Location of Vim files (should not need to be changed, and {{{1
863### some things might not work when they are changed!)
864VIMDIR = /vim
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000865VIMRTDIR = /vim$(VIMMAJOR)$(VIMMINOR)
Bram Moolenaare1d12892004-06-13 13:02:36 +0000866HELPSUBDIR = /doc
867COLSUBDIR = /colors
868SYNSUBDIR = /syntax
869INDSUBDIR = /indent
870PLUGSUBDIR = /plugin
871FTPLUGSUBDIR = /ftplugin
872LANGSUBDIR = /lang
873COMPSUBDIR = /compiler
874KMAPSUBDIR = /keymap
875MACROSUBDIR = /macros
876TOOLSSUBDIR = /tools
877TUTORSUBDIR = /tutor
Bram Moolenaar217ad922005-03-20 22:37:15 +0000878SPELLSUBDIR = /spell
Bram Moolenaare1d12892004-06-13 13:02:36 +0000879PRINTSUBDIR = /print
880PODIR = po
881
882### VIMLOC common root of the Vim files (all versions)
883### VIMRTLOC common root of the runtime Vim files (this version)
884### VIMRCLOC compiled-in location for global [g]vimrc files (all versions)
885### VIMRUNTIMEDIR compiled-in location for runtime files (optional)
886### HELPSUBLOC location for help files
887### COLSUBLOC location for colorscheme files
888### SYNSUBLOC location for syntax files
889### INDSUBLOC location for indent files
890### PLUGSUBLOC location for standard plugin files
891### FTPLUGSUBLOC location for ftplugin files
892### LANGSUBLOC location for language files
893### COMPSUBLOC location for compiler files
894### KMAPSUBLOC location for keymap files
895### MACROSUBLOC location for macro files
896### TOOLSSUBLOC location for tools files
897### TUTORSUBLOC location for tutor files
Bram Moolenaar217ad922005-03-20 22:37:15 +0000898### SPELLSUBLOC location for spell files
Bram Moolenaare1d12892004-06-13 13:02:36 +0000899### PRINTSUBLOC location for PostScript files (prolog, latin1, ..)
900### SCRIPTLOC location for script files (menu.vim, bugreport.vim, ..)
901### You can override these if you want to install them somewhere else.
902### Edit feature.h for compile-time settings.
903VIMLOC = $(DATADIR)$(VIMDIR)
904VIMRTLOC = $(DATADIR)$(VIMDIR)$(VIMRTDIR)
905VIMRCLOC = $(VIMLOC)
906HELPSUBLOC = $(VIMRTLOC)$(HELPSUBDIR)
907COLSUBLOC = $(VIMRTLOC)$(COLSUBDIR)
908SYNSUBLOC = $(VIMRTLOC)$(SYNSUBDIR)
909INDSUBLOC = $(VIMRTLOC)$(INDSUBDIR)
910PLUGSUBLOC = $(VIMRTLOC)$(PLUGSUBDIR)
911FTPLUGSUBLOC = $(VIMRTLOC)$(FTPLUGSUBDIR)
912LANGSUBLOC = $(VIMRTLOC)$(LANGSUBDIR)
913COMPSUBLOC = $(VIMRTLOC)$(COMPSUBDIR)
914KMAPSUBLOC = $(VIMRTLOC)$(KMAPSUBDIR)
915MACROSUBLOC = $(VIMRTLOC)$(MACROSUBDIR)
916TOOLSSUBLOC = $(VIMRTLOC)$(TOOLSSUBDIR)
917TUTORSUBLOC = $(VIMRTLOC)$(TUTORSUBDIR)
Bram Moolenaar217ad922005-03-20 22:37:15 +0000918SPELLSUBLOC = $(VIMRTLOC)$(SPELLSUBDIR)
Bram Moolenaare1d12892004-06-13 13:02:36 +0000919PRINTSUBLOC = $(VIMRTLOC)$(PRINTSUBDIR)
920SCRIPTLOC = $(VIMRTLOC)
921
922### Only set VIMRUNTIMEDIR when VIMRTLOC is set to a different location and
923### the runtime directory is not below it.
924#VIMRUNTIMEDIR = $(VIMRTLOC)
925
926### Name of the evim file target.
927EVIM_FILE = $(DESTDIR)$(SCRIPTLOC)/evim.vim
928MSWIN_FILE = $(DESTDIR)$(SCRIPTLOC)/mswin.vim
929
930### Name of the menu file target.
931SYS_MENU_FILE = $(DESTDIR)$(SCRIPTLOC)/menu.vim
932SYS_SYNMENU_FILE = $(DESTDIR)$(SCRIPTLOC)/synmenu.vim
933SYS_DELMENU_FILE = $(DESTDIR)$(SCRIPTLOC)/delmenu.vim
934
935### Name of the bugreport file target.
936SYS_BUGR_FILE = $(DESTDIR)$(SCRIPTLOC)/bugreport.vim
937
938### Name of the file type detection file target.
939SYS_FILETYPE_FILE = $(DESTDIR)$(SCRIPTLOC)/filetype.vim
940
941### Name of the file type detection file target.
942SYS_FTOFF_FILE = $(DESTDIR)$(SCRIPTLOC)/ftoff.vim
943
944### Name of the file type detection script file target.
945SYS_SCRIPTS_FILE = $(DESTDIR)$(SCRIPTLOC)/scripts.vim
946
947### Name of the ftplugin-on file target.
948SYS_FTPLUGIN_FILE = $(DESTDIR)$(SCRIPTLOC)/ftplugin.vim
949
950### Name of the ftplugin-off file target.
951SYS_FTPLUGOF_FILE = $(DESTDIR)$(SCRIPTLOC)/ftplugof.vim
952
953### Name of the indent-on file target.
954SYS_INDENT_FILE = $(DESTDIR)$(SCRIPTLOC)/indent.vim
955
956### Name of the indent-off file target.
957SYS_INDOFF_FILE = $(DESTDIR)$(SCRIPTLOC)/indoff.vim
958
959### Name of the option window script file target.
960SYS_OPTWIN_FILE = $(DESTDIR)$(SCRIPTLOC)/optwin.vim
961
962# Program to install the program in the target directory. Could also be "mv".
963INSTALL_PROG = cp
964
965# Program to install the data in the target directory. Cannot be "mv"!
966INSTALL_DATA = cp
967INSTALL_DATA_R = cp -r
968
969### Program to run on installed binary
970#STRIP = strip
971
972### Permissions for binaries {{{1
973BINMOD = 755
974
975### Permissions for man page
976MANMOD = 644
977
978### Permissions for help files
979HELPMOD = 644
980
981### Permissions for Perl and shell scripts
982SCRIPTMOD = 755
983
984### Permission for Vim script files (menu.vim, bugreport.vim, ..)
985VIMSCRIPTMOD = 644
986
987### Permissions for all directories that are created
988DIRMOD = 755
989
990### Permissions for all other files that are created
991FILEMOD = 644
992
993# Where to copy the man and help files from
994HELPSOURCE = ../runtime/doc
995
996# Where to copy the script files from (menu, bugreport)
997SCRIPTSOURCE = ../runtime
998
999# Where to copy the colorscheme files from
1000COLSOURCE = ../runtime/colors
1001
1002# Where to copy the syntax files from
1003SYNSOURCE = ../runtime/syntax
1004
1005# Where to copy the indent files from
1006INDSOURCE = ../runtime/indent
1007
1008# Where to copy the standard plugin files from
1009PLUGSOURCE = ../runtime/plugin
1010
1011# Where to copy the ftplugin files from
1012FTPLUGSOURCE = ../runtime/ftplugin
1013
1014# Where to copy the macro files from
1015MACROSOURCE = ../runtime/macros
1016
1017# Where to copy the tools files from
1018TOOLSSOURCE = ../runtime/tools
1019
1020# Where to copy the tutor files from
1021TUTORSOURCE = ../runtime/tutor
1022
Bram Moolenaar217ad922005-03-20 22:37:15 +00001023# Where to copy the spell files from
1024SPELLSOURCE = ../runtime/spell
1025
Bram Moolenaare1d12892004-06-13 13:02:36 +00001026# Where to look for language specific files
1027LANGSOURCE = ../runtime/lang
1028
1029# Where to look for compiler files
1030COMPSOURCE = ../runtime/compiler
1031
1032# Where to look for keymap files
1033KMAPSOURCE = ../runtime/keymap
1034
1035# Where to look for print resource files
1036PRINTSOURCE = ../runtime/print
1037
1038# If you are using Linux, you might want to use this to make vim the
1039# default vi editor, it will create a link from vi to Vim when doing
1040# "make install". An existing file will be overwritten!
1041# When not using it, some make programs can't handle an undefined $(LINKIT).
1042#LINKIT = -ln -f -s $(BINDIR)/$(VIMTARGET) /usr/bin/vi
1043LINKIT = @echo >/dev/null
1044
1045###
1046### GRAPHICAL USER INTERFACE (GUI). {{{1
1047### 'configure --enable-gui' can enable one of these for you if you did set
1048### a corresponding CONF_OPT_GUI above and have X11.
1049### Override configures choice by uncommenting all the following lines.
1050### As they are, the GUI is disabled. Replace "NONE" with "ATHENA" or "MOTIF"
1051### for enabling the Athena or Motif GUI.
1052#GUI_SRC = $(NONE_SRC)
1053#GUI_OBJ = $(NONE_OBJ)
1054#GUI_DEFS = $(NONE_DEFS)
1055#GUI_IPATH = $(NONE_IPATH)
1056#GUI_LIBS_DIR = $(NONE_LIBS_DIR)
1057#GUI_LIBS1 = $(NONE_LIBS1)
1058#GUI_LIBS2 = $(NONE_LIBS2)
1059#GUI_INSTALL = $(NONE_INSTALL)
1060#GUI_TARGETS = $(NONE_TARGETS)
1061#GUI_MAN_TARGETS= $(NONE_MAN_TARGETS)
1062#GUI_TESTTARGET = $(NONE_TESTTARGET)
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001063#GUI_BUNDLE = $(NONE_BUNDLE)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001064
1065# Without a GUI install the normal way.
1066NONE_INSTALL = install_normal
1067
Bram Moolenaar843ee412004-06-30 16:16:41 +00001068### KDE GUI interface.
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00001069KDE_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 +00001070KDE_OBJ = objects/gui.o objects/pty.o objects/gui_kde.o objects/gui_kde_x11.o \
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00001071 objects/gui_kde_wid.o objects/gui_kde_wid_moc.o \
Bram Moolenaar843ee412004-06-30 16:16:41 +00001072 objects/kvim_iface_skel.o
1073KDE_DEFS = -DFEAT_GUI_KDE $(NARROW_PROTO)
1074KDE_IPATH = $(GUI_INC_LOC)
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001075KDE_LIBS_DIR = $(GUI_LIB_LOC) # Includes the libraries themselves
1076KDE_DIR = $(KDE_PREFIX)
Bram Moolenaar843ee412004-06-30 16:16:41 +00001077KDE_LIBS1 =
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001078KDE_LIBS2 =
Bram Moolenaar843ee412004-06-30 16:16:41 +00001079KDE_INSTALL = install_normal
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001080KDE_TARGETS = installglinks installkdeicons
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001081KDE_MAN_TARGETS = yes
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001082KDE_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001083KDE_BUNDLE =
Bram Moolenaar843ee412004-06-30 16:16:41 +00001084
Bram Moolenaare1d12892004-06-13 13:02:36 +00001085### GTK GUI
1086GTK_SRC = gui.c gui_gtk.c gui_gtk_x11.c pty.c gui_gtk_f.c \
1087 gui_beval.c
1088GTK_OBJ = objects/gui.o objects/gui_gtk.o objects/gui_gtk_x11.o \
1089 objects/pty.o objects/gui_gtk_f.o \
1090 objects/gui_beval.o
1091GTK_DEFS = -DFEAT_GUI_GTK $(NARROW_PROTO)
1092GTK_IPATH = $(GUI_INC_LOC)
1093GTK_LIBS_DIR = $(GUI_LIB_LOC)
1094GTK_LIBS1 =
1095GTK_LIBS2 = $(GTK_LIBNAME)
1096GTK_INSTALL = install_normal
1097GTK_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001098GTK_MAN_TARGETS = yes
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001099GTK_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001100GTK_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001101
1102### Motif GUI
Bram Moolenaardfccaf02004-12-31 20:56:11 +00001103MOTIF_SRC = gui.c gui_motif.c gui_x11.c pty.c gui_beval.c \
Bram Moolenaarb7fcef52005-01-02 11:31:05 +00001104 gui_xmdlg.c gui_xmebw.c
Bram Moolenaare1d12892004-06-13 13:02:36 +00001105MOTIF_OBJ = objects/gui.o objects/gui_motif.o objects/gui_x11.o \
Bram Moolenaardfccaf02004-12-31 20:56:11 +00001106 objects/pty.o objects/gui_beval.o \
Bram Moolenaarb7fcef52005-01-02 11:31:05 +00001107 objects/gui_xmdlg.o objects/gui_xmebw.o
Bram Moolenaare1d12892004-06-13 13:02:36 +00001108MOTIF_DEFS = -DFEAT_GUI_MOTIF $(NARROW_PROTO)
1109MOTIF_IPATH = $(GUI_INC_LOC)
1110MOTIF_LIBS_DIR = $(GUI_LIB_LOC)
1111MOTIF_LIBS1 =
1112MOTIF_LIBS2 = $(MOTIF_LIBNAME) -lXt
1113MOTIF_INSTALL = install_normal
1114MOTIF_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001115MOTIF_MAN_TARGETS = yes
Bram Moolenaare1d12892004-06-13 13:02:36 +00001116MOTIF_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001117MOTIF_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001118
1119### Athena GUI
1120### Use Xaw3d to make the menus look a little bit nicer
1121#XAW_LIB = -lXaw3d
1122XAW_LIB = -lXaw
1123
1124### When using Xaw3d, uncomment/comment the following lines to also get the
1125### scrollbars from Xaw3d.
1126#ATHENA_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c gui_at_fs.c
1127#ATHENA_OBJ = objects/gui.o objects/gui_athena.o objects/gui_x11.o \
1128# objects/pty.o objects/gui_beval.o objects/gui_at_fs.o
1129#ATHENA_DEFS = -DFEAT_GUI_ATHENA $(NARROW_PROTO) \
1130# -Dvim_scrollbarWidgetClass=scrollbarWidgetClass \
1131# -Dvim_XawScrollbarSetThumb=XawScrollbarSetThumb
1132ATHENA_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c \
1133 gui_at_sb.c gui_at_fs.c
1134ATHENA_OBJ = objects/gui.o objects/gui_athena.o objects/gui_x11.o \
1135 objects/pty.o objects/gui_beval.o \
1136 objects/gui_at_sb.o objects/gui_at_fs.o
1137ATHENA_DEFS = -DFEAT_GUI_ATHENA $(NARROW_PROTO)
1138
1139ATHENA_IPATH = $(GUI_INC_LOC)
1140ATHENA_LIBS_DIR = $(GUI_LIB_LOC)
1141ATHENA_LIBS1 = $(XAW_LIB)
1142ATHENA_LIBS2 = -lXt
1143ATHENA_INSTALL = install_normal
1144ATHENA_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001145ATHENA_MAN_TARGETS = yes
Bram Moolenaare1d12892004-06-13 13:02:36 +00001146ATHENA_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001147ATHENA_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001148
1149### neXtaw GUI
1150NEXTAW_LIB = -lneXtaw
1151
1152NEXTAW_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c gui_at_fs.c
1153NEXTAW_OBJ = objects/gui.o objects/gui_athena.o objects/gui_x11.o \
1154 objects/pty.o objects/gui_beval.o objects/gui_at_fs.o
1155NEXTAW_DEFS = -DFEAT_GUI_ATHENA -DFEAT_GUI_NEXTAW $(NARROW_PROTO)
1156
1157NEXTAW_IPATH = $(GUI_INC_LOC)
1158NEXTAW_LIBS_DIR = $(GUI_LIB_LOC)
1159NEXTAW_LIBS1 = $(NEXTAW_LIB)
1160NEXTAW_LIBS2 = -lXt
1161NEXTAW_INSTALL = install_normal
1162NEXTAW_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001163NEXTAW_MAN_TARGETS = yes
Bram Moolenaare1d12892004-06-13 13:02:36 +00001164NEXTAW_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001165NEXTAW_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001166
1167### (J) Sun OpenWindows 3.2 (SunOS 4.1.x) or earlier that produce these ld
1168# errors: ld: Undefined symbol
1169# _get_wmShellWidgetClass
1170# _get_applicationShellWidgetClass
1171# then you need to get patches 100512-02 and 100573-03 from Sun. In the
1172# meantime, uncomment the following GUI_X_LIBS definition as a workaround:
1173#GUI_X_LIBS = -Bstatic -lXmu -Bdynamic -lXext
1174# If you also get cos, sin etc. as undefined symbols, try uncommenting this
1175# too:
1176#EXTRA_LIBS = /usr/openwin/lib/libXmu.sa -lm
1177
Bram Moolenaare1d12892004-06-13 13:02:36 +00001178# PHOTON GUI
1179PHOTONGUI_SRC = gui.c gui_photon.c pty.c
1180PHOTONGUI_OBJ = objects/gui.o objects/gui_photon.o objects/pty.o
1181PHOTONGUI_DEFS = -DFEAT_GUI_PHOTON
1182PHOTONGUI_IPATH =
1183PHOTONGUI_LIBS_DIR =
1184PHOTONGUI_LIBS1 = -lph -lphexlib
1185PHOTONGUI_LIBS2 =
1186PHOTONGUI_INSTALL = install_normal
1187PHOTONGUI_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001188PHOTONGUI_MAN_TARGETS = yes
Bram Moolenaare1d12892004-06-13 13:02:36 +00001189PHOTONGUI_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001190PHOTONGUI_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001191
1192# CARBON GUI
1193CARBONGUI_SRC = gui.c gui_mac.c
1194CARBONGUI_OBJ = objects/gui.o objects/gui_mac.o objects/pty.o
1195CARBONGUI_DEFS = -DFEAT_GUI_MAC -arch ppc -fno-common -fpascal-strings \
1196 -Wall -Wno-unknown-pragmas \
1197 -mdynamic-no-pic -pipe
1198CARBONGUI_IPATH = -I. -Iproto
1199CARBONGUI_LIBS_DIR =
1200CARBONGUI_LIBS1 = -framework Carbon
1201CARBONGUI_LIBS2 =
1202CARBONGUI_INSTALL = install_macosx
1203CARBONGUI_TARGETS =
1204CARBONGUI_MAN_TARGETS =
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00001205CARBONGUI_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001206CARBONGUI_BUNDLE = gui_bundle
1207APPDIR = $(VIMNAME).app
1208CARBONGUI_TESTARG = VIMPROG=../$(APPDIR)/Contents/MacOS/$(VIMTARGET)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001209
1210# All GUI files
Bram Moolenaarb7fcef52005-01-02 11:31:05 +00001211ALL_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 +00001212ALL_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 +00001213
1214# }}}
1215
1216### Command to create dependencies based on #include "..."
1217### prototype headers are ignored due to -DPROTO, system
1218### headers #include <...> are ignored if we use the -MM option, as
1219### e.g. provided by gcc-cpp.
1220### Include FEAT_GUI to get gependency on gui.h
1221CPP_DEPEND = $(CC) -I$(srcdir) -M$(CPP_MM) $(DEPEND_CFLAGS)
1222
1223# flags for cproto
1224# This is for cproto 3 patchlevel 8 or below
1225# __inline, __attribute__ and __extension__ are not recognized by cproto
1226NO_ATTR = -D__inline= -D"__attribute__\\(x\\)=" -D"__asm__\\(x\\)=" -D__extension__= \
1227-D__restrict="" -D__gnuc_va_list=char -D__builtin_va_list=char
1228
1229#
1230# This is for cproto 3 patchlevel 9 or above (currently 4.6)
1231# __inline and __attribute__ are now recognized by cproto
1232# -D"foo()=" is not supported by all compilers so do not use it
1233# NO_ATTR=
1234#
1235# maybe the "/usr/bin/cc -E" has to be adjusted for some systems
1236# This is for cproto 3.5 patchlevel 3:
1237# PROTO_FLAGS = -f4 -m__ARGS -d -E"$(CPP)" $(NO_ATTR)
1238#
1239# Use this for cproto 3 patchlevel 6 or below (use "cproto -V" to check):
1240# PROTO_FLAGS = -f4 -m__ARGS -d -E"$(CPP)" $(NO_ATTR)
1241#
1242# Use this for cproto 3 patchlevel 7 or above (use "cproto -V" to check):
1243PROTO_FLAGS = -m -M__ARGS -d -E"$(CPP)" $(NO_ATTR)
1244
1245
1246################################################
1247## no changes required below this line ##
1248################################################
1249
1250SHELL = /bin/sh
1251
1252.SUFFIXES:
1253.SUFFIXES: .cc .c .o .pro
1254
1255PRE_DEFS = -Iproto $(DEFS) $(GUI_DEFS) $(GUI_IPATH) $(CPPFLAGS) $(EXTRA_IPATHS)
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001256POST_DEFS = $(X_CFLAGS) $(MZSCHEME_CFLAGS) $(PERL_CFLAGS) $(PYTHON_CFLAGS) $(TCL_CFLAGS) $(RUBY_CFLAGS) $(EXTRA_DEFS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001257
1258ALL_CFLAGS = $(PRE_DEFS) $(CFLAGS) $(PROFILE_CFLAGS) $(POST_DEFS)
1259
1260LINT_CFLAGS = -DLINT -I. $(PRE_DEFS) $(POST_DEFS) -Dinline= -D__extension__= -Dalloca=alloca
1261
1262DEPEND_CFLAGS = -DPROTO -DDEPEND -DFEAT_GUI $(LINT_CFLAGS)
1263
1264PFLAGS = $(PROTO_FLAGS) -DPROTO $(LINT_CFLAGS)
1265
1266ALL_LIB_DIRS = $(GUI_LIBS_DIR) $(X_LIBS_DIR)
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001267ALL_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 +00001268
1269# abbreviations
1270DEST_BIN = $(DESTDIR)$(BINDIR)
1271DEST_VIM = $(DESTDIR)$(VIMLOC)
1272DEST_RT = $(DESTDIR)$(VIMRTLOC)
1273DEST_HELP = $(DESTDIR)$(HELPSUBLOC)
1274DEST_COL = $(DESTDIR)$(COLSUBLOC)
1275DEST_SYN = $(DESTDIR)$(SYNSUBLOC)
1276DEST_IND = $(DESTDIR)$(INDSUBLOC)
1277DEST_PLUG = $(DESTDIR)$(PLUGSUBLOC)
1278DEST_FTP = $(DESTDIR)$(FTPLUGSUBLOC)
1279DEST_LANG = $(DESTDIR)$(LANGSUBLOC)
1280DEST_COMP = $(DESTDIR)$(COMPSUBLOC)
1281DEST_KMAP = $(DESTDIR)$(KMAPSUBLOC)
1282DEST_MACRO = $(DESTDIR)$(MACROSUBLOC)
1283DEST_TOOLS = $(DESTDIR)$(TOOLSSUBLOC)
1284DEST_TUTOR = $(DESTDIR)$(TUTORSUBLOC)
Bram Moolenaar217ad922005-03-20 22:37:15 +00001285DEST_SPELL = $(DESTDIR)$(SPELLSUBLOC)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001286DEST_SCRIPT = $(DESTDIR)$(SCRIPTLOC)
1287DEST_PRINT = $(DESTDIR)$(PRINTSUBLOC)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001288DEST_MAN_TOP = $(DESTDIR)$(MANDIR)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001289
1290# We assume that the ".../man/xx/man1/" directory is for latin1 manual pages.
1291# Some systems use UTF-8, but these should find the ".../man/xx.UTF-8/man1/"
1292# directory first.
Bram Moolenaar217ad922005-03-20 22:37:15 +00001293# FreeBSD uses ".../man/xx.ISO8859-1/man1" for latin1, use that one too.
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001294DEST_MAN = $(DEST_MAN_TOP)$(MAN1DIR)
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00001295DEST_MAN_FR = $(DEST_MAN_TOP)/fr$(MAN1DIR)
1296DEST_MAN_FR_I = $(DEST_MAN_TOP)/fr.ISO8859-1$(MAN1DIR)
1297DEST_MAN_FR_U = $(DEST_MAN_TOP)/fr.UTF-8$(MAN1DIR)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001298DEST_MAN_IT = $(DEST_MAN_TOP)/it$(MAN1DIR)
Bram Moolenaar217ad922005-03-20 22:37:15 +00001299DEST_MAN_IT_I = $(DEST_MAN_TOP)/it.ISO8859-1$(MAN1DIR)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001300DEST_MAN_IT_U = $(DEST_MAN_TOP)/it.UTF-8$(MAN1DIR)
1301DEST_MAN_RU = $(DEST_MAN_TOP)/ru.KOI8-R$(MAN1DIR)
1302DEST_MAN_RU_U = $(DEST_MAN_TOP)/ru.UTF-8$(MAN1DIR)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001303
1304# BASIC_SRC: files that are always used
1305# GUI_SRC: extra GUI files for current configuration
1306# ALL_GUI_SRC: all GUI files for Unix
1307#
1308# SRC: files used for current configuration
1309# TAGS_SRC: source files used for make tags
1310# TAGS_INCL: include files used for make tags
1311# ALL_SRC: source files used for make depend and make lint
1312
1313TAGS_INCL = *.h
1314
1315BASIC_SRC = \
1316 buffer.c \
1317 charset.c \
1318 diff.c \
1319 digraph.c \
1320 edit.c \
1321 eval.c \
1322 ex_cmds.c \
1323 ex_cmds2.c \
1324 ex_docmd.c \
1325 ex_eval.c \
1326 ex_getln.c \
1327 fileio.c \
1328 fold.c \
1329 getchar.c \
Bram Moolenaar383f9bc2005-01-19 22:18:32 +00001330 hashtable.c \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001331 if_cscope.c \
1332 if_xcmdsrv.c \
1333 main.c \
1334 mark.c \
1335 memfile.c \
1336 memline.c \
1337 menu.c \
1338 message.c \
1339 misc1.c \
1340 misc2.c \
1341 move.c \
1342 mbyte.c \
1343 normal.c \
1344 ops.c \
1345 option.c \
1346 os_unix.c \
1347 auto/pathdef.c \
1348 quickfix.c \
1349 regexp.c \
1350 screen.c \
1351 search.c \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001352 spell.c \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001353 syntax.c \
1354 tag.c \
1355 term.c \
1356 ui.c \
1357 undo.c \
1358 version.c \
1359 window.c \
1360 $(OS_EXTRA_SRC)
1361
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001362SRC = $(BASIC_SRC) $(GUI_SRC) $(HANGULIN_SRC) $(MZSCHEME_SRC) \
1363 $(PERL_SRC) $(PYTHON_SRC) $(TCL_SRC) $(RUBY_SRC) \
1364 $(SNIFF_SRC) $(WORKSHOP_SRC) $(WSDEBUG_SRC)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001365
Bram Moolenaar843ee412004-06-30 16:16:41 +00001366TAGS_SRC = *.c *.cpp *.cc if_perl.xs
Bram Moolenaare1d12892004-06-13 13:02:36 +00001367
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001368EXTRA_SRC = hangulin.c if_mzsch.c auto/if_perl.c if_perlsfio.c \
1369 if_python.c if_tcl.c if_ruby.c if_sniff.c gui_beval.c \
1370 workshop.c wsdebug.c integration.c netbeans.c
Bram Moolenaare1d12892004-06-13 13:02:36 +00001371
1372# All sources, also the ones that are not configured
1373ALL_SRC = $(BASIC_SRC) $(ALL_GUI_SRC) $(EXTRA_SRC)
1374
1375# Which files to check with lint. Select one of these three lines. ALL_SRC
1376# checks more, but may not work well for checking a GUI that wasn't configured.
1377# The perl sources also don't work well with lint.
1378LINT_SRC = $(BASIC_SRC) $(GUI_SRC) $(HANGULIN_SRC) $(PYTHON_SRC) $(TCL_SRC) \
1379 $(SNIFF_SRC) $(WORKSHOP_SRC) $(WSDEBUG_SRC) $(NETBEANS_SRC)
1380#LINT_SRC = $(SRC)
1381#LINT_SRC = $(ALL_SRC)
1382
1383OBJ = \
1384 objects/buffer.o \
1385 objects/charset.o \
1386 objects/diff.o \
1387 objects/digraph.o \
1388 objects/edit.o \
1389 objects/eval.o \
1390 objects/ex_cmds.o \
1391 objects/ex_cmds2.o \
1392 objects/ex_docmd.o \
1393 objects/ex_eval.o \
1394 objects/ex_getln.o \
1395 objects/fileio.o \
1396 objects/fold.o \
1397 objects/getchar.o \
Bram Moolenaar383f9bc2005-01-19 22:18:32 +00001398 objects/hashtable.o \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001399 $(HANGULIN_OBJ) \
1400 objects/if_cscope.o \
1401 objects/if_xcmdsrv.o \
1402 objects/main.o \
1403 objects/mark.o \
1404 objects/memfile.o \
1405 objects/memline.o \
1406 objects/menu.o \
1407 objects/message.o \
1408 objects/misc1.o \
1409 objects/misc2.o \
1410 objects/move.o \
1411 objects/mbyte.o \
1412 objects/normal.o \
1413 objects/ops.o \
1414 objects/option.o \
1415 objects/os_unix.o \
1416 objects/pathdef.o \
1417 objects/quickfix.o \
1418 objects/regexp.o \
1419 objects/screen.o \
1420 objects/search.o \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001421 objects/spell.o \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001422 objects/syntax.o \
1423 $(SNIFF_OBJ) \
1424 objects/tag.o \
1425 objects/term.o \
1426 objects/ui.o \
1427 objects/undo.o \
1428 objects/window.o \
1429 $(GUI_OBJ) \
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001430 $(MZSCHEME_OBJ) \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001431 $(PERL_OBJ) \
1432 $(PYTHON_OBJ) \
1433 $(TCL_OBJ) \
1434 $(RUBY_OBJ) \
1435 $(OS_EXTRA_OBJ) \
1436 $(WORKSHOP_OBJ) \
1437 $(NETBEANS_OBJ) \
1438 $(WSDEBUG_OBJ)
1439
1440PRO_AUTO = \
1441 buffer.pro \
1442 charset.pro \
1443 diff.pro \
1444 digraph.pro \
1445 edit.pro \
1446 eval.pro \
1447 ex_cmds.pro \
1448 ex_cmds2.pro \
1449 ex_docmd.pro \
1450 ex_eval.pro \
1451 ex_getln.pro \
1452 fileio.pro \
1453 fold.pro \
1454 getchar.pro \
Bram Moolenaar383f9bc2005-01-19 22:18:32 +00001455 hashtable.pro \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001456 hangulin.pro \
1457 if_cscope.pro \
1458 if_xcmdsrv.pro \
1459 if_python.pro \
1460 if_ruby.pro \
1461 main.pro \
1462 mark.pro \
1463 memfile.pro \
1464 memline.pro \
1465 menu.pro \
1466 message.pro \
1467 misc1.pro \
1468 misc2.pro \
1469 move.pro \
1470 mbyte.pro \
1471 normal.pro \
1472 ops.pro \
1473 option.pro \
1474 os_unix.pro \
1475 quickfix.pro \
1476 regexp.pro \
1477 screen.pro \
1478 search.pro \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001479 spell.pro \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001480 syntax.pro \
1481 tag.pro \
1482 term.pro \
1483 termlib.pro \
1484 ui.pro \
1485 undo.pro \
1486 version.pro \
1487 window.pro \
1488 gui_beval.pro \
1489 workshop.pro \
1490 netbeans.pro \
1491 $(ALL_GUI_PRO) \
1492 $(TCL_PRO)
1493
1494PRO_MANUAL = os_amiga.pro os_msdos.pro os_win16.pro os_win32.pro \
1495 os_mswin.pro os_beos.pro os_vms.pro os_riscos.pro $(PERL_PRO)
1496
1497# Default target is making the executable and tools
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00001498all: $(VIMTARGET) $(TOOLS) languages $(GUI_BUNDLE)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001499
1500tools: $(TOOLS)
1501
1502# Run configure with all the setting from above.
1503#
1504# Note: auto/config.h doesn't depend on configure, because running configure
1505# doesn't always update auto/config.h. The timestamp isn't changed if the
1506# file contents didn't change (to avoid recompiling everything). Including a
1507# dependency on auto/config.h would cause running configure each time when
1508# auto/config.h isn't updated. The dependency on auto/config.mk should make
1509# sure configure is run when it's needed.
1510#
1511config auto/config.mk: auto/configure config.mk.in config.h.in
1512 GUI_INC_LOC="$(GUI_INC_LOC)" GUI_LIB_LOC="$(GUI_LIB_LOC)" \
1513 CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \
1514 LDFLAGS="$(LDFLAGS)" $(CONF_SHELL) srcdir="$(srcdir)" \
1515 ./configure $(CONF_OPT_GUI) $(CONF_OPT_X) $(CONF_OPT_XSMP) \
1516 $(CONF_OPT_DARWIN) $(CONF_OPT_PERL) $(CONF_OPT_PYTHON) \
1517 $(CONF_OPT_TCL) $(CONF_OPT_RUBY) $(CONF_OPT_NLS) \
1518 $(CONF_OPT_CSCOPE) $(CONF_OPT_MULTIBYTE) $(CONF_OPT_INPUT) \
1519 $(CONF_OPT_OUTPUT) $(CONF_OPT_GPM) $(CONF_OPT_WORKSHOP) \
1520 $(CONF_OPT_SNIFF) $(CONF_OPT_FEAT) $(CONF_TERM_LIB) \
1521 $(CONF_OPT_COMPBY) $(CONF_OPT_ACL) $(CONF_OPT_NETBEANS) \
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001522 $(CONF_ARGS) $(CONF_OPT_MZSCHEME) $(CONF_OPT_PLTHOME)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001523
1524# Use "make reconfig" to rerun configure without cached values.
1525# When config.h changes, most things will be recompiled automatically.
Bram Moolenaar592e0a22004-07-03 16:05:59 +00001526# Invoke $(MAKE) to run config with the empty auto/config.mk.
1527# Invoke $(MAKE) to build all with the filled auto/config.mk.
1528reconfig: scratch clean
1529 $(MAKE) -f Makefile config
1530 $(MAKE) -f Makefile all
Bram Moolenaare1d12892004-06-13 13:02:36 +00001531
1532# Run autoconf to produce auto/configure.
1533# Note:
1534# - DO NOT RUN autoconf MANUALLY! It will overwrite ./configure instead of
1535# producing auto/configure.
1536# - autoconf is not run automatically, because a patch usually changes both
1537# configure.in and auto/configure but can't update the timestamps. People
1538# who do not have (the correct version of) autoconf would run into trouble.
1539#
1540# Two tricks are required to make autoconf put its output in the "auto" dir:
1541# - Temporarily move the ./configure script to ./configure.save. Don't
1542# overwrite it, it's probably the result of an aborted autoconf.
1543# - Use sed to change ./config.log to auto/config.log in the configure script.
Bram Moolenaar9d75c832005-01-25 21:57:23 +00001544# Autoconf 2.5x (2.59 at least) produces a few more files that we need to take
1545# care of:
1546# - configure.lineno: has the line numbers replaced with $LINENO. That
1547# improves patches a LOT, thus use it instead (until someone says it doesn't
1548# work on some system).
1549# - autom4te.cache directory is created and not cleaned up. Delete it.
1550# - Uses ">config.log" instead of "./config.log".
Bram Moolenaare1d12892004-06-13 13:02:36 +00001551autoconf:
1552 if test ! -f configure.save; then mv configure configure.save; fi
1553 autoconf
Bram Moolenaar9d75c832005-01-25 21:57:23 +00001554 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 +00001555 chmod 755 auto/configure
1556 mv -f configure.save configure
Bram Moolenaar9d75c832005-01-25 21:57:23 +00001557 -rm -rf autom4te.cache
Bram Moolenaare1d12892004-06-13 13:02:36 +00001558 -rm -f auto/config.status auto/config.cache
1559
1560# Re-execute this Makefile to include the new auto/config.mk produced by
1561# configure Only used when typing "make" with a fresh auto/config.mk.
1562myself:
1563 $(MAKE) -f Makefile all
1564
1565
1566# The normal command to compile a .c file to its .o file.
1567CCC = $(CC) -c -I$(srcdir) $(ALL_CFLAGS)
1568
1569
1570# Link the target for normal use or debugging.
1571# A shell script is used to try linking without unneccesary libraries.
1572$(VIMTARGET): auto/config.mk objects $(OBJ) version.c version.h
1573 $(CCC) version.c -o objects/version.o
1574 @LINK="$(PURIFY) $(SHRPENV) $(CClink) $(ALL_LIB_DIRS) $(LDFLAGS) \
1575 -o $(VIMTARGET) $(OBJ) objects/version.o $(ALL_LIBS)" \
1576 MAKE="$(MAKE)" sh $(srcdir)/link.sh
1577
1578xxd/xxd$(EXEEXT): xxd/xxd.c
1579 cd xxd; CC="$(CC)" CFLAGS="$(CPPFLAGS) $(CFLAGS)" \
1580 $(MAKE) -f Makefile
1581
1582# Build the language specific files if they were unpacked.
1583# Generate the converted .mo files separately, it's no problem if this fails.
1584languages:
1585 @if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
1586 cd $(PODIR); CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix); \
1587 fi
1588 -@if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
1589 cd $(PODIR); CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix) converted; \
1590 fi
1591
1592# Update the *.po files for changes in the sources. Only run manually.
1593update-po:
1594 cd $(PODIR); CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix) update-po
1595
1596# Generate function prototypes. This is not needed to compile vim, but if
1597# you want to use it, cproto is out there on the net somewhere -- Webb
1598#
1599# When generating os_amiga.pro, os_msdos.pro and os_win32.pro there will be a
1600# few include files that can not be found, that's OK.
1601
1602proto: $(PRO_AUTO) $(PRO_MANUAL)
1603
1604### Would be nice if this would work for "normal" make.
1605### Currently it only works for (Free)BSD make.
1606#$(PRO_AUTO): $$(*F).c
1607# cproto $(PFLAGS) -DFEAT_GUI $(*F).c > $@
1608
1609# Always define FEAT_GUI. This may generate a few warnings if it's also
1610# defined in auto/config.h, you can ignore that.
1611.c.pro:
1612 cproto $(PFLAGS) -DFEAT_GUI $< > proto/$@
1613 echo "/* vim: set ft=c : */" >> proto/$@
1614
1615os_amiga.pro: os_amiga.c
1616 cproto $(PFLAGS) -DAMIGA -UHAVE_CONFIG_H -DBPTR=char* $< > proto/$@
1617 echo "/* vim: set ft=c : */" >> proto/$@
1618
1619os_msdos.pro: os_msdos.c
1620 cproto $(PFLAGS) -DMSDOS -UHAVE_CONFIG_H $< > proto/$@
1621 echo "/* vim: set ft=c : */" >> proto/$@
1622
1623os_win16.pro: os_win16.c
1624 cproto $(PFLAGS) -DWIN16 -UHAVE_CONFIG_H $< > proto/$@
1625 echo "/* vim: set ft=c : */" >> proto/$@
1626
1627os_win32.pro: os_win32.c
1628 cproto $(PFLAGS) -DWIN32 -UHAVE_CONFIG_H $< > proto/$@
1629 echo "/* vim: set ft=c : */" >> proto/$@
1630
1631os_mswin.pro: os_mswin.c
1632 cproto $(PFLAGS) -DWIN16 -DWIN32 -UHAVE_CONFIG_H $< > proto/$@
1633 echo "/* vim: set ft=c : */" >> proto/$@
1634
1635os_beos.pro: os_beos.c
1636 cproto $(PFLAGS) -D__BEOS__ -UHAVE_CONFIG_H $< > proto/$@
1637 echo "/* vim: set ft=c : */" >> proto/$@
1638
1639os_vms.pro: os_vms.c
1640# must use os_vms_conf.h for auto/config.h
1641 mv auto/config.h auto/config.h.save
1642 cp os_vms_conf.h auto/config.h
1643 cproto $(PFLAGS) -DVMS -UFEAT_GUI_ATHENA -UFEAT_GUI_NEXTAW -UFEAT_GUI_MOTIF -UFEAT_GUI_GTK $< > proto/$@
1644 echo "/* vim: set ft=c : */" >> proto/$@
1645 rm auto/config.h
1646 mv auto/config.h.save auto/config.h
1647
1648# if_perl.pro is special: Use the generated if_perl.c for input and remove
1649# prototypes for local functions.
1650if_perl.pro: auto/if_perl.c
1651 cproto $(PFLAGS) -DFEAT_GUI auto/if_perl.c | sed "/_VI/d" > proto/$@
1652
1653
1654notags:
1655 -rm -f tags
1656
1657# Note: tags is made for the currently configured version, can't include both
1658# Motif and Athena GUI
1659# You can ignore error messages for missing files.
1660tags TAGS: notags
1661 $(TAGPRG) $(TAGS_SRC) $(TAGS_INCL)
1662
1663# Make a highlight file for types. Requires Exuberant ctags and awk
1664types: types.vim
1665types.vim: $(TAGS_SRC) $(TAGS_INCL)
1666 ctags --c-kinds=gstu -o- $(TAGS_SRC) $(TAGS_INCL) |\
1667 awk 'BEGIN{printf("syntax keyword Type\t")}\
1668 {printf("%s ", $$1)}END{print ""}' > $@
1669
1670# Execute the test scripts. Run these after compiling Vim, before installing.
1671# This doesn't depend on $(VIMTARGET), because that won't work when configure
1672# wasn't run yet. Restart make to build it instead.
1673#
1674# This will produce a lot of garbage on your screen, including a few error
1675# messages. Don't worry about that.
1676# If there is a real error, there will be a difference between "test.out" and
1677# a "test99.ok" file.
1678# If everything is allright, the final message will be "ALL DONE".
1679#
1680test check:
1681 $(MAKE) -f Makefile $(VIMTARGET)
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00001682 cd testdir; $(MAKE) -f Makefile $(GUI_TESTTARGET) VIMPROG=../$(VIMTARGET) $(GUI_TESTARG)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001683
1684testclean:
1685 cd testdir; $(MAKE) -f Makefile clean
1686
1687#
1688# Avoid overwriting an existing executable, somebody might be running it and
1689# overwriting it could cause it to crash. Deleting it is OK, it won't be
1690# really deleted until all running processes for it have exited. It is
1691# renamed first, in case the deleting doesn't work.
1692#
1693# If you want to keep an older version, rename it before running "make
1694# install".
1695#
1696install: $(GUI_INSTALL)
1697
1698install_normal: installvim installtools install-languages install-icons
1699
Bram Moolenaar217ad922005-03-20 22:37:15 +00001700installvim: installvimbin installruntime installlinks installmanlinks installmacros installtutor installspell
Bram Moolenaare1d12892004-06-13 13:02:36 +00001701
1702installvimbin: $(VIMTARGET) $(DESTDIR)$(exec_prefix) $(DEST_BIN)
1703 -if test -f $(DEST_BIN)/$(VIMTARGET); then \
1704 mv -f $(DEST_BIN)/$(VIMTARGET) $(DEST_BIN)/$(VIMNAME).rm; \
1705 rm -f $(DEST_BIN)/$(VIMNAME).rm; \
1706 fi
1707 $(INSTALL_PROG) $(VIMTARGET) $(DEST_BIN)
1708 $(STRIP) $(DEST_BIN)/$(VIMTARGET)
1709 chmod $(BINMOD) $(DEST_BIN)/$(VIMTARGET)
1710# may create a link to the new executable from /usr/bin/vi
1711 -$(LINKIT)
1712
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001713# Long list of arguments for the shell script that installs the manual pages
1714# for one language.
1715INSTALLMANARGS = $(VIMLOC) $(SCRIPTLOC) $(VIMRCLOC) $(HELPSOURCE) $(MANMOD) \
1716 $(VIMNAME) $(VIMDIFFNAME) $(EVIMNAME)
1717
1718# install the help files; first adjust the contents for the final location
1719installruntime: $(HELPSOURCE)/vim.1 $(DEST_VIM) $(DEST_RT) \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001720 $(DEST_HELP) $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND) \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001721 $(DEST_FTP) $(DEST_PLUG) $(DEST_TUTOR) $(DEST_SPELL) $(DEST_COMP)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001722 -$(SHELL) ./installman.sh install $(DEST_MAN) "" $(INSTALLMANARGS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001723 @echo generating help tags
1724# Generate the help tags with ":helptags" to handle all languages.
1725 -@cd $(HELPSOURCE); $(MAKE) VIMEXE=$(DEST_BIN)/$(VIMTARGET) vimtags
1726 cd $(HELPSOURCE); \
1727 files=`ls *.txt tags`; \
1728 files="$$files `ls *.??x tags-?? 2>/dev/null || true`"; \
1729 $(INSTALL_DATA) $$files $(DEST_HELP); \
1730 cd $(DEST_HELP); \
1731 chmod $(HELPMOD) $$files
1732 $(INSTALL_DATA) $(HELPSOURCE)/*.pl $(DEST_HELP)
1733 chmod $(SCRIPTMOD) $(DEST_HELP)/*.pl
1734# install the menu files
1735 $(INSTALL_DATA) $(SCRIPTSOURCE)/menu.vim $(SYS_MENU_FILE)
1736 chmod $(VIMSCRIPTMOD) $(SYS_MENU_FILE)
1737 $(INSTALL_DATA) $(SCRIPTSOURCE)/synmenu.vim $(SYS_SYNMENU_FILE)
1738 chmod $(VIMSCRIPTMOD) $(SYS_SYNMENU_FILE)
1739 $(INSTALL_DATA) $(SCRIPTSOURCE)/delmenu.vim $(SYS_DELMENU_FILE)
1740 chmod $(VIMSCRIPTMOD) $(SYS_DELMENU_FILE)
1741# install the evim file
1742 $(INSTALL_DATA) $(SCRIPTSOURCE)/mswin.vim $(MSWIN_FILE)
1743 chmod $(VIMSCRIPTMOD) $(MSWIN_FILE)
1744 $(INSTALL_DATA) $(SCRIPTSOURCE)/evim.vim $(EVIM_FILE)
1745 chmod $(VIMSCRIPTMOD) $(EVIM_FILE)
1746# install the bugreport file
1747 $(INSTALL_DATA) $(SCRIPTSOURCE)/bugreport.vim $(SYS_BUGR_FILE)
1748 chmod $(VIMSCRIPTMOD) $(SYS_BUGR_FILE)
1749# install the example vimrc files
1750 $(INSTALL_DATA) $(SCRIPTSOURCE)/vimrc_example.vim $(DEST_SCRIPT)
1751 chmod $(VIMSCRIPTMOD) $(DEST_SCRIPT)/vimrc_example.vim
1752 $(INSTALL_DATA) $(SCRIPTSOURCE)/gvimrc_example.vim $(DEST_SCRIPT)
1753 chmod $(VIMSCRIPTMOD) $(DEST_SCRIPT)/gvimrc_example.vim
1754# install the file type detection files
1755 $(INSTALL_DATA) $(SCRIPTSOURCE)/filetype.vim $(SYS_FILETYPE_FILE)
1756 chmod $(VIMSCRIPTMOD) $(SYS_FILETYPE_FILE)
1757 $(INSTALL_DATA) $(SCRIPTSOURCE)/ftoff.vim $(SYS_FTOFF_FILE)
1758 chmod $(VIMSCRIPTMOD) $(SYS_FTOFF_FILE)
1759 $(INSTALL_DATA) $(SCRIPTSOURCE)/scripts.vim $(SYS_SCRIPTS_FILE)
1760 chmod $(VIMSCRIPTMOD) $(SYS_SCRIPTS_FILE)
1761 $(INSTALL_DATA) $(SCRIPTSOURCE)/ftplugin.vim $(SYS_FTPLUGIN_FILE)
1762 chmod $(VIMSCRIPTMOD) $(SYS_FTPLUGIN_FILE)
1763 $(INSTALL_DATA) $(SCRIPTSOURCE)/ftplugof.vim $(SYS_FTPLUGOF_FILE)
1764 chmod $(VIMSCRIPTMOD) $(SYS_FTPLUGOF_FILE)
1765 $(INSTALL_DATA) $(SCRIPTSOURCE)/indent.vim $(SYS_INDENT_FILE)
1766 chmod $(VIMSCRIPTMOD) $(SYS_INDENT_FILE)
1767 $(INSTALL_DATA) $(SCRIPTSOURCE)/indoff.vim $(SYS_INDOFF_FILE)
1768 chmod $(VIMSCRIPTMOD) $(SYS_INDOFF_FILE)
1769 $(INSTALL_DATA) $(SCRIPTSOURCE)/optwin.vim $(SYS_OPTWIN_FILE)
1770 chmod $(VIMSCRIPTMOD) $(SYS_OPTWIN_FILE)
1771# install the print resource files
1772 cd $(PRINTSOURCE); $(INSTALL_DATA) *.ps $(DEST_PRINT)
1773 cd $(DEST_PRINT); chmod $(FILEMOD) *.ps
1774# install the colorscheme files
1775 cd $(COLSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_COL)
1776 cd $(DEST_COL); chmod $(HELPMOD) *.vim README.txt
1777# install the syntax files
1778 cd $(SYNSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_SYN)
1779 cd $(DEST_SYN); chmod $(HELPMOD) *.vim README.txt
1780# install the indent files
1781 cd $(INDSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_IND)
1782 cd $(DEST_IND); chmod $(HELPMOD) *.vim README.txt
1783# install the standard plugin files
1784 cd $(PLUGSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_PLUG)
1785 cd $(DEST_PLUG); chmod $(HELPMOD) *.vim README.txt
1786# install the ftplugin files
1787 cd $(FTPLUGSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_FTP)
1788 cd $(DEST_FTP); chmod $(HELPMOD) *.vim README.txt
1789# install the compiler files
1790 cd $(COMPSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_COMP)
1791 cd $(DEST_COMP); chmod $(HELPMOD) *.vim README.txt
1792
Bram Moolenaar582fd852005-03-28 20:58:01 +00001793installmacros: $(DEST_VIM) $(DEST_RT) $(DEST_MACRO)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001794 $(INSTALL_DATA_R) $(MACROSOURCE)/* $(DEST_MACRO)
1795 chmod $(DIRMOD) `find $(DEST_MACRO) -type d -print`
1796 chmod $(FILEMOD) `find $(DEST_MACRO) -type f -print`
1797 chmod $(SCRIPTMOD) $(DEST_MACRO)/less.sh
1798# When using CVS some CVS directories might have been copied.
1799 cvs=`find $(DEST_MACRO) \( -name CVS -o -name AAPDIR \) -print`; \
1800 if test -n "$$cvs"; then \
1801 rm -rf $$cvs; \
1802 fi
1803
1804# install the tutor files
Bram Moolenaar582fd852005-03-28 20:58:01 +00001805installtutor: $(DEST_VIM) $(DEST_RT) $(DEST_TUTOR)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001806 $(INSTALL_DATA) vimtutor $(DEST_BIN)/$(VIMNAME)tutor
1807 chmod $(SCRIPTMOD) $(DEST_BIN)/$(VIMNAME)tutor
1808 -$(INSTALL_DATA) $(TUTORSOURCE)/README* $(TUTORSOURCE)/tutor* $(DEST_TUTOR)
1809 chmod $(HELPMOD) $(DEST_TUTOR)/*
1810
Bram Moolenaar217ad922005-03-20 22:37:15 +00001811# Install the spell files, if they exist.
Bram Moolenaar582fd852005-03-28 20:58:01 +00001812installspell: $(DEST_VIM) $(DEST_RT) $(DEST_SPELL)
Bram Moolenaar217ad922005-03-20 22:37:15 +00001813 if test -f $(SPELLSOURCE)/en.spl; then \
1814 $(INSTALL_DATA) $(SPELLSOURCE)/*.spl $(DEST_SPELL); \
1815 chmod $(HELPMOD) $(DEST_SPELL)/*.spl; \
1816 fi
1817
Bram Moolenaare1d12892004-06-13 13:02:36 +00001818# install helper program xxd
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001819installtools: $(TOOLS) $(DESTDIR)$(exec_prefix) $(DEST_BIN) \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001820 $(TOOLSSOURCE) $(DEST_VIM) $(DEST_RT) $(DEST_TOOLS)
1821 if test -f $(DEST_BIN)/xxd$(EXEEXT); then \
1822 mv -f $(DEST_BIN)/xxd$(EXEEXT) $(DEST_BIN)/xxd.rm; \
1823 rm -f $(DEST_BIN)/xxd.rm; \
1824 fi
1825 $(INSTALL_PROG) xxd/xxd$(EXEEXT) $(DEST_BIN)
1826 $(STRIP) $(DEST_BIN)/xxd$(EXEEXT)
1827 chmod $(BINMOD) $(DEST_BIN)/xxd$(EXEEXT)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001828 -$(SHELL) ./installman.sh xxd $(DEST_MAN) "" $(INSTALLMANARGS)
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00001829 -$(SHELL) ./installman.sh xxd $(DEST_MAN_FR) "-fr" $(INSTALLMANARGS)
1830 -$(SHELL) ./installman.sh xxd $(DEST_MAN_FR_I) "-fr" $(INSTALLMANARGS)
1831 -$(SHELL) ./installman.sh xxd $(DEST_MAN_FR_U) "-fr.UTF-8" $(INSTALLMANARGS)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001832 -$(SHELL) ./installman.sh xxd $(DEST_MAN_IT) "-it" $(INSTALLMANARGS)
Bram Moolenaar217ad922005-03-20 22:37:15 +00001833 -$(SHELL) ./installman.sh xxd $(DEST_MAN_IT_I) "-it" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001834 -$(SHELL) ./installman.sh xxd $(DEST_MAN_IT_U) "-it.UTF-8" $(INSTALLMANARGS)
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001835 -$(SHELL) ./installman.sh xxd $(DEST_MAN_RU) "-ru" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001836 -$(SHELL) ./installman.sh xxd $(DEST_MAN_RU_U) "-ru.UTF-8" $(INSTALLMANARGS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001837# install the runtime tools
1838 $(INSTALL_DATA_R) $(TOOLSSOURCE)/* $(DEST_TOOLS)
1839# When using CVS some CVS directories might have been copied.
1840 cvs=`find $(DEST_TOOLS) \( -name CVS -o -name AAPDIR \) -print`; \
1841 if test -n "$$cvs"; then \
1842 rm -rf $$cvs; \
1843 fi
1844 -chmod $(FILEMOD) $(DEST_TOOLS)/*
1845# replace the path in some tools
1846 perlpath=`./which.sh perl` && sed -e "s+/usr/bin/perl+$$perlpath+" $(TOOLSSOURCE)/efm_perl.pl >$(DEST_TOOLS)/efm_perl.pl
1847 awkpath=`./which.sh nawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \
1848 awkpath=`./which.sh gawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \
1849 awkpath=`./which.sh awk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; fi; fi
1850 -chmod $(SCRIPTMOD) `grep -l "^#!" $(DEST_TOOLS)/*`
1851
1852# install the language specific files, if they were unpacked
1853install-languages: languages $(DEST_LANG) $(DEST_KMAP)
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00001854 -$(SHELL) ./installman.sh install $(DEST_MAN_FR) "-fr" $(INSTALLMANARGS)
1855 -$(SHELL) ./installman.sh install $(DEST_MAN_FR_I) "-fr" $(INSTALLMANARGS)
1856 -$(SHELL) ./installman.sh install $(DEST_MAN_FR_U) "-fr.UTF-8" $(INSTALLMANARGS)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001857 -$(SHELL) ./installman.sh install $(DEST_MAN_IT) "-it" $(INSTALLMANARGS)
Bram Moolenaar217ad922005-03-20 22:37:15 +00001858 -$(SHELL) ./installman.sh install $(DEST_MAN_IT_I) "-it" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001859 -$(SHELL) ./installman.sh install $(DEST_MAN_IT_U) "-it.UTF-8" $(INSTALLMANARGS)
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001860 -$(SHELL) ./installman.sh install $(DEST_MAN_RU) "-ru" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001861 -$(SHELL) ./installman.sh install $(DEST_MAN_RU_U) "-ru.UTF-8" $(INSTALLMANARGS)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001862 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00001863 $(DEST_MAN_FR) $(INSTALLMLARGS)
1864 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
1865 $(DEST_MAN_FR_I) $(INSTALLMLARGS)
1866 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
1867 $(DEST_MAN_FR_U) $(INSTALLMLARGS)
1868 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001869 $(DEST_MAN_IT) $(INSTALLMLARGS)
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001870 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001871 $(DEST_MAN_IT_I) $(INSTALLMLARGS)
1872 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001873 $(DEST_MAN_IT_U) $(INSTALLMLARGS)
1874 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001875 $(DEST_MAN_RU) $(INSTALLMLARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001876 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
1877 $(DEST_MAN_RU_U) $(INSTALLMLARGS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001878 if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
1879 cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) LOCALEDIR=$(DEST_LANG) \
1880 INSTALL_DATA=$(INSTALL_DATA) FILEMOD=$(FILEMOD) install; \
1881 fi
1882 if test -d $(LANGSOURCE); then \
1883 $(INSTALL_DATA) $(LANGSOURCE)/README.txt $(LANGSOURCE)/*.vim $(DEST_LANG); \
1884 chmod $(FILEMOD) $(DEST_LANG)/README.txt $(DEST_LANG)/*.vim; \
1885 fi
1886 if test -d $(KMAPSOURCE); then \
1887 $(INSTALL_DATA) $(KMAPSOURCE)/README.txt $(KMAPSOURCE)/*.vim $(DEST_KMAP); \
1888 chmod $(FILEMOD) $(DEST_KMAP)/README.txt $(DEST_KMAP)/*.vim; \
1889 fi
1890
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001891# Install the icons for the KDE GUI. This differs from the KDE icons for
1892# other GUIs.
Bram Moolenaar843ee412004-06-30 16:16:41 +00001893installkdeicons:
1894 mkdir -p $(DESTDIR)$(KDE_DIR)/share/applnk/Editors/
1895 mkdir -p $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/32x32/apps/
1896 mkdir -p $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/48x48/apps/
1897 mkdir -p $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/22x22/actions/
1898 mkdir -p $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/16x16/actions/
1899 mkdir -p $(DESTDIR)$(KDE_DIR)/share/apps/kvim
1900
1901 cp ../runtime/KVim.desktop $(DESTDIR)$(KDE_DIR)/share/applnk/Editors/ && chmod 644 $(DESTDIR)$(KDE_DIR)/share/applnk/Editors/KVim.desktop
1902 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
1903 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
1904 cp ../runtime/hi16-action-make.png $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/16x16/actions/hi16-action-make.png
1905 cp ../runtime/hi22-action-make.png $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/22x22/actions/hi22-action-make.png
1906 cp ../runtime/kde-tips $(DESTDIR)$(KDE_DIR)/share/apps/kvim/tips && chmod 644 $(DESTDIR)$(KDE_DIR)/share/apps/kvim/tips
1907
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001908# install the icons for KDE, if the directory exists and the icon doesn't.
Bram Moolenaare1d12892004-06-13 13:02:36 +00001909ICON48PATH = $(DESTDIR)$(DATADIR)/icons/hicolor/48x48/apps
1910ICON32PATH = $(DESTDIR)$(DATADIR)/icons/locolor/32x32/apps
1911ICON16PATH = $(DESTDIR)$(DATADIR)/icons/locolor/16x16/apps
1912KDEPATH = $(HOME)/.kde/share/icons
1913install-icons:
1914 if test -d $(ICON48PATH) -a -w $(ICON48PATH) \
1915 -a ! -f $(ICON48PATH)/gvim.png; then \
1916 $(INSTALL_DATA) $(SCRIPTSOURCE)/vim48x48.png $(ICON48PATH)/gvim.png; \
1917 fi
1918 if test -d $(ICON32PATH) -a -w $(ICON32PATH) \
1919 -a ! -f $(ICON32PATH)/gvim.png; then \
1920 $(INSTALL_DATA) $(SCRIPTSOURCE)/vim32x32.png $(ICON32PATH)/gvim.png; \
1921 fi
1922 if test -d $(ICON16PATH) -a -w $(ICON16PATH) \
1923 -a ! -f $(ICON16PATH)/gvim.png; then \
1924 $(INSTALL_DATA) $(SCRIPTSOURCE)/vim16x16.png $(ICON16PATH)/gvim.png; \
1925 fi
1926
1927
1928$(HELPSOURCE)/vim.1 $(MACROSOURCE) $(TOOLSSOURCE):
1929 @echo Runtime files not found.
1930 @echo You need to unpack the runtime archive before running "make install".
1931 test -f error
1932
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001933$(DESTDIR)$(exec_prefix) $(DEST_BIN) \
1934 $(DEST_VIM) $(DEST_RT) $(DEST_HELP) \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001935 $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND) $(DEST_FTP) \
1936 $(DEST_LANG) $(DEST_KMAP) $(DEST_COMP) \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001937 $(DEST_MACRO) $(DEST_TOOLS) $(DEST_TUTOR) $(DEST_SPELL) \
1938 $(DEST_PLUG):
Bram Moolenaare1d12892004-06-13 13:02:36 +00001939 -$(SHELL) ./mkinstalldirs $@
1940 -chmod $(DIRMOD) $@
1941
1942# create links from various names to vim. This is only done when the links
1943# (or executables with the same name) don't exist yet.
1944installlinks: $(GUI_TARGETS) \
1945 $(DEST_BIN)/$(EXTARGET) \
1946 $(DEST_BIN)/$(VIEWTARGET) \
1947 $(DEST_BIN)/$(RVIMTARGET) \
1948 $(DEST_BIN)/$(RVIEWTARGET) \
1949 $(INSTALLVIMDIFF)
1950
1951installglinks: $(DEST_BIN)/$(GVIMTARGET) \
1952 $(DEST_BIN)/$(GVIEWTARGET) \
1953 $(DEST_BIN)/$(RGVIMTARGET) \
1954 $(DEST_BIN)/$(RGVIEWTARGET) \
1955 $(DEST_BIN)/$(EVIMTARGET) \
1956 $(DEST_BIN)/$(EVIEWTARGET) \
1957 $(INSTALLGVIMDIFF)
1958
1959installvimdiff: $(DEST_BIN)/$(VIMDIFFTARGET)
1960installgvimdiff: $(DEST_BIN)/$(GVIMDIFFTARGET)
1961
1962$(DEST_BIN)/$(EXTARGET):
1963 cd $(DEST_BIN); ln -s $(VIMTARGET) $(EXTARGET)
1964
1965$(DEST_BIN)/$(VIEWTARGET):
1966 cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIEWTARGET)
1967
1968$(DEST_BIN)/$(GVIMTARGET):
1969 cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMTARGET)
1970
1971$(DEST_BIN)/$(GVIEWTARGET):
1972 cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIEWTARGET)
1973
1974$(DEST_BIN)/$(RVIMTARGET):
1975 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIMTARGET)
1976
1977$(DEST_BIN)/$(RVIEWTARGET):
1978 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIEWTARGET)
1979
1980$(DEST_BIN)/$(RGVIMTARGET):
1981 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIMTARGET)
1982
1983$(DEST_BIN)/$(RGVIEWTARGET):
1984 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIEWTARGET)
1985
1986$(DEST_BIN)/$(VIMDIFFTARGET):
1987 cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIMDIFFTARGET)
1988
1989$(DEST_BIN)/$(GVIMDIFFTARGET):
1990 cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMDIFFTARGET)
1991
1992$(DEST_BIN)/$(EVIMTARGET):
1993 cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIMTARGET)
1994
1995$(DEST_BIN)/$(EVIEWTARGET):
1996 cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIEWTARGET)
1997
1998# create links for the manual pages with various names to vim. This is only
1999# done when the links (or manpages with the same name) don't exist yet.
Bram Moolenaare1d12892004-06-13 13:02:36 +00002000
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002001INSTALLMLARGS = $(VIMNAME) $(VIMDIFFNAME) $(EVIMNAME) \
2002 $(EXNAME) $(VIEWNAME) $(RVIMNAME) $(RVIEWNAME) \
2003 $(GVIMNAME) $(GVIEWNAME) $(RGVIMNAME) $(RGVIEWNAME) \
2004 $(GVIMDIFFNAME) $(EVIEWNAME)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002005
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002006installmanlinks:
2007 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
2008 $(DEST_MAN) $(INSTALLMLARGS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002009
2010uninstall: uninstall_runtime
2011 -rm -f $(DEST_BIN)/$(VIMTARGET)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002012 -rm -f $(DEST_BIN)/vimtutor
Bram Moolenaare1d12892004-06-13 13:02:36 +00002013 -rm -f $(DEST_BIN)/$(EXTARGET) $(DEST_BIN)/$(VIEWTARGET)
2014 -rm -f $(DEST_BIN)/$(GVIMTARGET) $(DEST_BIN)/$(GVIEWTARGET)
2015 -rm -f $(DEST_BIN)/$(RVIMTARGET) $(DEST_BIN)/$(RVIEWTARGET)
2016 -rm -f $(DEST_BIN)/$(RGVIMTARGET) $(DEST_BIN)/$(RGVIEWTARGET)
2017 -rm -f $(DEST_BIN)/$(VIMDIFFTARGET) $(DEST_BIN)/$(GVIMDIFFTARGET)
2018 -rm -f $(DEST_BIN)/$(EVIMTARGET) $(DEST_BIN)/$(EVIEWTARGET)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002019 -rm -f $(DEST_BIN)/xxd$(EXEEXT)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002020
2021# Note: the "rmdir" will fail if any files were added after "make install"
2022uninstall_runtime:
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002023 -$(SHELL) ./installman.sh uninstall $(DEST_MAN) "" $(INSTALLMANARGS)
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00002024 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_FR) "" $(INSTALLMANARGS)
2025 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_FR_I) "" $(INSTALLMANARGS)
2026 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_FR_U) "" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002027 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_IT) "" $(INSTALLMANARGS)
Bram Moolenaar217ad922005-03-20 22:37:15 +00002028 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_IT_I) "" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002029 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_IT_U) "" $(INSTALLMANARGS)
2030 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_RU) "" $(INSTALLMANARGS)
2031 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_RU_U) "" $(INSTALLMANARGS)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002032 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2033 $(DEST_MAN) $(INSTALLMLARGS)
2034 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00002035 $(DEST_MAN_FR) $(INSTALLMLARGS)
2036 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2037 $(DEST_MAN_FR_I) $(INSTALLMLARGS)
2038 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2039 $(DEST_MAN_FR_U) $(INSTALLMLARGS)
2040 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002041 $(DEST_MAN_IT) $(INSTALLMLARGS)
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002042 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaar217ad922005-03-20 22:37:15 +00002043 $(DEST_MAN_IT_I) $(INSTALLMLARGS)
2044 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002045 $(DEST_MAN_IT_U) $(INSTALLMLARGS)
2046 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002047 $(DEST_MAN_RU) $(INSTALLMLARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002048 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2049 $(DEST_MAN_RU_U) $(INSTALLMLARGS)
2050 -rm -f $(DEST_MAN)/xxd.1
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00002051 -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 +00002052 -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 +00002053 -rm -f $(DEST_MAN_RU)/xxd.1 $(DEST_MAN_RU_U)/xxd.1
Bram Moolenaare1d12892004-06-13 13:02:36 +00002054 -rm -f $(DEST_HELP)/*.txt $(DEST_HELP)/tags $(DEST_HELP)/*.pl
2055 -rm -f $(DEST_HELP)/*.??x $(DEST_HELP)/tags-??
2056 -rm -f $(SYS_MENU_FILE) $(SYS_SYNMENU_FILE) $(SYS_DELMENU_FILE)
2057 -rm -f $(SYS_BUGR_FILE) $(EVIM_FILE) $(MSWIN_FILE)
2058 -rm -f $(DEST_SCRIPT)/gvimrc_example.vim $(DEST_SCRIPT)/vimrc_example.vim
2059 -rm -f $(SYS_FILETYPE_FILE) $(SYS_FTOFF_FILE) $(SYS_SCRIPTS_FILE)
2060 -rm -f $(SYS_INDOFF_FILE) $(SYS_INDENT_FILE)
2061 -rm -f $(SYS_FTPLUGOF_FILE) $(SYS_FTPLUGIN_FILE)
2062 -rm -f $(SYS_OPTWIN_FILE)
2063 -rm -f $(DEST_COL)/*.vim $(DEST_COL)/README.txt
2064 -rm -f $(DEST_SYN)/*.vim $(DEST_SYN)/README.txt
2065 -rm -f $(DEST_IND)/*.vim $(DEST_IND)/README.txt
2066 -rm -rf $(DEST_MACRO)
2067 -rm -rf $(DEST_TUTOR)
Bram Moolenaar217ad922005-03-20 22:37:15 +00002068 -rm -rf $(DEST_SPELL)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002069 -rm -rf $(DEST_TOOLS)
2070 -rm -rf $(DEST_LANG)
2071 -rm -rf $(DEST_KMAP)
2072 -rm -rf $(DEST_COMP)
2073 -rm -f $(DEST_PRINT)/*.ps
2074 -rmdir $(DEST_HELP) $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND)
2075 -rm -rf $(DEST_FTP)/*.vim $(DEST_FTP)/README.txt
2076 -rm -f $(DEST_PLUG)/*.vim $(DEST_PLUG)/README.txt
2077 -rmdir $(DEST_FTP) $(DEST_PLUG) $(DEST_RT)
2078# This will fail when other Vim versions are installed, no worries.
2079 -rmdir $(DEST_VIM)
2080
2081# Clean up all the files that have been produced, except configure's.
2082# We support common typing mistakes for Juergen! :-)
2083clean celan: testclean
2084 -rm -f *.o objects/* core $(VIMTARGET).core $(VIMTARGET) xxd/*.o
2085 -rm -f $(TOOLS) auto/osdef.h auto/pathdef.c auto/if_perl.c
2086 -rm -f conftest* *~ auto/link.sed
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002087 -rm -rf $(APPDIR)
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00002088 -rm -f gui_kde_wid_moc.cc kvim_iface_skel.cc *.kidl
Bram Moolenaare1d12892004-06-13 13:02:36 +00002089 if test -d $(PODIR); then \
2090 cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) clean; \
2091 fi
2092
2093# Make a shadow directory for compilation on another system or with different
2094# features.
2095SHADOWDIR = shadow
2096
2097shadow: runtime pixmaps
2098 mkdir $(SHADOWDIR)
2099 cd $(SHADOWDIR); ln -s ../*.[ch] ../*.in ../*.sh ../*.xs ../*.xbm ../toolcheck ../proto ../vimtutor ../mkinstalldirs .
2100 mkdir $(SHADOWDIR)/auto
2101 cd $(SHADOWDIR)/auto; ln -s ../../auto/configure .
2102 cd $(SHADOWDIR); rm -f auto/link.sed
2103 cp Makefile configure $(SHADOWDIR)
2104 rm -f $(SHADOWDIR)/auto/config.mk $(SHADOWDIR)/config.mk.dist
2105 cp config.mk.dist $(SHADOWDIR)/auto/config.mk
2106 cp config.mk.dist $(SHADOWDIR)
2107 mkdir $(SHADOWDIR)/xxd
2108 cd $(SHADOWDIR)/xxd; ln -s ../../xxd/*.[ch] ../../xxd/Make* .
2109 mkdir $(SHADOWDIR)/testdir
2110 cd $(SHADOWDIR)/testdir; ln -s ../../testdir/Makefile \
2111 ../../testdir/vimrc.unix \
2112 ../../testdir/*.in \
2113 ../../testdir/unix.vim \
2114 ../../testdir/*.ok .
2115
2116# Link needed for doing "make install" in a shadow directory.
2117runtime:
2118 -ln -s ../runtime .
2119
2120# Link needed for doing "make" using GTK in a shadow directory.
2121pixmaps:
2122 -ln -s ../pixmaps .
2123
2124# Update the synmenu.vim file with the latest Syntax menu.
2125# This is only needed when runtime/makemenu.vim was changed.
2126menu: ./vim ../runtime/makemenu.vim
2127 ./vim -u ../runtime/makemenu.vim
2128
2129# Start configure from scratch
2130scrub scratch:
2131 -rm -f auto/config.status auto/config.cache config.log auto/config.log
2132 -rm -f auto/config.h auto/link.log auto/link.sed auto/config.mk
2133 touch auto/config.h
2134 cp config.mk.dist auto/config.mk
2135
2136distclean: clean scratch
2137 -rm -f tags
2138
2139dist: distclean
2140 @echo
2141 @echo Making the distribution has to be done in the top directory
2142
2143mdepend:
2144 -@rm -f Makefile~
2145 cp Makefile Makefile~
2146 sed -e '/\#\#\# Dependencies/q' < Makefile > tmp_make
2147 @for i in $(ALL_SRC) ; do \
2148 echo "$$i" ; \
2149 echo `echo "$$i" | sed -e 's/[^ ]*\.c$$/objects\/\1.o/'`": $$i" `\
2150 $(CPP) $$i |\
2151 grep '^# .*"\./.*\.h"' |\
2152 sort -t'"' -u +1 -2 |\
2153 sed -e 's/.*"\.\/\(.*\)".*/\1/'\
2154 ` >> tmp_make ; \
2155 done
2156 mv tmp_make Makefile
2157
2158depend:
2159 -@rm -f Makefile~
2160 cp Makefile Makefile~
2161 sed -e '/\#\#\# Dependencies/q' < Makefile > tmp_make
2162 -for i in $(ALL_SRC); do echo $$i; \
2163 $(CPP_DEPEND) $$i | \
2164 sed -e 's+^\([^ ]*\.o\)+objects/\1+' >> tmp_make; done
2165 mv tmp_make Makefile
2166
Bram Moolenaar9d75c832005-01-25 21:57:23 +00002167# Run lint. Clean up the *.ln files that are sometimes left behind.
Bram Moolenaare1d12892004-06-13 13:02:36 +00002168lint:
2169 lint $(LINT_OPTIONS) $(LINT_CFLAGS) -DUSE_SNIFF -DHANGUL_INPUT $(LINT_SRC)
Bram Moolenaar9d75c832005-01-25 21:57:23 +00002170 -rm -f *.ln
Bram Moolenaare1d12892004-06-13 13:02:36 +00002171
2172# Check dosinst.c with lint.
2173lintinstall:
2174 lint $(LINT_OPTIONS) -DWIN32 -DUNIX_LINT dosinst.c
Bram Moolenaar9d75c832005-01-25 21:57:23 +00002175 -rm -f dosinst.ln
Bram Moolenaare1d12892004-06-13 13:02:36 +00002176
2177###########################################################################
2178
2179.c.o:
2180 $(CCC) $<
2181
2182.cc.o:
2183 $(CCC) $<
2184
2185auto/if_perl.c: if_perl.xs
2186 $(PERL) -e 'unless ( $$] >= 5.005 ) { for (qw(na defgv errgv)) { print "#define PL_$$_ $$_\n" }}' > $@
2187 $(PERL) $(PERLLIB)/ExtUtils/xsubpp -prototypes -typemap \
2188 $(PERLLIB)/ExtUtils/typemap if_perl.xs >> $@
2189
2190auto/osdef.h: auto/config.h osdef.sh osdef1.h.in osdef2.h.in
2191 CC="$(CC) $(ALL_CFLAGS)" srcdir=$(srcdir) sh $(srcdir)/osdef.sh
2192
2193QUOTESED = sed -e 's/"/\\"/g' -e 's/\\"/"/' -e 's/\\";$$/";/'
2194auto/pathdef.c: Makefile auto/config.mk
2195 -@echo creating $@
2196 -@echo '/* pathdef.c */' > $@
2197 -@echo '/* This file is automatically created by Makefile' >> $@
2198 -@echo ' * DO NOT EDIT! Change Makefile only. */' >> $@
2199 -@echo '#include "vim.h"' >> $@
2200 -@echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' | $(QUOTESED) >> $@
2201 -@echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' | $(QUOTESED) >> $@
2202 -@echo 'char_u *all_cflags = (char_u *)"$(CC) -c -I$(srcdir) $(ALL_CFLAGS)";' | $(QUOTESED) >> $@
2203 -@echo 'char_u *all_lflags = (char_u *)"$(CC) $(ALL_LIB_DIRS) $(LDFLAGS) -o $(VIMTARGET) $(ALL_LIBS) ";' | $(QUOTESED) >> $@
2204 -@echo 'char_u *compiled_user = (char_u *)"' | tr -d $(NL) >> $@
2205 -@if test -n "$(COMPILEDBY)"; then \
2206 echo "$(COMPILEDBY)" | tr -d $(NL) >> $@; \
2207 else ((logname) 2>/dev/null || whoami) | tr -d $(NL) >> $@; fi
2208 -@echo '";' >> $@
2209 -@echo 'char_u *compiled_sys = (char_u *)"' | tr -d $(NL) >> $@
2210 -@if test -z "$(COMPILEDBY)"; then hostname | tr -d $(NL) >> $@; fi
2211 -@echo '";' >> $@
2212 -@sh $(srcdir)/pathdef.sh
2213
2214# All the object files are put in the "objects" directory. Since not all make
2215# commands understand putting object files in another directory, it must be
2216# specified for each file separately.
2217
2218objects:
2219 mkdir objects
2220
2221objects/buffer.o: buffer.c
2222 $(CCC) -o $@ buffer.c
2223
2224objects/charset.o: charset.c
2225 $(CCC) -o $@ charset.c
2226
2227objects/diff.o: diff.c
2228 $(CCC) -o $@ diff.c
2229
2230objects/digraph.o: digraph.c
2231 $(CCC) -o $@ digraph.c
2232
2233objects/edit.o: edit.c
2234 $(CCC) -o $@ edit.c
2235
2236objects/eval.o: eval.c
2237 $(CCC) -o $@ eval.c
2238
2239objects/ex_cmds.o: ex_cmds.c
2240 $(CCC) -o $@ ex_cmds.c
2241
2242objects/ex_cmds2.o: ex_cmds2.c
2243 $(CCC) -o $@ ex_cmds2.c
2244
2245objects/ex_docmd.o: ex_docmd.c
2246 $(CCC) -o $@ ex_docmd.c
2247
2248objects/ex_eval.o: ex_eval.c
2249 $(CCC) -o $@ ex_eval.c
2250
2251objects/ex_getln.o: ex_getln.c
2252 $(CCC) -o $@ ex_getln.c
2253
2254objects/fileio.o: fileio.c
2255 $(CCC) -o $@ fileio.c
2256
2257objects/fold.o: fold.c
2258 $(CCC) -o $@ fold.c
2259
2260objects/getchar.o: getchar.c
2261 $(CCC) -o $@ getchar.c
2262
Bram Moolenaar383f9bc2005-01-19 22:18:32 +00002263objects/hashtable.o: hashtable.c
2264 $(CCC) -o $@ hashtable.c
2265
Bram Moolenaare1d12892004-06-13 13:02:36 +00002266objects/gui.o: gui.c
2267 $(CCC) -o $@ gui.c
2268
2269objects/gui_at_fs.o: gui_at_fs.c
2270 $(CCC) -o $@ gui_at_fs.c
2271
2272objects/gui_at_sb.o: gui_at_sb.c
2273 $(CCC) -o $@ gui_at_sb.c
2274
2275objects/gui_athena.o: gui_athena.c
2276 $(CCC) -o $@ gui_athena.c
2277
Bram Moolenaare1d12892004-06-13 13:02:36 +00002278objects/gui_beval.o: gui_beval.c
2279 $(CCC) -o $@ gui_beval.c
2280
2281objects/gui_gtk.o: gui_gtk.c
2282 $(CCC) -o $@ gui_gtk.c
2283
2284objects/gui_gtk_f.o: gui_gtk_f.c
2285 $(CCC) -o $@ gui_gtk_f.c
2286
2287objects/gui_gtk_x11.o: gui_gtk_x11.c
2288 $(CCC) -o $@ gui_gtk_x11.c
2289
2290objects/gui_motif.o: gui_motif.c
2291 $(CCC) -o $@ gui_motif.c
2292
Bram Moolenaardfccaf02004-12-31 20:56:11 +00002293objects/gui_xmdlg.o: gui_xmdlg.c
2294 $(CCC) -o $@ gui_xmdlg.c
2295
Bram Moolenaarb7fcef52005-01-02 11:31:05 +00002296objects/gui_xmebw.o: gui_xmebw.c
2297 $(CCC) -o $@ gui_xmebw.c
2298
Bram Moolenaare1d12892004-06-13 13:02:36 +00002299objects/gui_x11.o: gui_x11.c
2300 $(CCC) -o $@ gui_x11.c
2301
2302objects/gui_photon.o: gui_photon.c
2303 $(CCC) -o $@ gui_photon.c
2304
2305objects/gui_mac.o: gui_mac.c
2306 $(CCC) -o $@ gui_mac.c
2307
2308objects/hangulin.o: hangulin.c
2309 $(CCC) -o $@ hangulin.c
2310
2311objects/if_cscope.o: if_cscope.c
2312 $(CCC) -o $@ if_cscope.c
2313
2314objects/if_xcmdsrv.o: if_xcmdsrv.c
2315 $(CCC) -o $@ if_xcmdsrv.c
2316
Bram Moolenaar325b7a22004-07-05 15:58:32 +00002317objects/if_mzsch.o: if_mzsch.c
2318 $(CCC) -o $@ if_mzsch.c
2319
Bram Moolenaare1d12892004-06-13 13:02:36 +00002320objects/if_perl.o: auto/if_perl.c
2321 $(CCC) -o $@ auto/if_perl.c
2322
2323objects/if_perlsfio.o: if_perlsfio.c
2324 $(CCC) -o $@ if_perlsfio.c
2325
2326objects/if_python.o: if_python.c
2327 $(CCC) -o $@ if_python.c
2328
2329objects/if_ruby.o: if_ruby.c
2330 $(CCC) -o $@ if_ruby.c
2331
2332objects/if_sniff.o: if_sniff.c
2333 $(CCC) -o $@ if_sniff.c
2334
2335objects/if_tcl.o: if_tcl.c
2336 $(CCC) -o $@ if_tcl.c
2337
2338objects/integration.o: integration.c
2339 $(CCC) -o $@ integration.c
2340
2341objects/main.o: main.c
2342 $(CCC) -o $@ main.c
2343
2344objects/mark.o: mark.c
2345 $(CCC) -o $@ mark.c
2346
2347objects/memfile.o: memfile.c
2348 $(CCC) -o $@ memfile.c
2349
2350objects/memline.o: memline.c
2351 $(CCC) -o $@ memline.c
2352
2353objects/menu.o: menu.c
2354 $(CCC) -o $@ menu.c
2355
2356objects/message.o: message.c
2357 $(CCC) -o $@ message.c
2358
2359objects/misc1.o: misc1.c
2360 $(CCC) -o $@ misc1.c
2361
2362objects/misc2.o: misc2.c
2363 $(CCC) -o $@ misc2.c
2364
2365objects/move.o: move.c
2366 $(CCC) -o $@ move.c
2367
2368objects/mbyte.o: mbyte.c
2369 $(CCC) -o $@ mbyte.c
2370
2371objects/normal.o: normal.c
2372 $(CCC) -o $@ normal.c
2373
2374objects/ops.o: ops.c
2375 $(CCC) -o $@ ops.c
2376
2377objects/option.o: option.c
2378 $(CCC) -o $@ option.c
2379
2380objects/os_beos.o: os_beos.c
2381 $(CCC) -o $@ os_beos.c
2382
2383objects/os_qnx.o: os_qnx.c
2384 $(CCC) -o $@ os_qnx.c
2385
2386objects/os_macosx.o: os_macosx.c
2387 $(CCC) -o $@ os_macosx.c
2388
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002389objects/os_mac_conv.o: os_mac_conv.c
2390 $(CCC) -o $@ os_mac_conv.c
2391
Bram Moolenaare1d12892004-06-13 13:02:36 +00002392objects/os_unix.o: os_unix.c
2393 $(CCC) -o $@ os_unix.c
2394
2395objects/pathdef.o: auto/pathdef.c
2396 $(CCC) -o $@ auto/pathdef.c
2397
2398objects/py_config.o: $(PYTHON_CONFDIR)/config.c
2399 $(CCC) -o $@ $(PYTHON_CONFDIR)/config.c \
2400 -I$(PYTHON_CONFDIR) -DHAVE_CONFIG_H -DNO_MAIN
2401
2402objects/py_getpath.o: $(PYTHON_CONFDIR)/getpath.c
2403 $(CCC) -o $@ $(PYTHON_CONFDIR)/getpath.c \
2404 -I$(PYTHON_CONFDIR) -DHAVE_CONFIG_H -DNO_MAIN \
2405 $(PYTHON_GETPATH_CFLAGS)
2406
2407objects/pty.o: pty.c
2408 $(CCC) -o $@ pty.c
2409
2410objects/quickfix.o: quickfix.c
2411 $(CCC) -o $@ quickfix.c
2412
2413objects/regexp.o: regexp.c
2414 $(CCC) -o $@ regexp.c
2415
2416objects/screen.o: screen.c
2417 $(CCC) -o $@ screen.c
2418
2419objects/search.o: search.c
2420 $(CCC) -o $@ search.c
2421
Bram Moolenaar217ad922005-03-20 22:37:15 +00002422objects/spell.o: spell.c
2423 $(CCC) -o $@ spell.c
2424
Bram Moolenaare1d12892004-06-13 13:02:36 +00002425objects/syntax.o: syntax.c
2426 $(CCC) -o $@ syntax.c
2427
2428objects/tag.o: tag.c
2429 $(CCC) -o $@ tag.c
2430
2431objects/term.o: term.c
2432 $(CCC) -o $@ term.c
2433
2434objects/ui.o: ui.c
2435 $(CCC) -o $@ ui.c
2436
2437objects/undo.o: undo.c
2438 $(CCC) -o $@ undo.c
2439
2440objects/window.o: window.c
2441 $(CCC) -o $@ window.c
2442
2443objects/workshop.o: workshop.c
2444 $(CCC) -o $@ workshop.c
2445
2446objects/wsdebug.o: wsdebug.c
2447 $(CCC) -o $@ wsdebug.c
2448
Bram Moolenaar843ee412004-06-30 16:16:41 +00002449objects/gui_kde.o: gui_kde.cc
2450 $(CCC) -o $@ gui_kde.cc
2451
2452objects/gui_kde_x11.o: gui_kde_x11.cc
2453 $(CCC) -o $@ gui_kde_x11.cc
2454
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00002455objects/gui_kde_wid.o: gui_kde_wid.cc
2456 $(MOC) -o gui_kde_wid_moc.cc gui_kde_wid.h
Bram Moolenaar843ee412004-06-30 16:16:41 +00002457 $(KDE_DIR)/bin/dcopidl kvim_iface.h > kvim_iface.kidl || ( rm -f kvim_iface.kidl ; /bin/false )
2458 $(KDE_DIR)/bin/dcopidl2cpp --c++-suffix cc --no-stub kvim_iface.kidl
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00002459 $(CCC) -o $@ gui_kde_wid.cc
Bram Moolenaar843ee412004-06-30 16:16:41 +00002460
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00002461gui_kde_wid_moc.cc: objects/gui_kde_wid.o
2462objects/gui_kde_wid_moc.o: gui_kde_wid_moc.cc
2463 $(CCC) -o $@ gui_kde_wid_moc.cc
Bram Moolenaar843ee412004-06-30 16:16:41 +00002464
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00002465kvim_iface_skel.cc: objects/gui_kde_wid.o
Bram Moolenaar843ee412004-06-30 16:16:41 +00002466objects/kvim_iface_skel.o: kvim_iface_skel.cc
2467 $(CCC) -o $@ kvim_iface_skel.cc
2468
Bram Moolenaare1d12892004-06-13 13:02:36 +00002469objects/netbeans.o: netbeans.c
2470 $(CCC) -o $@ netbeans.c
2471
2472Makefile:
2473 @echo The name of the makefile MUST be "Makefile" (with capital M)!!!!
2474
2475###############################################################################
2476### MacOS X installation
2477###
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002478### This installs a runnable Vim.app in $(prefix)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002479
2480REZ = /Developer/Tools/Rez
Bram Moolenaare1d12892004-06-13 13:02:36 +00002481RESDIR = $(APPDIR)/Contents/Resources
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00002482VERSION = $(VIMMAJOR).$(VIMMINOR)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002483
2484### Common flags
2485M4FLAGSX = $(M4FLAGS) -DAPP_EXE=$(VIMNAME) -DAPP_NAME=$(VIMNAME) \
2486 -DAPP_VER=$(VERSION) -DICON_APP=$(ICON_APP)
2487
2488### Icons
2489ICON_APP = gui_mac.icns
2490ICONS = $(RESDIR)/$(ICON_APP)
2491
2492# If you uncomment the following lines the *.icns in the src directory will be
2493# detected by this Makefile automatically, and used for Vim.
2494#ICON_APP = $(shell if [ -e app.icns ] ; then echo app.icns ; else echo gui_mac.icns ; fi)
2495#ICON_DOC = $(shell if [ -e doc.icns ] ; then echo doc.icns ; else echo ; fi)
2496#ICON_DOCTXT = $(shell if [ -e doc-txt.icns ] ; then echo doc-txt.icns ; else echo ; fi)
2497#ICONS = $(addprefix $(RESDIR)/, $(ICON_APP) $(ICON_DOC) $(ICON_DOCTXT))
2498
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002499install_macosx: gui_bundle
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002500 $(INSTALL_DATA_R) $(APPDIR) $(DESTDIR)$(prefix)
2501
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002502gui_bundle: $(APPDIR) bundle-dir bundle-executable bundle-info bundle-resource \
Bram Moolenaare1d12892004-06-13 13:02:36 +00002503 bundle-language
2504
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002505$(APPDIR):
2506 mkdir -p $@
2507
Bram Moolenaare1d12892004-06-13 13:02:36 +00002508bundle-dir: $(APPDIR)/Contents $(VIMTARGET)
2509 -@srcdir=`pwd`; cd $(HELPSOURCE); $(MAKE) VIMEXE=$$srcdir/$(VIMTARGET) vimtags
2510 cp -R ../runtime $(APPDIR)
Bram Moolenaardf177f62005-02-22 08:39:57 +00002511# When using CVS some CVS directories might have been copied.
2512 cvs=`find $(APPDIR) \( -name CVS -o -name AAPDIR \) -print`; \
2513 if test -n "$$cvs"; then \
2514 rm -rf $$cvs; \
2515 fi
Bram Moolenaare1d12892004-06-13 13:02:36 +00002516
2517bundle-executable: $(VIMTARGET)
2518 cp $(VIMTARGET) $(APPDIR)/Contents/MacOS/$(VIMTARGET)
2519
2520bundle-info: bundle-dir
2521 @echo "Creating PkgInfo"
2522 @echo -n "APPLVIM!" > $(APPDIR)/Contents/PkgInfo
2523 @echo "Creating Info.plist"
2524 m4 $(M4FLAGSX) infplist.xml > $(APPDIR)/Contents/Info.plist
2525
2526bundle-resource: bundle-dir bundle-icons bundle-rsrc
2527
2528bundle-icons: $(ICONS)
2529
2530### Classic resources
2531# Resource fork (in the form of a .rsrc file) for Classic Vim (Mac OS 9)
2532# This file is also required for OS X Vim.
2533bundle-rsrc: os_mac.rsr.hqx
2534 @echo "Creating resource fork"
2535 python dehqx.py $<
2536 rm -f gui_mac.rsrc
2537 mv gui_mac.rsrc.rsrcfork $(RESDIR)/$(VIMNAME).rsrc
2538
2539# po/Make_osx.pl says something about generating a Mac message file
2540# for Ukrananian. Would somebody using Mac OS X in Ukranian
2541# *really* be upset that Carbon Vim was not localised in
2542# Ukranian?
2543#
2544#bundle-language: bundle-dir po/Make_osx.pl
2545# cd po && perl Make_osx.pl --outdir ../$(RESDIR) $(MULTILANG)
2546bundle-language: bundle-dir
2547
2548$(APPDIR)/Contents:
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002549 -$(SHELL) ./mkinstalldirs $(APPDIR)/Contents/MacOS
2550 -$(SHELL) ./mkinstalldirs $(RESDIR)/English.lproj
Bram Moolenaare1d12892004-06-13 13:02:36 +00002551
2552$(RESDIR)/%.icns: %.icns
2553 cp $< $@
2554
2555
2556###############################################################################
2557### (automatically generated by 'make depend')
2558### Dependencies:
2559objects/buffer.o: buffer.c vim.h auto/config.h feature.h os_unix.h \
2560 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2561 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2562 globals.h farsi.h arabic.h version.h
2563objects/charset.o: charset.c vim.h auto/config.h feature.h os_unix.h \
2564 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2565 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2566 globals.h farsi.h arabic.h
2567objects/diff.o: diff.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2568 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2569 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2570 arabic.h
2571objects/digraph.o: digraph.c vim.h auto/config.h feature.h os_unix.h \
2572 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2573 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2574 globals.h farsi.h arabic.h
2575objects/edit.o: edit.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2576 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2577 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2578 arabic.h
2579objects/eval.o: eval.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2580 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2581 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2582 arabic.h version.h
2583objects/ex_cmds.o: ex_cmds.c vim.h auto/config.h feature.h os_unix.h \
2584 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2585 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2586 globals.h farsi.h arabic.h version.h
2587objects/ex_cmds2.o: ex_cmds2.c vim.h auto/config.h feature.h os_unix.h \
2588 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2589 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2590 globals.h farsi.h arabic.h version.h
2591objects/ex_docmd.o: ex_docmd.c vim.h auto/config.h feature.h os_unix.h \
2592 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2593 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2594 globals.h farsi.h arabic.h
2595objects/ex_eval.o: ex_eval.c vim.h auto/config.h feature.h os_unix.h \
2596 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2597 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2598 globals.h farsi.h arabic.h
2599objects/ex_getln.o: ex_getln.c vim.h auto/config.h feature.h os_unix.h \
2600 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2601 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2602 globals.h farsi.h arabic.h
2603objects/fileio.o: fileio.c vim.h auto/config.h feature.h os_unix.h \
2604 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2605 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2606 globals.h farsi.h arabic.h
2607objects/fold.o: fold.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2608 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2609 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2610 arabic.h
2611objects/getchar.o: getchar.c vim.h auto/config.h feature.h os_unix.h \
2612 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2613 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2614 globals.h farsi.h arabic.h
Bram Moolenaar383f9bc2005-01-19 22:18:32 +00002615objects/hashtable.o: hashtable.c vim.h auto/config.h feature.h os_unix.h \
2616 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2617 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2618 globals.h farsi.h arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002619objects/if_cscope.o: if_cscope.c vim.h auto/config.h feature.h os_unix.h \
2620 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2621 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2622 globals.h farsi.h arabic.h if_cscope.h
2623objects/if_xcmdsrv.o: if_xcmdsrv.c vim.h auto/config.h feature.h os_unix.h \
2624 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2625 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2626 globals.h farsi.h arabic.h version.h
2627objects/main.o: main.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2628 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2629 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2630 arabic.h farsi.c arabic.c
2631objects/mark.o: mark.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2632 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2633 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2634 arabic.h
2635objects/memfile.o: memfile.c vim.h auto/config.h feature.h os_unix.h \
2636 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2637 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2638 globals.h farsi.h arabic.h
2639objects/memline.o: memline.c vim.h auto/config.h feature.h os_unix.h \
2640 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2641 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2642 globals.h farsi.h arabic.h
2643objects/menu.o: menu.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2644 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2645 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2646 arabic.h
2647objects/message.o: message.c vim.h auto/config.h feature.h os_unix.h \
2648 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2649 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2650 globals.h farsi.h arabic.h
2651objects/misc1.o: misc1.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2652 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2653 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2654 arabic.h version.h
2655objects/misc2.o: misc2.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2656 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2657 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2658 arabic.h
2659objects/move.o: move.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2660 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2661 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2662 arabic.h
2663objects/mbyte.o: mbyte.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2664 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2665 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2666 arabic.h
2667objects/normal.o: normal.c vim.h auto/config.h feature.h os_unix.h \
2668 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2669 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2670 globals.h farsi.h arabic.h
2671objects/ops.o: ops.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2672 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2673 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2674 arabic.h
2675objects/option.o: option.c vim.h auto/config.h feature.h os_unix.h \
2676 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2677 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2678 globals.h farsi.h arabic.h
2679objects/os_unix.o: os_unix.c vim.h auto/config.h feature.h os_unix.h \
2680 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2681 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2682 globals.h farsi.h arabic.h os_unixx.h
2683objects/pathdef.o: auto/pathdef.c vim.h auto/config.h feature.h os_unix.h \
2684 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2685 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2686 globals.h farsi.h arabic.h
2687objects/quickfix.o: quickfix.c vim.h auto/config.h feature.h os_unix.h \
2688 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2689 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2690 globals.h farsi.h arabic.h
2691objects/regexp.o: regexp.c vim.h auto/config.h feature.h os_unix.h \
2692 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2693 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2694 globals.h farsi.h arabic.h
2695objects/screen.o: screen.c vim.h auto/config.h feature.h os_unix.h \
2696 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2697 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2698 globals.h farsi.h arabic.h
2699objects/search.o: search.c vim.h auto/config.h feature.h os_unix.h \
2700 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2701 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2702 globals.h farsi.h arabic.h
Bram Moolenaar217ad922005-03-20 22:37:15 +00002703objects/spell.o: spell.c vim.h auto/config.h feature.h os_unix.h \
2704 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2705 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2706 globals.h farsi.h arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002707objects/syntax.o: syntax.c vim.h auto/config.h feature.h os_unix.h \
2708 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2709 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2710 globals.h farsi.h arabic.h
2711objects/tag.o: tag.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2712 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2713 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2714 arabic.h
2715objects/term.o: term.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2716 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2717 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2718 arabic.h
2719objects/ui.o: ui.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2720 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2721 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2722 arabic.h
2723objects/undo.o: undo.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2724 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2725 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2726 arabic.h
2727objects/version.o: version.c vim.h auto/config.h feature.h os_unix.h \
2728 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2729 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2730 globals.h farsi.h arabic.h version.h
2731objects/window.o: window.c vim.h auto/config.h feature.h os_unix.h \
2732 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2733 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2734 globals.h farsi.h arabic.h
2735objects/gui.o: gui.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2736 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2737 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2738 arabic.h
2739objects/gui_gtk.o: gui_gtk.c gui_gtk_f.h vim.h auto/config.h feature.h \
2740 os_unix.h auto/osdef.h ascii.h keymap.h term.h macros.h structs.h \
2741 regexp.h gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h \
2742 proto.h globals.h farsi.h arabic.h ../pixmaps/stock_icons.h
2743objects/gui_gtk_f.o: gui_gtk_f.c vim.h auto/config.h feature.h os_unix.h \
2744 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2745 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2746 globals.h farsi.h arabic.h gui_gtk_f.h
2747objects/gui_motif.o: gui_motif.c vim.h auto/config.h feature.h os_unix.h \
2748 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2749 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2750 globals.h farsi.h arabic.h ../pixmaps/alert.xpm ../pixmaps/error.xpm \
2751 ../pixmaps/generic.xpm ../pixmaps/info.xpm ../pixmaps/quest.xpm
2752objects/gui_athena.o: gui_athena.c vim.h auto/config.h feature.h os_unix.h \
2753 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2754 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2755 globals.h farsi.h arabic.h gui_at_sb.h
2756objects/gui_gtk_x11.o: gui_gtk_x11.c vim.h auto/config.h feature.h os_unix.h \
2757 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2758 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2759 globals.h farsi.h arabic.h gui_gtk_f.h ../runtime/vim32x32.xpm \
2760 ../runtime/vim16x16.xpm ../runtime/vim48x48.xpm
2761objects/gui_x11.o: gui_x11.c vim.h auto/config.h feature.h os_unix.h \
2762 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2763 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2764 globals.h farsi.h arabic.h ../runtime/vim32x32.xpm \
2765 ../runtime/vim16x16.xpm ../runtime/vim48x48.xpm ../pixmaps/tb_new.xpm \
2766 ../pixmaps/tb_open.xpm ../pixmaps/tb_close.xpm ../pixmaps/tb_save.xpm \
2767 ../pixmaps/tb_print.xpm ../pixmaps/tb_cut.xpm ../pixmaps/tb_copy.xpm \
2768 ../pixmaps/tb_paste.xpm ../pixmaps/tb_find.xpm \
2769 ../pixmaps/tb_find_next.xpm ../pixmaps/tb_find_prev.xpm \
2770 ../pixmaps/tb_find_help.xpm ../pixmaps/tb_exit.xpm \
2771 ../pixmaps/tb_undo.xpm ../pixmaps/tb_redo.xpm ../pixmaps/tb_help.xpm \
2772 ../pixmaps/tb_macro.xpm ../pixmaps/tb_make.xpm \
2773 ../pixmaps/tb_save_all.xpm ../pixmaps/tb_jump.xpm \
2774 ../pixmaps/tb_ctags.xpm ../pixmaps/tb_load_session.xpm \
2775 ../pixmaps/tb_save_session.xpm ../pixmaps/tb_new_session.xpm \
2776 ../pixmaps/tb_blank.xpm ../pixmaps/tb_maximize.xpm \
2777 ../pixmaps/tb_split.xpm ../pixmaps/tb_minimize.xpm \
2778 ../pixmaps/tb_shell.xpm ../pixmaps/tb_replace.xpm \
2779 ../pixmaps/tb_vsplit.xpm ../pixmaps/tb_maxwidth.xpm \
2780 ../pixmaps/tb_minwidth.xpm
2781objects/gui_at_sb.o: gui_at_sb.c vim.h auto/config.h feature.h os_unix.h \
2782 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2783 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2784 globals.h farsi.h arabic.h gui_at_sb.h
2785objects/gui_at_fs.o: gui_at_fs.c vim.h auto/config.h feature.h os_unix.h \
2786 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2787 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2788 globals.h farsi.h arabic.h gui_at_sb.h
2789objects/pty.o: pty.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2790 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2791 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2792 arabic.h
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00002793objects/gui_kde.o: gui_kde.cc gui_kde_wid.h kvim_iface.h vim.h \
Bram Moolenaar843ee412004-06-30 16:16:41 +00002794 auto/config.h feature.h os_unix.h auto/osdef.h ascii.h keymap.h \
2795 term.h macros.h structs.h regexp.h gui.h option.h ex_cmds.h proto.h \
2796 globals.h farsi.h
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00002797objects/gui_kde_wid.o: gui_kde_wid.cc gui_kde_wid.h kvim_iface.h \
Bram Moolenaar843ee412004-06-30 16:16:41 +00002798 vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h keymap.h \
2799 term.h macros.h structs.h regexp.h gui.h option.h ex_cmds.h proto.h \
2800 globals.h farsi.h proto/../../pixmaps/alert.xpm proto/../../pixmaps/error.xpm \
2801 proto/../../pixmaps/generic.xpm proto/../../pixmaps/info.xpm \
2802 proto/../../pixmaps/quest.xpm
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00002803objects/gui_kde_x11.o: gui_kde_x11.cc gui_kde_wid.h kvim_iface.h vim.h \
Bram Moolenaar843ee412004-06-30 16:16:41 +00002804 auto/config.h feature.h os_unix.h auto/osdef.h ascii.h keymap.h \
2805 term.h macros.h structs.h regexp.h gui.h option.h ex_cmds.h proto.h \
2806 globals.h farsi.h version.h ../runtime/vim32x32.xpm
Bram Moolenaar5eb86f92004-07-26 12:53:41 +00002807objects/gui_kde_wid_moc.o: gui_kde_wid_moc.cc gui_kde_wid.h \
Bram Moolenaar843ee412004-06-30 16:16:41 +00002808 kvim_iface.h vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2809 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h option.h \
2810 ex_cmds.h proto.h globals.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002811objects/hangulin.o: hangulin.c vim.h auto/config.h feature.h os_unix.h \
2812 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2813 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2814 globals.h farsi.h arabic.h
Bram Moolenaar325b7a22004-07-05 15:58:32 +00002815objects/if_mzsch.o: if_mzsch.c vim.h auto/config.h feature.h os_unix.h \
2816 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2817 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2818 globals.h farsi.h arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002819objects/if_perl.o: auto/if_perl.c vim.h auto/config.h feature.h os_unix.h \
2820 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2821 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2822 globals.h farsi.h arabic.h
2823objects/if_perlsfio.o: if_perlsfio.c vim.h auto/config.h feature.h os_unix.h \
2824 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2825 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2826 globals.h farsi.h arabic.h
2827objects/if_python.o: if_python.c vim.h auto/config.h feature.h os_unix.h \
2828 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2829 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2830 globals.h farsi.h arabic.h
2831objects/if_tcl.o: if_tcl.c vim.h auto/config.h feature.h os_unix.h \
2832 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2833 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2834 globals.h farsi.h arabic.h
2835objects/if_ruby.o: if_ruby.c vim.h auto/config.h feature.h os_unix.h \
2836 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2837 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2838 globals.h farsi.h arabic.h version.h
2839objects/if_sniff.o: if_sniff.c vim.h auto/config.h feature.h os_unix.h \
2840 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2841 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2842 globals.h farsi.h arabic.h os_unixx.h
2843objects/gui_beval.o: gui_beval.c vim.h auto/config.h feature.h os_unix.h \
2844 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2845 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2846 globals.h farsi.h arabic.h
2847objects/workshop.o: workshop.c auto/config.h integration.h vim.h feature.h \
2848 os_unix.h auto/osdef.h ascii.h keymap.h term.h macros.h structs.h \
2849 regexp.h gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h \
2850 proto.h globals.h farsi.h arabic.h version.h workshop.h
2851objects/wsdebug.o: wsdebug.c
2852objects/integration.o: integration.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 integration.h
2856objects/netbeans.o: netbeans.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 version.h