blob: e080477d6e0c42bc467eb63ca06779658df0efd4 [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
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000854### Vim version (adjusted by a script)
855VIMMAJOR = 7
856VIMMINOR = 0aa
857
Bram Moolenaare1d12892004-06-13 13:02:36 +0000858### Location of Vim files (should not need to be changed, and {{{1
859### some things might not work when they are changed!)
860VIMDIR = /vim
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000861VIMRTDIR = /vim$(VIMMAJOR)$(VIMMINOR)
Bram Moolenaare1d12892004-06-13 13:02:36 +0000862HELPSUBDIR = /doc
863COLSUBDIR = /colors
864SYNSUBDIR = /syntax
865INDSUBDIR = /indent
866PLUGSUBDIR = /plugin
867FTPLUGSUBDIR = /ftplugin
868LANGSUBDIR = /lang
869COMPSUBDIR = /compiler
870KMAPSUBDIR = /keymap
871MACROSUBDIR = /macros
872TOOLSSUBDIR = /tools
873TUTORSUBDIR = /tutor
874PRINTSUBDIR = /print
875PODIR = po
876
877### VIMLOC common root of the Vim files (all versions)
878### VIMRTLOC common root of the runtime Vim files (this version)
879### VIMRCLOC compiled-in location for global [g]vimrc files (all versions)
880### VIMRUNTIMEDIR compiled-in location for runtime files (optional)
881### HELPSUBLOC location for help files
882### COLSUBLOC location for colorscheme files
883### SYNSUBLOC location for syntax files
884### INDSUBLOC location for indent files
885### PLUGSUBLOC location for standard plugin files
886### FTPLUGSUBLOC location for ftplugin files
887### LANGSUBLOC location for language files
888### COMPSUBLOC location for compiler files
889### KMAPSUBLOC location for keymap files
890### MACROSUBLOC location for macro files
891### TOOLSSUBLOC location for tools files
892### TUTORSUBLOC location for tutor files
893### PRINTSUBLOC location for PostScript files (prolog, latin1, ..)
894### SCRIPTLOC location for script files (menu.vim, bugreport.vim, ..)
895### You can override these if you want to install them somewhere else.
896### Edit feature.h for compile-time settings.
897VIMLOC = $(DATADIR)$(VIMDIR)
898VIMRTLOC = $(DATADIR)$(VIMDIR)$(VIMRTDIR)
899VIMRCLOC = $(VIMLOC)
900HELPSUBLOC = $(VIMRTLOC)$(HELPSUBDIR)
901COLSUBLOC = $(VIMRTLOC)$(COLSUBDIR)
902SYNSUBLOC = $(VIMRTLOC)$(SYNSUBDIR)
903INDSUBLOC = $(VIMRTLOC)$(INDSUBDIR)
904PLUGSUBLOC = $(VIMRTLOC)$(PLUGSUBDIR)
905FTPLUGSUBLOC = $(VIMRTLOC)$(FTPLUGSUBDIR)
906LANGSUBLOC = $(VIMRTLOC)$(LANGSUBDIR)
907COMPSUBLOC = $(VIMRTLOC)$(COMPSUBDIR)
908KMAPSUBLOC = $(VIMRTLOC)$(KMAPSUBDIR)
909MACROSUBLOC = $(VIMRTLOC)$(MACROSUBDIR)
910TOOLSSUBLOC = $(VIMRTLOC)$(TOOLSSUBDIR)
911TUTORSUBLOC = $(VIMRTLOC)$(TUTORSUBDIR)
912PRINTSUBLOC = $(VIMRTLOC)$(PRINTSUBDIR)
913SCRIPTLOC = $(VIMRTLOC)
914
915### Only set VIMRUNTIMEDIR when VIMRTLOC is set to a different location and
916### the runtime directory is not below it.
917#VIMRUNTIMEDIR = $(VIMRTLOC)
918
919### Name of the evim file target.
920EVIM_FILE = $(DESTDIR)$(SCRIPTLOC)/evim.vim
921MSWIN_FILE = $(DESTDIR)$(SCRIPTLOC)/mswin.vim
922
923### Name of the menu file target.
924SYS_MENU_FILE = $(DESTDIR)$(SCRIPTLOC)/menu.vim
925SYS_SYNMENU_FILE = $(DESTDIR)$(SCRIPTLOC)/synmenu.vim
926SYS_DELMENU_FILE = $(DESTDIR)$(SCRIPTLOC)/delmenu.vim
927
928### Name of the bugreport file target.
929SYS_BUGR_FILE = $(DESTDIR)$(SCRIPTLOC)/bugreport.vim
930
931### Name of the file type detection file target.
932SYS_FILETYPE_FILE = $(DESTDIR)$(SCRIPTLOC)/filetype.vim
933
934### Name of the file type detection file target.
935SYS_FTOFF_FILE = $(DESTDIR)$(SCRIPTLOC)/ftoff.vim
936
937### Name of the file type detection script file target.
938SYS_SCRIPTS_FILE = $(DESTDIR)$(SCRIPTLOC)/scripts.vim
939
940### Name of the ftplugin-on file target.
941SYS_FTPLUGIN_FILE = $(DESTDIR)$(SCRIPTLOC)/ftplugin.vim
942
943### Name of the ftplugin-off file target.
944SYS_FTPLUGOF_FILE = $(DESTDIR)$(SCRIPTLOC)/ftplugof.vim
945
946### Name of the indent-on file target.
947SYS_INDENT_FILE = $(DESTDIR)$(SCRIPTLOC)/indent.vim
948
949### Name of the indent-off file target.
950SYS_INDOFF_FILE = $(DESTDIR)$(SCRIPTLOC)/indoff.vim
951
952### Name of the option window script file target.
953SYS_OPTWIN_FILE = $(DESTDIR)$(SCRIPTLOC)/optwin.vim
954
955# Program to install the program in the target directory. Could also be "mv".
956INSTALL_PROG = cp
957
958# Program to install the data in the target directory. Cannot be "mv"!
959INSTALL_DATA = cp
960INSTALL_DATA_R = cp -r
961
962### Program to run on installed binary
963#STRIP = strip
964
965### Permissions for binaries {{{1
966BINMOD = 755
967
968### Permissions for man page
969MANMOD = 644
970
971### Permissions for help files
972HELPMOD = 644
973
974### Permissions for Perl and shell scripts
975SCRIPTMOD = 755
976
977### Permission for Vim script files (menu.vim, bugreport.vim, ..)
978VIMSCRIPTMOD = 644
979
980### Permissions for all directories that are created
981DIRMOD = 755
982
983### Permissions for all other files that are created
984FILEMOD = 644
985
986# Where to copy the man and help files from
987HELPSOURCE = ../runtime/doc
988
989# Where to copy the script files from (menu, bugreport)
990SCRIPTSOURCE = ../runtime
991
992# Where to copy the colorscheme files from
993COLSOURCE = ../runtime/colors
994
995# Where to copy the syntax files from
996SYNSOURCE = ../runtime/syntax
997
998# Where to copy the indent files from
999INDSOURCE = ../runtime/indent
1000
1001# Where to copy the standard plugin files from
1002PLUGSOURCE = ../runtime/plugin
1003
1004# Where to copy the ftplugin files from
1005FTPLUGSOURCE = ../runtime/ftplugin
1006
1007# Where to copy the macro files from
1008MACROSOURCE = ../runtime/macros
1009
1010# Where to copy the tools files from
1011TOOLSSOURCE = ../runtime/tools
1012
1013# Where to copy the tutor files from
1014TUTORSOURCE = ../runtime/tutor
1015
1016# Where to look for language specific files
1017LANGSOURCE = ../runtime/lang
1018
1019# Where to look for compiler files
1020COMPSOURCE = ../runtime/compiler
1021
1022# Where to look for keymap files
1023KMAPSOURCE = ../runtime/keymap
1024
1025# Where to look for print resource files
1026PRINTSOURCE = ../runtime/print
1027
1028# If you are using Linux, you might want to use this to make vim the
1029# default vi editor, it will create a link from vi to Vim when doing
1030# "make install". An existing file will be overwritten!
1031# When not using it, some make programs can't handle an undefined $(LINKIT).
1032#LINKIT = -ln -f -s $(BINDIR)/$(VIMTARGET) /usr/bin/vi
1033LINKIT = @echo >/dev/null
1034
1035###
1036### GRAPHICAL USER INTERFACE (GUI). {{{1
1037### 'configure --enable-gui' can enable one of these for you if you did set
1038### a corresponding CONF_OPT_GUI above and have X11.
1039### Override configures choice by uncommenting all the following lines.
1040### As they are, the GUI is disabled. Replace "NONE" with "ATHENA" or "MOTIF"
1041### for enabling the Athena or Motif GUI.
1042#GUI_SRC = $(NONE_SRC)
1043#GUI_OBJ = $(NONE_OBJ)
1044#GUI_DEFS = $(NONE_DEFS)
1045#GUI_IPATH = $(NONE_IPATH)
1046#GUI_LIBS_DIR = $(NONE_LIBS_DIR)
1047#GUI_LIBS1 = $(NONE_LIBS1)
1048#GUI_LIBS2 = $(NONE_LIBS2)
1049#GUI_INSTALL = $(NONE_INSTALL)
1050#GUI_TARGETS = $(NONE_TARGETS)
1051#GUI_MAN_TARGETS= $(NONE_MAN_TARGETS)
1052#GUI_TESTTARGET = $(NONE_TESTTARGET)
1053
1054# Without a GUI install the normal way.
1055NONE_INSTALL = install_normal
1056
Bram Moolenaar843ee412004-06-30 16:16:41 +00001057### KDE GUI interface.
Bram Moolenaar843ee412004-06-30 16:16:41 +00001058KDE_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
1059KDE_OBJ = objects/gui.o objects/pty.o objects/gui_kde.o objects/gui_kde_x11.o \
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001060 objects/gui_kde_widget.o objects/gui_kde_widget_moc.o \
Bram Moolenaar843ee412004-06-30 16:16:41 +00001061 objects/kvim_iface_skel.o
1062KDE_DEFS = -DFEAT_GUI_KDE $(NARROW_PROTO)
1063KDE_IPATH = $(GUI_INC_LOC)
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001064KDE_LIBS_DIR = $(GUI_LIB_LOC) # Includes the libraries themselves
1065KDE_DIR = $(KDE_PREFIX)
Bram Moolenaar843ee412004-06-30 16:16:41 +00001066KDE_LIBS1 =
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001067KDE_LIBS2 =
Bram Moolenaar843ee412004-06-30 16:16:41 +00001068KDE_INSTALL = install_normal
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001069KDE_TARGETS = installglinks installkdeicons
1070KDE_MAN_TARGETS = installghelplinks
1071KDE_TESTTARGET = gui
Bram Moolenaar843ee412004-06-30 16:16:41 +00001072
Bram Moolenaare1d12892004-06-13 13:02:36 +00001073### GTK GUI
1074GTK_SRC = gui.c gui_gtk.c gui_gtk_x11.c pty.c gui_gtk_f.c \
1075 gui_beval.c
1076GTK_OBJ = objects/gui.o objects/gui_gtk.o objects/gui_gtk_x11.o \
1077 objects/pty.o objects/gui_gtk_f.o \
1078 objects/gui_beval.o
1079GTK_DEFS = -DFEAT_GUI_GTK $(NARROW_PROTO)
1080GTK_IPATH = $(GUI_INC_LOC)
1081GTK_LIBS_DIR = $(GUI_LIB_LOC)
1082GTK_LIBS1 =
1083GTK_LIBS2 = $(GTK_LIBNAME)
1084GTK_INSTALL = install_normal
1085GTK_TARGETS = installglinks
1086GTK_MAN_TARGETS = installghelplinks
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001087GTK_TESTTARGET = gui
Bram Moolenaare1d12892004-06-13 13:02:36 +00001088
1089### Motif GUI
1090MOTIF_SRC = gui.c gui_motif.c gui_x11.c pty.c gui_beval.c
1091MOTIF_OBJ = objects/gui.o objects/gui_motif.o objects/gui_x11.o \
1092 objects/pty.o objects/gui_beval.o
1093MOTIF_DEFS = -DFEAT_GUI_MOTIF $(NARROW_PROTO)
1094MOTIF_IPATH = $(GUI_INC_LOC)
1095MOTIF_LIBS_DIR = $(GUI_LIB_LOC)
1096MOTIF_LIBS1 =
1097MOTIF_LIBS2 = $(MOTIF_LIBNAME) -lXt
1098MOTIF_INSTALL = install_normal
1099MOTIF_TARGETS = installglinks
1100MOTIF_MAN_TARGETS = installghelplinks
1101MOTIF_TESTTARGET = gui
1102
1103### Athena GUI
1104### Use Xaw3d to make the menus look a little bit nicer
1105#XAW_LIB = -lXaw3d
1106XAW_LIB = -lXaw
1107
1108### When using Xaw3d, uncomment/comment the following lines to also get the
1109### scrollbars from Xaw3d.
1110#ATHENA_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c gui_at_fs.c
1111#ATHENA_OBJ = objects/gui.o objects/gui_athena.o objects/gui_x11.o \
1112# objects/pty.o objects/gui_beval.o objects/gui_at_fs.o
1113#ATHENA_DEFS = -DFEAT_GUI_ATHENA $(NARROW_PROTO) \
1114# -Dvim_scrollbarWidgetClass=scrollbarWidgetClass \
1115# -Dvim_XawScrollbarSetThumb=XawScrollbarSetThumb
1116ATHENA_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c \
1117 gui_at_sb.c gui_at_fs.c
1118ATHENA_OBJ = objects/gui.o objects/gui_athena.o objects/gui_x11.o \
1119 objects/pty.o objects/gui_beval.o \
1120 objects/gui_at_sb.o objects/gui_at_fs.o
1121ATHENA_DEFS = -DFEAT_GUI_ATHENA $(NARROW_PROTO)
1122
1123ATHENA_IPATH = $(GUI_INC_LOC)
1124ATHENA_LIBS_DIR = $(GUI_LIB_LOC)
1125ATHENA_LIBS1 = $(XAW_LIB)
1126ATHENA_LIBS2 = -lXt
1127ATHENA_INSTALL = install_normal
1128ATHENA_TARGETS = installglinks
1129ATHENA_MAN_TARGETS = installghelplinks
1130ATHENA_TESTTARGET = gui
1131
1132### neXtaw GUI
1133NEXTAW_LIB = -lneXtaw
1134
1135NEXTAW_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c gui_at_fs.c
1136NEXTAW_OBJ = objects/gui.o objects/gui_athena.o objects/gui_x11.o \
1137 objects/pty.o objects/gui_beval.o objects/gui_at_fs.o
1138NEXTAW_DEFS = -DFEAT_GUI_ATHENA -DFEAT_GUI_NEXTAW $(NARROW_PROTO)
1139
1140NEXTAW_IPATH = $(GUI_INC_LOC)
1141NEXTAW_LIBS_DIR = $(GUI_LIB_LOC)
1142NEXTAW_LIBS1 = $(NEXTAW_LIB)
1143NEXTAW_LIBS2 = -lXt
1144NEXTAW_INSTALL = install_normal
1145NEXTAW_TARGETS = installglinks
1146NEXTAW_MAN_TARGETS = installghelplinks
1147NEXTAW_TESTTARGET = gui
1148
1149### (J) Sun OpenWindows 3.2 (SunOS 4.1.x) or earlier that produce these ld
1150# errors: ld: Undefined symbol
1151# _get_wmShellWidgetClass
1152# _get_applicationShellWidgetClass
1153# then you need to get patches 100512-02 and 100573-03 from Sun. In the
1154# meantime, uncomment the following GUI_X_LIBS definition as a workaround:
1155#GUI_X_LIBS = -Bstatic -lXmu -Bdynamic -lXext
1156# If you also get cos, sin etc. as undefined symbols, try uncommenting this
1157# too:
1158#EXTRA_LIBS = /usr/openwin/lib/libXmu.sa -lm
1159
1160### BeOS GUI
1161BEOSGUI_SRC = gui.c gui_beos.cc pty.c
1162BEOSGUI_OBJ = objects/gui.o objects/gui_beos.o objects/pty.o
1163BEOSGUI_DEFS = -DFEAT_GUI_BEOS
1164BEOSGUI_IPATH =
1165BEOSGUI_LIBS_DIR =
1166BEOSGUI_LIBS1 = -lbe -lroot
1167BEOSGUI_LIBS2 =
1168BEOSGUI_INSTALL = install_normal
1169BEOSGUI_TARGETS = installglinks
1170BEOSGUI_MAN_TARGETS = installghelplinks
1171BEOSGUI_TESTTARGET = gui
1172
1173# PHOTON GUI
1174PHOTONGUI_SRC = gui.c gui_photon.c pty.c
1175PHOTONGUI_OBJ = objects/gui.o objects/gui_photon.o objects/pty.o
1176PHOTONGUI_DEFS = -DFEAT_GUI_PHOTON
1177PHOTONGUI_IPATH =
1178PHOTONGUI_LIBS_DIR =
1179PHOTONGUI_LIBS1 = -lph -lphexlib
1180PHOTONGUI_LIBS2 =
1181PHOTONGUI_INSTALL = install_normal
1182PHOTONGUI_TARGETS = installglinks
1183PHOTONGUI_MAN_TARGETS = installghelplinks
1184PHOTONGUI_TESTTARGET = gui
1185
1186# CARBON GUI
1187CARBONGUI_SRC = gui.c gui_mac.c
1188CARBONGUI_OBJ = objects/gui.o objects/gui_mac.o objects/pty.o
1189CARBONGUI_DEFS = -DFEAT_GUI_MAC -arch ppc -fno-common -fpascal-strings \
1190 -Wall -Wno-unknown-pragmas \
1191 -mdynamic-no-pic -pipe
1192CARBONGUI_IPATH = -I. -Iproto
1193CARBONGUI_LIBS_DIR =
1194CARBONGUI_LIBS1 = -framework Carbon
1195CARBONGUI_LIBS2 =
1196CARBONGUI_INSTALL = install_macosx
1197CARBONGUI_TARGETS =
1198CARBONGUI_MAN_TARGETS =
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00001199CARBONGUI_TESTTARGET = gui
1200CARBONGUI_BUNDLE = $(VIMNAME).app
1201CARBONGUI_TESTARG = VIMPROG=../$(CARBONGUI_BUNDLE)/Contents/MacOS/$(VIMTARGET)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001202
1203# All GUI files
Bram Moolenaar843ee412004-06-30 16:16:41 +00001204ALL_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
1205ALL_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 +00001206
1207# }}}
1208
1209### Command to create dependencies based on #include "..."
1210### prototype headers are ignored due to -DPROTO, system
1211### headers #include <...> are ignored if we use the -MM option, as
1212### e.g. provided by gcc-cpp.
1213### Include FEAT_GUI to get gependency on gui.h
1214CPP_DEPEND = $(CC) -I$(srcdir) -M$(CPP_MM) $(DEPEND_CFLAGS)
1215
1216# flags for cproto
1217# This is for cproto 3 patchlevel 8 or below
1218# __inline, __attribute__ and __extension__ are not recognized by cproto
1219NO_ATTR = -D__inline= -D"__attribute__\\(x\\)=" -D"__asm__\\(x\\)=" -D__extension__= \
1220-D__restrict="" -D__gnuc_va_list=char -D__builtin_va_list=char
1221
1222#
1223# This is for cproto 3 patchlevel 9 or above (currently 4.6)
1224# __inline and __attribute__ are now recognized by cproto
1225# -D"foo()=" is not supported by all compilers so do not use it
1226# NO_ATTR=
1227#
1228# maybe the "/usr/bin/cc -E" has to be adjusted for some systems
1229# This is for cproto 3.5 patchlevel 3:
1230# PROTO_FLAGS = -f4 -m__ARGS -d -E"$(CPP)" $(NO_ATTR)
1231#
1232# Use this for cproto 3 patchlevel 6 or below (use "cproto -V" to check):
1233# PROTO_FLAGS = -f4 -m__ARGS -d -E"$(CPP)" $(NO_ATTR)
1234#
1235# Use this for cproto 3 patchlevel 7 or above (use "cproto -V" to check):
1236PROTO_FLAGS = -m -M__ARGS -d -E"$(CPP)" $(NO_ATTR)
1237
1238
1239################################################
1240## no changes required below this line ##
1241################################################
1242
1243SHELL = /bin/sh
1244
1245.SUFFIXES:
1246.SUFFIXES: .cc .c .o .pro
1247
1248PRE_DEFS = -Iproto $(DEFS) $(GUI_DEFS) $(GUI_IPATH) $(CPPFLAGS) $(EXTRA_IPATHS)
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001249POST_DEFS = $(X_CFLAGS) $(MZSCHEME_CFLAGS) $(PERL_CFLAGS) $(PYTHON_CFLAGS) $(TCL_CFLAGS) $(RUBY_CFLAGS) $(EXTRA_DEFS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001250
1251ALL_CFLAGS = $(PRE_DEFS) $(CFLAGS) $(PROFILE_CFLAGS) $(POST_DEFS)
1252
1253LINT_CFLAGS = -DLINT -I. $(PRE_DEFS) $(POST_DEFS) -Dinline= -D__extension__= -Dalloca=alloca
1254
1255DEPEND_CFLAGS = -DPROTO -DDEPEND -DFEAT_GUI $(LINT_CFLAGS)
1256
1257PFLAGS = $(PROTO_FLAGS) -DPROTO $(LINT_CFLAGS)
1258
1259ALL_LIB_DIRS = $(GUI_LIBS_DIR) $(X_LIBS_DIR)
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001260ALL_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 +00001261
1262# abbreviations
1263DEST_BIN = $(DESTDIR)$(BINDIR)
1264DEST_VIM = $(DESTDIR)$(VIMLOC)
1265DEST_RT = $(DESTDIR)$(VIMRTLOC)
1266DEST_HELP = $(DESTDIR)$(HELPSUBLOC)
1267DEST_COL = $(DESTDIR)$(COLSUBLOC)
1268DEST_SYN = $(DESTDIR)$(SYNSUBLOC)
1269DEST_IND = $(DESTDIR)$(INDSUBLOC)
1270DEST_PLUG = $(DESTDIR)$(PLUGSUBLOC)
1271DEST_FTP = $(DESTDIR)$(FTPLUGSUBLOC)
1272DEST_LANG = $(DESTDIR)$(LANGSUBLOC)
1273DEST_COMP = $(DESTDIR)$(COMPSUBLOC)
1274DEST_KMAP = $(DESTDIR)$(KMAPSUBLOC)
1275DEST_MACRO = $(DESTDIR)$(MACROSUBLOC)
1276DEST_TOOLS = $(DESTDIR)$(TOOLSSUBLOC)
1277DEST_TUTOR = $(DESTDIR)$(TUTORSUBLOC)
1278DEST_SCRIPT = $(DESTDIR)$(SCRIPTLOC)
1279DEST_PRINT = $(DESTDIR)$(PRINTSUBLOC)
1280DEST_MAN = $(DESTDIR)$(MANSUBDIR)
1281
1282# BASIC_SRC: files that are always used
1283# GUI_SRC: extra GUI files for current configuration
1284# ALL_GUI_SRC: all GUI files for Unix
1285#
1286# SRC: files used for current configuration
1287# TAGS_SRC: source files used for make tags
1288# TAGS_INCL: include files used for make tags
1289# ALL_SRC: source files used for make depend and make lint
1290
1291TAGS_INCL = *.h
1292
1293BASIC_SRC = \
1294 buffer.c \
1295 charset.c \
1296 diff.c \
1297 digraph.c \
1298 edit.c \
1299 eval.c \
1300 ex_cmds.c \
1301 ex_cmds2.c \
1302 ex_docmd.c \
1303 ex_eval.c \
1304 ex_getln.c \
1305 fileio.c \
1306 fold.c \
1307 getchar.c \
1308 if_cscope.c \
1309 if_xcmdsrv.c \
1310 main.c \
1311 mark.c \
1312 memfile.c \
1313 memline.c \
1314 menu.c \
1315 message.c \
1316 misc1.c \
1317 misc2.c \
1318 move.c \
1319 mbyte.c \
1320 normal.c \
1321 ops.c \
1322 option.c \
1323 os_unix.c \
1324 auto/pathdef.c \
1325 quickfix.c \
1326 regexp.c \
1327 screen.c \
1328 search.c \
1329 syntax.c \
1330 tag.c \
1331 term.c \
1332 ui.c \
1333 undo.c \
1334 version.c \
1335 window.c \
1336 $(OS_EXTRA_SRC)
1337
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001338SRC = $(BASIC_SRC) $(GUI_SRC) $(HANGULIN_SRC) $(MZSCHEME_SRC) \
1339 $(PERL_SRC) $(PYTHON_SRC) $(TCL_SRC) $(RUBY_SRC) \
1340 $(SNIFF_SRC) $(WORKSHOP_SRC) $(WSDEBUG_SRC)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001341
Bram Moolenaar843ee412004-06-30 16:16:41 +00001342TAGS_SRC = *.c *.cpp *.cc if_perl.xs
Bram Moolenaare1d12892004-06-13 13:02:36 +00001343
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001344EXTRA_SRC = hangulin.c if_mzsch.c auto/if_perl.c if_perlsfio.c \
1345 if_python.c if_tcl.c if_ruby.c if_sniff.c gui_beval.c \
1346 workshop.c wsdebug.c integration.c netbeans.c
Bram Moolenaare1d12892004-06-13 13:02:36 +00001347
1348# All sources, also the ones that are not configured
1349ALL_SRC = $(BASIC_SRC) $(ALL_GUI_SRC) $(EXTRA_SRC)
1350
1351# Which files to check with lint. Select one of these three lines. ALL_SRC
1352# checks more, but may not work well for checking a GUI that wasn't configured.
1353# The perl sources also don't work well with lint.
1354LINT_SRC = $(BASIC_SRC) $(GUI_SRC) $(HANGULIN_SRC) $(PYTHON_SRC) $(TCL_SRC) \
1355 $(SNIFF_SRC) $(WORKSHOP_SRC) $(WSDEBUG_SRC) $(NETBEANS_SRC)
1356#LINT_SRC = $(SRC)
1357#LINT_SRC = $(ALL_SRC)
1358
1359OBJ = \
1360 objects/buffer.o \
1361 objects/charset.o \
1362 objects/diff.o \
1363 objects/digraph.o \
1364 objects/edit.o \
1365 objects/eval.o \
1366 objects/ex_cmds.o \
1367 objects/ex_cmds2.o \
1368 objects/ex_docmd.o \
1369 objects/ex_eval.o \
1370 objects/ex_getln.o \
1371 objects/fileio.o \
1372 objects/fold.o \
1373 objects/getchar.o \
1374 $(HANGULIN_OBJ) \
1375 objects/if_cscope.o \
1376 objects/if_xcmdsrv.o \
1377 objects/main.o \
1378 objects/mark.o \
1379 objects/memfile.o \
1380 objects/memline.o \
1381 objects/menu.o \
1382 objects/message.o \
1383 objects/misc1.o \
1384 objects/misc2.o \
1385 objects/move.o \
1386 objects/mbyte.o \
1387 objects/normal.o \
1388 objects/ops.o \
1389 objects/option.o \
1390 objects/os_unix.o \
1391 objects/pathdef.o \
1392 objects/quickfix.o \
1393 objects/regexp.o \
1394 objects/screen.o \
1395 objects/search.o \
1396 objects/syntax.o \
1397 $(SNIFF_OBJ) \
1398 objects/tag.o \
1399 objects/term.o \
1400 objects/ui.o \
1401 objects/undo.o \
1402 objects/window.o \
1403 $(GUI_OBJ) \
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001404 $(MZSCHEME_OBJ) \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001405 $(PERL_OBJ) \
1406 $(PYTHON_OBJ) \
1407 $(TCL_OBJ) \
1408 $(RUBY_OBJ) \
1409 $(OS_EXTRA_OBJ) \
1410 $(WORKSHOP_OBJ) \
1411 $(NETBEANS_OBJ) \
1412 $(WSDEBUG_OBJ)
1413
1414PRO_AUTO = \
1415 buffer.pro \
1416 charset.pro \
1417 diff.pro \
1418 digraph.pro \
1419 edit.pro \
1420 eval.pro \
1421 ex_cmds.pro \
1422 ex_cmds2.pro \
1423 ex_docmd.pro \
1424 ex_eval.pro \
1425 ex_getln.pro \
1426 fileio.pro \
1427 fold.pro \
1428 getchar.pro \
1429 hangulin.pro \
1430 if_cscope.pro \
1431 if_xcmdsrv.pro \
1432 if_python.pro \
1433 if_ruby.pro \
1434 main.pro \
1435 mark.pro \
1436 memfile.pro \
1437 memline.pro \
1438 menu.pro \
1439 message.pro \
1440 misc1.pro \
1441 misc2.pro \
1442 move.pro \
1443 mbyte.pro \
1444 normal.pro \
1445 ops.pro \
1446 option.pro \
1447 os_unix.pro \
1448 quickfix.pro \
1449 regexp.pro \
1450 screen.pro \
1451 search.pro \
1452 syntax.pro \
1453 tag.pro \
1454 term.pro \
1455 termlib.pro \
1456 ui.pro \
1457 undo.pro \
1458 version.pro \
1459 window.pro \
1460 gui_beval.pro \
1461 workshop.pro \
1462 netbeans.pro \
1463 $(ALL_GUI_PRO) \
1464 $(TCL_PRO)
1465
1466PRO_MANUAL = os_amiga.pro os_msdos.pro os_win16.pro os_win32.pro \
1467 os_mswin.pro os_beos.pro os_vms.pro os_riscos.pro $(PERL_PRO)
1468
1469# Default target is making the executable and tools
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00001470all: $(VIMTARGET) $(TOOLS) languages $(GUI_BUNDLE)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001471
1472tools: $(TOOLS)
1473
1474# Run configure with all the setting from above.
1475#
1476# Note: auto/config.h doesn't depend on configure, because running configure
1477# doesn't always update auto/config.h. The timestamp isn't changed if the
1478# file contents didn't change (to avoid recompiling everything). Including a
1479# dependency on auto/config.h would cause running configure each time when
1480# auto/config.h isn't updated. The dependency on auto/config.mk should make
1481# sure configure is run when it's needed.
1482#
1483config auto/config.mk: auto/configure config.mk.in config.h.in
1484 GUI_INC_LOC="$(GUI_INC_LOC)" GUI_LIB_LOC="$(GUI_LIB_LOC)" \
1485 CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \
1486 LDFLAGS="$(LDFLAGS)" $(CONF_SHELL) srcdir="$(srcdir)" \
1487 ./configure $(CONF_OPT_GUI) $(CONF_OPT_X) $(CONF_OPT_XSMP) \
1488 $(CONF_OPT_DARWIN) $(CONF_OPT_PERL) $(CONF_OPT_PYTHON) \
1489 $(CONF_OPT_TCL) $(CONF_OPT_RUBY) $(CONF_OPT_NLS) \
1490 $(CONF_OPT_CSCOPE) $(CONF_OPT_MULTIBYTE) $(CONF_OPT_INPUT) \
1491 $(CONF_OPT_OUTPUT) $(CONF_OPT_GPM) $(CONF_OPT_WORKSHOP) \
1492 $(CONF_OPT_SNIFF) $(CONF_OPT_FEAT) $(CONF_TERM_LIB) \
1493 $(CONF_OPT_COMPBY) $(CONF_OPT_ACL) $(CONF_OPT_NETBEANS) \
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001494 $(CONF_ARGS) $(CONF_OPT_MZSCHEME) $(CONF_OPT_PLTHOME)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001495
1496# Use "make reconfig" to rerun configure without cached values.
1497# When config.h changes, most things will be recompiled automatically.
Bram Moolenaar592e0a22004-07-03 16:05:59 +00001498# Invoke $(MAKE) to run config with the empty auto/config.mk.
1499# Invoke $(MAKE) to build all with the filled auto/config.mk.
1500reconfig: scratch clean
1501 $(MAKE) -f Makefile config
1502 $(MAKE) -f Makefile all
Bram Moolenaare1d12892004-06-13 13:02:36 +00001503
1504# Run autoconf to produce auto/configure.
1505# Note:
1506# - DO NOT RUN autoconf MANUALLY! It will overwrite ./configure instead of
1507# producing auto/configure.
1508# - autoconf is not run automatically, because a patch usually changes both
1509# configure.in and auto/configure but can't update the timestamps. People
1510# who do not have (the correct version of) autoconf would run into trouble.
1511#
1512# Two tricks are required to make autoconf put its output in the "auto" dir:
1513# - Temporarily move the ./configure script to ./configure.save. Don't
1514# overwrite it, it's probably the result of an aborted autoconf.
1515# - Use sed to change ./config.log to auto/config.log in the configure script.
1516autoconf:
1517 if test ! -f configure.save; then mv configure configure.save; fi
1518 autoconf
1519 sed -e 's+\./config.log+auto/config.log+' configure > auto/configure
1520 chmod 755 auto/configure
1521 mv -f configure.save configure
1522 -rm -f auto/config.status auto/config.cache
1523
1524# Re-execute this Makefile to include the new auto/config.mk produced by
1525# configure Only used when typing "make" with a fresh auto/config.mk.
1526myself:
1527 $(MAKE) -f Makefile all
1528
1529
1530# The normal command to compile a .c file to its .o file.
1531CCC = $(CC) -c -I$(srcdir) $(ALL_CFLAGS)
1532
1533
1534# Link the target for normal use or debugging.
1535# A shell script is used to try linking without unneccesary libraries.
1536$(VIMTARGET): auto/config.mk objects $(OBJ) version.c version.h
1537 $(CCC) version.c -o objects/version.o
1538 @LINK="$(PURIFY) $(SHRPENV) $(CClink) $(ALL_LIB_DIRS) $(LDFLAGS) \
1539 -o $(VIMTARGET) $(OBJ) objects/version.o $(ALL_LIBS)" \
1540 MAKE="$(MAKE)" sh $(srcdir)/link.sh
1541
1542xxd/xxd$(EXEEXT): xxd/xxd.c
1543 cd xxd; CC="$(CC)" CFLAGS="$(CPPFLAGS) $(CFLAGS)" \
1544 $(MAKE) -f Makefile
1545
1546# Build the language specific files if they were unpacked.
1547# Generate the converted .mo files separately, it's no problem if this fails.
1548languages:
1549 @if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
1550 cd $(PODIR); CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix); \
1551 fi
1552 -@if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
1553 cd $(PODIR); CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix) converted; \
1554 fi
1555
1556# Update the *.po files for changes in the sources. Only run manually.
1557update-po:
1558 cd $(PODIR); CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix) update-po
1559
1560# Generate function prototypes. This is not needed to compile vim, but if
1561# you want to use it, cproto is out there on the net somewhere -- Webb
1562#
1563# When generating os_amiga.pro, os_msdos.pro and os_win32.pro there will be a
1564# few include files that can not be found, that's OK.
1565
1566proto: $(PRO_AUTO) $(PRO_MANUAL)
1567
1568### Would be nice if this would work for "normal" make.
1569### Currently it only works for (Free)BSD make.
1570#$(PRO_AUTO): $$(*F).c
1571# cproto $(PFLAGS) -DFEAT_GUI $(*F).c > $@
1572
1573# Always define FEAT_GUI. This may generate a few warnings if it's also
1574# defined in auto/config.h, you can ignore that.
1575.c.pro:
1576 cproto $(PFLAGS) -DFEAT_GUI $< > proto/$@
1577 echo "/* vim: set ft=c : */" >> proto/$@
1578
1579os_amiga.pro: os_amiga.c
1580 cproto $(PFLAGS) -DAMIGA -UHAVE_CONFIG_H -DBPTR=char* $< > proto/$@
1581 echo "/* vim: set ft=c : */" >> proto/$@
1582
1583os_msdos.pro: os_msdos.c
1584 cproto $(PFLAGS) -DMSDOS -UHAVE_CONFIG_H $< > proto/$@
1585 echo "/* vim: set ft=c : */" >> proto/$@
1586
1587os_win16.pro: os_win16.c
1588 cproto $(PFLAGS) -DWIN16 -UHAVE_CONFIG_H $< > proto/$@
1589 echo "/* vim: set ft=c : */" >> proto/$@
1590
1591os_win32.pro: os_win32.c
1592 cproto $(PFLAGS) -DWIN32 -UHAVE_CONFIG_H $< > proto/$@
1593 echo "/* vim: set ft=c : */" >> proto/$@
1594
1595os_mswin.pro: os_mswin.c
1596 cproto $(PFLAGS) -DWIN16 -DWIN32 -UHAVE_CONFIG_H $< > proto/$@
1597 echo "/* vim: set ft=c : */" >> proto/$@
1598
1599os_beos.pro: os_beos.c
1600 cproto $(PFLAGS) -D__BEOS__ -UHAVE_CONFIG_H $< > proto/$@
1601 echo "/* vim: set ft=c : */" >> proto/$@
1602
1603os_vms.pro: os_vms.c
1604# must use os_vms_conf.h for auto/config.h
1605 mv auto/config.h auto/config.h.save
1606 cp os_vms_conf.h auto/config.h
1607 cproto $(PFLAGS) -DVMS -UFEAT_GUI_ATHENA -UFEAT_GUI_NEXTAW -UFEAT_GUI_MOTIF -UFEAT_GUI_GTK $< > proto/$@
1608 echo "/* vim: set ft=c : */" >> proto/$@
1609 rm auto/config.h
1610 mv auto/config.h.save auto/config.h
1611
1612# if_perl.pro is special: Use the generated if_perl.c for input and remove
1613# prototypes for local functions.
1614if_perl.pro: auto/if_perl.c
1615 cproto $(PFLAGS) -DFEAT_GUI auto/if_perl.c | sed "/_VI/d" > proto/$@
1616
1617
1618notags:
1619 -rm -f tags
1620
1621# Note: tags is made for the currently configured version, can't include both
1622# Motif and Athena GUI
1623# You can ignore error messages for missing files.
1624tags TAGS: notags
1625 $(TAGPRG) $(TAGS_SRC) $(TAGS_INCL)
1626
1627# Make a highlight file for types. Requires Exuberant ctags and awk
1628types: types.vim
1629types.vim: $(TAGS_SRC) $(TAGS_INCL)
1630 ctags --c-kinds=gstu -o- $(TAGS_SRC) $(TAGS_INCL) |\
1631 awk 'BEGIN{printf("syntax keyword Type\t")}\
1632 {printf("%s ", $$1)}END{print ""}' > $@
1633
1634# Execute the test scripts. Run these after compiling Vim, before installing.
1635# This doesn't depend on $(VIMTARGET), because that won't work when configure
1636# wasn't run yet. Restart make to build it instead.
1637#
1638# This will produce a lot of garbage on your screen, including a few error
1639# messages. Don't worry about that.
1640# If there is a real error, there will be a difference between "test.out" and
1641# a "test99.ok" file.
1642# If everything is allright, the final message will be "ALL DONE".
1643#
1644test check:
1645 $(MAKE) -f Makefile $(VIMTARGET)
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00001646 cd testdir; $(MAKE) -f Makefile $(GUI_TESTTARGET) VIMPROG=../$(VIMTARGET) $(GUI_TESTARG)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001647
1648testclean:
1649 cd testdir; $(MAKE) -f Makefile clean
1650
1651#
1652# Avoid overwriting an existing executable, somebody might be running it and
1653# overwriting it could cause it to crash. Deleting it is OK, it won't be
1654# really deleted until all running processes for it have exited. It is
1655# renamed first, in case the deleting doesn't work.
1656#
1657# If you want to keep an older version, rename it before running "make
1658# install".
1659#
1660install: $(GUI_INSTALL)
1661
1662install_normal: installvim installtools install-languages install-icons
1663
1664installvim: installvimbin installruntime installlinks installhelplinks installmacros installtutor
1665
1666installvimbin: $(VIMTARGET) $(DESTDIR)$(exec_prefix) $(DEST_BIN)
1667 -if test -f $(DEST_BIN)/$(VIMTARGET); then \
1668 mv -f $(DEST_BIN)/$(VIMTARGET) $(DEST_BIN)/$(VIMNAME).rm; \
1669 rm -f $(DEST_BIN)/$(VIMNAME).rm; \
1670 fi
1671 $(INSTALL_PROG) $(VIMTARGET) $(DEST_BIN)
1672 $(STRIP) $(DEST_BIN)/$(VIMTARGET)
1673 chmod $(BINMOD) $(DEST_BIN)/$(VIMTARGET)
1674# may create a link to the new executable from /usr/bin/vi
1675 -$(LINKIT)
1676
1677# install the help files; first adjust the contents for the location
1678installruntime: $(HELPSOURCE)/vim.1 $(DEST_MAN) $(DEST_VIM) $(DEST_RT) \
1679 $(DEST_HELP) $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND) \
1680 $(DEST_FTP) $(DEST_PLUG) $(DEST_TUTOR) $(DEST_COMP)
1681 @echo generating $(DEST_MAN)/$(VIMNAME).1
1682 @sed -e s+/usr/local/lib/vim+$(VIMLOC)+ \
1683 -e s+$(VIMLOC)/doc+$(HELPSUBLOC)+ \
1684 -e s+$(VIMLOC)/syntax+$(SYNSUBLOC)+ \
1685 -e s+$(VIMLOC)/tutor+$(TUTORSUBLOC)+ \
1686 -e s+$(VIMLOC)/vimrc+$(VIMRCLOC)/vimrc+ \
1687 -e s+$(VIMLOC)/gvimrc+$(VIMRCLOC)/gvimrc+ \
1688 -e s+$(VIMLOC)/menu.vim+$(SCRIPTLOC)/menu.vim+ \
1689 -e s+$(VIMLOC)/bugreport.vim+$(SCRIPTLOC)/bugreport.vim+ \
1690 -e s+$(VIMLOC)/filetype.vim+$(SCRIPTLOC)/filetype.vim+ \
1691 -e s+$(VIMLOC)/ftoff.vim+$(SCRIPTLOC)/ftoff.vim+ \
1692 -e s+$(VIMLOC)/scripts.vim+$(SCRIPTLOC)/scripts.vim+ \
1693 -e s+$(VIMLOC)/optwin.vim+$(SCRIPTLOC)/optwin.vim+ \
1694 -e 's+$(VIMLOC)/\*.ps+$(SCRIPTLOC)/\*.ps+' \
1695 $(HELPSOURCE)/vim.1 > $(DEST_MAN)/$(VIMNAME).1
1696 chmod $(MANMOD) $(DEST_MAN)/$(VIMNAME).1
1697 @echo generating $(DEST_MAN)/$(VIMNAME)tutor.1
1698 @sed -e s+/usr/local/lib/vim+$(VIMLOC)+ \
1699 -e s+$(VIMLOC)/tutor+$(TUTORSUBLOC)+ \
1700 $(HELPSOURCE)/vimtutor.1 > $(DEST_MAN)/$(VIMNAME)tutor.1
1701 chmod $(MANMOD) $(DEST_MAN)/$(VIMNAME)tutor.1
1702 $(INSTALL_DATA) $(HELPSOURCE)/vimdiff.1 $(DEST_MAN)/$(VIMDIFFNAME).1
1703 chmod $(MANMOD) $(DEST_MAN)/$(VIMDIFFNAME).1
1704 @echo generating $(DEST_MAN)/$(EVIMNAME).1
1705 @sed -e s+/usr/local/lib/vim+$(SCRIPTLOC)+ \
1706 $(HELPSOURCE)/evim.1 > $(DEST_MAN)/$(EVIMNAME).1
1707 chmod $(MANMOD) $(DEST_MAN)/$(EVIMNAME).1
1708 @echo generating help tags
1709# Generate the help tags with ":helptags" to handle all languages.
1710 -@cd $(HELPSOURCE); $(MAKE) VIMEXE=$(DEST_BIN)/$(VIMTARGET) vimtags
1711 cd $(HELPSOURCE); \
1712 files=`ls *.txt tags`; \
1713 files="$$files `ls *.??x tags-?? 2>/dev/null || true`"; \
1714 $(INSTALL_DATA) $$files $(DEST_HELP); \
1715 cd $(DEST_HELP); \
1716 chmod $(HELPMOD) $$files
1717 $(INSTALL_DATA) $(HELPSOURCE)/*.pl $(DEST_HELP)
1718 chmod $(SCRIPTMOD) $(DEST_HELP)/*.pl
1719# install the menu files
1720 $(INSTALL_DATA) $(SCRIPTSOURCE)/menu.vim $(SYS_MENU_FILE)
1721 chmod $(VIMSCRIPTMOD) $(SYS_MENU_FILE)
1722 $(INSTALL_DATA) $(SCRIPTSOURCE)/synmenu.vim $(SYS_SYNMENU_FILE)
1723 chmod $(VIMSCRIPTMOD) $(SYS_SYNMENU_FILE)
1724 $(INSTALL_DATA) $(SCRIPTSOURCE)/delmenu.vim $(SYS_DELMENU_FILE)
1725 chmod $(VIMSCRIPTMOD) $(SYS_DELMENU_FILE)
1726# install the evim file
1727 $(INSTALL_DATA) $(SCRIPTSOURCE)/mswin.vim $(MSWIN_FILE)
1728 chmod $(VIMSCRIPTMOD) $(MSWIN_FILE)
1729 $(INSTALL_DATA) $(SCRIPTSOURCE)/evim.vim $(EVIM_FILE)
1730 chmod $(VIMSCRIPTMOD) $(EVIM_FILE)
1731# install the bugreport file
1732 $(INSTALL_DATA) $(SCRIPTSOURCE)/bugreport.vim $(SYS_BUGR_FILE)
1733 chmod $(VIMSCRIPTMOD) $(SYS_BUGR_FILE)
1734# install the example vimrc files
1735 $(INSTALL_DATA) $(SCRIPTSOURCE)/vimrc_example.vim $(DEST_SCRIPT)
1736 chmod $(VIMSCRIPTMOD) $(DEST_SCRIPT)/vimrc_example.vim
1737 $(INSTALL_DATA) $(SCRIPTSOURCE)/gvimrc_example.vim $(DEST_SCRIPT)
1738 chmod $(VIMSCRIPTMOD) $(DEST_SCRIPT)/gvimrc_example.vim
1739# install the file type detection files
1740 $(INSTALL_DATA) $(SCRIPTSOURCE)/filetype.vim $(SYS_FILETYPE_FILE)
1741 chmod $(VIMSCRIPTMOD) $(SYS_FILETYPE_FILE)
1742 $(INSTALL_DATA) $(SCRIPTSOURCE)/ftoff.vim $(SYS_FTOFF_FILE)
1743 chmod $(VIMSCRIPTMOD) $(SYS_FTOFF_FILE)
1744 $(INSTALL_DATA) $(SCRIPTSOURCE)/scripts.vim $(SYS_SCRIPTS_FILE)
1745 chmod $(VIMSCRIPTMOD) $(SYS_SCRIPTS_FILE)
1746 $(INSTALL_DATA) $(SCRIPTSOURCE)/ftplugin.vim $(SYS_FTPLUGIN_FILE)
1747 chmod $(VIMSCRIPTMOD) $(SYS_FTPLUGIN_FILE)
1748 $(INSTALL_DATA) $(SCRIPTSOURCE)/ftplugof.vim $(SYS_FTPLUGOF_FILE)
1749 chmod $(VIMSCRIPTMOD) $(SYS_FTPLUGOF_FILE)
1750 $(INSTALL_DATA) $(SCRIPTSOURCE)/indent.vim $(SYS_INDENT_FILE)
1751 chmod $(VIMSCRIPTMOD) $(SYS_INDENT_FILE)
1752 $(INSTALL_DATA) $(SCRIPTSOURCE)/indoff.vim $(SYS_INDOFF_FILE)
1753 chmod $(VIMSCRIPTMOD) $(SYS_INDOFF_FILE)
1754 $(INSTALL_DATA) $(SCRIPTSOURCE)/optwin.vim $(SYS_OPTWIN_FILE)
1755 chmod $(VIMSCRIPTMOD) $(SYS_OPTWIN_FILE)
1756# install the print resource files
1757 cd $(PRINTSOURCE); $(INSTALL_DATA) *.ps $(DEST_PRINT)
1758 cd $(DEST_PRINT); chmod $(FILEMOD) *.ps
1759# install the colorscheme files
1760 cd $(COLSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_COL)
1761 cd $(DEST_COL); chmod $(HELPMOD) *.vim README.txt
1762# install the syntax files
1763 cd $(SYNSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_SYN)
1764 cd $(DEST_SYN); chmod $(HELPMOD) *.vim README.txt
1765# install the indent files
1766 cd $(INDSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_IND)
1767 cd $(DEST_IND); chmod $(HELPMOD) *.vim README.txt
1768# install the standard plugin files
1769 cd $(PLUGSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_PLUG)
1770 cd $(DEST_PLUG); chmod $(HELPMOD) *.vim README.txt
1771# install the ftplugin files
1772 cd $(FTPLUGSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_FTP)
1773 cd $(DEST_FTP); chmod $(HELPMOD) *.vim README.txt
1774# install the compiler files
1775 cd $(COMPSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_COMP)
1776 cd $(DEST_COMP); chmod $(HELPMOD) *.vim README.txt
1777
1778installmacros: $(MACROSOURCE) $(DEST_VIM) $(DEST_RT) $(DEST_MACRO)
1779 $(INSTALL_DATA_R) $(MACROSOURCE)/* $(DEST_MACRO)
1780 chmod $(DIRMOD) `find $(DEST_MACRO) -type d -print`
1781 chmod $(FILEMOD) `find $(DEST_MACRO) -type f -print`
1782 chmod $(SCRIPTMOD) $(DEST_MACRO)/less.sh
1783# When using CVS some CVS directories might have been copied.
1784 cvs=`find $(DEST_MACRO) \( -name CVS -o -name AAPDIR \) -print`; \
1785 if test -n "$$cvs"; then \
1786 rm -rf $$cvs; \
1787 fi
1788
1789# install the tutor files
1790installtutor: $(TUTORSOURCE) $(DEST_VIM) $(DEST_RT) $(DEST_TUTOR)
1791 $(INSTALL_DATA) vimtutor $(DEST_BIN)/$(VIMNAME)tutor
1792 chmod $(SCRIPTMOD) $(DEST_BIN)/$(VIMNAME)tutor
1793 -$(INSTALL_DATA) $(TUTORSOURCE)/README* $(TUTORSOURCE)/tutor* $(DEST_TUTOR)
1794 chmod $(HELPMOD) $(DEST_TUTOR)/*
1795
1796# install helper program xxd
1797installtools: $(TOOLS) $(DESTDIR)$(exec_prefix) $(DEST_BIN) $(DEST_MAN) \
1798 $(TOOLSSOURCE) $(DEST_VIM) $(DEST_RT) $(DEST_TOOLS)
1799 if test -f $(DEST_BIN)/xxd$(EXEEXT); then \
1800 mv -f $(DEST_BIN)/xxd$(EXEEXT) $(DEST_BIN)/xxd.rm; \
1801 rm -f $(DEST_BIN)/xxd.rm; \
1802 fi
1803 $(INSTALL_PROG) xxd/xxd$(EXEEXT) $(DEST_BIN)
1804 $(STRIP) $(DEST_BIN)/xxd$(EXEEXT)
1805 chmod $(BINMOD) $(DEST_BIN)/xxd$(EXEEXT)
1806 $(INSTALL_DATA) $(HELPSOURCE)/xxd.1 $(DEST_MAN)
1807 chmod $(MANMOD) $(DEST_MAN)/xxd.1
1808# install the runtime tools
1809 $(INSTALL_DATA_R) $(TOOLSSOURCE)/* $(DEST_TOOLS)
1810# When using CVS some CVS directories might have been copied.
1811 cvs=`find $(DEST_TOOLS) \( -name CVS -o -name AAPDIR \) -print`; \
1812 if test -n "$$cvs"; then \
1813 rm -rf $$cvs; \
1814 fi
1815 -chmod $(FILEMOD) $(DEST_TOOLS)/*
1816# replace the path in some tools
1817 perlpath=`./which.sh perl` && sed -e "s+/usr/bin/perl+$$perlpath+" $(TOOLSSOURCE)/efm_perl.pl >$(DEST_TOOLS)/efm_perl.pl
1818 awkpath=`./which.sh nawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \
1819 awkpath=`./which.sh gawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \
1820 awkpath=`./which.sh awk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; fi; fi
1821 -chmod $(SCRIPTMOD) `grep -l "^#!" $(DEST_TOOLS)/*`
1822
1823# install the language specific files, if they were unpacked
1824install-languages: languages $(DEST_LANG) $(DEST_KMAP)
1825 if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
1826 cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) LOCALEDIR=$(DEST_LANG) \
1827 INSTALL_DATA=$(INSTALL_DATA) FILEMOD=$(FILEMOD) install; \
1828 fi
1829 if test -d $(LANGSOURCE); then \
1830 $(INSTALL_DATA) $(LANGSOURCE)/README.txt $(LANGSOURCE)/*.vim $(DEST_LANG); \
1831 chmod $(FILEMOD) $(DEST_LANG)/README.txt $(DEST_LANG)/*.vim; \
1832 fi
1833 if test -d $(KMAPSOURCE); then \
1834 $(INSTALL_DATA) $(KMAPSOURCE)/README.txt $(KMAPSOURCE)/*.vim $(DEST_KMAP); \
1835 chmod $(FILEMOD) $(DEST_KMAP)/README.txt $(DEST_KMAP)/*.vim; \
1836 fi
1837
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001838# Install the icons for the KDE GUI. This differs from the KDE icons for
1839# other GUIs.
Bram Moolenaar843ee412004-06-30 16:16:41 +00001840installkdeicons:
1841 mkdir -p $(DESTDIR)$(KDE_DIR)/share/applnk/Editors/
1842 mkdir -p $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/32x32/apps/
1843 mkdir -p $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/48x48/apps/
1844 mkdir -p $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/22x22/actions/
1845 mkdir -p $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/16x16/actions/
1846 mkdir -p $(DESTDIR)$(KDE_DIR)/share/apps/kvim
1847
1848 cp ../runtime/KVim.desktop $(DESTDIR)$(KDE_DIR)/share/applnk/Editors/ && chmod 644 $(DESTDIR)$(KDE_DIR)/share/applnk/Editors/KVim.desktop
1849 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
1850 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
1851 cp ../runtime/hi16-action-make.png $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/16x16/actions/hi16-action-make.png
1852 cp ../runtime/hi22-action-make.png $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/22x22/actions/hi22-action-make.png
1853 cp ../runtime/kde-tips $(DESTDIR)$(KDE_DIR)/share/apps/kvim/tips && chmod 644 $(DESTDIR)$(KDE_DIR)/share/apps/kvim/tips
1854
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001855# install the icons for KDE, if the directory exists and the icon doesn't.
Bram Moolenaare1d12892004-06-13 13:02:36 +00001856ICON48PATH = $(DESTDIR)$(DATADIR)/icons/hicolor/48x48/apps
1857ICON32PATH = $(DESTDIR)$(DATADIR)/icons/locolor/32x32/apps
1858ICON16PATH = $(DESTDIR)$(DATADIR)/icons/locolor/16x16/apps
1859KDEPATH = $(HOME)/.kde/share/icons
1860install-icons:
1861 if test -d $(ICON48PATH) -a -w $(ICON48PATH) \
1862 -a ! -f $(ICON48PATH)/gvim.png; then \
1863 $(INSTALL_DATA) $(SCRIPTSOURCE)/vim48x48.png $(ICON48PATH)/gvim.png; \
1864 fi
1865 if test -d $(ICON32PATH) -a -w $(ICON32PATH) \
1866 -a ! -f $(ICON32PATH)/gvim.png; then \
1867 $(INSTALL_DATA) $(SCRIPTSOURCE)/vim32x32.png $(ICON32PATH)/gvim.png; \
1868 fi
1869 if test -d $(ICON16PATH) -a -w $(ICON16PATH) \
1870 -a ! -f $(ICON16PATH)/gvim.png; then \
1871 $(INSTALL_DATA) $(SCRIPTSOURCE)/vim16x16.png $(ICON16PATH)/gvim.png; \
1872 fi
1873
1874
1875$(HELPSOURCE)/vim.1 $(MACROSOURCE) $(TOOLSSOURCE):
1876 @echo Runtime files not found.
1877 @echo You need to unpack the runtime archive before running "make install".
1878 test -f error
1879
1880$(DESTDIR)$(exec_prefix) $(DEST_BIN) $(DEST_MAN) $(DEST_VIM) $(DEST_RT) $(DEST_HELP) \
1881 $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND) $(DEST_FTP) \
1882 $(DEST_LANG) $(DEST_KMAP) $(DEST_COMP) \
1883 $(DEST_MACRO) $(DEST_TOOLS) $(DEST_TUTOR) $(DEST_PLUG):
1884 -$(SHELL) ./mkinstalldirs $@
1885 -chmod $(DIRMOD) $@
1886
1887# create links from various names to vim. This is only done when the links
1888# (or executables with the same name) don't exist yet.
1889installlinks: $(GUI_TARGETS) \
1890 $(DEST_BIN)/$(EXTARGET) \
1891 $(DEST_BIN)/$(VIEWTARGET) \
1892 $(DEST_BIN)/$(RVIMTARGET) \
1893 $(DEST_BIN)/$(RVIEWTARGET) \
1894 $(INSTALLVIMDIFF)
1895
1896installglinks: $(DEST_BIN)/$(GVIMTARGET) \
1897 $(DEST_BIN)/$(GVIEWTARGET) \
1898 $(DEST_BIN)/$(RGVIMTARGET) \
1899 $(DEST_BIN)/$(RGVIEWTARGET) \
1900 $(DEST_BIN)/$(EVIMTARGET) \
1901 $(DEST_BIN)/$(EVIEWTARGET) \
1902 $(INSTALLGVIMDIFF)
1903
1904installvimdiff: $(DEST_BIN)/$(VIMDIFFTARGET)
1905installgvimdiff: $(DEST_BIN)/$(GVIMDIFFTARGET)
1906
1907$(DEST_BIN)/$(EXTARGET):
1908 cd $(DEST_BIN); ln -s $(VIMTARGET) $(EXTARGET)
1909
1910$(DEST_BIN)/$(VIEWTARGET):
1911 cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIEWTARGET)
1912
1913$(DEST_BIN)/$(GVIMTARGET):
1914 cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMTARGET)
1915
1916$(DEST_BIN)/$(GVIEWTARGET):
1917 cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIEWTARGET)
1918
1919$(DEST_BIN)/$(RVIMTARGET):
1920 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIMTARGET)
1921
1922$(DEST_BIN)/$(RVIEWTARGET):
1923 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIEWTARGET)
1924
1925$(DEST_BIN)/$(RGVIMTARGET):
1926 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIMTARGET)
1927
1928$(DEST_BIN)/$(RGVIEWTARGET):
1929 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIEWTARGET)
1930
1931$(DEST_BIN)/$(VIMDIFFTARGET):
1932 cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIMDIFFTARGET)
1933
1934$(DEST_BIN)/$(GVIMDIFFTARGET):
1935 cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMDIFFTARGET)
1936
1937$(DEST_BIN)/$(EVIMTARGET):
1938 cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIMTARGET)
1939
1940$(DEST_BIN)/$(EVIEWTARGET):
1941 cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIEWTARGET)
1942
1943# create links for the manual pages with various names to vim. This is only
1944# done when the links (or manpages with the same name) don't exist yet.
1945installhelplinks: $(GUI_MAN_TARGETS) \
1946 $(DEST_MAN)/$(EXNAME).1 \
1947 $(DEST_MAN)/$(VIEWNAME).1 \
1948 $(DEST_MAN)/$(RVIMNAME).1 \
1949 $(DEST_MAN)/$(RVIEWNAME).1
1950
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001951installghelplinks: $(DEST_MAN)/$(GVIMNAME).1 \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001952 $(DEST_MAN)/$(GVIEWNAME).1 \
1953 $(DEST_MAN)/$(RGVIMNAME).1 \
1954 $(DEST_MAN)/$(RGVIEWNAME).1 \
1955 $(DEST_MAN)/$(GVIMDIFFNAME).1 \
1956 $(DEST_MAN)/$(EVIEWNAME).1
1957
1958$(DEST_MAN)/$(EXNAME).1:
1959 cd $(DEST_MAN); ln -s $(VIMNAME).1 $(EXNAME).1
1960
1961$(DEST_MAN)/$(VIEWNAME).1:
1962 cd $(DEST_MAN); ln -s $(VIMNAME).1 $(VIEWNAME).1
1963
1964$(DEST_MAN)/$(GVIMNAME).1:
1965 cd $(DEST_MAN); ln -s $(VIMNAME).1 $(GVIMNAME).1
1966
1967$(DEST_MAN)/$(GVIEWNAME).1:
1968 cd $(DEST_MAN); ln -s $(VIMNAME).1 $(GVIEWNAME).1
1969
1970$(DEST_MAN)/$(RVIMNAME).1:
1971 cd $(DEST_MAN); ln -s $(VIMNAME).1 $(RVIMNAME).1
1972
1973$(DEST_MAN)/$(RVIEWNAME).1:
1974 cd $(DEST_MAN); ln -s $(VIMNAME).1 $(RVIEWNAME).1
1975
1976$(DEST_MAN)/$(RGVIMNAME).1:
1977 cd $(DEST_MAN); ln -s $(VIMNAME).1 $(RGVIMNAME).1
1978
1979$(DEST_MAN)/$(RGVIEWNAME).1:
1980 cd $(DEST_MAN); ln -s $(VIMNAME).1 $(RGVIEWNAME).1
1981
1982$(DEST_MAN)/$(GVIMDIFFNAME).1:
1983 cd $(DEST_MAN); ln -s $(VIMDIFFNAME).1 $(GVIMDIFFNAME).1
1984
1985$(DEST_MAN)/$(EVIEWNAME).1:
1986 cd $(DEST_MAN); ln -s $(EVIMNAME).1 $(EVIEWNAME).1
1987
1988uninstall: uninstall_runtime
1989 -rm -f $(DEST_BIN)/$(VIMTARGET)
1990 -rm -f $(DEST_MAN)/$(VIMNAME).1 $(DEST_MAN)/$(VIMNAME)tutor.1
1991 -rm -f $(DEST_BIN)/vimtutor
1992 -rm -f $(DEST_BIN)/xxd$(EXEEXT) $(DEST_MAN)/xxd.1
1993 -rm -f $(DEST_BIN)/$(EXTARGET) $(DEST_BIN)/$(VIEWTARGET)
1994 -rm -f $(DEST_BIN)/$(GVIMTARGET) $(DEST_BIN)/$(GVIEWTARGET)
1995 -rm -f $(DEST_BIN)/$(RVIMTARGET) $(DEST_BIN)/$(RVIEWTARGET)
1996 -rm -f $(DEST_BIN)/$(RGVIMTARGET) $(DEST_BIN)/$(RGVIEWTARGET)
1997 -rm -f $(DEST_BIN)/$(VIMDIFFTARGET) $(DEST_BIN)/$(GVIMDIFFTARGET)
1998 -rm -f $(DEST_BIN)/$(EVIMTARGET) $(DEST_BIN)/$(EVIEWTARGET)
1999 -rm -f $(DEST_MAN)/$(EXNAME).1 $(DEST_MAN)/$(VIEWNAME).1
2000 -rm -f $(DEST_MAN)/$(GVIMNAME).1 $(DEST_MAN)/$(GVIEWNAME).1
2001 -rm -f $(DEST_MAN)/$(RVIMNAME).1 $(DEST_MAN)/$(RVIEWNAME).1
2002 -rm -f $(DEST_MAN)/$(RGVIMNAME).1 $(DEST_MAN)/$(RGVIEWNAME).1
2003 -rm -f $(DEST_MAN)/$(VIMDIFFNAME).1 $(DEST_MAN)/$(GVIMDIFFNAME).1
2004 -rm -f $(DEST_MAN)/$(EVIMNAME).1 $(DEST_MAN)/$(EVIEWNAME).1
2005
2006# Note: the "rmdir" will fail if any files were added after "make install"
2007uninstall_runtime:
2008 -rm -f $(DEST_HELP)/*.txt $(DEST_HELP)/tags $(DEST_HELP)/*.pl
2009 -rm -f $(DEST_HELP)/*.??x $(DEST_HELP)/tags-??
2010 -rm -f $(SYS_MENU_FILE) $(SYS_SYNMENU_FILE) $(SYS_DELMENU_FILE)
2011 -rm -f $(SYS_BUGR_FILE) $(EVIM_FILE) $(MSWIN_FILE)
2012 -rm -f $(DEST_SCRIPT)/gvimrc_example.vim $(DEST_SCRIPT)/vimrc_example.vim
2013 -rm -f $(SYS_FILETYPE_FILE) $(SYS_FTOFF_FILE) $(SYS_SCRIPTS_FILE)
2014 -rm -f $(SYS_INDOFF_FILE) $(SYS_INDENT_FILE)
2015 -rm -f $(SYS_FTPLUGOF_FILE) $(SYS_FTPLUGIN_FILE)
2016 -rm -f $(SYS_OPTWIN_FILE)
2017 -rm -f $(DEST_COL)/*.vim $(DEST_COL)/README.txt
2018 -rm -f $(DEST_SYN)/*.vim $(DEST_SYN)/README.txt
2019 -rm -f $(DEST_IND)/*.vim $(DEST_IND)/README.txt
2020 -rm -rf $(DEST_MACRO)
2021 -rm -rf $(DEST_TUTOR)
2022 -rm -rf $(DEST_TOOLS)
2023 -rm -rf $(DEST_LANG)
2024 -rm -rf $(DEST_KMAP)
2025 -rm -rf $(DEST_COMP)
2026 -rm -f $(DEST_PRINT)/*.ps
2027 -rmdir $(DEST_HELP) $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND)
2028 -rm -rf $(DEST_FTP)/*.vim $(DEST_FTP)/README.txt
2029 -rm -f $(DEST_PLUG)/*.vim $(DEST_PLUG)/README.txt
2030 -rmdir $(DEST_FTP) $(DEST_PLUG) $(DEST_RT)
2031# This will fail when other Vim versions are installed, no worries.
2032 -rmdir $(DEST_VIM)
2033
2034# Clean up all the files that have been produced, except configure's.
2035# We support common typing mistakes for Juergen! :-)
2036clean celan: testclean
2037 -rm -f *.o objects/* core $(VIMTARGET).core $(VIMTARGET) xxd/*.o
2038 -rm -f $(TOOLS) auto/osdef.h auto/pathdef.c auto/if_perl.c
2039 -rm -f conftest* *~ auto/link.sed
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002040 -rm -rf $(GUI_BUNDLE)
Bram Moolenaar843ee412004-06-30 16:16:41 +00002041 -rm -f gui_kde_widget_moc.cc kvim_iface_skel.cc *.kidl
Bram Moolenaare1d12892004-06-13 13:02:36 +00002042 if test -d $(PODIR); then \
2043 cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) clean; \
2044 fi
2045
2046# Make a shadow directory for compilation on another system or with different
2047# features.
2048SHADOWDIR = shadow
2049
2050shadow: runtime pixmaps
2051 mkdir $(SHADOWDIR)
2052 cd $(SHADOWDIR); ln -s ../*.[ch] ../*.in ../*.sh ../*.xs ../*.xbm ../toolcheck ../proto ../vimtutor ../mkinstalldirs .
2053 mkdir $(SHADOWDIR)/auto
2054 cd $(SHADOWDIR)/auto; ln -s ../../auto/configure .
2055 cd $(SHADOWDIR); rm -f auto/link.sed
2056 cp Makefile configure $(SHADOWDIR)
2057 rm -f $(SHADOWDIR)/auto/config.mk $(SHADOWDIR)/config.mk.dist
2058 cp config.mk.dist $(SHADOWDIR)/auto/config.mk
2059 cp config.mk.dist $(SHADOWDIR)
2060 mkdir $(SHADOWDIR)/xxd
2061 cd $(SHADOWDIR)/xxd; ln -s ../../xxd/*.[ch] ../../xxd/Make* .
2062 mkdir $(SHADOWDIR)/testdir
2063 cd $(SHADOWDIR)/testdir; ln -s ../../testdir/Makefile \
2064 ../../testdir/vimrc.unix \
2065 ../../testdir/*.in \
2066 ../../testdir/unix.vim \
2067 ../../testdir/*.ok .
2068
2069# Link needed for doing "make install" in a shadow directory.
2070runtime:
2071 -ln -s ../runtime .
2072
2073# Link needed for doing "make" using GTK in a shadow directory.
2074pixmaps:
2075 -ln -s ../pixmaps .
2076
2077# Update the synmenu.vim file with the latest Syntax menu.
2078# This is only needed when runtime/makemenu.vim was changed.
2079menu: ./vim ../runtime/makemenu.vim
2080 ./vim -u ../runtime/makemenu.vim
2081
2082# Start configure from scratch
2083scrub scratch:
2084 -rm -f auto/config.status auto/config.cache config.log auto/config.log
2085 -rm -f auto/config.h auto/link.log auto/link.sed auto/config.mk
2086 touch auto/config.h
2087 cp config.mk.dist auto/config.mk
2088
2089distclean: clean scratch
2090 -rm -f tags
2091
2092dist: distclean
2093 @echo
2094 @echo Making the distribution has to be done in the top directory
2095
2096mdepend:
2097 -@rm -f Makefile~
2098 cp Makefile Makefile~
2099 sed -e '/\#\#\# Dependencies/q' < Makefile > tmp_make
2100 @for i in $(ALL_SRC) ; do \
2101 echo "$$i" ; \
2102 echo `echo "$$i" | sed -e 's/[^ ]*\.c$$/objects\/\1.o/'`": $$i" `\
2103 $(CPP) $$i |\
2104 grep '^# .*"\./.*\.h"' |\
2105 sort -t'"' -u +1 -2 |\
2106 sed -e 's/.*"\.\/\(.*\)".*/\1/'\
2107 ` >> tmp_make ; \
2108 done
2109 mv tmp_make Makefile
2110
2111depend:
2112 -@rm -f Makefile~
2113 cp Makefile Makefile~
2114 sed -e '/\#\#\# Dependencies/q' < Makefile > tmp_make
2115 -for i in $(ALL_SRC); do echo $$i; \
2116 $(CPP_DEPEND) $$i | \
2117 sed -e 's+^\([^ ]*\.o\)+objects/\1+' >> tmp_make; done
2118 mv tmp_make Makefile
2119
2120lint:
2121 lint $(LINT_OPTIONS) $(LINT_CFLAGS) -DUSE_SNIFF -DHANGUL_INPUT $(LINT_SRC)
2122
2123# Check dosinst.c with lint.
2124lintinstall:
2125 lint $(LINT_OPTIONS) -DWIN32 -DUNIX_LINT dosinst.c
2126
2127###########################################################################
2128
2129.c.o:
2130 $(CCC) $<
2131
2132.cc.o:
2133 $(CCC) $<
2134
2135auto/if_perl.c: if_perl.xs
2136 $(PERL) -e 'unless ( $$] >= 5.005 ) { for (qw(na defgv errgv)) { print "#define PL_$$_ $$_\n" }}' > $@
2137 $(PERL) $(PERLLIB)/ExtUtils/xsubpp -prototypes -typemap \
2138 $(PERLLIB)/ExtUtils/typemap if_perl.xs >> $@
2139
2140auto/osdef.h: auto/config.h osdef.sh osdef1.h.in osdef2.h.in
2141 CC="$(CC) $(ALL_CFLAGS)" srcdir=$(srcdir) sh $(srcdir)/osdef.sh
2142
2143QUOTESED = sed -e 's/"/\\"/g' -e 's/\\"/"/' -e 's/\\";$$/";/'
2144auto/pathdef.c: Makefile auto/config.mk
2145 -@echo creating $@
2146 -@echo '/* pathdef.c */' > $@
2147 -@echo '/* This file is automatically created by Makefile' >> $@
2148 -@echo ' * DO NOT EDIT! Change Makefile only. */' >> $@
2149 -@echo '#include "vim.h"' >> $@
2150 -@echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' | $(QUOTESED) >> $@
2151 -@echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' | $(QUOTESED) >> $@
2152 -@echo 'char_u *all_cflags = (char_u *)"$(CC) -c -I$(srcdir) $(ALL_CFLAGS)";' | $(QUOTESED) >> $@
2153 -@echo 'char_u *all_lflags = (char_u *)"$(CC) $(ALL_LIB_DIRS) $(LDFLAGS) -o $(VIMTARGET) $(ALL_LIBS) ";' | $(QUOTESED) >> $@
2154 -@echo 'char_u *compiled_user = (char_u *)"' | tr -d $(NL) >> $@
2155 -@if test -n "$(COMPILEDBY)"; then \
2156 echo "$(COMPILEDBY)" | tr -d $(NL) >> $@; \
2157 else ((logname) 2>/dev/null || whoami) | tr -d $(NL) >> $@; fi
2158 -@echo '";' >> $@
2159 -@echo 'char_u *compiled_sys = (char_u *)"' | tr -d $(NL) >> $@
2160 -@if test -z "$(COMPILEDBY)"; then hostname | tr -d $(NL) >> $@; fi
2161 -@echo '";' >> $@
2162 -@sh $(srcdir)/pathdef.sh
2163
2164# All the object files are put in the "objects" directory. Since not all make
2165# commands understand putting object files in another directory, it must be
2166# specified for each file separately.
2167
2168objects:
2169 mkdir objects
2170
2171objects/buffer.o: buffer.c
2172 $(CCC) -o $@ buffer.c
2173
2174objects/charset.o: charset.c
2175 $(CCC) -o $@ charset.c
2176
2177objects/diff.o: diff.c
2178 $(CCC) -o $@ diff.c
2179
2180objects/digraph.o: digraph.c
2181 $(CCC) -o $@ digraph.c
2182
2183objects/edit.o: edit.c
2184 $(CCC) -o $@ edit.c
2185
2186objects/eval.o: eval.c
2187 $(CCC) -o $@ eval.c
2188
2189objects/ex_cmds.o: ex_cmds.c
2190 $(CCC) -o $@ ex_cmds.c
2191
2192objects/ex_cmds2.o: ex_cmds2.c
2193 $(CCC) -o $@ ex_cmds2.c
2194
2195objects/ex_docmd.o: ex_docmd.c
2196 $(CCC) -o $@ ex_docmd.c
2197
2198objects/ex_eval.o: ex_eval.c
2199 $(CCC) -o $@ ex_eval.c
2200
2201objects/ex_getln.o: ex_getln.c
2202 $(CCC) -o $@ ex_getln.c
2203
2204objects/fileio.o: fileio.c
2205 $(CCC) -o $@ fileio.c
2206
2207objects/fold.o: fold.c
2208 $(CCC) -o $@ fold.c
2209
2210objects/getchar.o: getchar.c
2211 $(CCC) -o $@ getchar.c
2212
2213objects/gui.o: gui.c
2214 $(CCC) -o $@ gui.c
2215
2216objects/gui_at_fs.o: gui_at_fs.c
2217 $(CCC) -o $@ gui_at_fs.c
2218
2219objects/gui_at_sb.o: gui_at_sb.c
2220 $(CCC) -o $@ gui_at_sb.c
2221
2222objects/gui_athena.o: gui_athena.c
2223 $(CCC) -o $@ gui_athena.c
2224
2225objects/gui_beos.o: gui_beos.cc
2226 $(CCC) -o $@ gui_beos.cc
2227
2228objects/gui_beval.o: gui_beval.c
2229 $(CCC) -o $@ gui_beval.c
2230
2231objects/gui_gtk.o: gui_gtk.c
2232 $(CCC) -o $@ gui_gtk.c
2233
2234objects/gui_gtk_f.o: gui_gtk_f.c
2235 $(CCC) -o $@ gui_gtk_f.c
2236
2237objects/gui_gtk_x11.o: gui_gtk_x11.c
2238 $(CCC) -o $@ gui_gtk_x11.c
2239
2240objects/gui_motif.o: gui_motif.c
2241 $(CCC) -o $@ gui_motif.c
2242
2243objects/gui_x11.o: gui_x11.c
2244 $(CCC) -o $@ gui_x11.c
2245
2246objects/gui_photon.o: gui_photon.c
2247 $(CCC) -o $@ gui_photon.c
2248
2249objects/gui_mac.o: gui_mac.c
2250 $(CCC) -o $@ gui_mac.c
2251
2252objects/hangulin.o: hangulin.c
2253 $(CCC) -o $@ hangulin.c
2254
2255objects/if_cscope.o: if_cscope.c
2256 $(CCC) -o $@ if_cscope.c
2257
2258objects/if_xcmdsrv.o: if_xcmdsrv.c
2259 $(CCC) -o $@ if_xcmdsrv.c
2260
Bram Moolenaar325b7a22004-07-05 15:58:32 +00002261objects/if_mzsch.o: if_mzsch.c
2262 $(CCC) -o $@ if_mzsch.c
2263
Bram Moolenaare1d12892004-06-13 13:02:36 +00002264objects/if_perl.o: auto/if_perl.c
2265 $(CCC) -o $@ auto/if_perl.c
2266
2267objects/if_perlsfio.o: if_perlsfio.c
2268 $(CCC) -o $@ if_perlsfio.c
2269
2270objects/if_python.o: if_python.c
2271 $(CCC) -o $@ if_python.c
2272
2273objects/if_ruby.o: if_ruby.c
2274 $(CCC) -o $@ if_ruby.c
2275
2276objects/if_sniff.o: if_sniff.c
2277 $(CCC) -o $@ if_sniff.c
2278
2279objects/if_tcl.o: if_tcl.c
2280 $(CCC) -o $@ if_tcl.c
2281
2282objects/integration.o: integration.c
2283 $(CCC) -o $@ integration.c
2284
2285objects/main.o: main.c
2286 $(CCC) -o $@ main.c
2287
2288objects/mark.o: mark.c
2289 $(CCC) -o $@ mark.c
2290
2291objects/memfile.o: memfile.c
2292 $(CCC) -o $@ memfile.c
2293
2294objects/memline.o: memline.c
2295 $(CCC) -o $@ memline.c
2296
2297objects/menu.o: menu.c
2298 $(CCC) -o $@ menu.c
2299
2300objects/message.o: message.c
2301 $(CCC) -o $@ message.c
2302
2303objects/misc1.o: misc1.c
2304 $(CCC) -o $@ misc1.c
2305
2306objects/misc2.o: misc2.c
2307 $(CCC) -o $@ misc2.c
2308
2309objects/move.o: move.c
2310 $(CCC) -o $@ move.c
2311
2312objects/mbyte.o: mbyte.c
2313 $(CCC) -o $@ mbyte.c
2314
2315objects/normal.o: normal.c
2316 $(CCC) -o $@ normal.c
2317
2318objects/ops.o: ops.c
2319 $(CCC) -o $@ ops.c
2320
2321objects/option.o: option.c
2322 $(CCC) -o $@ option.c
2323
2324objects/os_beos.o: os_beos.c
2325 $(CCC) -o $@ os_beos.c
2326
2327objects/os_qnx.o: os_qnx.c
2328 $(CCC) -o $@ os_qnx.c
2329
2330objects/os_macosx.o: os_macosx.c
2331 $(CCC) -o $@ os_macosx.c
2332
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002333objects/os_mac_conv.o: os_mac_conv.c
2334 $(CCC) -o $@ os_mac_conv.c
2335
Bram Moolenaare1d12892004-06-13 13:02:36 +00002336objects/os_unix.o: os_unix.c
2337 $(CCC) -o $@ os_unix.c
2338
2339objects/pathdef.o: auto/pathdef.c
2340 $(CCC) -o $@ auto/pathdef.c
2341
2342objects/py_config.o: $(PYTHON_CONFDIR)/config.c
2343 $(CCC) -o $@ $(PYTHON_CONFDIR)/config.c \
2344 -I$(PYTHON_CONFDIR) -DHAVE_CONFIG_H -DNO_MAIN
2345
2346objects/py_getpath.o: $(PYTHON_CONFDIR)/getpath.c
2347 $(CCC) -o $@ $(PYTHON_CONFDIR)/getpath.c \
2348 -I$(PYTHON_CONFDIR) -DHAVE_CONFIG_H -DNO_MAIN \
2349 $(PYTHON_GETPATH_CFLAGS)
2350
2351objects/pty.o: pty.c
2352 $(CCC) -o $@ pty.c
2353
2354objects/quickfix.o: quickfix.c
2355 $(CCC) -o $@ quickfix.c
2356
2357objects/regexp.o: regexp.c
2358 $(CCC) -o $@ regexp.c
2359
2360objects/screen.o: screen.c
2361 $(CCC) -o $@ screen.c
2362
2363objects/search.o: search.c
2364 $(CCC) -o $@ search.c
2365
2366objects/syntax.o: syntax.c
2367 $(CCC) -o $@ syntax.c
2368
2369objects/tag.o: tag.c
2370 $(CCC) -o $@ tag.c
2371
2372objects/term.o: term.c
2373 $(CCC) -o $@ term.c
2374
2375objects/ui.o: ui.c
2376 $(CCC) -o $@ ui.c
2377
2378objects/undo.o: undo.c
2379 $(CCC) -o $@ undo.c
2380
2381objects/window.o: window.c
2382 $(CCC) -o $@ window.c
2383
2384objects/workshop.o: workshop.c
2385 $(CCC) -o $@ workshop.c
2386
2387objects/wsdebug.o: wsdebug.c
2388 $(CCC) -o $@ wsdebug.c
2389
Bram Moolenaar843ee412004-06-30 16:16:41 +00002390objects/gui_kde.o: gui_kde.cc
2391 $(CCC) -o $@ gui_kde.cc
2392
2393objects/gui_kde_x11.o: gui_kde_x11.cc
2394 $(CCC) -o $@ gui_kde_x11.cc
2395
2396objects/gui_kde_widget.o: gui_kde_widget.cc
2397 $(MOC) -o gui_kde_widget_moc.cc gui_kde_widget.h
2398 $(KDE_DIR)/bin/dcopidl kvim_iface.h > kvim_iface.kidl || ( rm -f kvim_iface.kidl ; /bin/false )
2399 $(KDE_DIR)/bin/dcopidl2cpp --c++-suffix cc --no-stub kvim_iface.kidl
2400 $(CCC) -o $@ gui_kde_widget.cc
2401
Bram Moolenaar592e0a22004-07-03 16:05:59 +00002402gui_kde_widget_moc.cc: objects/gui_kde_widget.o
Bram Moolenaar843ee412004-06-30 16:16:41 +00002403objects/gui_kde_widget_moc.o: gui_kde_widget_moc.cc
2404 $(CCC) -o $@ gui_kde_widget_moc.cc
2405
Bram Moolenaar592e0a22004-07-03 16:05:59 +00002406kvim_iface_skel.cc: objects/gui_kde_widget.o
Bram Moolenaar843ee412004-06-30 16:16:41 +00002407objects/kvim_iface_skel.o: kvim_iface_skel.cc
2408 $(CCC) -o $@ kvim_iface_skel.cc
2409
Bram Moolenaare1d12892004-06-13 13:02:36 +00002410objects/netbeans.o: netbeans.c
2411 $(CCC) -o $@ netbeans.c
2412
2413Makefile:
2414 @echo The name of the makefile MUST be "Makefile" (with capital M)!!!!
2415
2416###############################################################################
2417### MacOS X installation
2418###
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002419### This installs a runnable Vim.app in $(prefix)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002420
2421REZ = /Developer/Tools/Rez
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002422APPDIR = $(GUI_BUNDLE)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002423RESDIR = $(APPDIR)/Contents/Resources
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00002424VERSION = $(VIMMAJOR).$(VIMMINOR)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002425
2426### Common flags
2427M4FLAGSX = $(M4FLAGS) -DAPP_EXE=$(VIMNAME) -DAPP_NAME=$(VIMNAME) \
2428 -DAPP_VER=$(VERSION) -DICON_APP=$(ICON_APP)
2429
2430### Icons
2431ICON_APP = gui_mac.icns
2432ICONS = $(RESDIR)/$(ICON_APP)
2433
2434# If you uncomment the following lines the *.icns in the src directory will be
2435# detected by this Makefile automatically, and used for Vim.
2436#ICON_APP = $(shell if [ -e app.icns ] ; then echo app.icns ; else echo gui_mac.icns ; fi)
2437#ICON_DOC = $(shell if [ -e doc.icns ] ; then echo doc.icns ; else echo ; fi)
2438#ICON_DOCTXT = $(shell if [ -e doc-txt.icns ] ; then echo doc-txt.icns ; else echo ; fi)
2439#ICONS = $(addprefix $(RESDIR)/, $(ICON_APP) $(ICON_DOC) $(ICON_DOCTXT))
2440
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002441install_macosx: $(APPDIR)
2442 $(INSTALL_DATA_R) $(APPDIR) $(DESTDIR)$(prefix)
2443
2444$(APPDIR): bundle-dir bundle-executable bundle-info bundle-resource \
Bram Moolenaare1d12892004-06-13 13:02:36 +00002445 bundle-language
2446
2447bundle-dir: $(APPDIR)/Contents $(VIMTARGET)
2448 -@srcdir=`pwd`; cd $(HELPSOURCE); $(MAKE) VIMEXE=$$srcdir/$(VIMTARGET) vimtags
2449 cp -R ../runtime $(APPDIR)
2450
2451bundle-executable: $(VIMTARGET)
2452 cp $(VIMTARGET) $(APPDIR)/Contents/MacOS/$(VIMTARGET)
2453
2454bundle-info: bundle-dir
2455 @echo "Creating PkgInfo"
2456 @echo -n "APPLVIM!" > $(APPDIR)/Contents/PkgInfo
2457 @echo "Creating Info.plist"
2458 m4 $(M4FLAGSX) infplist.xml > $(APPDIR)/Contents/Info.plist
2459
2460bundle-resource: bundle-dir bundle-icons bundle-rsrc
2461
2462bundle-icons: $(ICONS)
2463
2464### Classic resources
2465# Resource fork (in the form of a .rsrc file) for Classic Vim (Mac OS 9)
2466# This file is also required for OS X Vim.
2467bundle-rsrc: os_mac.rsr.hqx
2468 @echo "Creating resource fork"
2469 python dehqx.py $<
2470 rm -f gui_mac.rsrc
2471 mv gui_mac.rsrc.rsrcfork $(RESDIR)/$(VIMNAME).rsrc
2472
2473# po/Make_osx.pl says something about generating a Mac message file
2474# for Ukrananian. Would somebody using Mac OS X in Ukranian
2475# *really* be upset that Carbon Vim was not localised in
2476# Ukranian?
2477#
2478#bundle-language: bundle-dir po/Make_osx.pl
2479# cd po && perl Make_osx.pl --outdir ../$(RESDIR) $(MULTILANG)
2480bundle-language: bundle-dir
2481
2482$(APPDIR)/Contents:
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002483 -$(SHELL) ./mkinstalldirs $(APPDIR)/Contents/MacOS
2484 -$(SHELL) ./mkinstalldirs $(RESDIR)/English.lproj
Bram Moolenaare1d12892004-06-13 13:02:36 +00002485
2486$(RESDIR)/%.icns: %.icns
2487 cp $< $@
2488
2489
2490###############################################################################
2491### (automatically generated by 'make depend')
2492### Dependencies:
2493objects/buffer.o: buffer.c vim.h auto/config.h feature.h os_unix.h \
2494 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2495 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2496 globals.h farsi.h arabic.h version.h
2497objects/charset.o: charset.c vim.h auto/config.h feature.h os_unix.h \
2498 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2499 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2500 globals.h farsi.h arabic.h
2501objects/diff.o: diff.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2502 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2503 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2504 arabic.h
2505objects/digraph.o: digraph.c vim.h auto/config.h feature.h os_unix.h \
2506 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2507 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2508 globals.h farsi.h arabic.h
2509objects/edit.o: edit.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2510 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2511 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2512 arabic.h
2513objects/eval.o: eval.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2514 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2515 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2516 arabic.h version.h
2517objects/ex_cmds.o: ex_cmds.c vim.h auto/config.h feature.h os_unix.h \
2518 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2519 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2520 globals.h farsi.h arabic.h version.h
2521objects/ex_cmds2.o: ex_cmds2.c vim.h auto/config.h feature.h os_unix.h \
2522 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2523 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2524 globals.h farsi.h arabic.h version.h
2525objects/ex_docmd.o: ex_docmd.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
2529objects/ex_eval.o: ex_eval.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/ex_getln.o: ex_getln.c vim.h auto/config.h feature.h os_unix.h \
2534 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2535 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2536 globals.h farsi.h arabic.h
2537objects/fileio.o: fileio.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/fold.o: fold.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/getchar.o: getchar.c vim.h auto/config.h feature.h os_unix.h \
2546 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2547 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2548 globals.h farsi.h arabic.h
2549objects/if_cscope.o: if_cscope.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 if_cscope.h
2553objects/if_xcmdsrv.o: if_xcmdsrv.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/main.o: main.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2558 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2559 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2560 arabic.h farsi.c arabic.c
2561objects/mark.o: mark.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2562 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2563 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2564 arabic.h
2565objects/memfile.o: memfile.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/memline.o: memline.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/menu.o: menu.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/message.o: message.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/misc1.o: misc1.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2582 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2583 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2584 arabic.h version.h
2585objects/misc2.o: misc2.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2586 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2587 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2588 arabic.h
2589objects/move.o: move.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
2593objects/mbyte.o: mbyte.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/normal.o: normal.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/ops.o: ops.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2602 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2603 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2604 arabic.h
2605objects/option.o: option.c vim.h auto/config.h feature.h os_unix.h \
2606 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2607 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2608 globals.h farsi.h arabic.h
2609objects/os_unix.o: os_unix.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 os_unixx.h
2613objects/pathdef.o: auto/pathdef.c vim.h auto/config.h feature.h os_unix.h \
2614 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2615 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2616 globals.h farsi.h arabic.h
2617objects/quickfix.o: quickfix.c vim.h auto/config.h feature.h os_unix.h \
2618 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2619 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2620 globals.h farsi.h arabic.h
2621objects/regexp.o: regexp.c vim.h auto/config.h feature.h os_unix.h \
2622 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2623 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2624 globals.h farsi.h arabic.h
2625objects/screen.o: screen.c vim.h auto/config.h feature.h os_unix.h \
2626 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2627 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2628 globals.h farsi.h arabic.h
2629objects/search.o: search.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/syntax.o: syntax.c vim.h auto/config.h feature.h os_unix.h \
2634 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2635 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2636 globals.h farsi.h arabic.h
2637objects/tag.o: tag.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2638 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2639 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2640 arabic.h
2641objects/term.o: term.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2642 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2643 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2644 arabic.h
2645objects/ui.o: ui.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2646 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2647 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2648 arabic.h
2649objects/undo.o: undo.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2650 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2651 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2652 arabic.h
2653objects/version.o: version.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 version.h
2657objects/window.o: window.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/gui.o: gui.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2662 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2663 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2664 arabic.h
2665objects/gui_gtk.o: gui_gtk.c gui_gtk_f.h vim.h auto/config.h feature.h \
2666 os_unix.h auto/osdef.h ascii.h keymap.h term.h macros.h structs.h \
2667 regexp.h gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h \
2668 proto.h globals.h farsi.h arabic.h ../pixmaps/stock_icons.h
2669objects/gui_gtk_f.o: gui_gtk_f.c vim.h auto/config.h feature.h os_unix.h \
2670 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2671 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2672 globals.h farsi.h arabic.h gui_gtk_f.h
2673objects/gui_motif.o: gui_motif.c vim.h auto/config.h feature.h os_unix.h \
2674 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2675 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2676 globals.h farsi.h arabic.h ../pixmaps/alert.xpm ../pixmaps/error.xpm \
2677 ../pixmaps/generic.xpm ../pixmaps/info.xpm ../pixmaps/quest.xpm
2678objects/gui_athena.o: gui_athena.c vim.h auto/config.h feature.h os_unix.h \
2679 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2680 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2681 globals.h farsi.h arabic.h gui_at_sb.h
2682objects/gui_gtk_x11.o: gui_gtk_x11.c vim.h auto/config.h feature.h os_unix.h \
2683 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2684 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2685 globals.h farsi.h arabic.h gui_gtk_f.h ../runtime/vim32x32.xpm \
2686 ../runtime/vim16x16.xpm ../runtime/vim48x48.xpm
2687objects/gui_x11.o: gui_x11.c vim.h auto/config.h feature.h os_unix.h \
2688 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2689 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2690 globals.h farsi.h arabic.h ../runtime/vim32x32.xpm \
2691 ../runtime/vim16x16.xpm ../runtime/vim48x48.xpm ../pixmaps/tb_new.xpm \
2692 ../pixmaps/tb_open.xpm ../pixmaps/tb_close.xpm ../pixmaps/tb_save.xpm \
2693 ../pixmaps/tb_print.xpm ../pixmaps/tb_cut.xpm ../pixmaps/tb_copy.xpm \
2694 ../pixmaps/tb_paste.xpm ../pixmaps/tb_find.xpm \
2695 ../pixmaps/tb_find_next.xpm ../pixmaps/tb_find_prev.xpm \
2696 ../pixmaps/tb_find_help.xpm ../pixmaps/tb_exit.xpm \
2697 ../pixmaps/tb_undo.xpm ../pixmaps/tb_redo.xpm ../pixmaps/tb_help.xpm \
2698 ../pixmaps/tb_macro.xpm ../pixmaps/tb_make.xpm \
2699 ../pixmaps/tb_save_all.xpm ../pixmaps/tb_jump.xpm \
2700 ../pixmaps/tb_ctags.xpm ../pixmaps/tb_load_session.xpm \
2701 ../pixmaps/tb_save_session.xpm ../pixmaps/tb_new_session.xpm \
2702 ../pixmaps/tb_blank.xpm ../pixmaps/tb_maximize.xpm \
2703 ../pixmaps/tb_split.xpm ../pixmaps/tb_minimize.xpm \
2704 ../pixmaps/tb_shell.xpm ../pixmaps/tb_replace.xpm \
2705 ../pixmaps/tb_vsplit.xpm ../pixmaps/tb_maxwidth.xpm \
2706 ../pixmaps/tb_minwidth.xpm
2707objects/gui_at_sb.o: gui_at_sb.c vim.h auto/config.h feature.h os_unix.h \
2708 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2709 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2710 globals.h farsi.h arabic.h gui_at_sb.h
2711objects/gui_at_fs.o: gui_at_fs.c vim.h auto/config.h feature.h os_unix.h \
2712 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2713 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2714 globals.h farsi.h arabic.h gui_at_sb.h
2715objects/pty.o: pty.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2716 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2717 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2718 arabic.h
Bram Moolenaar843ee412004-06-30 16:16:41 +00002719objects/gui_kde.o: gui_kde.cc gui_kde_widget.h kvim_iface.h vim.h \
2720 auto/config.h feature.h os_unix.h auto/osdef.h ascii.h keymap.h \
2721 term.h macros.h structs.h regexp.h gui.h option.h ex_cmds.h proto.h \
2722 globals.h farsi.h
2723objects/gui_kde_widget.o: gui_kde_widget.cc gui_kde_widget.h kvim_iface.h \
2724 vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h keymap.h \
2725 term.h macros.h structs.h regexp.h gui.h option.h ex_cmds.h proto.h \
2726 globals.h farsi.h proto/../../pixmaps/alert.xpm proto/../../pixmaps/error.xpm \
2727 proto/../../pixmaps/generic.xpm proto/../../pixmaps/info.xpm \
2728 proto/../../pixmaps/quest.xpm
2729objects/gui_kde_x11.o: gui_kde_x11.cc gui_kde_widget.h kvim_iface.h vim.h \
2730 auto/config.h feature.h os_unix.h auto/osdef.h ascii.h keymap.h \
2731 term.h macros.h structs.h regexp.h gui.h option.h ex_cmds.h proto.h \
2732 globals.h farsi.h version.h ../runtime/vim32x32.xpm
2733objects/gui_kde_widget_moc.o: gui_kde_widget_moc.cc gui_kde_widget.h \
2734 kvim_iface.h vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2735 ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h option.h \
2736 ex_cmds.h proto.h globals.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002737objects/hangulin.o: hangulin.c vim.h auto/config.h feature.h os_unix.h \
2738 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2739 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2740 globals.h farsi.h arabic.h
Bram Moolenaar325b7a22004-07-05 15:58:32 +00002741objects/if_mzsch.o: if_mzsch.c vim.h auto/config.h feature.h os_unix.h \
2742 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2743 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2744 globals.h farsi.h arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002745objects/if_perl.o: auto/if_perl.c vim.h auto/config.h feature.h os_unix.h \
2746 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2747 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2748 globals.h farsi.h arabic.h
2749objects/if_perlsfio.o: if_perlsfio.c vim.h auto/config.h feature.h os_unix.h \
2750 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2751 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2752 globals.h farsi.h arabic.h
2753objects/if_python.o: if_python.c vim.h auto/config.h feature.h os_unix.h \
2754 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2755 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2756 globals.h farsi.h arabic.h
2757objects/if_tcl.o: if_tcl.c vim.h auto/config.h feature.h os_unix.h \
2758 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2759 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2760 globals.h farsi.h arabic.h
2761objects/if_ruby.o: if_ruby.c vim.h auto/config.h feature.h os_unix.h \
2762 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2763 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2764 globals.h farsi.h arabic.h version.h
2765objects/if_sniff.o: if_sniff.c vim.h auto/config.h feature.h os_unix.h \
2766 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2767 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2768 globals.h farsi.h arabic.h os_unixx.h
2769objects/gui_beval.o: gui_beval.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
2773objects/workshop.o: workshop.c auto/config.h integration.h vim.h feature.h \
2774 os_unix.h auto/osdef.h ascii.h keymap.h term.h macros.h structs.h \
2775 regexp.h gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h \
2776 proto.h globals.h farsi.h arabic.h version.h workshop.h
2777objects/wsdebug.o: wsdebug.c
2778objects/integration.o: integration.c vim.h auto/config.h feature.h os_unix.h \
2779 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2780 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2781 globals.h farsi.h arabic.h integration.h
2782objects/netbeans.o: netbeans.c vim.h auto/config.h feature.h os_unix.h \
2783 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2784 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2785 globals.h farsi.h arabic.h version.h