blob: 810dd7b78b52a66b12f820bdd31778d7060916ce [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
Bram Moolenaar9372a112005-12-06 19:59:18 +000037# user logging out from session-managers like GNOME and work
Bram Moolenaare1d12892004-06-13 13:02:36 +000038# 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
Bram Moolenaare344bea2005-09-01 20:46:49 +0000122# make installruntime installs most of the runtime files
123# make installrtbase only installs the Vim help and
Bram Moolenaare1d12892004-06-13 13:02:36 +0000124# runtime files
125# make installlinks only installs the Vim binary links
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000126# make installmanlinks only installs the Vim manpage links
Bram Moolenaare1d12892004-06-13 13:02:36 +0000127# make installmacros only installs the Vim macros
Bram Moolenaare344bea2005-09-01 20:46:49 +0000128# make installtutorbin only installs the Vim tutor program
129# make installtutor only installs the Vim tutor files
Bram Moolenaar217ad922005-03-20 22:37:15 +0000130# make installspell only installs the spell files
Bram Moolenaare1d12892004-06-13 13:02:36 +0000131# make installtools only installs xxd
132# If you install Vim, not to install for real but to prepare a package
133# or RPM, set DESTDIR to the root of the tree.
134#
135# 6. Use Vim until a new version comes out. {{{1
136#
137# 7. "make uninstall_runtime" {{{1
138# Will remove the runtime files for the current version. This is safe
139# to use while another version is being used, only version-specific
140# files will be deleted.
141# To remove the runtime files of another version:
142# make uninstall_runtime VIMRTDIR=/vim54
143# If you want to delete all installed files, use:
144# make uninstall
145# Note that this will delete files that have the same name for any
146# version, thus you might need to do a "make install" soon after this.
147# Be careful not to remove a version of Vim that is still being used!
148# To find out which files and directories will be deleted, use:
149# make -n uninstall
150# }}}
151#
Bram Moolenaara5792f52005-11-23 21:25:05 +0000152### This Makefile has been successfully tested on many systems. {{{
Bram Moolenaare1d12892004-06-13 13:02:36 +0000153### Only the ones that require special options are mentioned here.
154### Check the (*) column for remarks, listed below.
155### Later code changes may cause small problems, otherwise Vim is supposed to
156### compile and run without problems.
157
158#system: configurations: version (*) tested by:
159#------------- ------------------------ ------- - ----------
160#AIX 3.2.5 cc (not gcc) - 4.5 (M) Will Fiveash
161#AIX 4 cc +X11 -GUI 3.27 (4) Axel Kielhorn
162#AIX 4.1.4 cc +X11 +GUI 4.5 (5) Nico Bakker
163#AIX 4.2.1 cc 5.2k (C) Will Fiveash
164#AIX 4.3.3.12 xic 3.6.6 5.6 (5) David R. Favor
165#A/UX 3.1.1 gcc +X11 4.0 (6) Jim Jagielski
166#BeOS PR mwcc DR3 5.0n (T) Olaf Seibert
167#BSDI 2.1 (x86) shlicc2 gcc-2.6.3 -X11 X11R6 4.5 (1) Jos Backus
168#BSD/OS 3.0 (x86) gcc gcc-2.7.2.1 -X11 X11R6 4.6c (1) Jos Backus
169#CX/UX 6.2 cc +X11 +GUI_Mofif 5.4 (V) Kipp E. Howard
170#DG/UX 5.4* gcc 2.5.8 GUI 5.0e (H) Jonas Schlein
171#DG/UX 5.4R4.20 gcc 2.7.2 GUI 5.0s (H) Rocky Olive
172#HP-UX (most) c89 cc 5.1 (2) Bram Moolenaar
173#HP-UX_9.04 cc +X11 +Motif 5.0 (2) Carton Lao
174#Irix 6.3 (O2) cc ? 4.5 (L) Edouard Poor
175#Irix 6.4 cc ? 5.0m (S) Rick Sayre
176#Irix 6.5 cc ? 6.0 (S) David Harrison
177#Irix 64 bit 4.5 (K) Jon Wright
178#Linux 2.0 gcc-2.7.2 Infomagic Motif 4.3 (3) Ronald Rietman
179#Linux 2.0.31 gcc +X11 +GUI Athena 5.0w (U) Darren Hiebert
180#LynxOS 3.0.1 2.9-gnupro-98r2 +X11 +GUI Athena 5.7.1(O) Lorenz Hahn
181#LynxOS 3.1.0 2.9-gnupro-98r2 +X11 +GUI Athena 5.7.1(O) Lorenz Hahn
182#NEC UP4800 UNIX_SV 4.2MP cc +X11R6 Motif,Athena4.6b (Q) Lennart Schultz
183#NetBSD 1.0A gcc-2.4.5 -X11 -GUI 3.21 (X) Juergen Weigert
184#QNX 4.2 wcc386-10.6 -X11 4.2 (D) G.F. Desrochers
185#QNX 4.23 Watcom -X11 4.2 (F) John Oleynick
186#SCO Unix v3.2.5 cc +X11 Motif 3.27 (C) M. Kuperblum
187#SCO Open Server 5 gcc 2.7.2.3 +X11 +GUI Motif 5.3 (A) Glauber Ribeiro
188#SINIX-N 5.43 RM400 R4000 cc +X11 +GUI 5.0l (I) Martin Furter
189#SINIX-Z 5.42 i386 gcc 2.7.2.3 +X11 +GUI Motif 5.1 (I) Joachim Fehn
190#SINIX-Y 5.43 RM600 R4000 gcc 2.7.2.3 +X11 +GUI Motif 5.1 (I) Joachim Fehn
191#Reliant/SINIX 5.44 cc +X11 +GUI 5.5a (I) B. Pruemmer
192#SNI Targon31 TOS 4.1.11 gcc-2.4.5 +X11 -GUI 4.6c (B) Paul Slootman
193#Solaris 2.4 (Sparc) cc +X11 +GUI 3.29 (9) Glauber
194#Solaris 2.4/2.5 clcc +X11 -GUI openwin 3.20 (7) Robert Colon
195#Solaris 2.5 (sun4m) cc (SC4.0) +X11R6 +GUI (CDE) 4.6b (E) Andrew Large
196#Solaris 2.5 cc +X11 +GUI Athena 4.2 (9) Sonia Heimann
197#Solaris 2.5 gcc 2.5.6 +X11 Motif 5.0m (R) Ant. Colombo
198#Solaris 2.6 gcc 2.8.1 ncursus 5.3 (G) Larry W. Virden
199#Solaris with -lthread 5.5 (W) K. Nagano
200#Solaris gcc (b) Riccardo
201#SunOS 4.1.x +X11 -GUI 5.1b (J) Bram Moolenaar
202#SunOS 4.1.3_U1 (sun4c) gcc +X11 +GUI Athena 5.0w (J) Darren Hiebert
203#SUPER-UX 6.2 (NEC SX-4) cc +X11R6 Motif,Athena4.6b (P) Lennart Schultz
204#Unisys 6035 cc +X11 Motif 5.3 (8) Glauber Ribeiro
205#ESIX V4.2 cc +X11 6.0 (a) Reinhard Wobst
206#Mac OS X 10.[23] gcc Carbon 6.2 (x) Bram Moolenaar
207# }}}
208
209# (*) Remarks: {{{
210#
211# (1) Uncomment line below for shlicc2
212# (2) HPUX with compile problems or wrong digraphs, uncomment line below
213# (3) Infomagic Motif needs GUI_LIB_LOC and GUI_INC_LOC set, see below.
214# And add "-lXpm" to MOTIF_LIBS2.
215# (4) For cc the optimizer must be disabled (use CFLAGS= after running
216# configure) (symptom: ":set termcap" output looks weird).
217# (5) Compiler may need extra argument, see below.
218# (6) See below for a few lines to uncomment
219# (7) See below for lines which enable the use of clcc
220# (8) Needs some EXTRA_LIBS, search for Unisys below
221# (9) Needs an extra compiler flag to compile gui_at_sb.c, see below.
222# (A) May need EXTRA_LIBS, see below
223# (B) Can't compile GUI because there is no waitpid()... Disable GUI below.
224# (C) Force the use of curses instead of termcap, see below.
225# (D) Uncomment lines below for QNX
226# (E) You might want to use termlib instead of termcap, see below.
227# (F) See below for instructions.
228# (G) Using ncursus version 4.2 has reported to cause a crash. Use the
229# Sun cursus library instead.
230# (H) See line for EXTRA_LIBS below.
231# (I) SINIX-N 5.42 and 5.43 need some EXTRA_LIBS. Also for Reliant-Unix.
232# (J) If you get undefined symbols, see below for a solution.
233# (K) See lines to uncomment below for machines with 64 bit pointers.
234# (L) For Silicon Graphics O2 workstations remove "-lnsl" from auto/config.mk
235# (M) gcc version cygnus-2.0.1 does NOT work (symptom: "dl" deletes two
236# characters instead of one).
237# (N) SCO with decmouse.
238# (O) LynxOS needs EXTRA_LIBS, see below.
239# (P) For SuperUX 6.2 on NEC SX-4 see a few lines below to uncomment.
240# (Q) For UNIXSVR 4.2MP on NEC UP4800 see below for lines to uncomment.
241# (R) For Solaris 2.5 (or 2.5.1) with gcc > 2.5.6, uncomment line below.
242# (S) For Irix 6.x with MipsPro compiler, use -OPT:Olimit. See line below.
243# (T) See ../doc/os_beos.txt.
244# (U) Must uncomment CONF_OPT_PYTHON option below to disable Python
245# detection, since the configure script runs into an error when it
246# detects Python (probably because of the bash shell).
247# (V) See lines to uncomment below.
248# (X) Need to use the .include "auto/config.mk" line below
249# (Y) See line with c89 below
250# (Z) See lines with cc or c89 below
251# (a) See line with EXTRA_LIBS below.
252# (b) When using gcc with the Solaris linker, make sure you don't use GNU
253# strip, otherwise the binary may not run: "Cannot find ELF".
254# (x) When you get warnings for precompiled header files, run
255# "sudo fixPrecomps". Also see CONF_OPT_DARWIN below.
256# }}}
257
258
259#DO NOT CHANGE the next line, we need it for configure to find the compiler
260#instead of using the default from the "make" program.
261#Use a line further down to change the value for CC.
262CC=
263
264# Change and use these defines if configure cannot find your Motif stuff.
265# Unfortunately there is no "standard" location for Motif. {{{
266# These defines can contain a single directory (recommended) or a list of
267# directories (for when you are working with several systems). The LAST
268# directory that exists is used.
269# When changed, run "make reconfig" next!
270#GUI_INC_LOC = -I/usr/include/Motif2.0 -I/usr/include/Motif1.2
271#GUI_LIB_LOC = -L/usr/lib/Motif2.0 -L/usr/lib/Motif1.2
272### Use these two lines for Infomagic Motif (3)
273#GUI_INC_LOC = -I/usr/X11R6/include
274#GUI_LIB_LOC = -L/usr/X11R6/lib
275# }}}
276
277######################## auto/config.mk ######################## {{{1
278# At this position auto/config.mk is included. When starting from the
279# distribution it is almost empty. After running auto/configure it contains
280# settings that have been discovered for your system. Settings below this
281# include override settings in auto/config.mk!
282
283# Note: if auto/config.mk is lost somehow (e.g., because configure was
284# interrupted), create an empty auto/config.mk file and do "make config".
285
286# (X) How to include auto/config.mk depends on the version of "make" you have,
287# if the current choice doesn't work, try the other one.
288
289include auto/config.mk
290#.include "auto/config.mk"
291CClink = $(CC)
292
293#}}}
294
295# Include the configuration choices first, so we can override everything
296# below. As shipped, this file contains a target that causes to run
297# configure. Once configure was run, this file contains a list of
298# make variables with predefined values instead. Thus any second invocation
Bram Moolenaara5792f52005-11-23 21:25:05 +0000299# of make, will build Vim.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000300
301# CONFIGURE - configure arguments {{{1
302# You can give a lot of options to configure.
303# Change this to your desire and do 'make config' afterwards
304
305# examples (can only use one!):
306#CONF_ARGS = --exec-prefix=/usr
307#CONF_ARGS = --with-vim-name=vim6 --with-ex-name=ex6 --with-view-name=view6
308#CONF_ARGS = --with-global-runtime=/etc/vim
309
310# Use this one if you distribute a modified version of Vim.
311#CONF_ARGS = --with-modified-by="John Doe"
312
313# GUI - For creating Vim with GUI (gvim) (B)
314# Uncomment this line when you don't want to get the GUI version, although you
315# have GTK, Motif and/or Athena. Also use --without-x if you don't want X11
316# at all.
317#CONF_OPT_GUI = --disable-gui
318
319# Uncomment one of these lines if you have that GUI but don't want to use it.
320# The automatic check will use another one that can be found
321# Gnome is disabled by default, it may cause trouble.
322#CONF_OPT_GUI = --disable-gtk-check
323#CONF_OPT_GUI = --disable-gtk2-check
324#CONF_OPT_GUI = --enable-gnome-check
325#CONF_OPT_GUI = --enable-gnome2-check
326#CONF_OPT_GUI = --disable-motif-check
327#CONF_OPT_GUI = --disable-athena-check
328#CONF_OPT_GUI = --disable-nextaw-check
329
330# Uncomment one of these lines to select a specific GUI to use.
331# When using "yes" or nothing, configure will use the first one found: GTK+,
332# Motif or Athena.
333#
334# GTK versions that are known not to work 100% are rejected.
335# Use "--disable-gtktest" to accept them anyway.
336#
337# GNOME means GTK with Gnome support. If using GTK, then GNOME will
338# automatically be used if it is found. If you have GNOME, but do not want to
339# use it (e.g., want a GTK-only version), then use --enable-gui=gtk.
340#
341# If the selected GUI isn't found, the GUI is disabled automatically
342#CONF_OPT_GUI = --enable-gui=gtk
343#CONF_OPT_GUI = --enable-gui=gtk --disable-gtktest
344#CONF_OPT_GUI = --enable-gui=gtk2
345#CONF_OPT_GUI = --enable-gui=gtk2 --disable-gtktest
346#CONF_OPT_GUI = --enable-gui=gnome
347#CONF_OPT_GUI = --enable-gui=gnome2
348#CONF_OPT_GUI = --enable-gui=gnome2 --disable-gtktest
349#CONF_OPT_GUI = --enable-gui=motif
350#CONF_OPT_GUI = --enable-gui=motif --with-motif-lib="-static -lXm -shared"
351#CONF_OPT_GUI = --enable-gui=athena
352#CONF_OPT_GUI = --enable-gui=nextaw
353
354# DARWIN - detecting Mac OS X
355# Uncomment this line when you want to compile a Unix version of Vim on
356# Darwin. None of the Mac specific options or files will be used.
357#CONF_OPT_DARWIN = --disable-darwin
358
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000359# PERL
Bram Moolenaare1d12892004-06-13 13:02:36 +0000360# Uncomment this when you want to include the Perl interface.
361# The Perl option sometimes causes problems, because it adds extra flags
362# to the command line. If you see strange flags during compilation, check in
363# auto/config.mk where they come from. If it's PERL_CFLAGS, try commenting
364# the next line.
365# When you get an error for a missing "perl.exp" file, try creating an emtpy
366# one: "touch perl.exp".
367# This requires at least "small" features, "tiny" doesn't work.
368#CONF_OPT_PERL = --enable-perlinterp
369
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000370# PYTHON
Bram Moolenaare1d12892004-06-13 13:02:36 +0000371# Uncomment this when you want to include the Python interface.
Bram Moolenaar0e21a3f2005-04-17 20:28:32 +0000372# NOTE: This may cause threading to be enabled, which has side effects (such
373# as using different libraries and debugging becomes more difficult).
Bram Moolenaara5792f52005-11-23 21:25:05 +0000374# NOTE: Using this together with Perl may cause a crash in initialization.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000375#CONF_OPT_PYTHON = --enable-pythoninterp
376
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000377# TCL
Bram Moolenaare1d12892004-06-13 13:02:36 +0000378# Uncomment this when you want to include the Tcl interface.
379#CONF_OPT_TCL = --enable-tclinterp
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +0000380#CONF_OPT_TCL = --enable-tclinterp --with-tclsh=tclsh8.4
Bram Moolenaare1d12892004-06-13 13:02:36 +0000381
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000382# RUBY
Bram Moolenaare1d12892004-06-13 13:02:36 +0000383# Uncomment this when you want to include the Ruby interface.
384#CONF_OPT_RUBY = --enable-rubyinterp
385
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000386# MZSCHEME
387# Uncomment this when you want to include the MzScheme interface.
388#CONF_OPT_MZSCHEME = --enable-mzschemeinterp
389# PLT/mrscheme/drscheme Home dir; the PLTHOME environment variable also works
390#CONF_OPT_PLTHOME = --with-plthome=/usr/local/plt
391#CONF_OPT_PLTHOME = --with-plthome=/usr/local/drscheme
392#CONF_OPT_PLTHOME = --with-plthome=/home/me/mz
393
394# CSCOPE
Bram Moolenaare1d12892004-06-13 13:02:36 +0000395# Uncomment this when you want to include the Cscope interface.
396#CONF_OPT_CSCOPE = --enable-cscope
397
398# WORKSHOP - Sun Visual Workshop interface. Only works with Motif!
399#CONF_OPT_WORKSHOP = --enable-workshop
400
401# NETBEANS - NetBeans interface. Only works with Motif, GTK, and gnome.
402# Motif version must have XPM libraries (see |workshop-xpm|).
403# Uncomment this when you do not want the netbeans interface.
404#CONF_OPT_NETBEANS = --disable-netbeans
405
406# SNIFF - Include support for SNiFF+.
407#CONF_OPT_SNIFF = --enable-sniff
408
409# MULTIBYTE - To edit multi-byte characters.
410# Uncomment this when you want to edit a multibyte language.
411# It's automatically enabled with big features or IME support.
412# Note: Compile on a machine where setlocale() actually works, otherwise the
413# configure tests may fail.
414#CONF_OPT_MULTIBYTE = --enable-multibyte
415
416# NLS - National Language Support
417# Uncomment this when you do not want to support translated messages, even
418# though configure can find support for it.
419#CONF_OPT_NLS = --disable-nls
420
Bram Moolenaara5792f52005-11-23 21:25:05 +0000421# XIM - X Input Method. Special character input support for X11 (Chinese,
422# Japanese, special symbols, etc). Also needed for dead-key support.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000423# When omitted it's automatically enabled for the X-windows GUI.
Bram Moolenaara5792f52005-11-23 21:25:05 +0000424# HANGUL - Input Hangul (Korean) language using internal routines.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000425# Uncomment one of these when you want to input a multibyte language.
426#CONF_OPT_INPUT = --enable-xim
427#CONF_OPT_INPUT = --disable-xim
428#CONF_OPT_INPUT = --enable-hangulinput
429
430# FONTSET - X fontset support for output of languages with many characters.
431# Uncomment this when you want to output a multibyte language.
432#CONF_OPT_OUTPUT = --enable-fontset
433
434# ACL - Uncomment this when you do not want to include ACL support, even
435# though your system does support it. E.g., when it's buggy.
436#CONF_OPT_ACL = --disable-acl
437
438# gpm - For mouse support on Linux console via gpm
439# Uncomment this when you do not want to include gpm support, even
440# though you have gpm libraries and includes
441#CONF_OPT_GPM = --disable-gpm
442
443# FEATURES - For creating Vim with more or less features
444# Uncomment one of these lines when you want to include few to many features.
445# The default is "normal".
446#CONF_OPT_FEAT = --with-features=tiny
447#CONF_OPT_FEAT = --with-features=small
448#CONF_OPT_FEAT = --with-features=normal
449#CONF_OPT_FEAT = --with-features=big
Bram Moolenaar69a7cb42004-06-20 12:51:53 +0000450#CONF_OPT_FEAT = --with-features=huge
Bram Moolenaare1d12892004-06-13 13:02:36 +0000451
452# COMPILED BY - For including a specific e-mail address for ":version".
453#CONF_OPT_COMPBY = "--with-compiledby=John Doe <JohnDoe@yahoo.com>"
454
455# X WINDOWS DISABLE - For creating a plain Vim without any X11 related fancies
456# (otherwise Vim configure will try to include xterm titlebar access)
457# Also disable the GUI above, otherwise it will be included anyway.
458# When both GUI and X11 have been disabled this may save about 15% of the
459# code and make Vim startup quicker.
460#CONF_OPT_X = --without-x
461
462# X WINDOWS DIRECTORY - specify X directories
Bram Moolenaara5792f52005-11-23 21:25:05 +0000463# If configure can't find you X stuff, or if you have multiple X11 derivatives
Bram Moolenaare1d12892004-06-13 13:02:36 +0000464# installed, you may wish to specify which one to use.
465# Select nothing to let configure choose.
466# This here selects openwin (as found on sun).
467#XROOT = /usr/openwin
468#CONF_OPT_X = --x-include=$(XROOT)/include --x-libraries=$(XROOT)/lib
469
470# X11 Session Management Protocol support
471# Vim will try to use XSMP to catch the user logging out if there are unsaved
472# files. Uncomment this line to disable that (it prevents vim trying to open
473# communications with the session manager).
474#CONF_OPT_XSMP = --disable-xsmp
475
476# You may wish to include xsmp but use exclude xsmp-interact if the logout
477# XSMP functionality does not work well with your session-manager (at time of
478# writing, this would be early GNOME-1 gnome-session: it 'freezes' other
479# applications after Vim has cancelled a logout (until Vim quits). This
480# *might* be the Vim code, but is more likely a bug in early GNOME-1.
481# This disables the dialog that asks you if you want to save files or not.
482#CONF_OPT_XSMP = --disable-xsmp-interact
483
484# COMPILER - Name of the compiler {{{1
485# The default from configure will mostly be fine, no need to change this, just
486# an example. If a compiler is defined here, configure will use it rather than
487# probing for one. It is dangerous to change this after configure was run.
488# Make will use your choice then -- but beware: Many things may change with
489# another compiler. It is wise to run 'make reconfig' to start all over
490# again.
491#CC = cc
492#CC = gcc
493
494# COMPILER FLAGS - change as you please. Either before running {{{1
495# configure or afterwards. For examples see below.
496# When using -g with some older versions of Linux you might get a
497# statically linked executable.
498# When not defined, configure will try to use -O2 -g for gcc and -O for cc.
499#CFLAGS = -g
500#CFLAGS = -O
501
502# Optimization limits - depends on the compiler. Automatic check in configure
503# doesn't work very well, because many compilers only give a warning for
504# unrecognized arguments.
505#CFLAGS = -O -OPT:Olimit=2600
506#CFLAGS = -O -Olimit 2000
507#CFLAGS = -O -FOlimit,2000
508
509# Often used for GCC: mixed optimizing, lot of optimizing, debugging
510#CFLAGS = -g -O2 -fno-strength-reduce -Wall -Wshadow -Wmissing-prototypes
Bram Moolenaar69a7cb42004-06-20 12:51:53 +0000511#CFLAGS = -g -O2 -fno-strength-reduce -Wall -Wmissing-prototypes
Bram Moolenaardf177f62005-02-22 08:39:57 +0000512#CFLAGS = -g -Wall -Wmissing-prototypes
Bram Moolenaare1d12892004-06-13 13:02:36 +0000513#CFLAGS = -O6 -fno-strength-reduce -Wall -Wshadow -Wmissing-prototypes
514#CFLAGS = -g -DDEBUG -Wall -Wshadow -Wmissing-prototypes
Bram Moolenaar592e0a22004-07-03 16:05:59 +0000515#CFLAGS = -g -O2 '-DSTARTUPTIME="vimstartup"' -fno-strength-reduce -Wall -Wmissing-prototypes
Bram Moolenaare1d12892004-06-13 13:02:36 +0000516
517# EFENCE - Electric-Fence malloc debugging: catches memory accesses beyond
518# allocated memory (and makes every malloc()/free() very slow).
519# Electric Fence is free (search ftp sites).
Bram Moolenaar53180ce2005-07-05 21:48:14 +0000520# You may want to set the EF_PROTECT_BELOW environment variable to check the
521# other side of allocated memory.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000522# On FreeBSD you might need to enlarge the number of mmaps allowed. Do this
523# as root: sysctl -w vm.max_proc_mmap=30000
524#EXTRA_LIBS = /usr/local/lib/libefence.a
525
526# PURIFY - remove the # to use the "purify" program (hoi Nia++!)
527#PURIFY = purify
528# }}}
529
530# LINT - for running lint
531LINT_OPTIONS = -beprxzF
532
533# PROFILING - Uncomment the next two lines to do profiling with gcc and gprof.
534# Might not work with GUI or Perl.
Bram Moolenaar4770d092006-01-12 23:22:24 +0000535# For unknown reasons adding "-lc" fixes a linking problem with GCC. That's
536# probably a bug in the "-pg" implementation.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000537# Need to recompile everything after changing this: "make clean" "make".
538#PROFILE_CFLAGS = -pg -g
539#PROFILE_LIBS = -pg
Bram Moolenaar4770d092006-01-12 23:22:24 +0000540#PROFILE_LIBS = -pg -lc
Bram Moolenaare1d12892004-06-13 13:02:36 +0000541
Bram Moolenaar0a5fe212005-06-24 23:01:23 +0000542# MEMORY LEAK DETECTION
543# Requires installing the ccmalloc library.
544# Configuration is in the .ccmalloc file.
545# Doesn't work very well, since memory linked to from global variables
546# (indirectly) is also marked as leaked memory.
547#PROFILE_CFLAGS = -DEXITFREE
548#PROFILE_LIBS = -lccmalloc
549
Bram Moolenaare1d12892004-06-13 13:02:36 +0000550#####################################################
551### Specific systems, check if yours is listed! ### {{{
552#####################################################
553
554### Uncomment things here only if the values chosen by configure are wrong.
555### It's better to adjust configure.in and "make autoconf", if you can!
556### Then send the required changes to configure.in to the bugs list.
557
558### (1) BSD/OS 2.0.1, 2.1 or 3.0 using shared libraries
559###
560#CC = shlicc2
561#CFLAGS = -O2 -g -m486 -Wall -Wshadow -Wmissing-prototypes -fno-builtin
562
563### (2) HP-UX with a non-ANSI cc, use the c89 ANSI compiler
564### The first probably works on all systems
565### The second should work a bit better on newer systems
566### The third should work a bit better on HPUX 11.11
567### Information provided by: Richard Allen <ra@rhi.hi.is>
568#CC = c89 -D_HPUX_SOURCE
569#CC = c89 -O +Onolimit +ESlit -D_HPUX_SOURCE
570#CC = c89 -O +Onolimit +ESlit +e -D_HPUX_SOURCE
571
572### (2) For HP-UX: Enable the use of a different set of digraphs. Use this
573### when the default (ISO) digraphs look completely wrong.
574### After changing this do "touch digraph.c; make".
575#EXTRA_DEFS = -DHPUX_DIGRAPHS
576
577### (2) For HP-UX: 9.04 cpp default macro definition table of 128000 bytes
578### is too small to compile many routines. It produces too much defining
579### and no space errors.
580### Uncomment the following to specify a larger macro definition table.
581#CFLAGS = -Wp,-H256000
582
583### (2) For HP-UX 10.20 using the HP cc, with X11R6 and Motif 1.2, with
584### libraries in /usr/lib instead of /lib (avoiding transition links).
585### Information provided by: David Green
586#XROOT = /usr
587#CONF_OPT_X = --x-include=$(XROOT)/include/X11R6 --x-libraries=$(XROOT)/lib/X11R6
588#GUI_INC_LOC = -I/usr/include/Motif1.2
589#GUI_LIB_LOC = -L/usr/lib/Motif1.2_R6
590
591### (5) AIX 4.1.4 with cc
592#CFLAGS = -O -qmaxmem=8192
593
594### AIX with c89 (Walter Briscoe)
595#CC = c89
596#CPPFLAGS = -D_ALL_SOURCE
597
598### AIX 4.3.3.12 with xic 3.6.6 (David R. Favor)
599# needed to avoid a problem where strings.h gets included
600#CFLAGS = -qsrcmsg -O2 -qmaxmem=8192 -D__STR31__
601
602### (W) Solaris with multi-threaded libraries (-lthread):
603### If suspending doesn't work properly, try using this line:
604#EXTRA_DEFS = -D_REENTRANT
605
606### (7) Solaris 2.4/2.5 with Centerline compiler
607#CC = clcc
608#X_LIBS_DIR = -L/usr/openwin/lib -R/usr/openwin/lib
609#CFLAGS = -O
610
611### (9) Solaris 2.x with cc (SunPro), using Athena.
612### Only required for compiling gui_at_sb.c.
613### Symptom: "identifier redeclared: vim_XawScrollbarSetThumb"
614### Use one of the lines (either Full ANSI or no ANSI at all)
615#CFLAGS = $(CFLAGS) -Xc
616#CFLAGS = $(CFLAGS) -Xs
617
618### Solaris 2.3 with X11 and specific cc
619#CC=/opt/SUNWspro/bin/cc -O -Xa -v -R/usr/openwin/lib
620
621### Solaris with /usr/ucb/cc (it is rejected by autoconf as "cc")
622#CC = /usr/ucb/cc
623#EXTRA_LIBS = -R/usr/ucblib
624
625### Solaris with Forte Developer and FEAT_SUN_WORKSHOP
626# The Xpm library is available from http://koala.ilog.fr/ftp/pub/xpm.
627#CC = cc
628#XPM_DIR = /usr/local/xpm/xpm-3.4k-solaris
629#XPM_LIB = -L$(XPM_DIR)/lib -R$(XPM_DIR)/lib -lXpm
630#XPM_IPATH = -I$(XPM_DIR)/include
631#EXTRA_LIBS = $(XPM_LIB)
632#EXTRA_IPATHS = $(XPM_IPATH)
633#EXTRA_DEFS = -xCC -DHAVE_X11_XPM_H
634
635### Solaris with workshop compilers: Vim is unstable when compiled with
636# "-fast". Use this instead. (Shea Martin)
637#CFLAGS = -x02 -xtarget=ultra
638
639### (R) for Solaris 2.5 (or 2.5.1) with gcc > 2.5.6 you might need this:
640#LDFLAGS = -lw -ldl -lXmu
641#GUI_LIB_LOC = -L/usr/local/lib
642
643### (8) Unisys 6035 (Glauber Ribeiro)
644#EXTRA_LIBS = -lnsl -lsocket -lgen
645
646### When builtin functions cause problems with gcc (for Sun 4.1.x)
647#CFLAGS = -O2 -Wall -traditional -Wno-implicit
648
649### Apollo DOMAIN (with SYSTYPE = bsd4.3) (TESTED for version 3.0)
650#EXTRA_DEFS = -DDOMAIN
651#CFLAGS= -O -A systype,bsd4.3
652
653### Coherent 4.2.10 on Intel 386 platform
654#EXTRA_DEFS = -Dvoid=int
655#EXTRA_LIBS = -lterm -lsocket
656
657### SCO 3.2, with different library name for terminfo
658#EXTRA_LIBS = -ltinfo
659
660### UTS2 for Amdahl UTS 2.1.x
661#EXTRA_DEFS = -DUTS2
662#EXTRA_LIBS = -lsocket
663
664### UTS4 for Amdahl UTS 4.x
665#EXTRA_DEFS = -DUTS4 -Xa
666
667### USL for Unix Systems Laboratories (SYSV 4.2)
668#EXTRA_DEFS = -DUSL
669
670### RISCos on MIPS without X11
671#EXTRA_DEFS = -DMIPS
672
673### RISCos on MIPS with X11
674#EXTRA_LIBS = -lsun
675
676### (6) A/UX 3.1.1 with gcc (Jim Jagielski)
677#CC= gcc -D_POSIX_SOURCE
678#CFLAGS= -O2
679#EXTRA_LIBS = -lposix -lbsd -ltermcap -lX11
680
681### (A) Some versions of SCO Open Server 5 (Jan Christiaan van Winkel)
682### Also use the CONF_TERM_LIB below!
683#EXTRA_LIBS = -lgen
684
685### (D) QNX (by G.F. Desrochers)
686#CFLAGS = -g -O -mf -4
687
688### (F) QNX (by John Oleynick)
689# 1. If you don't have an X server: Comment out CONF_OPT_GUI and uncomment
690# CONF_OPT_X = --without-x.
691# 2. make config
692# 3. edit auto/config.mk and remove -ldir and -ltermcap from LIBS. It doesn't
693# have -ldir (does config find it somewhere?) and -ltermcap has at
694# least one problem so I use termlib.o instead. The problem with
695# termcap is that it segfaults if you call it with the name of
696# a non-existent terminal type.
697# 4. edit auto/config.h and add #define USE_TMPNAM
698# 5. add termlib.o to OBJ
699# 6. make
700
701### (H) for Data general DG/UX 5.4.2 and 5.4R3.10 (Jonas J. Schlein)
702#EXTRA_LIBS = -lgen
703
704### (I) SINIX-N 5.42 or 5.43 RM400 R4000 (also SINIX-Y and SINIX-Z)
705#EXTRA_LIBS = -lgen -lnsl
706### For SINIX-Y this is needed for the right prototype of gettimeofday()
707#EXTRA_DEFS = -D_XPG_IV
708
709### (I) Reliant-Unix (aka SINIX) 5.44 with standard cc
710# Use both "-F O3" lines for optimization or the "-g" line for debugging
711#EXTRA_LIBS = -lgen -lsocket -lnsl -lSM -lICE
712#CFLAGS = -F O3 -DSINIXN
713#LDFLAGS = -F O3
714#CFLAGS = -g -DSINIXN
715
716### (P) SCO 3.2.42, with different termcap names for some useful keys DJB
717#EXTRA_DEFS = -DSCOKEYS -DNETTERM_MOUSE -DDEC_MOUSE -DXTERM_MOUSE -DHAVE_GETTIMEOFDAY
718#EXTRA_LIBS = -lsocket -ltermcap -lmalloc -lc_s
719
720### (P) SuperUX 6.2 on NEC SX-4 (Lennart Schultz)
721#GUI_INC_LOC = -I/usr/include
722#GUI_LIB_LOC = -L/usr/lib
723#EXTRA_LIBS = -lgen
724
725### (Q) UNIXSVR 4.2MP on NEC UP4800 (Lennart Schultz)
726#GUI_INC_LOC = -I/usr/necccs/include
727#GUI_LIB_LOC = -L/usr/necccs/lib/X11R6
728#XROOT = /usr/necccs
729#CONF_OPT_X = --x-include=$(XROOT)/include --x-libraries=$(XROOT)/lib/X11R6
730#EXTRA_LIBS = -lsocket -lgen
731
732### Irix 4.0 & 5.2 (Silicon Graphics Machines, __sgi will be defined)
733# Not needed for Irix 5.3, Ives Aerts reported
734#EXTRA_LIBS = -lmalloc -lc_s
735# Irix 4.0, when regexp and regcmp cannot be found when linking:
736#EXTRA_LIBS = -lmalloc -lc_s -lPW
737
738### (S) Irix 6.x (MipsPro compiler): Uses different Olimit flag:
739# Note: This newer option style is used with the MipsPro compilers ONLY if
740# you are compiling an "n32" or "64" ABI binary (use either a -n32
741# flag or a -64 flag for CFLAGS). If you explicitly use a -o32 flag,
742# then the CFLAGS option format will be the typical style (i.e.
743# -Olimit 3000).
744#CFLAGS = -OPT:Olimit=3000 -O
745
746### (S) Irix 6.5 with MipsPro C compiler. Try this as a test to see new
747# compiler features! Beware, the optimization is EXTREMELY thorough
748# and takes quite a long time.
749# Note: See the note above. Here, the -mips3 option automatically
750# enables either the "n32" or "64" ABI, depending on what machine you
751# are compiling on (n32 is explicitly enabled here, just to make sure).
752#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
753#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
754
755### (K) for SGI Irix machines with 64 bit pointers ("uname -s" says IRIX64)
756### Suggested by Jon Wright <jon@gate.sinica.edu.tw>.
757### Tested on R8000 IRIX6.1 Power Indigo2.
758### Check /etc/compiler.defaults for your compiler settings.
759# either (for 64 bit pointers) uncomment the following line
760#GUI_LIB_LOC = -L/usr/lib64
761# then
762# 1) make config
763# 2) edit auto/config.mk and delete the -lelf entry in the LIBS line
764# 3) make
765#
766# or (for 32bit pointers) uncomment the following line
767#EXTRA_DEFS = -n32
768#GUI_LIB_LOC = -L/usr/lib32
769# then
770# 1) make config
771# 2) edit auto/config.mk, add -n32 to LDFLAGS
772# 3) make
773###
774
775### (C) On SCO Unix v3.2.5 (and probably other versions) the termcap library,
776### which is found by configure, doesn't work correctly. Symptom is the
777### error message "Termcap entry too long". Uncomment the next line.
778### On AIX 4.2.1 (and other versions probably), libtermcap is reported
779### not to display properly.
780### after changing this, you need to do "make reconfig".
781#CONF_TERM_LIB = --with-tlib=curses
782
783### (E) If you want to use termlib library instead of the automatically found
784### one. After changing this, you need to do "make reconfig".
785#CONF_TERM_LIB = --with-tlib=termlib
786
787### (a) ESIX V4.2 (Reinhard Wobst)
788#EXTRA_LIBS = -lnsl -lsocket -lgen -lXIM -lXmu -lXext
789
790### If you want to use ncurses library instead of the automatically found one
791### after changing this, you need to do "make reconfig".
792#CONF_TERM_LIB = --with-tlib=ncurses
793
794### For GCC on MSDOS, the ".exe" suffix will be added.
795#EXEEXT = .exe
796#LNKEXT = .exe
797
798### (O) For LynxOS 2.5.0, tested on PC.
799#EXTRA_LIBS = -lXext -lSM -lICE -lbsd
800### For LynxOS 3.0.1, tested on PPC
801#EXTRA_LIBS= -lXext -lSM -lICE -lnetinet -lXmu -liberty -lX11
802### For LynxOS 3.1.0, tested on PC
803#EXTRA_LIBS= -lXext -lSM -lICE -lnetinet -lXmu
804
805
806### (V) For CX/UX 6.2 (on Harris/Concurrent NightHawk 4800, 5800). Remove
807### -Qtarget if only in a 5800 environment. (Kipp E. Howard)
808#CFLAGS = -O -Qtarget=m88110compat
809#EXTRA_LIBS = -lgen
810
811##################### end of system specific lines ################### }}}
812
813### Names of the programs and targets {{{1
814VIMTARGET = $(VIMNAME)$(EXEEXT)
815EXTARGET = $(EXNAME)$(LNKEXT)
816VIEWTARGET = $(VIEWNAME)$(LNKEXT)
817GVIMNAME = g$(VIMNAME)
818GVIMTARGET = $(GVIMNAME)$(LNKEXT)
819GVIEWNAME = g$(VIEWNAME)
820GVIEWTARGET = $(GVIEWNAME)$(LNKEXT)
821RVIMNAME = r$(VIMNAME)
822RVIMTARGET = $(RVIMNAME)$(LNKEXT)
823RVIEWNAME = r$(VIEWNAME)
824RVIEWTARGET = $(RVIEWNAME)$(LNKEXT)
825RGVIMNAME = r$(GVIMNAME)
826RGVIMTARGET = $(RGVIMNAME)$(LNKEXT)
827RGVIEWNAME = r$(GVIEWNAME)
828RGVIEWTARGET = $(RGVIEWNAME)$(LNKEXT)
829VIMDIFFNAME = $(VIMNAME)diff
830GVIMDIFFNAME = g$(VIMDIFFNAME)
831VIMDIFFTARGET = $(VIMDIFFNAME)$(LNKEXT)
832GVIMDIFFTARGET = $(GVIMDIFFNAME)$(LNKEXT)
833EVIMNAME = e$(VIMNAME)
834EVIMTARGET = $(EVIMNAME)$(LNKEXT)
835EVIEWNAME = e$(VIEWNAME)
836EVIEWTARGET = $(EVIEWNAME)$(LNKEXT)
837
838### Names of the tools that are also made {{{1
839TOOLS = xxd/xxd$(EXEEXT)
840
841### Installation directories. The defaults come from configure. {{{1
842#
843### prefix the top directory for the data (default "/usr/local")
844#
845# Uncomment the next line to install Vim in your home directory.
846#prefix = $(HOME)
847
848### exec_prefix is the top directory for the executable (default $(prefix))
849#
850# Uncomment the next line to install the Vim executable in "/usr/machine/bin"
851#exec_prefix = /usr/machine
852
853### BINDIR dir for the executable (default "$(exec_prefix)/bin")
854### MANDIR dir for the manual pages (default "$(prefix)/man")
855### DATADIR dir for the other files (default "$(prefix)/lib" or
856# "$(prefix)/share")
857# They may be different when using different architectures for the
858# executable and a common directory for the other files.
859#
860# Uncomment the next line to install Vim in "/usr/bin"
861#BINDIR = /usr/bin
862# Uncomment the next line to install Vim manuals in "/usr/share/man/man1"
863#MANDIR = /usr/share/man
864# Uncomment the next line to install Vim help files in "/usr/share/vim"
865#DATADIR = /usr/share
866
867### DESTDIR root of the installation tree. This is prepended to the other
868# directories. This directory must exist.
869#DESTDIR = ~/pkg/vim
870
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000871### Directory of the man pages
872MAN1DIR = /man1
Bram Moolenaare1d12892004-06-13 13:02:36 +0000873
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000874### Vim version (adjusted by a script)
875VIMMAJOR = 7
876VIMMINOR = 0aa
877
Bram Moolenaare1d12892004-06-13 13:02:36 +0000878### Location of Vim files (should not need to be changed, and {{{1
879### some things might not work when they are changed!)
880VIMDIR = /vim
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000881VIMRTDIR = /vim$(VIMMAJOR)$(VIMMINOR)
Bram Moolenaare1d12892004-06-13 13:02:36 +0000882HELPSUBDIR = /doc
883COLSUBDIR = /colors
884SYNSUBDIR = /syntax
885INDSUBDIR = /indent
Bram Moolenaar87e25fd2005-07-27 21:13:01 +0000886AUTOSUBDIR = /autoload
Bram Moolenaare1d12892004-06-13 13:02:36 +0000887PLUGSUBDIR = /plugin
888FTPLUGSUBDIR = /ftplugin
889LANGSUBDIR = /lang
890COMPSUBDIR = /compiler
891KMAPSUBDIR = /keymap
892MACROSUBDIR = /macros
893TOOLSSUBDIR = /tools
894TUTORSUBDIR = /tutor
Bram Moolenaar217ad922005-03-20 22:37:15 +0000895SPELLSUBDIR = /spell
Bram Moolenaare1d12892004-06-13 13:02:36 +0000896PRINTSUBDIR = /print
897PODIR = po
898
899### VIMLOC common root of the Vim files (all versions)
900### VIMRTLOC common root of the runtime Vim files (this version)
901### VIMRCLOC compiled-in location for global [g]vimrc files (all versions)
902### VIMRUNTIMEDIR compiled-in location for runtime files (optional)
903### HELPSUBLOC location for help files
904### COLSUBLOC location for colorscheme files
905### SYNSUBLOC location for syntax files
906### INDSUBLOC location for indent files
Bram Moolenaar87e25fd2005-07-27 21:13:01 +0000907### AUTOSUBLOC location for standard autoload files
Bram Moolenaare1d12892004-06-13 13:02:36 +0000908### PLUGSUBLOC location for standard plugin files
909### FTPLUGSUBLOC location for ftplugin files
910### LANGSUBLOC location for language files
911### COMPSUBLOC location for compiler files
912### KMAPSUBLOC location for keymap files
913### MACROSUBLOC location for macro files
914### TOOLSSUBLOC location for tools files
915### TUTORSUBLOC location for tutor files
Bram Moolenaar217ad922005-03-20 22:37:15 +0000916### SPELLSUBLOC location for spell files
Bram Moolenaare1d12892004-06-13 13:02:36 +0000917### PRINTSUBLOC location for PostScript files (prolog, latin1, ..)
918### SCRIPTLOC location for script files (menu.vim, bugreport.vim, ..)
919### You can override these if you want to install them somewhere else.
920### Edit feature.h for compile-time settings.
921VIMLOC = $(DATADIR)$(VIMDIR)
922VIMRTLOC = $(DATADIR)$(VIMDIR)$(VIMRTDIR)
923VIMRCLOC = $(VIMLOC)
924HELPSUBLOC = $(VIMRTLOC)$(HELPSUBDIR)
925COLSUBLOC = $(VIMRTLOC)$(COLSUBDIR)
926SYNSUBLOC = $(VIMRTLOC)$(SYNSUBDIR)
927INDSUBLOC = $(VIMRTLOC)$(INDSUBDIR)
Bram Moolenaar87e25fd2005-07-27 21:13:01 +0000928AUTOSUBLOC = $(VIMRTLOC)$(AUTOSUBDIR)
Bram Moolenaare1d12892004-06-13 13:02:36 +0000929PLUGSUBLOC = $(VIMRTLOC)$(PLUGSUBDIR)
930FTPLUGSUBLOC = $(VIMRTLOC)$(FTPLUGSUBDIR)
931LANGSUBLOC = $(VIMRTLOC)$(LANGSUBDIR)
932COMPSUBLOC = $(VIMRTLOC)$(COMPSUBDIR)
933KMAPSUBLOC = $(VIMRTLOC)$(KMAPSUBDIR)
934MACROSUBLOC = $(VIMRTLOC)$(MACROSUBDIR)
935TOOLSSUBLOC = $(VIMRTLOC)$(TOOLSSUBDIR)
936TUTORSUBLOC = $(VIMRTLOC)$(TUTORSUBDIR)
Bram Moolenaar217ad922005-03-20 22:37:15 +0000937SPELLSUBLOC = $(VIMRTLOC)$(SPELLSUBDIR)
Bram Moolenaare1d12892004-06-13 13:02:36 +0000938PRINTSUBLOC = $(VIMRTLOC)$(PRINTSUBDIR)
939SCRIPTLOC = $(VIMRTLOC)
940
941### Only set VIMRUNTIMEDIR when VIMRTLOC is set to a different location and
942### the runtime directory is not below it.
943#VIMRUNTIMEDIR = $(VIMRTLOC)
944
945### Name of the evim file target.
946EVIM_FILE = $(DESTDIR)$(SCRIPTLOC)/evim.vim
947MSWIN_FILE = $(DESTDIR)$(SCRIPTLOC)/mswin.vim
948
949### Name of the menu file target.
950SYS_MENU_FILE = $(DESTDIR)$(SCRIPTLOC)/menu.vim
951SYS_SYNMENU_FILE = $(DESTDIR)$(SCRIPTLOC)/synmenu.vim
952SYS_DELMENU_FILE = $(DESTDIR)$(SCRIPTLOC)/delmenu.vim
953
954### Name of the bugreport file target.
955SYS_BUGR_FILE = $(DESTDIR)$(SCRIPTLOC)/bugreport.vim
956
957### Name of the file type detection file target.
958SYS_FILETYPE_FILE = $(DESTDIR)$(SCRIPTLOC)/filetype.vim
959
960### Name of the file type detection file target.
961SYS_FTOFF_FILE = $(DESTDIR)$(SCRIPTLOC)/ftoff.vim
962
963### Name of the file type detection script file target.
964SYS_SCRIPTS_FILE = $(DESTDIR)$(SCRIPTLOC)/scripts.vim
965
966### Name of the ftplugin-on file target.
967SYS_FTPLUGIN_FILE = $(DESTDIR)$(SCRIPTLOC)/ftplugin.vim
968
969### Name of the ftplugin-off file target.
970SYS_FTPLUGOF_FILE = $(DESTDIR)$(SCRIPTLOC)/ftplugof.vim
971
972### Name of the indent-on file target.
973SYS_INDENT_FILE = $(DESTDIR)$(SCRIPTLOC)/indent.vim
974
975### Name of the indent-off file target.
976SYS_INDOFF_FILE = $(DESTDIR)$(SCRIPTLOC)/indoff.vim
977
978### Name of the option window script file target.
979SYS_OPTWIN_FILE = $(DESTDIR)$(SCRIPTLOC)/optwin.vim
980
981# Program to install the program in the target directory. Could also be "mv".
982INSTALL_PROG = cp
983
984# Program to install the data in the target directory. Cannot be "mv"!
985INSTALL_DATA = cp
986INSTALL_DATA_R = cp -r
987
988### Program to run on installed binary
989#STRIP = strip
990
991### Permissions for binaries {{{1
992BINMOD = 755
993
994### Permissions for man page
995MANMOD = 644
996
997### Permissions for help files
998HELPMOD = 644
999
1000### Permissions for Perl and shell scripts
1001SCRIPTMOD = 755
1002
1003### Permission for Vim script files (menu.vim, bugreport.vim, ..)
1004VIMSCRIPTMOD = 644
1005
1006### Permissions for all directories that are created
1007DIRMOD = 755
1008
1009### Permissions for all other files that are created
1010FILEMOD = 644
1011
1012# Where to copy the man and help files from
1013HELPSOURCE = ../runtime/doc
1014
1015# Where to copy the script files from (menu, bugreport)
1016SCRIPTSOURCE = ../runtime
1017
1018# Where to copy the colorscheme files from
1019COLSOURCE = ../runtime/colors
1020
1021# Where to copy the syntax files from
1022SYNSOURCE = ../runtime/syntax
1023
1024# Where to copy the indent files from
1025INDSOURCE = ../runtime/indent
1026
1027# Where to copy the standard plugin files from
Bram Moolenaar87e25fd2005-07-27 21:13:01 +00001028AUTOSOURCE = ../runtime/autoload
1029
1030# Where to copy the standard plugin files from
Bram Moolenaare1d12892004-06-13 13:02:36 +00001031PLUGSOURCE = ../runtime/plugin
1032
1033# Where to copy the ftplugin files from
1034FTPLUGSOURCE = ../runtime/ftplugin
1035
1036# Where to copy the macro files from
1037MACROSOURCE = ../runtime/macros
1038
1039# Where to copy the tools files from
1040TOOLSSOURCE = ../runtime/tools
1041
1042# Where to copy the tutor files from
1043TUTORSOURCE = ../runtime/tutor
1044
Bram Moolenaar217ad922005-03-20 22:37:15 +00001045# Where to copy the spell files from
1046SPELLSOURCE = ../runtime/spell
1047
Bram Moolenaare1d12892004-06-13 13:02:36 +00001048# Where to look for language specific files
1049LANGSOURCE = ../runtime/lang
1050
1051# Where to look for compiler files
1052COMPSOURCE = ../runtime/compiler
1053
1054# Where to look for keymap files
1055KMAPSOURCE = ../runtime/keymap
1056
1057# Where to look for print resource files
1058PRINTSOURCE = ../runtime/print
1059
1060# If you are using Linux, you might want to use this to make vim the
1061# default vi editor, it will create a link from vi to Vim when doing
1062# "make install". An existing file will be overwritten!
1063# When not using it, some make programs can't handle an undefined $(LINKIT).
1064#LINKIT = -ln -f -s $(BINDIR)/$(VIMTARGET) /usr/bin/vi
1065LINKIT = @echo >/dev/null
1066
1067###
1068### GRAPHICAL USER INTERFACE (GUI). {{{1
1069### 'configure --enable-gui' can enable one of these for you if you did set
1070### a corresponding CONF_OPT_GUI above and have X11.
1071### Override configures choice by uncommenting all the following lines.
1072### As they are, the GUI is disabled. Replace "NONE" with "ATHENA" or "MOTIF"
1073### for enabling the Athena or Motif GUI.
1074#GUI_SRC = $(NONE_SRC)
1075#GUI_OBJ = $(NONE_OBJ)
1076#GUI_DEFS = $(NONE_DEFS)
1077#GUI_IPATH = $(NONE_IPATH)
1078#GUI_LIBS_DIR = $(NONE_LIBS_DIR)
1079#GUI_LIBS1 = $(NONE_LIBS1)
1080#GUI_LIBS2 = $(NONE_LIBS2)
1081#GUI_INSTALL = $(NONE_INSTALL)
1082#GUI_TARGETS = $(NONE_TARGETS)
1083#GUI_MAN_TARGETS= $(NONE_MAN_TARGETS)
1084#GUI_TESTTARGET = $(NONE_TESTTARGET)
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001085#GUI_BUNDLE = $(NONE_BUNDLE)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001086
1087# Without a GUI install the normal way.
1088NONE_INSTALL = install_normal
1089
1090### GTK GUI
1091GTK_SRC = gui.c gui_gtk.c gui_gtk_x11.c pty.c gui_gtk_f.c \
1092 gui_beval.c
1093GTK_OBJ = objects/gui.o objects/gui_gtk.o objects/gui_gtk_x11.o \
1094 objects/pty.o objects/gui_gtk_f.o \
1095 objects/gui_beval.o
1096GTK_DEFS = -DFEAT_GUI_GTK $(NARROW_PROTO)
1097GTK_IPATH = $(GUI_INC_LOC)
1098GTK_LIBS_DIR = $(GUI_LIB_LOC)
1099GTK_LIBS1 =
1100GTK_LIBS2 = $(GTK_LIBNAME)
1101GTK_INSTALL = install_normal
1102GTK_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001103GTK_MAN_TARGETS = yes
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001104GTK_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001105GTK_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001106
1107### Motif GUI
Bram Moolenaardfccaf02004-12-31 20:56:11 +00001108MOTIF_SRC = gui.c gui_motif.c gui_x11.c pty.c gui_beval.c \
Bram Moolenaarb7fcef52005-01-02 11:31:05 +00001109 gui_xmdlg.c gui_xmebw.c
Bram Moolenaare1d12892004-06-13 13:02:36 +00001110MOTIF_OBJ = objects/gui.o objects/gui_motif.o objects/gui_x11.o \
Bram Moolenaardfccaf02004-12-31 20:56:11 +00001111 objects/pty.o objects/gui_beval.o \
Bram Moolenaarb7fcef52005-01-02 11:31:05 +00001112 objects/gui_xmdlg.o objects/gui_xmebw.o
Bram Moolenaare1d12892004-06-13 13:02:36 +00001113MOTIF_DEFS = -DFEAT_GUI_MOTIF $(NARROW_PROTO)
1114MOTIF_IPATH = $(GUI_INC_LOC)
1115MOTIF_LIBS_DIR = $(GUI_LIB_LOC)
1116MOTIF_LIBS1 =
1117MOTIF_LIBS2 = $(MOTIF_LIBNAME) -lXt
1118MOTIF_INSTALL = install_normal
1119MOTIF_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001120MOTIF_MAN_TARGETS = yes
Bram Moolenaare1d12892004-06-13 13:02:36 +00001121MOTIF_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001122MOTIF_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001123
1124### Athena GUI
1125### Use Xaw3d to make the menus look a little bit nicer
1126#XAW_LIB = -lXaw3d
1127XAW_LIB = -lXaw
1128
1129### When using Xaw3d, uncomment/comment the following lines to also get the
1130### scrollbars from Xaw3d.
1131#ATHENA_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c gui_at_fs.c
1132#ATHENA_OBJ = objects/gui.o objects/gui_athena.o objects/gui_x11.o \
1133# objects/pty.o objects/gui_beval.o objects/gui_at_fs.o
1134#ATHENA_DEFS = -DFEAT_GUI_ATHENA $(NARROW_PROTO) \
1135# -Dvim_scrollbarWidgetClass=scrollbarWidgetClass \
1136# -Dvim_XawScrollbarSetThumb=XawScrollbarSetThumb
1137ATHENA_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c \
1138 gui_at_sb.c gui_at_fs.c
1139ATHENA_OBJ = objects/gui.o objects/gui_athena.o objects/gui_x11.o \
1140 objects/pty.o objects/gui_beval.o \
1141 objects/gui_at_sb.o objects/gui_at_fs.o
1142ATHENA_DEFS = -DFEAT_GUI_ATHENA $(NARROW_PROTO)
1143
1144ATHENA_IPATH = $(GUI_INC_LOC)
1145ATHENA_LIBS_DIR = $(GUI_LIB_LOC)
1146ATHENA_LIBS1 = $(XAW_LIB)
1147ATHENA_LIBS2 = -lXt
1148ATHENA_INSTALL = install_normal
1149ATHENA_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001150ATHENA_MAN_TARGETS = yes
Bram Moolenaare1d12892004-06-13 13:02:36 +00001151ATHENA_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001152ATHENA_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001153
1154### neXtaw GUI
1155NEXTAW_LIB = -lneXtaw
1156
1157NEXTAW_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c gui_at_fs.c
1158NEXTAW_OBJ = objects/gui.o objects/gui_athena.o objects/gui_x11.o \
1159 objects/pty.o objects/gui_beval.o objects/gui_at_fs.o
1160NEXTAW_DEFS = -DFEAT_GUI_ATHENA -DFEAT_GUI_NEXTAW $(NARROW_PROTO)
1161
1162NEXTAW_IPATH = $(GUI_INC_LOC)
1163NEXTAW_LIBS_DIR = $(GUI_LIB_LOC)
1164NEXTAW_LIBS1 = $(NEXTAW_LIB)
1165NEXTAW_LIBS2 = -lXt
1166NEXTAW_INSTALL = install_normal
1167NEXTAW_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001168NEXTAW_MAN_TARGETS = yes
Bram Moolenaare1d12892004-06-13 13:02:36 +00001169NEXTAW_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001170NEXTAW_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001171
1172### (J) Sun OpenWindows 3.2 (SunOS 4.1.x) or earlier that produce these ld
1173# errors: ld: Undefined symbol
1174# _get_wmShellWidgetClass
1175# _get_applicationShellWidgetClass
1176# then you need to get patches 100512-02 and 100573-03 from Sun. In the
1177# meantime, uncomment the following GUI_X_LIBS definition as a workaround:
1178#GUI_X_LIBS = -Bstatic -lXmu -Bdynamic -lXext
1179# If you also get cos, sin etc. as undefined symbols, try uncommenting this
1180# too:
1181#EXTRA_LIBS = /usr/openwin/lib/libXmu.sa -lm
1182
Bram Moolenaare1d12892004-06-13 13:02:36 +00001183# PHOTON GUI
1184PHOTONGUI_SRC = gui.c gui_photon.c pty.c
1185PHOTONGUI_OBJ = objects/gui.o objects/gui_photon.o objects/pty.o
1186PHOTONGUI_DEFS = -DFEAT_GUI_PHOTON
1187PHOTONGUI_IPATH =
1188PHOTONGUI_LIBS_DIR =
1189PHOTONGUI_LIBS1 = -lph -lphexlib
1190PHOTONGUI_LIBS2 =
1191PHOTONGUI_INSTALL = install_normal
1192PHOTONGUI_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001193PHOTONGUI_MAN_TARGETS = yes
Bram Moolenaare1d12892004-06-13 13:02:36 +00001194PHOTONGUI_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001195PHOTONGUI_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001196
1197# CARBON GUI
1198CARBONGUI_SRC = gui.c gui_mac.c
1199CARBONGUI_OBJ = objects/gui.o objects/gui_mac.o objects/pty.o
1200CARBONGUI_DEFS = -DFEAT_GUI_MAC -arch ppc -fno-common -fpascal-strings \
1201 -Wall -Wno-unknown-pragmas \
1202 -mdynamic-no-pic -pipe
1203CARBONGUI_IPATH = -I. -Iproto
1204CARBONGUI_LIBS_DIR =
1205CARBONGUI_LIBS1 = -framework Carbon
1206CARBONGUI_LIBS2 =
1207CARBONGUI_INSTALL = install_macosx
1208CARBONGUI_TARGETS =
1209CARBONGUI_MAN_TARGETS =
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00001210CARBONGUI_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001211CARBONGUI_BUNDLE = gui_bundle
1212APPDIR = $(VIMNAME).app
1213CARBONGUI_TESTARG = VIMPROG=../$(APPDIR)/Contents/MacOS/$(VIMTARGET)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001214
1215# All GUI files
Bram Moolenaar9372a112005-12-06 19:59:18 +00001216ALL_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
Bram Moolenaar323850c2005-01-04 21:24:54 +00001217ALL_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 +00001218
1219# }}}
1220
1221### Command to create dependencies based on #include "..."
1222### prototype headers are ignored due to -DPROTO, system
1223### headers #include <...> are ignored if we use the -MM option, as
1224### e.g. provided by gcc-cpp.
1225### Include FEAT_GUI to get gependency on gui.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00001226### Need to change "-I /<path>" to "-isystem /<path>" for GCC 3.x.
1227CPP_DEPEND = $(CC) -I$(srcdir) -M$(CPP_MM) \
1228 `echo "$(DEPEND_CFLAGS)" $(DEPEND_CFLAGS_FILTER)`
Bram Moolenaare1d12892004-06-13 13:02:36 +00001229
1230# flags for cproto
1231# This is for cproto 3 patchlevel 8 or below
1232# __inline, __attribute__ and __extension__ are not recognized by cproto
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00001233# G_IMPLEMENT_INLINES is to avoid functions defined in glib/gutils.h.
Bram Moolenaar051b7822005-05-19 21:00:46 +00001234NO_ATTR = -D__inline= -D__inline__= -DG_IMPLEMENT_INLINES \
1235 -D"__attribute__\\(x\\)=" -D"__asm__\\(x\\)=" \
1236 -D__extension__= -D__restrict="" \
1237 -D__gnuc_va_list=char -D__builtin_va_list=char
Bram Moolenaare1d12892004-06-13 13:02:36 +00001238
1239#
1240# This is for cproto 3 patchlevel 9 or above (currently 4.6)
1241# __inline and __attribute__ are now recognized by cproto
1242# -D"foo()=" is not supported by all compilers so do not use it
1243# NO_ATTR=
1244#
1245# maybe the "/usr/bin/cc -E" has to be adjusted for some systems
1246# This is for cproto 3.5 patchlevel 3:
1247# PROTO_FLAGS = -f4 -m__ARGS -d -E"$(CPP)" $(NO_ATTR)
1248#
1249# Use this for cproto 3 patchlevel 6 or below (use "cproto -V" to check):
1250# PROTO_FLAGS = -f4 -m__ARGS -d -E"$(CPP)" $(NO_ATTR)
1251#
1252# Use this for cproto 3 patchlevel 7 or above (use "cproto -V" to check):
1253PROTO_FLAGS = -m -M__ARGS -d -E"$(CPP)" $(NO_ATTR)
1254
1255
1256################################################
1257## no changes required below this line ##
1258################################################
1259
1260SHELL = /bin/sh
1261
1262.SUFFIXES:
Bram Moolenaar9372a112005-12-06 19:59:18 +00001263.SUFFIXES: .c .o .pro
Bram Moolenaare1d12892004-06-13 13:02:36 +00001264
1265PRE_DEFS = -Iproto $(DEFS) $(GUI_DEFS) $(GUI_IPATH) $(CPPFLAGS) $(EXTRA_IPATHS)
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001266POST_DEFS = $(X_CFLAGS) $(MZSCHEME_CFLAGS) $(PERL_CFLAGS) $(PYTHON_CFLAGS) $(TCL_CFLAGS) $(RUBY_CFLAGS) $(EXTRA_DEFS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001267
1268ALL_CFLAGS = $(PRE_DEFS) $(CFLAGS) $(PROFILE_CFLAGS) $(POST_DEFS)
1269
Bram Moolenaar051b7822005-05-19 21:00:46 +00001270LINT_CFLAGS = -DLINT -I. $(PRE_DEFS) $(POST_DEFS) -Dinline= -D__extension__= -Dalloca=alloca
1271
1272LINT_EXTRA = -DUSE_SNIFF -DHANGUL_INPUT -D"__attribute__(x)="
Bram Moolenaare1d12892004-06-13 13:02:36 +00001273
1274DEPEND_CFLAGS = -DPROTO -DDEPEND -DFEAT_GUI $(LINT_CFLAGS)
1275
1276PFLAGS = $(PROTO_FLAGS) -DPROTO $(LINT_CFLAGS)
1277
1278ALL_LIB_DIRS = $(GUI_LIBS_DIR) $(X_LIBS_DIR)
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001279ALL_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 +00001280
1281# abbreviations
1282DEST_BIN = $(DESTDIR)$(BINDIR)
1283DEST_VIM = $(DESTDIR)$(VIMLOC)
1284DEST_RT = $(DESTDIR)$(VIMRTLOC)
1285DEST_HELP = $(DESTDIR)$(HELPSUBLOC)
1286DEST_COL = $(DESTDIR)$(COLSUBLOC)
1287DEST_SYN = $(DESTDIR)$(SYNSUBLOC)
1288DEST_IND = $(DESTDIR)$(INDSUBLOC)
Bram Moolenaar87e25fd2005-07-27 21:13:01 +00001289DEST_AUTO = $(DESTDIR)$(AUTOSUBLOC)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001290DEST_PLUG = $(DESTDIR)$(PLUGSUBLOC)
1291DEST_FTP = $(DESTDIR)$(FTPLUGSUBLOC)
1292DEST_LANG = $(DESTDIR)$(LANGSUBLOC)
1293DEST_COMP = $(DESTDIR)$(COMPSUBLOC)
1294DEST_KMAP = $(DESTDIR)$(KMAPSUBLOC)
1295DEST_MACRO = $(DESTDIR)$(MACROSUBLOC)
1296DEST_TOOLS = $(DESTDIR)$(TOOLSSUBLOC)
1297DEST_TUTOR = $(DESTDIR)$(TUTORSUBLOC)
Bram Moolenaar217ad922005-03-20 22:37:15 +00001298DEST_SPELL = $(DESTDIR)$(SPELLSUBLOC)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001299DEST_SCRIPT = $(DESTDIR)$(SCRIPTLOC)
1300DEST_PRINT = $(DESTDIR)$(PRINTSUBLOC)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001301DEST_MAN_TOP = $(DESTDIR)$(MANDIR)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001302
1303# We assume that the ".../man/xx/man1/" directory is for latin1 manual pages.
1304# Some systems use UTF-8, but these should find the ".../man/xx.UTF-8/man1/"
1305# directory first.
Bram Moolenaar217ad922005-03-20 22:37:15 +00001306# FreeBSD uses ".../man/xx.ISO8859-1/man1" for latin1, use that one too.
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001307DEST_MAN = $(DEST_MAN_TOP)$(MAN1DIR)
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00001308DEST_MAN_FR = $(DEST_MAN_TOP)/fr$(MAN1DIR)
1309DEST_MAN_FR_I = $(DEST_MAN_TOP)/fr.ISO8859-1$(MAN1DIR)
1310DEST_MAN_FR_U = $(DEST_MAN_TOP)/fr.UTF-8$(MAN1DIR)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001311DEST_MAN_IT = $(DEST_MAN_TOP)/it$(MAN1DIR)
Bram Moolenaar217ad922005-03-20 22:37:15 +00001312DEST_MAN_IT_I = $(DEST_MAN_TOP)/it.ISO8859-1$(MAN1DIR)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001313DEST_MAN_IT_U = $(DEST_MAN_TOP)/it.UTF-8$(MAN1DIR)
1314DEST_MAN_RU = $(DEST_MAN_TOP)/ru.KOI8-R$(MAN1DIR)
1315DEST_MAN_RU_U = $(DEST_MAN_TOP)/ru.UTF-8$(MAN1DIR)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001316
1317# BASIC_SRC: files that are always used
1318# GUI_SRC: extra GUI files for current configuration
1319# ALL_GUI_SRC: all GUI files for Unix
1320#
1321# SRC: files used for current configuration
1322# TAGS_SRC: source files used for make tags
1323# TAGS_INCL: include files used for make tags
1324# ALL_SRC: source files used for make depend and make lint
1325
1326TAGS_INCL = *.h
1327
1328BASIC_SRC = \
1329 buffer.c \
1330 charset.c \
1331 diff.c \
1332 digraph.c \
1333 edit.c \
1334 eval.c \
1335 ex_cmds.c \
1336 ex_cmds2.c \
1337 ex_docmd.c \
1338 ex_eval.c \
1339 ex_getln.c \
1340 fileio.c \
1341 fold.c \
1342 getchar.c \
Bram Moolenaar58d98232005-07-23 22:25:46 +00001343 hardcopy.c \
Bram Moolenaar383f9bc2005-01-19 22:18:32 +00001344 hashtable.c \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001345 if_cscope.c \
1346 if_xcmdsrv.c \
1347 main.c \
1348 mark.c \
1349 memfile.c \
1350 memline.c \
1351 menu.c \
1352 message.c \
1353 misc1.c \
1354 misc2.c \
1355 move.c \
1356 mbyte.c \
1357 normal.c \
1358 ops.c \
1359 option.c \
1360 os_unix.c \
1361 auto/pathdef.c \
Bram Moolenaar1c7715d2005-10-03 22:02:18 +00001362 popupmenu.c \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001363 quickfix.c \
1364 regexp.c \
1365 screen.c \
1366 search.c \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001367 spell.c \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001368 syntax.c \
1369 tag.c \
1370 term.c \
1371 ui.c \
1372 undo.c \
1373 version.c \
1374 window.c \
1375 $(OS_EXTRA_SRC)
1376
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001377SRC = $(BASIC_SRC) $(GUI_SRC) $(HANGULIN_SRC) $(MZSCHEME_SRC) \
1378 $(PERL_SRC) $(PYTHON_SRC) $(TCL_SRC) $(RUBY_SRC) \
1379 $(SNIFF_SRC) $(WORKSHOP_SRC) $(WSDEBUG_SRC)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001380
Bram Moolenaar9372a112005-12-06 19:59:18 +00001381TAGS_SRC = *.c *.cpp if_perl.xs
Bram Moolenaare1d12892004-06-13 13:02:36 +00001382
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001383EXTRA_SRC = hangulin.c if_mzsch.c auto/if_perl.c if_perlsfio.c \
1384 if_python.c if_tcl.c if_ruby.c if_sniff.c gui_beval.c \
1385 workshop.c wsdebug.c integration.c netbeans.c
Bram Moolenaare1d12892004-06-13 13:02:36 +00001386
1387# All sources, also the ones that are not configured
1388ALL_SRC = $(BASIC_SRC) $(ALL_GUI_SRC) $(EXTRA_SRC)
1389
1390# Which files to check with lint. Select one of these three lines. ALL_SRC
1391# checks more, but may not work well for checking a GUI that wasn't configured.
1392# The perl sources also don't work well with lint.
1393LINT_SRC = $(BASIC_SRC) $(GUI_SRC) $(HANGULIN_SRC) $(PYTHON_SRC) $(TCL_SRC) \
1394 $(SNIFF_SRC) $(WORKSHOP_SRC) $(WSDEBUG_SRC) $(NETBEANS_SRC)
1395#LINT_SRC = $(SRC)
1396#LINT_SRC = $(ALL_SRC)
1397
1398OBJ = \
1399 objects/buffer.o \
1400 objects/charset.o \
1401 objects/diff.o \
1402 objects/digraph.o \
1403 objects/edit.o \
1404 objects/eval.o \
1405 objects/ex_cmds.o \
1406 objects/ex_cmds2.o \
1407 objects/ex_docmd.o \
1408 objects/ex_eval.o \
1409 objects/ex_getln.o \
1410 objects/fileio.o \
1411 objects/fold.o \
1412 objects/getchar.o \
Bram Moolenaar58d98232005-07-23 22:25:46 +00001413 objects/hardcopy.o \
Bram Moolenaar383f9bc2005-01-19 22:18:32 +00001414 objects/hashtable.o \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001415 $(HANGULIN_OBJ) \
1416 objects/if_cscope.o \
1417 objects/if_xcmdsrv.o \
1418 objects/main.o \
1419 objects/mark.o \
1420 objects/memfile.o \
1421 objects/memline.o \
1422 objects/menu.o \
1423 objects/message.o \
1424 objects/misc1.o \
1425 objects/misc2.o \
1426 objects/move.o \
1427 objects/mbyte.o \
1428 objects/normal.o \
1429 objects/ops.o \
1430 objects/option.o \
1431 objects/os_unix.o \
1432 objects/pathdef.o \
Bram Moolenaar1c7715d2005-10-03 22:02:18 +00001433 objects/popupmenu.o \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001434 objects/quickfix.o \
1435 objects/regexp.o \
1436 objects/screen.o \
1437 objects/search.o \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001438 objects/spell.o \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001439 objects/syntax.o \
1440 $(SNIFF_OBJ) \
1441 objects/tag.o \
1442 objects/term.o \
1443 objects/ui.o \
1444 objects/undo.o \
1445 objects/window.o \
1446 $(GUI_OBJ) \
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001447 $(MZSCHEME_OBJ) \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001448 $(PERL_OBJ) \
1449 $(PYTHON_OBJ) \
1450 $(TCL_OBJ) \
1451 $(RUBY_OBJ) \
1452 $(OS_EXTRA_OBJ) \
1453 $(WORKSHOP_OBJ) \
1454 $(NETBEANS_OBJ) \
1455 $(WSDEBUG_OBJ)
1456
1457PRO_AUTO = \
1458 buffer.pro \
1459 charset.pro \
1460 diff.pro \
1461 digraph.pro \
1462 edit.pro \
1463 eval.pro \
1464 ex_cmds.pro \
1465 ex_cmds2.pro \
1466 ex_docmd.pro \
1467 ex_eval.pro \
1468 ex_getln.pro \
1469 fileio.pro \
1470 fold.pro \
1471 getchar.pro \
Bram Moolenaar58d98232005-07-23 22:25:46 +00001472 hardcopy.pro \
Bram Moolenaar383f9bc2005-01-19 22:18:32 +00001473 hashtable.pro \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001474 hangulin.pro \
1475 if_cscope.pro \
1476 if_xcmdsrv.pro \
1477 if_python.pro \
1478 if_ruby.pro \
1479 main.pro \
1480 mark.pro \
1481 memfile.pro \
1482 memline.pro \
1483 menu.pro \
1484 message.pro \
1485 misc1.pro \
1486 misc2.pro \
1487 move.pro \
1488 mbyte.pro \
1489 normal.pro \
1490 ops.pro \
1491 option.pro \
1492 os_unix.pro \
Bram Moolenaar1c7715d2005-10-03 22:02:18 +00001493 popupmenu.pro \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001494 quickfix.pro \
1495 regexp.pro \
1496 screen.pro \
1497 search.pro \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001498 spell.pro \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001499 syntax.pro \
1500 tag.pro \
1501 term.pro \
1502 termlib.pro \
1503 ui.pro \
1504 undo.pro \
1505 version.pro \
1506 window.pro \
1507 gui_beval.pro \
1508 workshop.pro \
1509 netbeans.pro \
1510 $(ALL_GUI_PRO) \
1511 $(TCL_PRO)
1512
1513PRO_MANUAL = os_amiga.pro os_msdos.pro os_win16.pro os_win32.pro \
1514 os_mswin.pro os_beos.pro os_vms.pro os_riscos.pro $(PERL_PRO)
1515
1516# Default target is making the executable and tools
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00001517all: $(VIMTARGET) $(TOOLS) languages $(GUI_BUNDLE)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001518
1519tools: $(TOOLS)
1520
1521# Run configure with all the setting from above.
1522#
1523# Note: auto/config.h doesn't depend on configure, because running configure
1524# doesn't always update auto/config.h. The timestamp isn't changed if the
1525# file contents didn't change (to avoid recompiling everything). Including a
1526# dependency on auto/config.h would cause running configure each time when
1527# auto/config.h isn't updated. The dependency on auto/config.mk should make
1528# sure configure is run when it's needed.
1529#
1530config auto/config.mk: auto/configure config.mk.in config.h.in
1531 GUI_INC_LOC="$(GUI_INC_LOC)" GUI_LIB_LOC="$(GUI_LIB_LOC)" \
1532 CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \
1533 LDFLAGS="$(LDFLAGS)" $(CONF_SHELL) srcdir="$(srcdir)" \
1534 ./configure $(CONF_OPT_GUI) $(CONF_OPT_X) $(CONF_OPT_XSMP) \
1535 $(CONF_OPT_DARWIN) $(CONF_OPT_PERL) $(CONF_OPT_PYTHON) \
1536 $(CONF_OPT_TCL) $(CONF_OPT_RUBY) $(CONF_OPT_NLS) \
1537 $(CONF_OPT_CSCOPE) $(CONF_OPT_MULTIBYTE) $(CONF_OPT_INPUT) \
1538 $(CONF_OPT_OUTPUT) $(CONF_OPT_GPM) $(CONF_OPT_WORKSHOP) \
1539 $(CONF_OPT_SNIFF) $(CONF_OPT_FEAT) $(CONF_TERM_LIB) \
1540 $(CONF_OPT_COMPBY) $(CONF_OPT_ACL) $(CONF_OPT_NETBEANS) \
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001541 $(CONF_ARGS) $(CONF_OPT_MZSCHEME) $(CONF_OPT_PLTHOME)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001542
1543# Use "make reconfig" to rerun configure without cached values.
1544# When config.h changes, most things will be recompiled automatically.
Bram Moolenaar592e0a22004-07-03 16:05:59 +00001545# Invoke $(MAKE) to run config with the empty auto/config.mk.
1546# Invoke $(MAKE) to build all with the filled auto/config.mk.
1547reconfig: scratch clean
1548 $(MAKE) -f Makefile config
1549 $(MAKE) -f Makefile all
Bram Moolenaare1d12892004-06-13 13:02:36 +00001550
1551# Run autoconf to produce auto/configure.
1552# Note:
1553# - DO NOT RUN autoconf MANUALLY! It will overwrite ./configure instead of
1554# producing auto/configure.
1555# - autoconf is not run automatically, because a patch usually changes both
1556# configure.in and auto/configure but can't update the timestamps. People
1557# who do not have (the correct version of) autoconf would run into trouble.
1558#
1559# Two tricks are required to make autoconf put its output in the "auto" dir:
1560# - Temporarily move the ./configure script to ./configure.save. Don't
1561# overwrite it, it's probably the result of an aborted autoconf.
1562# - Use sed to change ./config.log to auto/config.log in the configure script.
Bram Moolenaar9d75c832005-01-25 21:57:23 +00001563# Autoconf 2.5x (2.59 at least) produces a few more files that we need to take
1564# care of:
1565# - configure.lineno: has the line numbers replaced with $LINENO. That
1566# improves patches a LOT, thus use it instead (until someone says it doesn't
1567# work on some system).
1568# - autom4te.cache directory is created and not cleaned up. Delete it.
1569# - Uses ">config.log" instead of "./config.log".
Bram Moolenaare1d12892004-06-13 13:02:36 +00001570autoconf:
1571 if test ! -f configure.save; then mv configure configure.save; fi
1572 autoconf
Bram Moolenaar9d75c832005-01-25 21:57:23 +00001573 sed -e 's+>config.log+>auto/config.log+' -e 's+\./config.log+auto/config.log+' configure > auto/configure
Bram Moolenaare1d12892004-06-13 13:02:36 +00001574 chmod 755 auto/configure
1575 mv -f configure.save configure
Bram Moolenaar9d75c832005-01-25 21:57:23 +00001576 -rm -rf autom4te.cache
Bram Moolenaare1d12892004-06-13 13:02:36 +00001577 -rm -f auto/config.status auto/config.cache
1578
1579# Re-execute this Makefile to include the new auto/config.mk produced by
1580# configure Only used when typing "make" with a fresh auto/config.mk.
1581myself:
1582 $(MAKE) -f Makefile all
1583
1584
1585# The normal command to compile a .c file to its .o file.
1586CCC = $(CC) -c -I$(srcdir) $(ALL_CFLAGS)
1587
1588
1589# Link the target for normal use or debugging.
1590# A shell script is used to try linking without unneccesary libraries.
1591$(VIMTARGET): auto/config.mk objects $(OBJ) version.c version.h
1592 $(CCC) version.c -o objects/version.o
1593 @LINK="$(PURIFY) $(SHRPENV) $(CClink) $(ALL_LIB_DIRS) $(LDFLAGS) \
1594 -o $(VIMTARGET) $(OBJ) objects/version.o $(ALL_LIBS)" \
1595 MAKE="$(MAKE)" sh $(srcdir)/link.sh
1596
1597xxd/xxd$(EXEEXT): xxd/xxd.c
1598 cd xxd; CC="$(CC)" CFLAGS="$(CPPFLAGS) $(CFLAGS)" \
1599 $(MAKE) -f Makefile
1600
1601# Build the language specific files if they were unpacked.
1602# Generate the converted .mo files separately, it's no problem if this fails.
1603languages:
1604 @if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
Bram Moolenaar1c7715d2005-10-03 22:02:18 +00001605 $(MAKE) language-check; \
Bram Moolenaar58d98232005-07-23 22:25:46 +00001606 cd $(PODIR); \
Bram Moolenaar58d98232005-07-23 22:25:46 +00001607 CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix); \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001608 fi
1609 -@if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
1610 cd $(PODIR); CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix) converted; \
1611 fi
1612
Bram Moolenaar1c7715d2005-10-03 22:02:18 +00001613# Separate target to check the po files for valitidy, because it depends on
1614# ./vim.
1615language-check: $(VIMTARGET)
1616 cd $(PODIR); $(MAKE) check VIM=../$(VIMTARGET)
1617
Bram Moolenaare1d12892004-06-13 13:02:36 +00001618# Update the *.po files for changes in the sources. Only run manually.
1619update-po:
1620 cd $(PODIR); CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix) update-po
1621
1622# Generate function prototypes. This is not needed to compile vim, but if
1623# you want to use it, cproto is out there on the net somewhere -- Webb
1624#
1625# When generating os_amiga.pro, os_msdos.pro and os_win32.pro there will be a
1626# few include files that can not be found, that's OK.
1627
1628proto: $(PRO_AUTO) $(PRO_MANUAL)
1629
1630### Would be nice if this would work for "normal" make.
1631### Currently it only works for (Free)BSD make.
1632#$(PRO_AUTO): $$(*F).c
1633# cproto $(PFLAGS) -DFEAT_GUI $(*F).c > $@
1634
1635# Always define FEAT_GUI. This may generate a few warnings if it's also
1636# defined in auto/config.h, you can ignore that.
1637.c.pro:
1638 cproto $(PFLAGS) -DFEAT_GUI $< > proto/$@
1639 echo "/* vim: set ft=c : */" >> proto/$@
1640
1641os_amiga.pro: os_amiga.c
1642 cproto $(PFLAGS) -DAMIGA -UHAVE_CONFIG_H -DBPTR=char* $< > proto/$@
1643 echo "/* vim: set ft=c : */" >> proto/$@
1644
1645os_msdos.pro: os_msdos.c
1646 cproto $(PFLAGS) -DMSDOS -UHAVE_CONFIG_H $< > proto/$@
1647 echo "/* vim: set ft=c : */" >> proto/$@
1648
1649os_win16.pro: os_win16.c
1650 cproto $(PFLAGS) -DWIN16 -UHAVE_CONFIG_H $< > proto/$@
1651 echo "/* vim: set ft=c : */" >> proto/$@
1652
1653os_win32.pro: os_win32.c
1654 cproto $(PFLAGS) -DWIN32 -UHAVE_CONFIG_H $< > proto/$@
1655 echo "/* vim: set ft=c : */" >> proto/$@
1656
1657os_mswin.pro: os_mswin.c
1658 cproto $(PFLAGS) -DWIN16 -DWIN32 -UHAVE_CONFIG_H $< > proto/$@
1659 echo "/* vim: set ft=c : */" >> proto/$@
1660
1661os_beos.pro: os_beos.c
1662 cproto $(PFLAGS) -D__BEOS__ -UHAVE_CONFIG_H $< > proto/$@
1663 echo "/* vim: set ft=c : */" >> proto/$@
1664
1665os_vms.pro: os_vms.c
1666# must use os_vms_conf.h for auto/config.h
1667 mv auto/config.h auto/config.h.save
1668 cp os_vms_conf.h auto/config.h
1669 cproto $(PFLAGS) -DVMS -UFEAT_GUI_ATHENA -UFEAT_GUI_NEXTAW -UFEAT_GUI_MOTIF -UFEAT_GUI_GTK $< > proto/$@
1670 echo "/* vim: set ft=c : */" >> proto/$@
1671 rm auto/config.h
1672 mv auto/config.h.save auto/config.h
1673
1674# if_perl.pro is special: Use the generated if_perl.c for input and remove
1675# prototypes for local functions.
1676if_perl.pro: auto/if_perl.c
1677 cproto $(PFLAGS) -DFEAT_GUI auto/if_perl.c | sed "/_VI/d" > proto/$@
1678
1679
1680notags:
1681 -rm -f tags
1682
1683# Note: tags is made for the currently configured version, can't include both
1684# Motif and Athena GUI
1685# You can ignore error messages for missing files.
1686tags TAGS: notags
1687 $(TAGPRG) $(TAGS_SRC) $(TAGS_INCL)
1688
1689# Make a highlight file for types. Requires Exuberant ctags and awk
1690types: types.vim
1691types.vim: $(TAGS_SRC) $(TAGS_INCL)
1692 ctags --c-kinds=gstu -o- $(TAGS_SRC) $(TAGS_INCL) |\
1693 awk 'BEGIN{printf("syntax keyword Type\t")}\
1694 {printf("%s ", $$1)}END{print ""}' > $@
1695
1696# Execute the test scripts. Run these after compiling Vim, before installing.
1697# This doesn't depend on $(VIMTARGET), because that won't work when configure
1698# wasn't run yet. Restart make to build it instead.
1699#
1700# This will produce a lot of garbage on your screen, including a few error
1701# messages. Don't worry about that.
1702# If there is a real error, there will be a difference between "test.out" and
1703# a "test99.ok" file.
1704# If everything is allright, the final message will be "ALL DONE".
1705#
1706test check:
1707 $(MAKE) -f Makefile $(VIMTARGET)
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00001708 cd testdir; $(MAKE) -f Makefile $(GUI_TESTTARGET) VIMPROG=../$(VIMTARGET) $(GUI_TESTARG)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001709
1710testclean:
1711 cd testdir; $(MAKE) -f Makefile clean
1712
1713#
1714# Avoid overwriting an existing executable, somebody might be running it and
1715# overwriting it could cause it to crash. Deleting it is OK, it won't be
1716# really deleted until all running processes for it have exited. It is
1717# renamed first, in case the deleting doesn't work.
1718#
1719# If you want to keep an older version, rename it before running "make
1720# install".
1721#
1722install: $(GUI_INSTALL)
1723
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00001724install_normal: installvim installtools $(INSTALL_LANGS) install-icons
Bram Moolenaare1d12892004-06-13 13:02:36 +00001725
Bram Moolenaare344bea2005-09-01 20:46:49 +00001726installvim: installvimbin installtutorbin \
1727 installruntime installlinks installmanlinks
Bram Moolenaare1d12892004-06-13 13:02:36 +00001728
1729installvimbin: $(VIMTARGET) $(DESTDIR)$(exec_prefix) $(DEST_BIN)
1730 -if test -f $(DEST_BIN)/$(VIMTARGET); then \
1731 mv -f $(DEST_BIN)/$(VIMTARGET) $(DEST_BIN)/$(VIMNAME).rm; \
1732 rm -f $(DEST_BIN)/$(VIMNAME).rm; \
1733 fi
1734 $(INSTALL_PROG) $(VIMTARGET) $(DEST_BIN)
1735 $(STRIP) $(DEST_BIN)/$(VIMTARGET)
1736 chmod $(BINMOD) $(DEST_BIN)/$(VIMTARGET)
1737# may create a link to the new executable from /usr/bin/vi
1738 -$(LINKIT)
1739
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001740# Long list of arguments for the shell script that installs the manual pages
1741# for one language.
1742INSTALLMANARGS = $(VIMLOC) $(SCRIPTLOC) $(VIMRCLOC) $(HELPSOURCE) $(MANMOD) \
1743 $(VIMNAME) $(VIMDIFFNAME) $(EVIMNAME)
1744
Bram Moolenaare344bea2005-09-01 20:46:49 +00001745# Install most of the runtime files
1746installruntime: installrtbase installmacros installtutor installspell
1747
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001748# install the help files; first adjust the contents for the final location
Bram Moolenaare344bea2005-09-01 20:46:49 +00001749installrtbase: $(HELPSOURCE)/vim.1 $(DEST_VIM) $(DEST_RT) \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001750 $(DEST_HELP) $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND) \
Bram Moolenaar87e25fd2005-07-27 21:13:01 +00001751 $(DEST_FTP) $(DEST_AUTO) $(DEST_PLUG) $(DEST_TUTOR) \
1752 $(DEST_SPELL) $(DEST_COMP)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001753 -$(SHELL) ./installman.sh install $(DEST_MAN) "" $(INSTALLMANARGS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001754 @echo generating help tags
1755# Generate the help tags with ":helptags" to handle all languages.
1756 -@cd $(HELPSOURCE); $(MAKE) VIMEXE=$(DEST_BIN)/$(VIMTARGET) vimtags
1757 cd $(HELPSOURCE); \
1758 files=`ls *.txt tags`; \
1759 files="$$files `ls *.??x tags-?? 2>/dev/null || true`"; \
1760 $(INSTALL_DATA) $$files $(DEST_HELP); \
1761 cd $(DEST_HELP); \
1762 chmod $(HELPMOD) $$files
1763 $(INSTALL_DATA) $(HELPSOURCE)/*.pl $(DEST_HELP)
1764 chmod $(SCRIPTMOD) $(DEST_HELP)/*.pl
1765# install the menu files
1766 $(INSTALL_DATA) $(SCRIPTSOURCE)/menu.vim $(SYS_MENU_FILE)
1767 chmod $(VIMSCRIPTMOD) $(SYS_MENU_FILE)
1768 $(INSTALL_DATA) $(SCRIPTSOURCE)/synmenu.vim $(SYS_SYNMENU_FILE)
1769 chmod $(VIMSCRIPTMOD) $(SYS_SYNMENU_FILE)
1770 $(INSTALL_DATA) $(SCRIPTSOURCE)/delmenu.vim $(SYS_DELMENU_FILE)
1771 chmod $(VIMSCRIPTMOD) $(SYS_DELMENU_FILE)
1772# install the evim file
1773 $(INSTALL_DATA) $(SCRIPTSOURCE)/mswin.vim $(MSWIN_FILE)
1774 chmod $(VIMSCRIPTMOD) $(MSWIN_FILE)
1775 $(INSTALL_DATA) $(SCRIPTSOURCE)/evim.vim $(EVIM_FILE)
1776 chmod $(VIMSCRIPTMOD) $(EVIM_FILE)
1777# install the bugreport file
1778 $(INSTALL_DATA) $(SCRIPTSOURCE)/bugreport.vim $(SYS_BUGR_FILE)
1779 chmod $(VIMSCRIPTMOD) $(SYS_BUGR_FILE)
1780# install the example vimrc files
1781 $(INSTALL_DATA) $(SCRIPTSOURCE)/vimrc_example.vim $(DEST_SCRIPT)
1782 chmod $(VIMSCRIPTMOD) $(DEST_SCRIPT)/vimrc_example.vim
1783 $(INSTALL_DATA) $(SCRIPTSOURCE)/gvimrc_example.vim $(DEST_SCRIPT)
1784 chmod $(VIMSCRIPTMOD) $(DEST_SCRIPT)/gvimrc_example.vim
1785# install the file type detection files
1786 $(INSTALL_DATA) $(SCRIPTSOURCE)/filetype.vim $(SYS_FILETYPE_FILE)
1787 chmod $(VIMSCRIPTMOD) $(SYS_FILETYPE_FILE)
1788 $(INSTALL_DATA) $(SCRIPTSOURCE)/ftoff.vim $(SYS_FTOFF_FILE)
1789 chmod $(VIMSCRIPTMOD) $(SYS_FTOFF_FILE)
1790 $(INSTALL_DATA) $(SCRIPTSOURCE)/scripts.vim $(SYS_SCRIPTS_FILE)
1791 chmod $(VIMSCRIPTMOD) $(SYS_SCRIPTS_FILE)
1792 $(INSTALL_DATA) $(SCRIPTSOURCE)/ftplugin.vim $(SYS_FTPLUGIN_FILE)
1793 chmod $(VIMSCRIPTMOD) $(SYS_FTPLUGIN_FILE)
1794 $(INSTALL_DATA) $(SCRIPTSOURCE)/ftplugof.vim $(SYS_FTPLUGOF_FILE)
1795 chmod $(VIMSCRIPTMOD) $(SYS_FTPLUGOF_FILE)
1796 $(INSTALL_DATA) $(SCRIPTSOURCE)/indent.vim $(SYS_INDENT_FILE)
1797 chmod $(VIMSCRIPTMOD) $(SYS_INDENT_FILE)
1798 $(INSTALL_DATA) $(SCRIPTSOURCE)/indoff.vim $(SYS_INDOFF_FILE)
1799 chmod $(VIMSCRIPTMOD) $(SYS_INDOFF_FILE)
1800 $(INSTALL_DATA) $(SCRIPTSOURCE)/optwin.vim $(SYS_OPTWIN_FILE)
1801 chmod $(VIMSCRIPTMOD) $(SYS_OPTWIN_FILE)
1802# install the print resource files
1803 cd $(PRINTSOURCE); $(INSTALL_DATA) *.ps $(DEST_PRINT)
1804 cd $(DEST_PRINT); chmod $(FILEMOD) *.ps
1805# install the colorscheme files
1806 cd $(COLSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_COL)
1807 cd $(DEST_COL); chmod $(HELPMOD) *.vim README.txt
1808# install the syntax files
1809 cd $(SYNSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_SYN)
1810 cd $(DEST_SYN); chmod $(HELPMOD) *.vim README.txt
1811# install the indent files
1812 cd $(INDSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_IND)
1813 cd $(DEST_IND); chmod $(HELPMOD) *.vim README.txt
Bram Moolenaar87e25fd2005-07-27 21:13:01 +00001814# install the standard autoload files
1815 cd $(AUTOSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_AUTO)
1816 cd $(DEST_AUTO); chmod $(HELPMOD) *.vim README.txt
Bram Moolenaare1d12892004-06-13 13:02:36 +00001817# install the standard plugin files
1818 cd $(PLUGSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_PLUG)
1819 cd $(DEST_PLUG); chmod $(HELPMOD) *.vim README.txt
1820# install the ftplugin files
1821 cd $(FTPLUGSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_FTP)
1822 cd $(DEST_FTP); chmod $(HELPMOD) *.vim README.txt
1823# install the compiler files
1824 cd $(COMPSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_COMP)
1825 cd $(DEST_COMP); chmod $(HELPMOD) *.vim README.txt
1826
Bram Moolenaar582fd852005-03-28 20:58:01 +00001827installmacros: $(DEST_VIM) $(DEST_RT) $(DEST_MACRO)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001828 $(INSTALL_DATA_R) $(MACROSOURCE)/* $(DEST_MACRO)
1829 chmod $(DIRMOD) `find $(DEST_MACRO) -type d -print`
1830 chmod $(FILEMOD) `find $(DEST_MACRO) -type f -print`
1831 chmod $(SCRIPTMOD) $(DEST_MACRO)/less.sh
1832# When using CVS some CVS directories might have been copied.
1833 cvs=`find $(DEST_MACRO) \( -name CVS -o -name AAPDIR \) -print`; \
1834 if test -n "$$cvs"; then \
1835 rm -rf $$cvs; \
1836 fi
1837
1838# install the tutor files
Bram Moolenaare344bea2005-09-01 20:46:49 +00001839installtutorbin: $(DEST_VIM)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001840 $(INSTALL_DATA) vimtutor $(DEST_BIN)/$(VIMNAME)tutor
1841 chmod $(SCRIPTMOD) $(DEST_BIN)/$(VIMNAME)tutor
Bram Moolenaare344bea2005-09-01 20:46:49 +00001842
1843installtutor: $(DEST_RT) $(DEST_TUTOR)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001844 -$(INSTALL_DATA) $(TUTORSOURCE)/README* $(TUTORSOURCE)/tutor* $(DEST_TUTOR)
1845 chmod $(HELPMOD) $(DEST_TUTOR)/*
1846
Bram Moolenaarcee55602005-08-21 22:12:59 +00001847# Install the spell files, if they exist. This assumes at least the English
1848# spell file is there.
Bram Moolenaar582fd852005-03-28 20:58:01 +00001849installspell: $(DEST_VIM) $(DEST_RT) $(DEST_SPELL)
Bram Moolenaar0e21a3f2005-04-17 20:28:32 +00001850 if test -f $(SPELLSOURCE)/en.latin1.spl; then \
Bram Moolenaara6c840d2005-08-22 22:59:46 +00001851 $(INSTALL_DATA) $(SPELLSOURCE)/*.spl $(SPELLSOURCE)/*.vim $(DEST_SPELL); \
1852 chmod $(HELPMOD) $(DEST_SPELL)/*.spl $(DEST_SPELL)/*.vim; \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001853 fi
1854
Bram Moolenaare1d12892004-06-13 13:02:36 +00001855# install helper program xxd
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001856installtools: $(TOOLS) $(DESTDIR)$(exec_prefix) $(DEST_BIN) \
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00001857 $(TOOLSSOURCE) $(DEST_VIM) $(DEST_RT) $(DEST_TOOLS) \
1858 $(INSTALL_TOOL_LANGS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001859 if test -f $(DEST_BIN)/xxd$(EXEEXT); then \
1860 mv -f $(DEST_BIN)/xxd$(EXEEXT) $(DEST_BIN)/xxd.rm; \
1861 rm -f $(DEST_BIN)/xxd.rm; \
1862 fi
1863 $(INSTALL_PROG) xxd/xxd$(EXEEXT) $(DEST_BIN)
1864 $(STRIP) $(DEST_BIN)/xxd$(EXEEXT)
1865 chmod $(BINMOD) $(DEST_BIN)/xxd$(EXEEXT)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001866 -$(SHELL) ./installman.sh xxd $(DEST_MAN) "" $(INSTALLMANARGS)
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00001867
Bram Moolenaare1d12892004-06-13 13:02:36 +00001868# install the runtime tools
1869 $(INSTALL_DATA_R) $(TOOLSSOURCE)/* $(DEST_TOOLS)
1870# When using CVS some CVS directories might have been copied.
1871 cvs=`find $(DEST_TOOLS) \( -name CVS -o -name AAPDIR \) -print`; \
1872 if test -n "$$cvs"; then \
1873 rm -rf $$cvs; \
1874 fi
1875 -chmod $(FILEMOD) $(DEST_TOOLS)/*
1876# replace the path in some tools
1877 perlpath=`./which.sh perl` && sed -e "s+/usr/bin/perl+$$perlpath+" $(TOOLSSOURCE)/efm_perl.pl >$(DEST_TOOLS)/efm_perl.pl
1878 awkpath=`./which.sh nawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \
1879 awkpath=`./which.sh gawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \
1880 awkpath=`./which.sh awk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; fi; fi
1881 -chmod $(SCRIPTMOD) `grep -l "^#!" $(DEST_TOOLS)/*`
1882
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00001883# install the language specific files for tools, if they were unpacked
1884install-tool-languages:
1885 -$(SHELL) ./installman.sh xxd $(DEST_MAN_FR) "-fr" $(INSTALLMANARGS)
1886 -$(SHELL) ./installman.sh xxd $(DEST_MAN_FR_I) "-fr" $(INSTALLMANARGS)
1887 -$(SHELL) ./installman.sh xxd $(DEST_MAN_FR_U) "-fr.UTF-8" $(INSTALLMANARGS)
1888 -$(SHELL) ./installman.sh xxd $(DEST_MAN_IT) "-it" $(INSTALLMANARGS)
1889 -$(SHELL) ./installman.sh xxd $(DEST_MAN_IT_I) "-it" $(INSTALLMANARGS)
1890 -$(SHELL) ./installman.sh xxd $(DEST_MAN_IT_U) "-it.UTF-8" $(INSTALLMANARGS)
1891 -$(SHELL) ./installman.sh xxd $(DEST_MAN_RU) "-ru" $(INSTALLMANARGS)
1892 -$(SHELL) ./installman.sh xxd $(DEST_MAN_RU_U) "-ru.UTF-8" $(INSTALLMANARGS)
1893
Bram Moolenaare1d12892004-06-13 13:02:36 +00001894# install the language specific files, if they were unpacked
1895install-languages: languages $(DEST_LANG) $(DEST_KMAP)
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00001896 -$(SHELL) ./installman.sh install $(DEST_MAN_FR) "-fr" $(INSTALLMANARGS)
1897 -$(SHELL) ./installman.sh install $(DEST_MAN_FR_I) "-fr" $(INSTALLMANARGS)
1898 -$(SHELL) ./installman.sh install $(DEST_MAN_FR_U) "-fr.UTF-8" $(INSTALLMANARGS)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001899 -$(SHELL) ./installman.sh install $(DEST_MAN_IT) "-it" $(INSTALLMANARGS)
Bram Moolenaar217ad922005-03-20 22:37:15 +00001900 -$(SHELL) ./installman.sh install $(DEST_MAN_IT_I) "-it" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001901 -$(SHELL) ./installman.sh install $(DEST_MAN_IT_U) "-it.UTF-8" $(INSTALLMANARGS)
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001902 -$(SHELL) ./installman.sh install $(DEST_MAN_RU) "-ru" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001903 -$(SHELL) ./installman.sh install $(DEST_MAN_RU_U) "-ru.UTF-8" $(INSTALLMANARGS)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001904 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00001905 $(DEST_MAN_FR) $(INSTALLMLARGS)
1906 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
1907 $(DEST_MAN_FR_I) $(INSTALLMLARGS)
1908 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
1909 $(DEST_MAN_FR_U) $(INSTALLMLARGS)
1910 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001911 $(DEST_MAN_IT) $(INSTALLMLARGS)
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001912 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001913 $(DEST_MAN_IT_I) $(INSTALLMLARGS)
1914 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001915 $(DEST_MAN_IT_U) $(INSTALLMLARGS)
1916 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001917 $(DEST_MAN_RU) $(INSTALLMLARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001918 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
1919 $(DEST_MAN_RU_U) $(INSTALLMLARGS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001920 if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
1921 cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) LOCALEDIR=$(DEST_LANG) \
1922 INSTALL_DATA=$(INSTALL_DATA) FILEMOD=$(FILEMOD) install; \
1923 fi
1924 if test -d $(LANGSOURCE); then \
1925 $(INSTALL_DATA) $(LANGSOURCE)/README.txt $(LANGSOURCE)/*.vim $(DEST_LANG); \
1926 chmod $(FILEMOD) $(DEST_LANG)/README.txt $(DEST_LANG)/*.vim; \
1927 fi
1928 if test -d $(KMAPSOURCE); then \
1929 $(INSTALL_DATA) $(KMAPSOURCE)/README.txt $(KMAPSOURCE)/*.vim $(DEST_KMAP); \
1930 chmod $(FILEMOD) $(DEST_KMAP)/README.txt $(DEST_KMAP)/*.vim; \
1931 fi
1932
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001933# install the icons for KDE, if the directory exists and the icon doesn't.
Bram Moolenaare1d12892004-06-13 13:02:36 +00001934ICON48PATH = $(DESTDIR)$(DATADIR)/icons/hicolor/48x48/apps
1935ICON32PATH = $(DESTDIR)$(DATADIR)/icons/locolor/32x32/apps
1936ICON16PATH = $(DESTDIR)$(DATADIR)/icons/locolor/16x16/apps
1937KDEPATH = $(HOME)/.kde/share/icons
1938install-icons:
1939 if test -d $(ICON48PATH) -a -w $(ICON48PATH) \
1940 -a ! -f $(ICON48PATH)/gvim.png; then \
1941 $(INSTALL_DATA) $(SCRIPTSOURCE)/vim48x48.png $(ICON48PATH)/gvim.png; \
1942 fi
1943 if test -d $(ICON32PATH) -a -w $(ICON32PATH) \
1944 -a ! -f $(ICON32PATH)/gvim.png; then \
1945 $(INSTALL_DATA) $(SCRIPTSOURCE)/vim32x32.png $(ICON32PATH)/gvim.png; \
1946 fi
1947 if test -d $(ICON16PATH) -a -w $(ICON16PATH) \
1948 -a ! -f $(ICON16PATH)/gvim.png; then \
1949 $(INSTALL_DATA) $(SCRIPTSOURCE)/vim16x16.png $(ICON16PATH)/gvim.png; \
1950 fi
1951
1952
1953$(HELPSOURCE)/vim.1 $(MACROSOURCE) $(TOOLSSOURCE):
1954 @echo Runtime files not found.
1955 @echo You need to unpack the runtime archive before running "make install".
1956 test -f error
1957
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001958$(DESTDIR)$(exec_prefix) $(DEST_BIN) \
1959 $(DEST_VIM) $(DEST_RT) $(DEST_HELP) \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001960 $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND) $(DEST_FTP) \
1961 $(DEST_LANG) $(DEST_KMAP) $(DEST_COMP) \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001962 $(DEST_MACRO) $(DEST_TOOLS) $(DEST_TUTOR) $(DEST_SPELL) \
Bram Moolenaar87e25fd2005-07-27 21:13:01 +00001963 $(DEST_AUTO) $(DEST_PLUG):
Bram Moolenaare1d12892004-06-13 13:02:36 +00001964 -$(SHELL) ./mkinstalldirs $@
1965 -chmod $(DIRMOD) $@
1966
1967# create links from various names to vim. This is only done when the links
1968# (or executables with the same name) don't exist yet.
1969installlinks: $(GUI_TARGETS) \
1970 $(DEST_BIN)/$(EXTARGET) \
1971 $(DEST_BIN)/$(VIEWTARGET) \
1972 $(DEST_BIN)/$(RVIMTARGET) \
1973 $(DEST_BIN)/$(RVIEWTARGET) \
1974 $(INSTALLVIMDIFF)
1975
1976installglinks: $(DEST_BIN)/$(GVIMTARGET) \
1977 $(DEST_BIN)/$(GVIEWTARGET) \
1978 $(DEST_BIN)/$(RGVIMTARGET) \
1979 $(DEST_BIN)/$(RGVIEWTARGET) \
1980 $(DEST_BIN)/$(EVIMTARGET) \
1981 $(DEST_BIN)/$(EVIEWTARGET) \
1982 $(INSTALLGVIMDIFF)
1983
1984installvimdiff: $(DEST_BIN)/$(VIMDIFFTARGET)
1985installgvimdiff: $(DEST_BIN)/$(GVIMDIFFTARGET)
1986
1987$(DEST_BIN)/$(EXTARGET):
1988 cd $(DEST_BIN); ln -s $(VIMTARGET) $(EXTARGET)
1989
1990$(DEST_BIN)/$(VIEWTARGET):
1991 cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIEWTARGET)
1992
1993$(DEST_BIN)/$(GVIMTARGET):
1994 cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMTARGET)
1995
1996$(DEST_BIN)/$(GVIEWTARGET):
1997 cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIEWTARGET)
1998
1999$(DEST_BIN)/$(RVIMTARGET):
2000 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIMTARGET)
2001
2002$(DEST_BIN)/$(RVIEWTARGET):
2003 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIEWTARGET)
2004
2005$(DEST_BIN)/$(RGVIMTARGET):
2006 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIMTARGET)
2007
2008$(DEST_BIN)/$(RGVIEWTARGET):
2009 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIEWTARGET)
2010
2011$(DEST_BIN)/$(VIMDIFFTARGET):
2012 cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIMDIFFTARGET)
2013
2014$(DEST_BIN)/$(GVIMDIFFTARGET):
2015 cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMDIFFTARGET)
2016
2017$(DEST_BIN)/$(EVIMTARGET):
2018 cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIMTARGET)
2019
2020$(DEST_BIN)/$(EVIEWTARGET):
2021 cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIEWTARGET)
2022
2023# create links for the manual pages with various names to vim. This is only
2024# done when the links (or manpages with the same name) don't exist yet.
Bram Moolenaare1d12892004-06-13 13:02:36 +00002025
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002026INSTALLMLARGS = $(VIMNAME) $(VIMDIFFNAME) $(EVIMNAME) \
2027 $(EXNAME) $(VIEWNAME) $(RVIMNAME) $(RVIEWNAME) \
2028 $(GVIMNAME) $(GVIEWNAME) $(RGVIMNAME) $(RGVIEWNAME) \
2029 $(GVIMDIFFNAME) $(EVIEWNAME)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002030
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002031installmanlinks:
2032 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
2033 $(DEST_MAN) $(INSTALLMLARGS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002034
2035uninstall: uninstall_runtime
2036 -rm -f $(DEST_BIN)/$(VIMTARGET)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002037 -rm -f $(DEST_BIN)/vimtutor
Bram Moolenaare1d12892004-06-13 13:02:36 +00002038 -rm -f $(DEST_BIN)/$(EXTARGET) $(DEST_BIN)/$(VIEWTARGET)
2039 -rm -f $(DEST_BIN)/$(GVIMTARGET) $(DEST_BIN)/$(GVIEWTARGET)
2040 -rm -f $(DEST_BIN)/$(RVIMTARGET) $(DEST_BIN)/$(RVIEWTARGET)
2041 -rm -f $(DEST_BIN)/$(RGVIMTARGET) $(DEST_BIN)/$(RGVIEWTARGET)
2042 -rm -f $(DEST_BIN)/$(VIMDIFFTARGET) $(DEST_BIN)/$(GVIMDIFFTARGET)
2043 -rm -f $(DEST_BIN)/$(EVIMTARGET) $(DEST_BIN)/$(EVIEWTARGET)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002044 -rm -f $(DEST_BIN)/xxd$(EXEEXT)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002045
2046# Note: the "rmdir" will fail if any files were added after "make install"
2047uninstall_runtime:
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002048 -$(SHELL) ./installman.sh uninstall $(DEST_MAN) "" $(INSTALLMANARGS)
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00002049 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_FR) "" $(INSTALLMANARGS)
2050 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_FR_I) "" $(INSTALLMANARGS)
2051 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_FR_U) "" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002052 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_IT) "" $(INSTALLMANARGS)
Bram Moolenaar217ad922005-03-20 22:37:15 +00002053 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_IT_I) "" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002054 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_IT_U) "" $(INSTALLMANARGS)
2055 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_RU) "" $(INSTALLMANARGS)
2056 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_RU_U) "" $(INSTALLMANARGS)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002057 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2058 $(DEST_MAN) $(INSTALLMLARGS)
2059 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00002060 $(DEST_MAN_FR) $(INSTALLMLARGS)
2061 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2062 $(DEST_MAN_FR_I) $(INSTALLMLARGS)
2063 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2064 $(DEST_MAN_FR_U) $(INSTALLMLARGS)
2065 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002066 $(DEST_MAN_IT) $(INSTALLMLARGS)
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002067 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaar217ad922005-03-20 22:37:15 +00002068 $(DEST_MAN_IT_I) $(INSTALLMLARGS)
2069 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002070 $(DEST_MAN_IT_U) $(INSTALLMLARGS)
2071 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002072 $(DEST_MAN_RU) $(INSTALLMLARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002073 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2074 $(DEST_MAN_RU_U) $(INSTALLMLARGS)
2075 -rm -f $(DEST_MAN)/xxd.1
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00002076 -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 +00002077 -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 +00002078 -rm -f $(DEST_MAN_RU)/xxd.1 $(DEST_MAN_RU_U)/xxd.1
Bram Moolenaare1d12892004-06-13 13:02:36 +00002079 -rm -f $(DEST_HELP)/*.txt $(DEST_HELP)/tags $(DEST_HELP)/*.pl
2080 -rm -f $(DEST_HELP)/*.??x $(DEST_HELP)/tags-??
2081 -rm -f $(SYS_MENU_FILE) $(SYS_SYNMENU_FILE) $(SYS_DELMENU_FILE)
2082 -rm -f $(SYS_BUGR_FILE) $(EVIM_FILE) $(MSWIN_FILE)
2083 -rm -f $(DEST_SCRIPT)/gvimrc_example.vim $(DEST_SCRIPT)/vimrc_example.vim
2084 -rm -f $(SYS_FILETYPE_FILE) $(SYS_FTOFF_FILE) $(SYS_SCRIPTS_FILE)
2085 -rm -f $(SYS_INDOFF_FILE) $(SYS_INDENT_FILE)
2086 -rm -f $(SYS_FTPLUGOF_FILE) $(SYS_FTPLUGIN_FILE)
2087 -rm -f $(SYS_OPTWIN_FILE)
2088 -rm -f $(DEST_COL)/*.vim $(DEST_COL)/README.txt
2089 -rm -f $(DEST_SYN)/*.vim $(DEST_SYN)/README.txt
2090 -rm -f $(DEST_IND)/*.vim $(DEST_IND)/README.txt
2091 -rm -rf $(DEST_MACRO)
2092 -rm -rf $(DEST_TUTOR)
Bram Moolenaar217ad922005-03-20 22:37:15 +00002093 -rm -rf $(DEST_SPELL)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002094 -rm -rf $(DEST_TOOLS)
2095 -rm -rf $(DEST_LANG)
2096 -rm -rf $(DEST_KMAP)
2097 -rm -rf $(DEST_COMP)
2098 -rm -f $(DEST_PRINT)/*.ps
2099 -rmdir $(DEST_HELP) $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND)
2100 -rm -rf $(DEST_FTP)/*.vim $(DEST_FTP)/README.txt
Bram Moolenaar87e25fd2005-07-27 21:13:01 +00002101 -rm -f $(DEST_AUTO)/*.vim $(DEST_AUTO)/README.txt
Bram Moolenaare1d12892004-06-13 13:02:36 +00002102 -rm -f $(DEST_PLUG)/*.vim $(DEST_PLUG)/README.txt
Bram Moolenaar87e25fd2005-07-27 21:13:01 +00002103 -rmdir $(DEST_FTP) $(DEST_AUTO) $(DEST_PLUG) $(DEST_RT)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002104# This will fail when other Vim versions are installed, no worries.
2105 -rmdir $(DEST_VIM)
2106
2107# Clean up all the files that have been produced, except configure's.
2108# We support common typing mistakes for Juergen! :-)
2109clean celan: testclean
2110 -rm -f *.o objects/* core $(VIMTARGET).core $(VIMTARGET) xxd/*.o
2111 -rm -f $(TOOLS) auto/osdef.h auto/pathdef.c auto/if_perl.c
2112 -rm -f conftest* *~ auto/link.sed
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002113 -rm -rf $(APPDIR)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002114 if test -d $(PODIR); then \
2115 cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) clean; \
2116 fi
2117
2118# Make a shadow directory for compilation on another system or with different
2119# features.
2120SHADOWDIR = shadow
2121
2122shadow: runtime pixmaps
2123 mkdir $(SHADOWDIR)
2124 cd $(SHADOWDIR); ln -s ../*.[ch] ../*.in ../*.sh ../*.xs ../*.xbm ../toolcheck ../proto ../vimtutor ../mkinstalldirs .
2125 mkdir $(SHADOWDIR)/auto
2126 cd $(SHADOWDIR)/auto; ln -s ../../auto/configure .
2127 cd $(SHADOWDIR); rm -f auto/link.sed
2128 cp Makefile configure $(SHADOWDIR)
2129 rm -f $(SHADOWDIR)/auto/config.mk $(SHADOWDIR)/config.mk.dist
2130 cp config.mk.dist $(SHADOWDIR)/auto/config.mk
2131 cp config.mk.dist $(SHADOWDIR)
2132 mkdir $(SHADOWDIR)/xxd
2133 cd $(SHADOWDIR)/xxd; ln -s ../../xxd/*.[ch] ../../xxd/Make* .
2134 mkdir $(SHADOWDIR)/testdir
2135 cd $(SHADOWDIR)/testdir; ln -s ../../testdir/Makefile \
2136 ../../testdir/vimrc.unix \
2137 ../../testdir/*.in \
2138 ../../testdir/unix.vim \
2139 ../../testdir/*.ok .
2140
2141# Link needed for doing "make install" in a shadow directory.
2142runtime:
2143 -ln -s ../runtime .
2144
2145# Link needed for doing "make" using GTK in a shadow directory.
2146pixmaps:
2147 -ln -s ../pixmaps .
2148
2149# Update the synmenu.vim file with the latest Syntax menu.
2150# This is only needed when runtime/makemenu.vim was changed.
2151menu: ./vim ../runtime/makemenu.vim
2152 ./vim -u ../runtime/makemenu.vim
2153
2154# Start configure from scratch
2155scrub scratch:
2156 -rm -f auto/config.status auto/config.cache config.log auto/config.log
2157 -rm -f auto/config.h auto/link.log auto/link.sed auto/config.mk
2158 touch auto/config.h
2159 cp config.mk.dist auto/config.mk
2160
2161distclean: clean scratch
2162 -rm -f tags
2163
2164dist: distclean
2165 @echo
2166 @echo Making the distribution has to be done in the top directory
2167
2168mdepend:
2169 -@rm -f Makefile~
2170 cp Makefile Makefile~
2171 sed -e '/\#\#\# Dependencies/q' < Makefile > tmp_make
2172 @for i in $(ALL_SRC) ; do \
2173 echo "$$i" ; \
2174 echo `echo "$$i" | sed -e 's/[^ ]*\.c$$/objects\/\1.o/'`": $$i" `\
2175 $(CPP) $$i |\
2176 grep '^# .*"\./.*\.h"' |\
2177 sort -t'"' -u +1 -2 |\
2178 sed -e 's/.*"\.\/\(.*\)".*/\1/'\
2179 ` >> tmp_make ; \
2180 done
2181 mv tmp_make Makefile
2182
2183depend:
2184 -@rm -f Makefile~
2185 cp Makefile Makefile~
2186 sed -e '/\#\#\# Dependencies/q' < Makefile > tmp_make
2187 -for i in $(ALL_SRC); do echo $$i; \
2188 $(CPP_DEPEND) $$i | \
2189 sed -e 's+^\([^ ]*\.o\)+objects/\1+' >> tmp_make; done
2190 mv tmp_make Makefile
2191
Bram Moolenaar9d75c832005-01-25 21:57:23 +00002192# Run lint. Clean up the *.ln files that are sometimes left behind.
Bram Moolenaare1d12892004-06-13 13:02:36 +00002193lint:
Bram Moolenaar051b7822005-05-19 21:00:46 +00002194 lint $(LINT_OPTIONS) $(LINT_CFLAGS) $(LINT_EXTRA) $(LINT_SRC)
Bram Moolenaar9d75c832005-01-25 21:57:23 +00002195 -rm -f *.ln
Bram Moolenaare1d12892004-06-13 13:02:36 +00002196
2197# Check dosinst.c with lint.
2198lintinstall:
2199 lint $(LINT_OPTIONS) -DWIN32 -DUNIX_LINT dosinst.c
Bram Moolenaar9d75c832005-01-25 21:57:23 +00002200 -rm -f dosinst.ln
Bram Moolenaare1d12892004-06-13 13:02:36 +00002201
2202###########################################################################
2203
2204.c.o:
2205 $(CCC) $<
2206
Bram Moolenaare1d12892004-06-13 13:02:36 +00002207auto/if_perl.c: if_perl.xs
2208 $(PERL) -e 'unless ( $$] >= 5.005 ) { for (qw(na defgv errgv)) { print "#define PL_$$_ $$_\n" }}' > $@
2209 $(PERL) $(PERLLIB)/ExtUtils/xsubpp -prototypes -typemap \
2210 $(PERLLIB)/ExtUtils/typemap if_perl.xs >> $@
2211
2212auto/osdef.h: auto/config.h osdef.sh osdef1.h.in osdef2.h.in
2213 CC="$(CC) $(ALL_CFLAGS)" srcdir=$(srcdir) sh $(srcdir)/osdef.sh
2214
2215QUOTESED = sed -e 's/"/\\"/g' -e 's/\\"/"/' -e 's/\\";$$/";/'
2216auto/pathdef.c: Makefile auto/config.mk
2217 -@echo creating $@
2218 -@echo '/* pathdef.c */' > $@
2219 -@echo '/* This file is automatically created by Makefile' >> $@
2220 -@echo ' * DO NOT EDIT! Change Makefile only. */' >> $@
2221 -@echo '#include "vim.h"' >> $@
2222 -@echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' | $(QUOTESED) >> $@
2223 -@echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' | $(QUOTESED) >> $@
2224 -@echo 'char_u *all_cflags = (char_u *)"$(CC) -c -I$(srcdir) $(ALL_CFLAGS)";' | $(QUOTESED) >> $@
2225 -@echo 'char_u *all_lflags = (char_u *)"$(CC) $(ALL_LIB_DIRS) $(LDFLAGS) -o $(VIMTARGET) $(ALL_LIBS) ";' | $(QUOTESED) >> $@
2226 -@echo 'char_u *compiled_user = (char_u *)"' | tr -d $(NL) >> $@
2227 -@if test -n "$(COMPILEDBY)"; then \
2228 echo "$(COMPILEDBY)" | tr -d $(NL) >> $@; \
2229 else ((logname) 2>/dev/null || whoami) | tr -d $(NL) >> $@; fi
2230 -@echo '";' >> $@
2231 -@echo 'char_u *compiled_sys = (char_u *)"' | tr -d $(NL) >> $@
2232 -@if test -z "$(COMPILEDBY)"; then hostname | tr -d $(NL) >> $@; fi
2233 -@echo '";' >> $@
2234 -@sh $(srcdir)/pathdef.sh
2235
2236# All the object files are put in the "objects" directory. Since not all make
2237# commands understand putting object files in another directory, it must be
2238# specified for each file separately.
2239
2240objects:
2241 mkdir objects
2242
2243objects/buffer.o: buffer.c
2244 $(CCC) -o $@ buffer.c
2245
2246objects/charset.o: charset.c
2247 $(CCC) -o $@ charset.c
2248
2249objects/diff.o: diff.c
2250 $(CCC) -o $@ diff.c
2251
2252objects/digraph.o: digraph.c
2253 $(CCC) -o $@ digraph.c
2254
2255objects/edit.o: edit.c
2256 $(CCC) -o $@ edit.c
2257
2258objects/eval.o: eval.c
2259 $(CCC) -o $@ eval.c
2260
2261objects/ex_cmds.o: ex_cmds.c
2262 $(CCC) -o $@ ex_cmds.c
2263
2264objects/ex_cmds2.o: ex_cmds2.c
2265 $(CCC) -o $@ ex_cmds2.c
2266
2267objects/ex_docmd.o: ex_docmd.c
2268 $(CCC) -o $@ ex_docmd.c
2269
2270objects/ex_eval.o: ex_eval.c
2271 $(CCC) -o $@ ex_eval.c
2272
2273objects/ex_getln.o: ex_getln.c
2274 $(CCC) -o $@ ex_getln.c
2275
2276objects/fileio.o: fileio.c
2277 $(CCC) -o $@ fileio.c
2278
2279objects/fold.o: fold.c
2280 $(CCC) -o $@ fold.c
2281
2282objects/getchar.o: getchar.c
2283 $(CCC) -o $@ getchar.c
2284
Bram Moolenaar58d98232005-07-23 22:25:46 +00002285objects/hardcopy.o: hardcopy.c
2286 $(CCC) -o $@ hardcopy.c
2287
Bram Moolenaar383f9bc2005-01-19 22:18:32 +00002288objects/hashtable.o: hashtable.c
2289 $(CCC) -o $@ hashtable.c
2290
Bram Moolenaare1d12892004-06-13 13:02:36 +00002291objects/gui.o: gui.c
2292 $(CCC) -o $@ gui.c
2293
2294objects/gui_at_fs.o: gui_at_fs.c
2295 $(CCC) -o $@ gui_at_fs.c
2296
2297objects/gui_at_sb.o: gui_at_sb.c
2298 $(CCC) -o $@ gui_at_sb.c
2299
2300objects/gui_athena.o: gui_athena.c
2301 $(CCC) -o $@ gui_athena.c
2302
Bram Moolenaare1d12892004-06-13 13:02:36 +00002303objects/gui_beval.o: gui_beval.c
2304 $(CCC) -o $@ gui_beval.c
2305
2306objects/gui_gtk.o: gui_gtk.c
2307 $(CCC) -o $@ gui_gtk.c
2308
2309objects/gui_gtk_f.o: gui_gtk_f.c
2310 $(CCC) -o $@ gui_gtk_f.c
2311
2312objects/gui_gtk_x11.o: gui_gtk_x11.c
2313 $(CCC) -o $@ gui_gtk_x11.c
2314
2315objects/gui_motif.o: gui_motif.c
2316 $(CCC) -o $@ gui_motif.c
2317
Bram Moolenaardfccaf02004-12-31 20:56:11 +00002318objects/gui_xmdlg.o: gui_xmdlg.c
2319 $(CCC) -o $@ gui_xmdlg.c
2320
Bram Moolenaarb7fcef52005-01-02 11:31:05 +00002321objects/gui_xmebw.o: gui_xmebw.c
2322 $(CCC) -o $@ gui_xmebw.c
2323
Bram Moolenaare1d12892004-06-13 13:02:36 +00002324objects/gui_x11.o: gui_x11.c
2325 $(CCC) -o $@ gui_x11.c
2326
2327objects/gui_photon.o: gui_photon.c
2328 $(CCC) -o $@ gui_photon.c
2329
2330objects/gui_mac.o: gui_mac.c
2331 $(CCC) -o $@ gui_mac.c
2332
2333objects/hangulin.o: hangulin.c
2334 $(CCC) -o $@ hangulin.c
2335
2336objects/if_cscope.o: if_cscope.c
2337 $(CCC) -o $@ if_cscope.c
2338
2339objects/if_xcmdsrv.o: if_xcmdsrv.c
2340 $(CCC) -o $@ if_xcmdsrv.c
2341
Bram Moolenaar325b7a22004-07-05 15:58:32 +00002342objects/if_mzsch.o: if_mzsch.c
2343 $(CCC) -o $@ if_mzsch.c
2344
Bram Moolenaare1d12892004-06-13 13:02:36 +00002345objects/if_perl.o: auto/if_perl.c
2346 $(CCC) -o $@ auto/if_perl.c
2347
2348objects/if_perlsfio.o: if_perlsfio.c
2349 $(CCC) -o $@ if_perlsfio.c
2350
2351objects/if_python.o: if_python.c
2352 $(CCC) -o $@ if_python.c
2353
2354objects/if_ruby.o: if_ruby.c
2355 $(CCC) -o $@ if_ruby.c
2356
2357objects/if_sniff.o: if_sniff.c
2358 $(CCC) -o $@ if_sniff.c
2359
2360objects/if_tcl.o: if_tcl.c
2361 $(CCC) -o $@ if_tcl.c
2362
2363objects/integration.o: integration.c
2364 $(CCC) -o $@ integration.c
2365
2366objects/main.o: main.c
2367 $(CCC) -o $@ main.c
2368
2369objects/mark.o: mark.c
2370 $(CCC) -o $@ mark.c
2371
2372objects/memfile.o: memfile.c
2373 $(CCC) -o $@ memfile.c
2374
2375objects/memline.o: memline.c
2376 $(CCC) -o $@ memline.c
2377
2378objects/menu.o: menu.c
2379 $(CCC) -o $@ menu.c
2380
2381objects/message.o: message.c
2382 $(CCC) -o $@ message.c
2383
2384objects/misc1.o: misc1.c
2385 $(CCC) -o $@ misc1.c
2386
2387objects/misc2.o: misc2.c
2388 $(CCC) -o $@ misc2.c
2389
2390objects/move.o: move.c
2391 $(CCC) -o $@ move.c
2392
2393objects/mbyte.o: mbyte.c
2394 $(CCC) -o $@ mbyte.c
2395
2396objects/normal.o: normal.c
2397 $(CCC) -o $@ normal.c
2398
2399objects/ops.o: ops.c
2400 $(CCC) -o $@ ops.c
2401
2402objects/option.o: option.c
2403 $(CCC) -o $@ option.c
2404
2405objects/os_beos.o: os_beos.c
2406 $(CCC) -o $@ os_beos.c
2407
2408objects/os_qnx.o: os_qnx.c
2409 $(CCC) -o $@ os_qnx.c
2410
2411objects/os_macosx.o: os_macosx.c
2412 $(CCC) -o $@ os_macosx.c
2413
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002414objects/os_mac_conv.o: os_mac_conv.c
2415 $(CCC) -o $@ os_mac_conv.c
2416
Bram Moolenaare1d12892004-06-13 13:02:36 +00002417objects/os_unix.o: os_unix.c
2418 $(CCC) -o $@ os_unix.c
2419
2420objects/pathdef.o: auto/pathdef.c
2421 $(CCC) -o $@ auto/pathdef.c
2422
2423objects/py_config.o: $(PYTHON_CONFDIR)/config.c
2424 $(CCC) -o $@ $(PYTHON_CONFDIR)/config.c \
2425 -I$(PYTHON_CONFDIR) -DHAVE_CONFIG_H -DNO_MAIN
2426
2427objects/py_getpath.o: $(PYTHON_CONFDIR)/getpath.c
2428 $(CCC) -o $@ $(PYTHON_CONFDIR)/getpath.c \
2429 -I$(PYTHON_CONFDIR) -DHAVE_CONFIG_H -DNO_MAIN \
2430 $(PYTHON_GETPATH_CFLAGS)
2431
2432objects/pty.o: pty.c
2433 $(CCC) -o $@ pty.c
2434
Bram Moolenaar1c7715d2005-10-03 22:02:18 +00002435objects/popupmenu.o: popupmenu.c
2436 $(CCC) -o $@ popupmenu.c
2437
Bram Moolenaare1d12892004-06-13 13:02:36 +00002438objects/quickfix.o: quickfix.c
2439 $(CCC) -o $@ quickfix.c
2440
2441objects/regexp.o: regexp.c
2442 $(CCC) -o $@ regexp.c
2443
2444objects/screen.o: screen.c
2445 $(CCC) -o $@ screen.c
2446
2447objects/search.o: search.c
2448 $(CCC) -o $@ search.c
2449
Bram Moolenaar217ad922005-03-20 22:37:15 +00002450objects/spell.o: spell.c
2451 $(CCC) -o $@ spell.c
2452
Bram Moolenaare1d12892004-06-13 13:02:36 +00002453objects/syntax.o: syntax.c
2454 $(CCC) -o $@ syntax.c
2455
2456objects/tag.o: tag.c
2457 $(CCC) -o $@ tag.c
2458
2459objects/term.o: term.c
2460 $(CCC) -o $@ term.c
2461
2462objects/ui.o: ui.c
2463 $(CCC) -o $@ ui.c
2464
2465objects/undo.o: undo.c
2466 $(CCC) -o $@ undo.c
2467
2468objects/window.o: window.c
2469 $(CCC) -o $@ window.c
2470
2471objects/workshop.o: workshop.c
2472 $(CCC) -o $@ workshop.c
2473
2474objects/wsdebug.o: wsdebug.c
2475 $(CCC) -o $@ wsdebug.c
2476
2477objects/netbeans.o: netbeans.c
2478 $(CCC) -o $@ netbeans.c
2479
2480Makefile:
2481 @echo The name of the makefile MUST be "Makefile" (with capital M)!!!!
2482
2483###############################################################################
2484### MacOS X installation
2485###
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002486### This installs a runnable Vim.app in $(prefix)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002487
2488REZ = /Developer/Tools/Rez
Bram Moolenaare1d12892004-06-13 13:02:36 +00002489RESDIR = $(APPDIR)/Contents/Resources
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00002490VERSION = $(VIMMAJOR).$(VIMMINOR)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002491
2492### Common flags
2493M4FLAGSX = $(M4FLAGS) -DAPP_EXE=$(VIMNAME) -DAPP_NAME=$(VIMNAME) \
2494 -DAPP_VER=$(VERSION) -DICON_APP=$(ICON_APP)
2495
2496### Icons
2497ICON_APP = gui_mac.icns
2498ICONS = $(RESDIR)/$(ICON_APP)
2499
2500# If you uncomment the following lines the *.icns in the src directory will be
2501# detected by this Makefile automatically, and used for Vim.
2502#ICON_APP = $(shell if [ -e app.icns ] ; then echo app.icns ; else echo gui_mac.icns ; fi)
2503#ICON_DOC = $(shell if [ -e doc.icns ] ; then echo doc.icns ; else echo ; fi)
2504#ICON_DOCTXT = $(shell if [ -e doc-txt.icns ] ; then echo doc-txt.icns ; else echo ; fi)
2505#ICONS = $(addprefix $(RESDIR)/, $(ICON_APP) $(ICON_DOC) $(ICON_DOCTXT))
2506
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002507install_macosx: gui_bundle
Bram Moolenaare344bea2005-09-01 20:46:49 +00002508# Remove the link to the runtime dir, don't want to copy all of that.
2509 -rm $(APPDIR)/runtime
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002510 $(INSTALL_DATA_R) $(APPDIR) $(DESTDIR)$(prefix)
Bram Moolenaare344bea2005-09-01 20:46:49 +00002511# Install the runtime files. Recursive!
2512 -mkdir $(DESTDIR)$(prefix)/$(APPDIR)/runtime
2513 -mkdir $(DESTDIR)$(prefix)/$(APPDIR)/bin
2514 srcdir=`pwd`; $(MAKE) -f Makefile installruntime \
2515 VIMEXE=$$srcdir/$(VIMTARGET) \
2516 prefix=$(DESTDIR)$(prefix)/$(APPDIR) \
2517 VIMRTLOC=$(DESTDIR)$(prefix)/$(APPDIR)/runtime
2518# Put the link back.
2519 ln -s `pwd`/../runtime $(APPDIR)
2520# TODO: Create the vimtutor application.
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002521
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002522gui_bundle: $(APPDIR) bundle-dir bundle-executable bundle-info bundle-resource \
Bram Moolenaare1d12892004-06-13 13:02:36 +00002523 bundle-language
2524
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002525$(APPDIR):
2526 mkdir -p $@
2527
Bram Moolenaare1d12892004-06-13 13:02:36 +00002528bundle-dir: $(APPDIR)/Contents $(VIMTARGET)
2529 -@srcdir=`pwd`; cd $(HELPSOURCE); $(MAKE) VIMEXE=$$srcdir/$(VIMTARGET) vimtags
Bram Moolenaare344bea2005-09-01 20:46:49 +00002530# Make a link to the runtime directory, so that we can try out the executable
2531# without installing it.
2532 -ln -s `pwd`/../runtime $(APPDIR)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002533
2534bundle-executable: $(VIMTARGET)
2535 cp $(VIMTARGET) $(APPDIR)/Contents/MacOS/$(VIMTARGET)
2536
2537bundle-info: bundle-dir
2538 @echo "Creating PkgInfo"
2539 @echo -n "APPLVIM!" > $(APPDIR)/Contents/PkgInfo
2540 @echo "Creating Info.plist"
2541 m4 $(M4FLAGSX) infplist.xml > $(APPDIR)/Contents/Info.plist
2542
2543bundle-resource: bundle-dir bundle-icons bundle-rsrc
2544
2545bundle-icons: $(ICONS)
2546
2547### Classic resources
2548# Resource fork (in the form of a .rsrc file) for Classic Vim (Mac OS 9)
2549# This file is also required for OS X Vim.
2550bundle-rsrc: os_mac.rsr.hqx
2551 @echo "Creating resource fork"
2552 python dehqx.py $<
2553 rm -f gui_mac.rsrc
2554 mv gui_mac.rsrc.rsrcfork $(RESDIR)/$(VIMNAME).rsrc
2555
2556# po/Make_osx.pl says something about generating a Mac message file
2557# for Ukrananian. Would somebody using Mac OS X in Ukranian
2558# *really* be upset that Carbon Vim was not localised in
2559# Ukranian?
2560#
2561#bundle-language: bundle-dir po/Make_osx.pl
2562# cd po && perl Make_osx.pl --outdir ../$(RESDIR) $(MULTILANG)
2563bundle-language: bundle-dir
2564
2565$(APPDIR)/Contents:
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002566 -$(SHELL) ./mkinstalldirs $(APPDIR)/Contents/MacOS
2567 -$(SHELL) ./mkinstalldirs $(RESDIR)/English.lproj
Bram Moolenaare1d12892004-06-13 13:02:36 +00002568
2569$(RESDIR)/%.icns: %.icns
2570 cp $< $@
2571
2572
2573###############################################################################
2574### (automatically generated by 'make depend')
2575### Dependencies:
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002576objects/buffer.o: buffer.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2577 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002578 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2579 arabic.h if_sniff.h version.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002580objects/charset.o: charset.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2581 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002582 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2583 arabic.h if_sniff.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002584objects/diff.o: diff.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002585 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002586 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2587 arabic.h if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002588objects/digraph.o: digraph.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2589 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002590 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2591 arabic.h if_sniff.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002592objects/edit.o: edit.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002593 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002594 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2595 arabic.h if_sniff.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002596objects/eval.o: eval.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002597 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002598 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2599 arabic.h if_sniff.h version.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002600objects/ex_cmds.o: ex_cmds.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2601 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002602 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2603 arabic.h if_sniff.h version.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002604objects/ex_cmds2.o: ex_cmds2.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002605 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002606 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2607 farsi.h arabic.h if_sniff.h version.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002608objects/ex_docmd.o: ex_docmd.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002609 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002610 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2611 farsi.h arabic.h if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002612objects/ex_eval.o: ex_eval.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2613 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002614 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2615 arabic.h if_sniff.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002616objects/ex_getln.o: ex_getln.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002617 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002618 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2619 farsi.h arabic.h if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002620objects/fileio.o: fileio.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2621 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002622 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2623 arabic.h if_sniff.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002624objects/fold.o: fold.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002625 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002626 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2627 arabic.h if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002628objects/getchar.o: getchar.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2629 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002630 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2631 arabic.h if_sniff.h
Bram Moolenaar58d98232005-07-23 22:25:46 +00002632objects/hardcopy.o: hardcopy.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002633 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002634 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2635 farsi.h arabic.h if_sniff.h version.h
Bram Moolenaar383f9bc2005-01-19 22:18:32 +00002636objects/hashtable.o: hashtable.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002637 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002638 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2639 farsi.h arabic.h if_sniff.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002640objects/if_cscope.o: if_cscope.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002641 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002642 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2643 farsi.h arabic.h if_sniff.h if_cscope.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002644objects/if_xcmdsrv.o: if_xcmdsrv.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002645 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002646 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2647 farsi.h arabic.h if_sniff.h version.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002648objects/main.o: main.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002649 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002650 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2651 arabic.h if_sniff.h farsi.c arabic.c
Bram Moolenaare1d12892004-06-13 13:02:36 +00002652objects/mark.o: mark.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002653 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002654 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2655 arabic.h if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002656objects/memfile.o: memfile.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2657 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002658 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2659 arabic.h if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002660objects/memline.o: memline.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2661 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002662 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2663 arabic.h if_sniff.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002664objects/menu.o: menu.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002665 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002666 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2667 arabic.h if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002668objects/message.o: message.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2669 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002670 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2671 arabic.h if_sniff.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002672objects/misc1.o: misc1.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002673 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002674 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2675 arabic.h if_sniff.h version.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002676objects/misc2.o: misc2.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002677 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002678 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2679 arabic.h if_sniff.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002680objects/move.o: move.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002681 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002682 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2683 arabic.h if_sniff.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002684objects/mbyte.o: mbyte.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002685 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002686 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2687 arabic.h if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002688objects/normal.o: normal.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2689 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002690 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2691 arabic.h if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002692objects/ops.o: ops.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \
2693 keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002694 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2695 arabic.h if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002696objects/option.o: option.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2697 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002698 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2699 arabic.h if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002700objects/os_unix.o: os_unix.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2701 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002702 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2703 arabic.h if_sniff.h os_unixx.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002704objects/pathdef.o: auto/pathdef.c ./vim.h ./auto/config.h ./feature.h ./os_unix.h \
2705 ./auto/osdef.h ./ascii.h ./keymap.h ./term.h ./macros.h ./structs.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002706 ./regexp.h ./gui.h ./gui_beval.h proto/gui_beval.pro ./option.h \
2707 ./ex_cmds.h ./proto.h ./globals.h ./farsi.h ./arabic.h ./if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002708objects/popupmenu.o: popupmenu.c vim.h auto/config.h feature.h os_unix.h \
2709 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002710 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2711 farsi.h arabic.h if_sniff.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002712objects/quickfix.o: quickfix.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002713 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002714 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2715 farsi.h arabic.h if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002716objects/regexp.o: regexp.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2717 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002718 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2719 arabic.h if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002720objects/screen.o: screen.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2721 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002722 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2723 arabic.h if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002724objects/search.o: search.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2725 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002726 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2727 arabic.h if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002728objects/spell.o: spell.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2729 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002730 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2731 arabic.h if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002732objects/syntax.o: syntax.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2733 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002734 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2735 arabic.h if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002736objects/tag.o: tag.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \
2737 keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002738 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2739 arabic.h if_sniff.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002740objects/term.o: term.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002741 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002742 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2743 arabic.h if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002744objects/ui.o: ui.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \
2745 keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002746 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2747 arabic.h if_sniff.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002748objects/undo.o: undo.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002749 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002750 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2751 arabic.h if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002752objects/version.o: version.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2753 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002754 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2755 arabic.h if_sniff.h version.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002756objects/window.o: window.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2757 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002758 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2759 arabic.h if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002760objects/gui.o: gui.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \
2761 keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002762 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2763 arabic.h if_sniff.h
2764objects/gui_gtk.o: gui_gtk.c gui_gtk_f.h vim.h auto/config.h feature.h os_unix.h \
2765 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
2766 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2767 farsi.h arabic.h if_sniff.h ../pixmaps/stock_icons.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002768objects/gui_gtk_f.o: gui_gtk_f.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002769 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002770 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2771 farsi.h arabic.h if_sniff.h gui_gtk_f.h
2772objects/gui_motif.o: gui_motif.c vim.h auto/config.h feature.h os_unix.h \
2773 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
2774 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2775 farsi.h arabic.h if_sniff.h gui_xmebw.h ../pixmaps/alert.xpm \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002776 ../pixmaps/error.xpm ../pixmaps/generic.xpm ../pixmaps/info.xpm \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002777 ../pixmaps/quest.xpm gui_x11_pm.h ../pixmaps/tb_new.xpm \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002778 ../pixmaps/tb_open.xpm ../pixmaps/tb_close.xpm ../pixmaps/tb_save.xpm \
2779 ../pixmaps/tb_print.xpm ../pixmaps/tb_cut.xpm ../pixmaps/tb_copy.xpm \
2780 ../pixmaps/tb_paste.xpm ../pixmaps/tb_find.xpm \
2781 ../pixmaps/tb_find_next.xpm ../pixmaps/tb_find_prev.xpm \
2782 ../pixmaps/tb_find_help.xpm ../pixmaps/tb_exit.xpm \
2783 ../pixmaps/tb_undo.xpm ../pixmaps/tb_redo.xpm ../pixmaps/tb_help.xpm \
2784 ../pixmaps/tb_macro.xpm ../pixmaps/tb_make.xpm \
2785 ../pixmaps/tb_save_all.xpm ../pixmaps/tb_jump.xpm \
2786 ../pixmaps/tb_ctags.xpm ../pixmaps/tb_load_session.xpm \
2787 ../pixmaps/tb_save_session.xpm ../pixmaps/tb_new_session.xpm \
2788 ../pixmaps/tb_blank.xpm ../pixmaps/tb_maximize.xpm \
2789 ../pixmaps/tb_split.xpm ../pixmaps/tb_minimize.xpm \
2790 ../pixmaps/tb_shell.xpm ../pixmaps/tb_replace.xpm \
2791 ../pixmaps/tb_vsplit.xpm ../pixmaps/tb_maxwidth.xpm \
2792 ../pixmaps/tb_minwidth.xpm
Bram Moolenaar202795b2005-10-11 20:29:39 +00002793objects/gui_xmdlg.o: gui_xmdlg.c vim.h auto/config.h feature.h os_unix.h \
2794 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
2795 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2796 farsi.h arabic.h if_sniff.h
2797objects/gui_xmebw.o: gui_xmebw.c vim.h auto/config.h feature.h os_unix.h \
2798 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
2799 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2800 farsi.h arabic.h if_sniff.h gui_xmebwp.h gui_xmebw.h
2801objects/gui_athena.o: gui_athena.c vim.h auto/config.h feature.h os_unix.h \
2802 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
2803 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2804 farsi.h arabic.h if_sniff.h gui_at_sb.h gui_x11_pm.h \
2805 ../pixmaps/tb_new.xpm ../pixmaps/tb_open.xpm ../pixmaps/tb_close.xpm \
2806 ../pixmaps/tb_save.xpm ../pixmaps/tb_print.xpm ../pixmaps/tb_cut.xpm \
2807 ../pixmaps/tb_copy.xpm ../pixmaps/tb_paste.xpm ../pixmaps/tb_find.xpm \
2808 ../pixmaps/tb_find_next.xpm ../pixmaps/tb_find_prev.xpm \
2809 ../pixmaps/tb_find_help.xpm ../pixmaps/tb_exit.xpm \
2810 ../pixmaps/tb_undo.xpm ../pixmaps/tb_redo.xpm ../pixmaps/tb_help.xpm \
2811 ../pixmaps/tb_macro.xpm ../pixmaps/tb_make.xpm \
2812 ../pixmaps/tb_save_all.xpm ../pixmaps/tb_jump.xpm \
2813 ../pixmaps/tb_ctags.xpm ../pixmaps/tb_load_session.xpm \
2814 ../pixmaps/tb_save_session.xpm ../pixmaps/tb_new_session.xpm \
2815 ../pixmaps/tb_blank.xpm ../pixmaps/tb_maximize.xpm \
2816 ../pixmaps/tb_split.xpm ../pixmaps/tb_minimize.xpm \
2817 ../pixmaps/tb_shell.xpm ../pixmaps/tb_replace.xpm \
2818 ../pixmaps/tb_vsplit.xpm ../pixmaps/tb_maxwidth.xpm \
2819 ../pixmaps/tb_minwidth.xpm
2820objects/gui_gtk_x11.o: gui_gtk_x11.c vim.h auto/config.h feature.h os_unix.h \
2821 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
2822 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2823 farsi.h arabic.h if_sniff.h gui_gtk_f.h ../runtime/vim32x32.xpm \
2824 ../runtime/vim16x16.xpm ../runtime/vim48x48.xpm
2825objects/gui_x11.o: gui_x11.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2826 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2827 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2828 arabic.h if_sniff.h ../runtime/vim32x32.xpm ../runtime/vim16x16.xpm \
2829 ../runtime/vim48x48.xpm
2830objects/gui_at_sb.o: gui_at_sb.c vim.h auto/config.h feature.h os_unix.h \
2831 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
2832 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2833 farsi.h arabic.h if_sniff.h gui_at_sb.h
2834objects/gui_at_fs.o: gui_at_fs.c vim.h auto/config.h feature.h os_unix.h \
2835 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
2836 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2837 farsi.h arabic.h if_sniff.h gui_at_sb.h
2838objects/pty.o: pty.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \
2839 keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2840 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2841 arabic.h if_sniff.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002842objects/hangulin.o: hangulin.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002843 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002844 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2845 farsi.h arabic.h if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002846objects/if_perl.o: auto/if_perl.c ./vim.h ./auto/config.h ./feature.h ./os_unix.h \
2847 ./auto/osdef.h ./ascii.h ./keymap.h ./term.h ./macros.h ./structs.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002848 ./regexp.h ./gui.h ./gui_beval.h proto/gui_beval.pro ./option.h \
2849 ./ex_cmds.h ./proto.h ./globals.h ./farsi.h ./arabic.h ./if_sniff.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002850objects/if_perlsfio.o: if_perlsfio.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002851 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002852 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2853 farsi.h arabic.h if_sniff.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002854objects/if_python.o: if_python.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002855 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002856 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2857 farsi.h arabic.h if_sniff.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002858objects/if_tcl.o: if_tcl.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2859 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002860 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2861 arabic.h if_sniff.h
2862objects/if_ruby.o: if_ruby.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2863 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2864 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2865 arabic.h if_sniff.h version.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002866objects/if_sniff.o: if_sniff.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002867 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002868 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2869 farsi.h arabic.h if_sniff.h os_unixx.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002870objects/gui_beval.o: gui_beval.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002871 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002872 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2873 farsi.h arabic.h if_sniff.h
2874objects/workshop.o: workshop.c auto/config.h integration.h vim.h feature.h \
2875 os_unix.h auto/osdef.h ascii.h keymap.h term.h macros.h structs.h \
2876 regexp.h gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002877 proto.h globals.h farsi.h arabic.h if_sniff.h version.h workshop.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002878objects/wsdebug.o: wsdebug.c
2879objects/integration.o: integration.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002880 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002881 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2882 farsi.h arabic.h if_sniff.h integration.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002883objects/netbeans.o: netbeans.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002884 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
Bram Moolenaar202795b2005-10-11 20:29:39 +00002885 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2886 farsi.h arabic.h if_sniff.h version.h