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