blob: 6dfe2bff879c14d9f2fda8e13ea037725f0bb890 [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.
Bram Moolenaar0387e652010-05-07 16:54:37 +020033# - Uncomment the line "CONF_OPT_XSMP = --disable-xsmp" if you have the
Bram Moolenaare1d12892004-06-13 13:02:36 +000034# X11 Session Management Protocol (XSMP) library (libSM) but do not
35# want to use it.
36# This can speedup Vim startup but Vim loses the ability to catch the
Bram Moolenaar9372a112005-12-06 19:59:18 +000037# user logging out from session-managers like GNOME and work
Bram Moolenaare1d12892004-06-13 13:02:36 +000038# could be lost.
39# - Uncomment one or more of these lines to include an interface;
40# each makes Vim quite a bit bigger:
Bram Moolenaar0ba04292010-07-14 23:23:17 +020041# --enable-luainterp for Lua interpreter
Bram Moolenaare1d12892004-06-13 13:02:36 +000042# --enable-perlinterp for Perl interpreter
43# --enable-pythoninterp for Python interpreter
44# --enable-rubyinterp for Ruby interpreter
45# --enable-tclinterp for Tcl interpreter
46# --enable-cscope for Cscope interface
47# - Uncomment one of the lines with --with-features= to enable a set of
48# features (but not the interfaces just mentioned).
49# - Uncomment the line with --disable-acl to disable ACL support even
50# though your system supports it.
51# - Uncomment the line with --disable-gpm to disable gpm support
Bram Moolenaar3577c6f2008-06-24 21:16:56 +000052# even though you have gpm libraries and includes.
53# - Uncomment the line with --disable-sysmouse to disable sysmouse
54# support even though you have /dev/sysmouse and includes.
Bram Moolenaare1d12892004-06-13 13:02:36 +000055# - Uncomment one of the lines with CFLAGS and/or CC if you have
56# something very special or want to tune the optimizer.
57# - Search for the name of your system to see if it needs anything
58# special.
59# - A few versions of make use '.include "file"' instead of 'include
60# file'. Adjust the include line below if yours does.
61#
62# 2. Edit feature.h {{{1
63# Only if you do not agree with the default compile features, e.g.:
64# - you want Vim to be as vi compatible as it can be
65# - you want to use Emacs tags files
66# - you want right-to-left editing (Hebrew)
67# - you want 'langmap' support (Greek)
68# - you want to remove features to make Vim smaller
69#
70# 3. "make" {{{1
71# Will first run ./configure with the options in this file. Then it will
72# start make again on this Makefile to do the compiling. You can also do
73# this in two steps with:
74# make config
75# make
76# The configuration phase creates/overwrites auto/config.h and
77# auto/config.mk.
78# The configure script is created with "make autoconf". It can detect
79# different features of your system and act accordingly. However, it is
80# not correct for all systems. Check this:
81# - If you have X windows, but configure could not find it or reported
82# another include/library directory then you wanted to use, you have
83# to set CONF_OPT_X below. You might also check the installation of
84# xmkmf.
85# - If you have --enable-gui=motif and have Motif on your system, but
86# configure reports "checking for location of gui... <not found>", you
87# have to set GUI_INC_LOC and GUI_LIB_LOC below.
88# If you changed something, do this to run configure again:
89# make reconfig
90#
91# - If you do not trust the automatic configuration code, then inspect
92# auto/config.h and auto/config.mk, before starting the actual build
93# phase. If possible edit this Makefile, rather than auto/config.mk --
94# especially look at the definition of VIMLOC below. Note that the
95# configure phase overwrites auto/config.mk and auto/config.h again.
96# - If you get error messages, find out what is wrong and try to correct
97# it in this Makefile. You may need to do "make reconfig" when you
98# change anything that configure uses (e.g. switching from an old C
99# compiler to an ANSI C compiler). Only when auto/configure does
100# something wrong you may need to change one of the other files. If
101# you find a clean way to fix the problem, consider sending a note to
102# the author of autoconf (bug-gnu-utils@prep.ai.mit.edu) or Vim
103# (Bram@vim.org). Don't bother to do that when you made a hack
104# solution for a non-standard system.
105#
106# 4. "make test" {{{1
107# This is optional. This will run Vim scripts on a number of test
108# files, and compare the produced output with the expected output.
Bram Moolenaarcd8b20a2009-05-22 16:20:57 +0000109# If all is well, you will get the "ALL DONE" message in the end. If a
110# test fails you get "TEST FAILURE". See below (search for "/^test").
Bram Moolenaare1d12892004-06-13 13:02:36 +0000111#
112# 5. "make install" {{{1
113# If the new Vim seems to be working OK you can install it and the
114# documentation in the appropriate location. The default is
115# "/usr/local". Change "prefix" below to change the location.
116# "auto/pathdef.c" will be compiled again after changing this to make
117# the executable know where the help files are located.
118# Note that any existing executable is removed or overwritten. If you
119# want to keep it you will have to make a backup copy first.
120# The runtime files are in a different directory for each version. You
121# might want to delete an older version.
122# If you don't want to install everything, there are other targets:
123# make installvim only installs Vim, not the tools
124# make installvimbin only installs the Vim executable
Bram Moolenaare344bea2005-09-01 20:46:49 +0000125# make installruntime installs most of the runtime files
126# make installrtbase only installs the Vim help and
Bram Moolenaare1d12892004-06-13 13:02:36 +0000127# runtime files
128# make installlinks only installs the Vim binary links
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000129# make installmanlinks only installs the Vim manpage links
Bram Moolenaare1d12892004-06-13 13:02:36 +0000130# make installmacros only installs the Vim macros
Bram Moolenaare344bea2005-09-01 20:46:49 +0000131# make installtutorbin only installs the Vim tutor program
132# make installtutor only installs the Vim tutor files
Bram Moolenaar217ad922005-03-20 22:37:15 +0000133# make installspell only installs the spell files
Bram Moolenaare1d12892004-06-13 13:02:36 +0000134# make installtools only installs xxd
135# If you install Vim, not to install for real but to prepare a package
136# or RPM, set DESTDIR to the root of the tree.
137#
138# 6. Use Vim until a new version comes out. {{{1
139#
140# 7. "make uninstall_runtime" {{{1
141# Will remove the runtime files for the current version. This is safe
142# to use while another version is being used, only version-specific
143# files will be deleted.
144# To remove the runtime files of another version:
145# make uninstall_runtime VIMRTDIR=/vim54
146# If you want to delete all installed files, use:
147# make uninstall
148# Note that this will delete files that have the same name for any
149# version, thus you might need to do a "make install" soon after this.
150# Be careful not to remove a version of Vim that is still being used!
151# To find out which files and directories will be deleted, use:
152# make -n uninstall
153# }}}
154#
Bram Moolenaara5792f52005-11-23 21:25:05 +0000155### This Makefile has been successfully tested on many systems. {{{
Bram Moolenaare1d12892004-06-13 13:02:36 +0000156### Only the ones that require special options are mentioned here.
157### Check the (*) column for remarks, listed below.
158### Later code changes may cause small problems, otherwise Vim is supposed to
159### compile and run without problems.
160
161#system: configurations: version (*) tested by:
162#------------- ------------------------ ------- - ----------
163#AIX 3.2.5 cc (not gcc) - 4.5 (M) Will Fiveash
164#AIX 4 cc +X11 -GUI 3.27 (4) Axel Kielhorn
165#AIX 4.1.4 cc +X11 +GUI 4.5 (5) Nico Bakker
166#AIX 4.2.1 cc 5.2k (C) Will Fiveash
167#AIX 4.3.3.12 xic 3.6.6 5.6 (5) David R. Favor
168#A/UX 3.1.1 gcc +X11 4.0 (6) Jim Jagielski
169#BeOS PR mwcc DR3 5.0n (T) Olaf Seibert
170#BSDI 2.1 (x86) shlicc2 gcc-2.6.3 -X11 X11R6 4.5 (1) Jos Backus
171#BSD/OS 3.0 (x86) gcc gcc-2.7.2.1 -X11 X11R6 4.6c (1) Jos Backus
172#CX/UX 6.2 cc +X11 +GUI_Mofif 5.4 (V) Kipp E. Howard
173#DG/UX 5.4* gcc 2.5.8 GUI 5.0e (H) Jonas Schlein
174#DG/UX 5.4R4.20 gcc 2.7.2 GUI 5.0s (H) Rocky Olive
175#HP-UX (most) c89 cc 5.1 (2) Bram Moolenaar
176#HP-UX_9.04 cc +X11 +Motif 5.0 (2) Carton Lao
177#Irix 6.3 (O2) cc ? 4.5 (L) Edouard Poor
178#Irix 6.4 cc ? 5.0m (S) Rick Sayre
179#Irix 6.5 cc ? 6.0 (S) David Harrison
180#Irix 64 bit 4.5 (K) Jon Wright
181#Linux 2.0 gcc-2.7.2 Infomagic Motif 4.3 (3) Ronald Rietman
182#Linux 2.0.31 gcc +X11 +GUI Athena 5.0w (U) Darren Hiebert
183#LynxOS 3.0.1 2.9-gnupro-98r2 +X11 +GUI Athena 5.7.1(O) Lorenz Hahn
184#LynxOS 3.1.0 2.9-gnupro-98r2 +X11 +GUI Athena 5.7.1(O) Lorenz Hahn
185#NEC UP4800 UNIX_SV 4.2MP cc +X11R6 Motif,Athena4.6b (Q) Lennart Schultz
186#NetBSD 1.0A gcc-2.4.5 -X11 -GUI 3.21 (X) Juergen Weigert
187#QNX 4.2 wcc386-10.6 -X11 4.2 (D) G.F. Desrochers
188#QNX 4.23 Watcom -X11 4.2 (F) John Oleynick
189#SCO Unix v3.2.5 cc +X11 Motif 3.27 (C) M. Kuperblum
190#SCO Open Server 5 gcc 2.7.2.3 +X11 +GUI Motif 5.3 (A) Glauber Ribeiro
191#SINIX-N 5.43 RM400 R4000 cc +X11 +GUI 5.0l (I) Martin Furter
192#SINIX-Z 5.42 i386 gcc 2.7.2.3 +X11 +GUI Motif 5.1 (I) Joachim Fehn
193#SINIX-Y 5.43 RM600 R4000 gcc 2.7.2.3 +X11 +GUI Motif 5.1 (I) Joachim Fehn
194#Reliant/SINIX 5.44 cc +X11 +GUI 5.5a (I) B. Pruemmer
195#SNI Targon31 TOS 4.1.11 gcc-2.4.5 +X11 -GUI 4.6c (B) Paul Slootman
196#Solaris 2.4 (Sparc) cc +X11 +GUI 3.29 (9) Glauber
197#Solaris 2.4/2.5 clcc +X11 -GUI openwin 3.20 (7) Robert Colon
198#Solaris 2.5 (sun4m) cc (SC4.0) +X11R6 +GUI (CDE) 4.6b (E) Andrew Large
199#Solaris 2.5 cc +X11 +GUI Athena 4.2 (9) Sonia Heimann
200#Solaris 2.5 gcc 2.5.6 +X11 Motif 5.0m (R) Ant. Colombo
201#Solaris 2.6 gcc 2.8.1 ncursus 5.3 (G) Larry W. Virden
202#Solaris with -lthread 5.5 (W) K. Nagano
203#Solaris gcc (b) Riccardo
204#SunOS 4.1.x +X11 -GUI 5.1b (J) Bram Moolenaar
205#SunOS 4.1.3_U1 (sun4c) gcc +X11 +GUI Athena 5.0w (J) Darren Hiebert
206#SUPER-UX 6.2 (NEC SX-4) cc +X11R6 Motif,Athena4.6b (P) Lennart Schultz
Bram Moolenaar311d9822007-02-27 15:48:28 +0000207#Tandem/NSK (c) Matthew Woehlke
Bram Moolenaare1d12892004-06-13 13:02:36 +0000208#Unisys 6035 cc +X11 Motif 5.3 (8) Glauber Ribeiro
209#ESIX V4.2 cc +X11 6.0 (a) Reinhard Wobst
210#Mac OS X 10.[23] gcc Carbon 6.2 (x) Bram Moolenaar
211# }}}
212
213# (*) Remarks: {{{
214#
215# (1) Uncomment line below for shlicc2
216# (2) HPUX with compile problems or wrong digraphs, uncomment line below
217# (3) Infomagic Motif needs GUI_LIB_LOC and GUI_INC_LOC set, see below.
218# And add "-lXpm" to MOTIF_LIBS2.
219# (4) For cc the optimizer must be disabled (use CFLAGS= after running
220# configure) (symptom: ":set termcap" output looks weird).
221# (5) Compiler may need extra argument, see below.
222# (6) See below for a few lines to uncomment
223# (7) See below for lines which enable the use of clcc
224# (8) Needs some EXTRA_LIBS, search for Unisys below
225# (9) Needs an extra compiler flag to compile gui_at_sb.c, see below.
226# (A) May need EXTRA_LIBS, see below
227# (B) Can't compile GUI because there is no waitpid()... Disable GUI below.
228# (C) Force the use of curses instead of termcap, see below.
229# (D) Uncomment lines below for QNX
230# (E) You might want to use termlib instead of termcap, see below.
231# (F) See below for instructions.
232# (G) Using ncursus version 4.2 has reported to cause a crash. Use the
233# Sun cursus library instead.
234# (H) See line for EXTRA_LIBS below.
235# (I) SINIX-N 5.42 and 5.43 need some EXTRA_LIBS. Also for Reliant-Unix.
236# (J) If you get undefined symbols, see below for a solution.
237# (K) See lines to uncomment below for machines with 64 bit pointers.
238# (L) For Silicon Graphics O2 workstations remove "-lnsl" from auto/config.mk
239# (M) gcc version cygnus-2.0.1 does NOT work (symptom: "dl" deletes two
240# characters instead of one).
241# (N) SCO with decmouse.
242# (O) LynxOS needs EXTRA_LIBS, see below.
243# (P) For SuperUX 6.2 on NEC SX-4 see a few lines below to uncomment.
244# (Q) For UNIXSVR 4.2MP on NEC UP4800 see below for lines to uncomment.
245# (R) For Solaris 2.5 (or 2.5.1) with gcc > 2.5.6, uncomment line below.
246# (S) For Irix 6.x with MipsPro compiler, use -OPT:Olimit. See line below.
247# (T) See ../doc/os_beos.txt.
248# (U) Must uncomment CONF_OPT_PYTHON option below to disable Python
249# detection, since the configure script runs into an error when it
250# detects Python (probably because of the bash shell).
251# (V) See lines to uncomment below.
252# (X) Need to use the .include "auto/config.mk" line below
253# (Y) See line with c89 below
254# (Z) See lines with cc or c89 below
255# (a) See line with EXTRA_LIBS below.
256# (b) When using gcc with the Solaris linker, make sure you don't use GNU
257# strip, otherwise the binary may not run: "Cannot find ELF".
Bram Moolenaar311d9822007-02-27 15:48:28 +0000258# (c) Add -lfloss to EXTRA_LIBS, see below.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000259# (x) When you get warnings for precompiled header files, run
260# "sudo fixPrecomps". Also see CONF_OPT_DARWIN below.
261# }}}
262
263
264#DO NOT CHANGE the next line, we need it for configure to find the compiler
265#instead of using the default from the "make" program.
266#Use a line further down to change the value for CC.
267CC=
268
269# Change and use these defines if configure cannot find your Motif stuff.
270# Unfortunately there is no "standard" location for Motif. {{{
271# These defines can contain a single directory (recommended) or a list of
272# directories (for when you are working with several systems). The LAST
273# directory that exists is used.
274# When changed, run "make reconfig" next!
275#GUI_INC_LOC = -I/usr/include/Motif2.0 -I/usr/include/Motif1.2
276#GUI_LIB_LOC = -L/usr/lib/Motif2.0 -L/usr/lib/Motif1.2
277### Use these two lines for Infomagic Motif (3)
278#GUI_INC_LOC = -I/usr/X11R6/include
279#GUI_LIB_LOC = -L/usr/X11R6/lib
280# }}}
281
282######################## auto/config.mk ######################## {{{1
283# At this position auto/config.mk is included. When starting from the
284# distribution it is almost empty. After running auto/configure it contains
285# settings that have been discovered for your system. Settings below this
286# include override settings in auto/config.mk!
287
288# Note: if auto/config.mk is lost somehow (e.g., because configure was
289# interrupted), create an empty auto/config.mk file and do "make config".
290
291# (X) How to include auto/config.mk depends on the version of "make" you have,
292# if the current choice doesn't work, try the other one.
293
294include auto/config.mk
295#.include "auto/config.mk"
296CClink = $(CC)
297
298#}}}
299
300# Include the configuration choices first, so we can override everything
301# below. As shipped, this file contains a target that causes to run
302# configure. Once configure was run, this file contains a list of
303# make variables with predefined values instead. Thus any second invocation
Bram Moolenaara5792f52005-11-23 21:25:05 +0000304# of make, will build Vim.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000305
306# CONFIGURE - configure arguments {{{1
307# You can give a lot of options to configure.
308# Change this to your desire and do 'make config' afterwards
309
310# examples (can only use one!):
311#CONF_ARGS = --exec-prefix=/usr
Bram Moolenaarc01140a2006-03-24 22:21:52 +0000312#CONF_ARGS = --with-vim-name=vim7 --with-ex-name=ex7 --with-view-name=view7
Bram Moolenaare1d12892004-06-13 13:02:36 +0000313#CONF_ARGS = --with-global-runtime=/etc/vim
Bram Moolenaarc236c162008-07-13 17:41:49 +0000314#CONF_ARGS = --with-local-dir=/usr/share
315#CONF_ARGS = --without-local-dir
Bram Moolenaare1d12892004-06-13 13:02:36 +0000316
317# Use this one if you distribute a modified version of Vim.
318#CONF_ARGS = --with-modified-by="John Doe"
319
320# GUI - For creating Vim with GUI (gvim) (B)
321# Uncomment this line when you don't want to get the GUI version, although you
322# have GTK, Motif and/or Athena. Also use --without-x if you don't want X11
323# at all.
324#CONF_OPT_GUI = --disable-gui
325
326# Uncomment one of these lines if you have that GUI but don't want to use it.
Bram Moolenaar24b23172007-05-06 12:54:06 +0000327# The automatic check will use another one that can be found.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000328# Gnome is disabled by default, it may cause trouble.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000329#CONF_OPT_GUI = --disable-gtk2-check
Bram Moolenaare1d12892004-06-13 13:02:36 +0000330#CONF_OPT_GUI = --enable-gnome2-check
331#CONF_OPT_GUI = --disable-motif-check
332#CONF_OPT_GUI = --disable-athena-check
333#CONF_OPT_GUI = --disable-nextaw-check
334
335# Uncomment one of these lines to select a specific GUI to use.
336# When using "yes" or nothing, configure will use the first one found: GTK+,
337# Motif or Athena.
338#
339# GTK versions that are known not to work 100% are rejected.
340# Use "--disable-gtktest" to accept them anyway.
Bram Moolenaar182c5be2010-06-25 05:37:59 +0200341# Only GTK 2 is supported, for GTK 1 use Vim 7.2.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000342#
Bram Moolenaar24b23172007-05-06 12:54:06 +0000343# GNOME means GTK with Gnome support. If using GTK and --enable-gnome-check
344# is used then GNOME will automatically be used if it is found. If you have
345# GNOME, but do not want to use it (e.g., want a GTK-only version), then use
346# --enable-gui=gtk or leave out --enable-gnome-check.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000347#
348# If the selected GUI isn't found, the GUI is disabled automatically
Bram Moolenaare1d12892004-06-13 13:02:36 +0000349#CONF_OPT_GUI = --enable-gui=gtk2
350#CONF_OPT_GUI = --enable-gui=gtk2 --disable-gtktest
Bram Moolenaare1d12892004-06-13 13:02:36 +0000351#CONF_OPT_GUI = --enable-gui=gnome2
352#CONF_OPT_GUI = --enable-gui=gnome2 --disable-gtktest
353#CONF_OPT_GUI = --enable-gui=motif
354#CONF_OPT_GUI = --enable-gui=motif --with-motif-lib="-static -lXm -shared"
355#CONF_OPT_GUI = --enable-gui=athena
356#CONF_OPT_GUI = --enable-gui=nextaw
357
358# DARWIN - detecting Mac OS X
359# Uncomment this line when you want to compile a Unix version of Vim on
360# Darwin. None of the Mac specific options or files will be used.
361#CONF_OPT_DARWIN = --disable-darwin
Bram Moolenaar899dddf2006-03-26 21:06:50 +0000362
363# Select the architecture supported. Default is to build for the current
364# platform. Use "both" for a universal binary. That probably doesn't work
365# when including Perl, Python, etc.
Bram Moolenaara23ccb82006-02-27 00:08:02 +0000366#CONF_OPT_DARWIN = --with-mac-arch=i386
367#CONF_OPT_DARWIN = --with-mac-arch=ppc
Bram Moolenaar899dddf2006-03-26 21:06:50 +0000368#CONF_OPT_DARWIN = --with-mac-arch=both
Bram Moolenaare1d12892004-06-13 13:02:36 +0000369
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000370# PERL
Bram Moolenaare1d12892004-06-13 13:02:36 +0000371# Uncomment this when you want to include the Perl interface.
372# The Perl option sometimes causes problems, because it adds extra flags
373# to the command line. If you see strange flags during compilation, check in
374# auto/config.mk where they come from. If it's PERL_CFLAGS, try commenting
375# the next line.
376# When you get an error for a missing "perl.exp" file, try creating an emtpy
377# one: "touch perl.exp".
378# This requires at least "small" features, "tiny" doesn't work.
379#CONF_OPT_PERL = --enable-perlinterp
380
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000381# PYTHON
Bram Moolenaare1d12892004-06-13 13:02:36 +0000382# Uncomment this when you want to include the Python interface.
Bram Moolenaar0e21a3f2005-04-17 20:28:32 +0000383# NOTE: This may cause threading to be enabled, which has side effects (such
384# as using different libraries and debugging becomes more difficult).
Bram Moolenaara5792f52005-11-23 21:25:05 +0000385# NOTE: Using this together with Perl may cause a crash in initialization.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000386#CONF_OPT_PYTHON = --enable-pythoninterp
387
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000388# TCL
Bram Moolenaare1d12892004-06-13 13:02:36 +0000389# Uncomment this when you want to include the Tcl interface.
390#CONF_OPT_TCL = --enable-tclinterp
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +0000391#CONF_OPT_TCL = --enable-tclinterp --with-tclsh=tclsh8.4
Bram Moolenaare1d12892004-06-13 13:02:36 +0000392
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000393# RUBY
Bram Moolenaare1d12892004-06-13 13:02:36 +0000394# Uncomment this when you want to include the Ruby interface.
Bram Moolenaar165641d2010-02-17 16:23:09 +0100395# Note: you need the development package (e.g., ruby1.9.1-dev on Ubuntu).
Bram Moolenaar182c5be2010-06-25 05:37:59 +0200396#CONF_OPT_RUBY = --enable-rubyinterp
397#CONF_OPT_RUBY = --enable-rubyinterp --with-ruby-command=ruby1.9.1
Bram Moolenaare1d12892004-06-13 13:02:36 +0000398
Bram Moolenaar0ba04292010-07-14 23:23:17 +0200399# LUA
400# Uncomment this when you want to include the Lua interface.
401#CONF_OPT_LUA = --enable-luainterp
402# Lua installation dir (also in LUA_PREFIX environment variable)
403#CONF_OPT_LUA_PREFIX = --with-lua-prefix=/usr/local
404#CONF_OPT_LUA_PREFIX = --with-lua-prefix=/usr
405
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000406# MZSCHEME
407# Uncomment this when you want to include the MzScheme interface.
408#CONF_OPT_MZSCHEME = --enable-mzschemeinterp
409# PLT/mrscheme/drscheme Home dir; the PLTHOME environment variable also works
410#CONF_OPT_PLTHOME = --with-plthome=/usr/local/plt
411#CONF_OPT_PLTHOME = --with-plthome=/usr/local/drscheme
412#CONF_OPT_PLTHOME = --with-plthome=/home/me/mz
413
414# CSCOPE
Bram Moolenaare1d12892004-06-13 13:02:36 +0000415# Uncomment this when you want to include the Cscope interface.
416#CONF_OPT_CSCOPE = --enable-cscope
417
418# WORKSHOP - Sun Visual Workshop interface. Only works with Motif!
419#CONF_OPT_WORKSHOP = --enable-workshop
420
421# NETBEANS - NetBeans interface. Only works with Motif, GTK, and gnome.
422# Motif version must have XPM libraries (see |workshop-xpm|).
423# Uncomment this when you do not want the netbeans interface.
424#CONF_OPT_NETBEANS = --disable-netbeans
425
426# SNIFF - Include support for SNiFF+.
427#CONF_OPT_SNIFF = --enable-sniff
428
429# MULTIBYTE - To edit multi-byte characters.
430# Uncomment this when you want to edit a multibyte language.
431# It's automatically enabled with big features or IME support.
432# Note: Compile on a machine where setlocale() actually works, otherwise the
433# configure tests may fail.
434#CONF_OPT_MULTIBYTE = --enable-multibyte
435
436# NLS - National Language Support
437# Uncomment this when you do not want to support translated messages, even
438# though configure can find support for it.
439#CONF_OPT_NLS = --disable-nls
440
Bram Moolenaara5792f52005-11-23 21:25:05 +0000441# XIM - X Input Method. Special character input support for X11 (Chinese,
442# Japanese, special symbols, etc). Also needed for dead-key support.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000443# When omitted it's automatically enabled for the X-windows GUI.
Bram Moolenaara5792f52005-11-23 21:25:05 +0000444# HANGUL - Input Hangul (Korean) language using internal routines.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000445# Uncomment one of these when you want to input a multibyte language.
446#CONF_OPT_INPUT = --enable-xim
447#CONF_OPT_INPUT = --disable-xim
448#CONF_OPT_INPUT = --enable-hangulinput
449
450# FONTSET - X fontset support for output of languages with many characters.
451# Uncomment this when you want to output a multibyte language.
452#CONF_OPT_OUTPUT = --enable-fontset
453
454# ACL - Uncomment this when you do not want to include ACL support, even
455# though your system does support it. E.g., when it's buggy.
456#CONF_OPT_ACL = --disable-acl
457
458# gpm - For mouse support on Linux console via gpm
459# Uncomment this when you do not want to include gpm support, even
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000460# though you have gpm libraries and includes.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000461#CONF_OPT_GPM = --disable-gpm
462
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000463# sysmouse - For mouse support on FreeBSD and DragonFly console via sysmouse
464# Uncomment this when you do not want do include sysmouse support, even
465# though you have /dev/sysmouse and includes.
466#CONF_OPT_SYSMOUSE = --disable-sysmouse
467
Bram Moolenaare1d12892004-06-13 13:02:36 +0000468# FEATURES - For creating Vim with more or less features
469# Uncomment one of these lines when you want to include few to many features.
470# The default is "normal".
471#CONF_OPT_FEAT = --with-features=tiny
472#CONF_OPT_FEAT = --with-features=small
473#CONF_OPT_FEAT = --with-features=normal
474#CONF_OPT_FEAT = --with-features=big
Bram Moolenaarcfc0eee2010-05-17 21:37:47 +0200475#CONF_OPT_FEAT = --with-features=huge
Bram Moolenaare1d12892004-06-13 13:02:36 +0000476
477# COMPILED BY - For including a specific e-mail address for ":version".
478#CONF_OPT_COMPBY = "--with-compiledby=John Doe <JohnDoe@yahoo.com>"
479
480# X WINDOWS DISABLE - For creating a plain Vim without any X11 related fancies
481# (otherwise Vim configure will try to include xterm titlebar access)
482# Also disable the GUI above, otherwise it will be included anyway.
483# When both GUI and X11 have been disabled this may save about 15% of the
484# code and make Vim startup quicker.
485#CONF_OPT_X = --without-x
486
487# X WINDOWS DIRECTORY - specify X directories
Bram Moolenaara5792f52005-11-23 21:25:05 +0000488# If configure can't find you X stuff, or if you have multiple X11 derivatives
Bram Moolenaare1d12892004-06-13 13:02:36 +0000489# installed, you may wish to specify which one to use.
490# Select nothing to let configure choose.
491# This here selects openwin (as found on sun).
492#XROOT = /usr/openwin
493#CONF_OPT_X = --x-include=$(XROOT)/include --x-libraries=$(XROOT)/lib
494
495# X11 Session Management Protocol support
496# Vim will try to use XSMP to catch the user logging out if there are unsaved
497# files. Uncomment this line to disable that (it prevents vim trying to open
498# communications with the session manager).
499#CONF_OPT_XSMP = --disable-xsmp
500
501# You may wish to include xsmp but use exclude xsmp-interact if the logout
502# XSMP functionality does not work well with your session-manager (at time of
503# writing, this would be early GNOME-1 gnome-session: it 'freezes' other
504# applications after Vim has cancelled a logout (until Vim quits). This
505# *might* be the Vim code, but is more likely a bug in early GNOME-1.
506# This disables the dialog that asks you if you want to save files or not.
507#CONF_OPT_XSMP = --disable-xsmp-interact
508
509# COMPILER - Name of the compiler {{{1
510# The default from configure will mostly be fine, no need to change this, just
511# an example. If a compiler is defined here, configure will use it rather than
512# probing for one. It is dangerous to change this after configure was run.
513# Make will use your choice then -- but beware: Many things may change with
514# another compiler. It is wise to run 'make reconfig' to start all over
515# again.
516#CC = cc
517#CC = gcc
518
519# COMPILER FLAGS - change as you please. Either before running {{{1
520# configure or afterwards. For examples see below.
521# When using -g with some older versions of Linux you might get a
522# statically linked executable.
523# When not defined, configure will try to use -O2 -g for gcc and -O for cc.
524#CFLAGS = -g
525#CFLAGS = -O
526
527# Optimization limits - depends on the compiler. Automatic check in configure
528# doesn't work very well, because many compilers only give a warning for
529# unrecognized arguments.
530#CFLAGS = -O -OPT:Olimit=2600
531#CFLAGS = -O -Olimit 2000
532#CFLAGS = -O -FOlimit,2000
533
534# Often used for GCC: mixed optimizing, lot of optimizing, debugging
535#CFLAGS = -g -O2 -fno-strength-reduce -Wall -Wshadow -Wmissing-prototypes
Bram Moolenaar69a7cb42004-06-20 12:51:53 +0000536#CFLAGS = -g -O2 -fno-strength-reduce -Wall -Wmissing-prototypes
Bram Moolenaardf177f62005-02-22 08:39:57 +0000537#CFLAGS = -g -Wall -Wmissing-prototypes
Bram Moolenaare1d12892004-06-13 13:02:36 +0000538#CFLAGS = -O6 -fno-strength-reduce -Wall -Wshadow -Wmissing-prototypes
539#CFLAGS = -g -DDEBUG -Wall -Wshadow -Wmissing-prototypes
Bram Moolenaar592e0a22004-07-03 16:05:59 +0000540#CFLAGS = -g -O2 '-DSTARTUPTIME="vimstartup"' -fno-strength-reduce -Wall -Wmissing-prototypes
Bram Moolenaare1d12892004-06-13 13:02:36 +0000541
Bram Moolenaarcd8b20a2009-05-22 16:20:57 +0000542# Use this with GCC to check for mistakes, unused arguments, etc.
Bram Moolenaarcfc0eee2010-05-17 21:37:47 +0200543#CFLAGS = -g -Wall -Wextra -Wmissing-prototypes -Wunreachable-code -D_FORTIFY_SOURCE=1
544#PYTHON_CFLAGS_EXTRA = -Wno-missing-field-initializers
545#MZSCHEME_CFLAGS_EXTRA = -Wno-unreachable-code -Wno-unused-parameter
Bram Moolenaarcd8b20a2009-05-22 16:20:57 +0000546
Bram Moolenaare1d12892004-06-13 13:02:36 +0000547# EFENCE - Electric-Fence malloc debugging: catches memory accesses beyond
548# allocated memory (and makes every malloc()/free() very slow).
549# Electric Fence is free (search ftp sites).
Bram Moolenaar53180ce2005-07-05 21:48:14 +0000550# You may want to set the EF_PROTECT_BELOW environment variable to check the
551# other side of allocated memory.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000552# On FreeBSD you might need to enlarge the number of mmaps allowed. Do this
553# as root: sysctl -w vm.max_proc_mmap=30000
554#EXTRA_LIBS = /usr/local/lib/libefence.a
555
556# PURIFY - remove the # to use the "purify" program (hoi Nia++!)
557#PURIFY = purify
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000558
559# NBDEBUG - debugging the netbeans interface.
560#EXTRA_DEFS = -DNBDEBUG
561
Bram Moolenaare1d12892004-06-13 13:02:36 +0000562# }}}
563
564# LINT - for running lint
Bram Moolenaarcd8b20a2009-05-22 16:20:57 +0000565# For standard Unix lint
566LINT = lint
567LINT_OPTIONS = -beprxzF
568# For splint
569# It doesn't work well, crashes on include files and non-ascii characters.
570#LINT = splint
571#LINT_OPTIONS = +unixlib -weak -macrovarprefixexclude -showfunc -linelen 9999
Bram Moolenaare1d12892004-06-13 13:02:36 +0000572
573# PROFILING - Uncomment the next two lines to do profiling with gcc and gprof.
574# Might not work with GUI or Perl.
Bram Moolenaar4770d092006-01-12 23:22:24 +0000575# For unknown reasons adding "-lc" fixes a linking problem with GCC. That's
576# probably a bug in the "-pg" implementation.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000577# Need to recompile everything after changing this: "make clean" "make".
Bram Moolenaar02f07e02008-03-12 12:17:28 +0000578#PROFILE_CFLAGS = -pg -g -DWE_ARE_PROFILING
Bram Moolenaare1d12892004-06-13 13:02:36 +0000579#PROFILE_LIBS = -pg
Bram Moolenaar4770d092006-01-12 23:22:24 +0000580#PROFILE_LIBS = -pg -lc
Bram Moolenaare1d12892004-06-13 13:02:36 +0000581
Bram Moolenaar0a5fe212005-06-24 23:01:23 +0000582# MEMORY LEAK DETECTION
583# Requires installing the ccmalloc library.
Bram Moolenaara40ceaf2006-01-13 22:35:40 +0000584# Configuration is in the .ccmalloc or ~/.ccmalloc file.
Bram Moolenaar0a5fe212005-06-24 23:01:23 +0000585# Doesn't work very well, since memory linked to from global variables
Bram Moolenaar56718732006-03-15 22:53:57 +0000586# (in libraries) is also marked as leaked memory.
Bram Moolenaar0a5fe212005-06-24 23:01:23 +0000587#PROFILE_CFLAGS = -DEXITFREE
588#PROFILE_LIBS = -lccmalloc
589
Bram Moolenaare1d12892004-06-13 13:02:36 +0000590#####################################################
591### Specific systems, check if yours is listed! ### {{{
592#####################################################
593
594### Uncomment things here only if the values chosen by configure are wrong.
595### It's better to adjust configure.in and "make autoconf", if you can!
596### Then send the required changes to configure.in to the bugs list.
597
598### (1) BSD/OS 2.0.1, 2.1 or 3.0 using shared libraries
599###
600#CC = shlicc2
601#CFLAGS = -O2 -g -m486 -Wall -Wshadow -Wmissing-prototypes -fno-builtin
602
603### (2) HP-UX with a non-ANSI cc, use the c89 ANSI compiler
604### The first probably works on all systems
605### The second should work a bit better on newer systems
606### The third should work a bit better on HPUX 11.11
607### Information provided by: Richard Allen <ra@rhi.hi.is>
608#CC = c89 -D_HPUX_SOURCE
609#CC = c89 -O +Onolimit +ESlit -D_HPUX_SOURCE
610#CC = c89 -O +Onolimit +ESlit +e -D_HPUX_SOURCE
611
612### (2) For HP-UX: Enable the use of a different set of digraphs. Use this
613### when the default (ISO) digraphs look completely wrong.
614### After changing this do "touch digraph.c; make".
615#EXTRA_DEFS = -DHPUX_DIGRAPHS
616
617### (2) For HP-UX: 9.04 cpp default macro definition table of 128000 bytes
618### is too small to compile many routines. It produces too much defining
619### and no space errors.
620### Uncomment the following to specify a larger macro definition table.
621#CFLAGS = -Wp,-H256000
622
623### (2) For HP-UX 10.20 using the HP cc, with X11R6 and Motif 1.2, with
624### libraries in /usr/lib instead of /lib (avoiding transition links).
625### Information provided by: David Green
626#XROOT = /usr
627#CONF_OPT_X = --x-include=$(XROOT)/include/X11R6 --x-libraries=$(XROOT)/lib/X11R6
628#GUI_INC_LOC = -I/usr/include/Motif1.2
629#GUI_LIB_LOC = -L/usr/lib/Motif1.2_R6
630
631### (5) AIX 4.1.4 with cc
632#CFLAGS = -O -qmaxmem=8192
633
634### AIX with c89 (Walter Briscoe)
635#CC = c89
636#CPPFLAGS = -D_ALL_SOURCE
637
638### AIX 4.3.3.12 with xic 3.6.6 (David R. Favor)
639# needed to avoid a problem where strings.h gets included
640#CFLAGS = -qsrcmsg -O2 -qmaxmem=8192 -D__STR31__
641
642### (W) Solaris with multi-threaded libraries (-lthread):
643### If suspending doesn't work properly, try using this line:
644#EXTRA_DEFS = -D_REENTRANT
645
646### (7) Solaris 2.4/2.5 with Centerline compiler
647#CC = clcc
648#X_LIBS_DIR = -L/usr/openwin/lib -R/usr/openwin/lib
649#CFLAGS = -O
650
651### (9) Solaris 2.x with cc (SunPro), using Athena.
652### Only required for compiling gui_at_sb.c.
653### Symptom: "identifier redeclared: vim_XawScrollbarSetThumb"
654### Use one of the lines (either Full ANSI or no ANSI at all)
655#CFLAGS = $(CFLAGS) -Xc
656#CFLAGS = $(CFLAGS) -Xs
657
658### Solaris 2.3 with X11 and specific cc
659#CC=/opt/SUNWspro/bin/cc -O -Xa -v -R/usr/openwin/lib
660
661### Solaris with /usr/ucb/cc (it is rejected by autoconf as "cc")
662#CC = /usr/ucb/cc
663#EXTRA_LIBS = -R/usr/ucblib
664
665### Solaris with Forte Developer and FEAT_SUN_WORKSHOP
666# The Xpm library is available from http://koala.ilog.fr/ftp/pub/xpm.
667#CC = cc
668#XPM_DIR = /usr/local/xpm/xpm-3.4k-solaris
669#XPM_LIB = -L$(XPM_DIR)/lib -R$(XPM_DIR)/lib -lXpm
670#XPM_IPATH = -I$(XPM_DIR)/include
671#EXTRA_LIBS = $(XPM_LIB)
672#EXTRA_IPATHS = $(XPM_IPATH)
673#EXTRA_DEFS = -xCC -DHAVE_X11_XPM_H
674
675### Solaris with workshop compilers: Vim is unstable when compiled with
676# "-fast". Use this instead. (Shea Martin)
677#CFLAGS = -x02 -xtarget=ultra
678
679### (R) for Solaris 2.5 (or 2.5.1) with gcc > 2.5.6 you might need this:
680#LDFLAGS = -lw -ldl -lXmu
681#GUI_LIB_LOC = -L/usr/local/lib
682
683### (8) Unisys 6035 (Glauber Ribeiro)
684#EXTRA_LIBS = -lnsl -lsocket -lgen
685
686### When builtin functions cause problems with gcc (for Sun 4.1.x)
687#CFLAGS = -O2 -Wall -traditional -Wno-implicit
688
689### Apollo DOMAIN (with SYSTYPE = bsd4.3) (TESTED for version 3.0)
690#EXTRA_DEFS = -DDOMAIN
691#CFLAGS= -O -A systype,bsd4.3
692
693### Coherent 4.2.10 on Intel 386 platform
694#EXTRA_DEFS = -Dvoid=int
695#EXTRA_LIBS = -lterm -lsocket
696
697### SCO 3.2, with different library name for terminfo
698#EXTRA_LIBS = -ltinfo
699
700### UTS2 for Amdahl UTS 2.1.x
701#EXTRA_DEFS = -DUTS2
702#EXTRA_LIBS = -lsocket
703
704### UTS4 for Amdahl UTS 4.x
705#EXTRA_DEFS = -DUTS4 -Xa
706
707### USL for Unix Systems Laboratories (SYSV 4.2)
708#EXTRA_DEFS = -DUSL
709
710### RISCos on MIPS without X11
711#EXTRA_DEFS = -DMIPS
712
713### RISCos on MIPS with X11
714#EXTRA_LIBS = -lsun
715
716### (6) A/UX 3.1.1 with gcc (Jim Jagielski)
717#CC= gcc -D_POSIX_SOURCE
718#CFLAGS= -O2
719#EXTRA_LIBS = -lposix -lbsd -ltermcap -lX11
720
721### (A) Some versions of SCO Open Server 5 (Jan Christiaan van Winkel)
722### Also use the CONF_TERM_LIB below!
723#EXTRA_LIBS = -lgen
724
725### (D) QNX (by G.F. Desrochers)
726#CFLAGS = -g -O -mf -4
727
728### (F) QNX (by John Oleynick)
729# 1. If you don't have an X server: Comment out CONF_OPT_GUI and uncomment
730# CONF_OPT_X = --without-x.
731# 2. make config
732# 3. edit auto/config.mk and remove -ldir and -ltermcap from LIBS. It doesn't
733# have -ldir (does config find it somewhere?) and -ltermcap has at
734# least one problem so I use termlib.o instead. The problem with
735# termcap is that it segfaults if you call it with the name of
736# a non-existent terminal type.
737# 4. edit auto/config.h and add #define USE_TMPNAM
738# 5. add termlib.o to OBJ
739# 6. make
740
741### (H) for Data general DG/UX 5.4.2 and 5.4R3.10 (Jonas J. Schlein)
742#EXTRA_LIBS = -lgen
743
744### (I) SINIX-N 5.42 or 5.43 RM400 R4000 (also SINIX-Y and SINIX-Z)
745#EXTRA_LIBS = -lgen -lnsl
746### For SINIX-Y this is needed for the right prototype of gettimeofday()
747#EXTRA_DEFS = -D_XPG_IV
748
749### (I) Reliant-Unix (aka SINIX) 5.44 with standard cc
750# Use both "-F O3" lines for optimization or the "-g" line for debugging
751#EXTRA_LIBS = -lgen -lsocket -lnsl -lSM -lICE
752#CFLAGS = -F O3 -DSINIXN
753#LDFLAGS = -F O3
754#CFLAGS = -g -DSINIXN
755
756### (P) SCO 3.2.42, with different termcap names for some useful keys DJB
757#EXTRA_DEFS = -DSCOKEYS -DNETTERM_MOUSE -DDEC_MOUSE -DXTERM_MOUSE -DHAVE_GETTIMEOFDAY
758#EXTRA_LIBS = -lsocket -ltermcap -lmalloc -lc_s
759
760### (P) SuperUX 6.2 on NEC SX-4 (Lennart Schultz)
761#GUI_INC_LOC = -I/usr/include
762#GUI_LIB_LOC = -L/usr/lib
763#EXTRA_LIBS = -lgen
764
765### (Q) UNIXSVR 4.2MP on NEC UP4800 (Lennart Schultz)
766#GUI_INC_LOC = -I/usr/necccs/include
767#GUI_LIB_LOC = -L/usr/necccs/lib/X11R6
768#XROOT = /usr/necccs
769#CONF_OPT_X = --x-include=$(XROOT)/include --x-libraries=$(XROOT)/lib/X11R6
770#EXTRA_LIBS = -lsocket -lgen
771
772### Irix 4.0 & 5.2 (Silicon Graphics Machines, __sgi will be defined)
773# Not needed for Irix 5.3, Ives Aerts reported
774#EXTRA_LIBS = -lmalloc -lc_s
775# Irix 4.0, when regexp and regcmp cannot be found when linking:
776#EXTRA_LIBS = -lmalloc -lc_s -lPW
777
778### (S) Irix 6.x (MipsPro compiler): Uses different Olimit flag:
779# Note: This newer option style is used with the MipsPro compilers ONLY if
780# you are compiling an "n32" or "64" ABI binary (use either a -n32
781# flag or a -64 flag for CFLAGS). If you explicitly use a -o32 flag,
782# then the CFLAGS option format will be the typical style (i.e.
783# -Olimit 3000).
784#CFLAGS = -OPT:Olimit=3000 -O
785
786### (S) Irix 6.5 with MipsPro C compiler. Try this as a test to see new
787# compiler features! Beware, the optimization is EXTREMELY thorough
788# and takes quite a long time.
789# Note: See the note above. Here, the -mips3 option automatically
790# enables either the "n32" or "64" ABI, depending on what machine you
791# are compiling on (n32 is explicitly enabled here, just to make sure).
792#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
793#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
794
795### (K) for SGI Irix machines with 64 bit pointers ("uname -s" says IRIX64)
796### Suggested by Jon Wright <jon@gate.sinica.edu.tw>.
797### Tested on R8000 IRIX6.1 Power Indigo2.
798### Check /etc/compiler.defaults for your compiler settings.
799# either (for 64 bit pointers) uncomment the following line
800#GUI_LIB_LOC = -L/usr/lib64
801# then
802# 1) make config
803# 2) edit auto/config.mk and delete the -lelf entry in the LIBS line
804# 3) make
805#
806# or (for 32bit pointers) uncomment the following line
807#EXTRA_DEFS = -n32
808#GUI_LIB_LOC = -L/usr/lib32
809# then
810# 1) make config
811# 2) edit auto/config.mk, add -n32 to LDFLAGS
812# 3) make
Bram Moolenaarc4ea3f42008-06-04 13:28:18 +0000813#
814#Alternatively: use -o32 instead of -n32.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000815###
816
817### (C) On SCO Unix v3.2.5 (and probably other versions) the termcap library,
818### which is found by configure, doesn't work correctly. Symptom is the
819### error message "Termcap entry too long". Uncomment the next line.
820### On AIX 4.2.1 (and other versions probably), libtermcap is reported
821### not to display properly.
822### after changing this, you need to do "make reconfig".
823#CONF_TERM_LIB = --with-tlib=curses
824
825### (E) If you want to use termlib library instead of the automatically found
826### one. After changing this, you need to do "make reconfig".
827#CONF_TERM_LIB = --with-tlib=termlib
828
829### (a) ESIX V4.2 (Reinhard Wobst)
830#EXTRA_LIBS = -lnsl -lsocket -lgen -lXIM -lXmu -lXext
831
Bram Moolenaar311d9822007-02-27 15:48:28 +0000832### (c) Tandem/NSK (Matthew Woehlke)
833#EXTRA_LIBS = -lfloss
834
Bram Moolenaare1d12892004-06-13 13:02:36 +0000835### If you want to use ncurses library instead of the automatically found one
836### after changing this, you need to do "make reconfig".
837#CONF_TERM_LIB = --with-tlib=ncurses
838
839### For GCC on MSDOS, the ".exe" suffix will be added.
840#EXEEXT = .exe
841#LNKEXT = .exe
842
843### (O) For LynxOS 2.5.0, tested on PC.
844#EXTRA_LIBS = -lXext -lSM -lICE -lbsd
845### For LynxOS 3.0.1, tested on PPC
846#EXTRA_LIBS= -lXext -lSM -lICE -lnetinet -lXmu -liberty -lX11
847### For LynxOS 3.1.0, tested on PC
848#EXTRA_LIBS= -lXext -lSM -lICE -lnetinet -lXmu
849
850
851### (V) For CX/UX 6.2 (on Harris/Concurrent NightHawk 4800, 5800). Remove
852### -Qtarget if only in a 5800 environment. (Kipp E. Howard)
853#CFLAGS = -O -Qtarget=m88110compat
854#EXTRA_LIBS = -lgen
855
856##################### end of system specific lines ################### }}}
857
858### Names of the programs and targets {{{1
859VIMTARGET = $(VIMNAME)$(EXEEXT)
860EXTARGET = $(EXNAME)$(LNKEXT)
861VIEWTARGET = $(VIEWNAME)$(LNKEXT)
862GVIMNAME = g$(VIMNAME)
863GVIMTARGET = $(GVIMNAME)$(LNKEXT)
864GVIEWNAME = g$(VIEWNAME)
865GVIEWTARGET = $(GVIEWNAME)$(LNKEXT)
866RVIMNAME = r$(VIMNAME)
867RVIMTARGET = $(RVIMNAME)$(LNKEXT)
868RVIEWNAME = r$(VIEWNAME)
869RVIEWTARGET = $(RVIEWNAME)$(LNKEXT)
870RGVIMNAME = r$(GVIMNAME)
871RGVIMTARGET = $(RGVIMNAME)$(LNKEXT)
872RGVIEWNAME = r$(GVIEWNAME)
873RGVIEWTARGET = $(RGVIEWNAME)$(LNKEXT)
874VIMDIFFNAME = $(VIMNAME)diff
875GVIMDIFFNAME = g$(VIMDIFFNAME)
876VIMDIFFTARGET = $(VIMDIFFNAME)$(LNKEXT)
877GVIMDIFFTARGET = $(GVIMDIFFNAME)$(LNKEXT)
878EVIMNAME = e$(VIMNAME)
879EVIMTARGET = $(EVIMNAME)$(LNKEXT)
880EVIEWNAME = e$(VIEWNAME)
881EVIEWTARGET = $(EVIEWNAME)$(LNKEXT)
882
883### Names of the tools that are also made {{{1
884TOOLS = xxd/xxd$(EXEEXT)
885
886### Installation directories. The defaults come from configure. {{{1
887#
888### prefix the top directory for the data (default "/usr/local")
889#
890# Uncomment the next line to install Vim in your home directory.
891#prefix = $(HOME)
892
893### exec_prefix is the top directory for the executable (default $(prefix))
894#
895# Uncomment the next line to install the Vim executable in "/usr/machine/bin"
896#exec_prefix = /usr/machine
897
898### BINDIR dir for the executable (default "$(exec_prefix)/bin")
899### MANDIR dir for the manual pages (default "$(prefix)/man")
900### DATADIR dir for the other files (default "$(prefix)/lib" or
901# "$(prefix)/share")
902# They may be different when using different architectures for the
903# executable and a common directory for the other files.
904#
905# Uncomment the next line to install Vim in "/usr/bin"
906#BINDIR = /usr/bin
907# Uncomment the next line to install Vim manuals in "/usr/share/man/man1"
908#MANDIR = /usr/share/man
909# Uncomment the next line to install Vim help files in "/usr/share/vim"
910#DATADIR = /usr/share
911
912### DESTDIR root of the installation tree. This is prepended to the other
913# directories. This directory must exist.
914#DESTDIR = ~/pkg/vim
915
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000916### Directory of the man pages
917MAN1DIR = /man1
Bram Moolenaare1d12892004-06-13 13:02:36 +0000918
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000919### Vim version (adjusted by a script)
920VIMMAJOR = 7
Bram Moolenaarfff2bee2010-05-15 13:56:02 +0200921VIMMINOR = 3a
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000922
Bram Moolenaare1d12892004-06-13 13:02:36 +0000923### Location of Vim files (should not need to be changed, and {{{1
924### some things might not work when they are changed!)
925VIMDIR = /vim
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000926VIMRTDIR = /vim$(VIMMAJOR)$(VIMMINOR)
Bram Moolenaare1d12892004-06-13 13:02:36 +0000927HELPSUBDIR = /doc
928COLSUBDIR = /colors
929SYNSUBDIR = /syntax
930INDSUBDIR = /indent
Bram Moolenaar87e25fd2005-07-27 21:13:01 +0000931AUTOSUBDIR = /autoload
Bram Moolenaare1d12892004-06-13 13:02:36 +0000932PLUGSUBDIR = /plugin
933FTPLUGSUBDIR = /ftplugin
934LANGSUBDIR = /lang
935COMPSUBDIR = /compiler
936KMAPSUBDIR = /keymap
937MACROSUBDIR = /macros
938TOOLSSUBDIR = /tools
939TUTORSUBDIR = /tutor
Bram Moolenaar217ad922005-03-20 22:37:15 +0000940SPELLSUBDIR = /spell
Bram Moolenaare1d12892004-06-13 13:02:36 +0000941PRINTSUBDIR = /print
942PODIR = po
943
944### VIMLOC common root of the Vim files (all versions)
945### VIMRTLOC common root of the runtime Vim files (this version)
946### VIMRCLOC compiled-in location for global [g]vimrc files (all versions)
947### VIMRUNTIMEDIR compiled-in location for runtime files (optional)
948### HELPSUBLOC location for help files
949### COLSUBLOC location for colorscheme files
950### SYNSUBLOC location for syntax files
951### INDSUBLOC location for indent files
Bram Moolenaar87e25fd2005-07-27 21:13:01 +0000952### AUTOSUBLOC location for standard autoload files
Bram Moolenaare1d12892004-06-13 13:02:36 +0000953### PLUGSUBLOC location for standard plugin files
954### FTPLUGSUBLOC location for ftplugin files
955### LANGSUBLOC location for language files
956### COMPSUBLOC location for compiler files
957### KMAPSUBLOC location for keymap files
958### MACROSUBLOC location for macro files
959### TOOLSSUBLOC location for tools files
960### TUTORSUBLOC location for tutor files
Bram Moolenaar217ad922005-03-20 22:37:15 +0000961### SPELLSUBLOC location for spell files
Bram Moolenaare1d12892004-06-13 13:02:36 +0000962### PRINTSUBLOC location for PostScript files (prolog, latin1, ..)
963### SCRIPTLOC location for script files (menu.vim, bugreport.vim, ..)
964### You can override these if you want to install them somewhere else.
965### Edit feature.h for compile-time settings.
966VIMLOC = $(DATADIR)$(VIMDIR)
967VIMRTLOC = $(DATADIR)$(VIMDIR)$(VIMRTDIR)
968VIMRCLOC = $(VIMLOC)
969HELPSUBLOC = $(VIMRTLOC)$(HELPSUBDIR)
970COLSUBLOC = $(VIMRTLOC)$(COLSUBDIR)
971SYNSUBLOC = $(VIMRTLOC)$(SYNSUBDIR)
972INDSUBLOC = $(VIMRTLOC)$(INDSUBDIR)
Bram Moolenaar87e25fd2005-07-27 21:13:01 +0000973AUTOSUBLOC = $(VIMRTLOC)$(AUTOSUBDIR)
Bram Moolenaare1d12892004-06-13 13:02:36 +0000974PLUGSUBLOC = $(VIMRTLOC)$(PLUGSUBDIR)
975FTPLUGSUBLOC = $(VIMRTLOC)$(FTPLUGSUBDIR)
976LANGSUBLOC = $(VIMRTLOC)$(LANGSUBDIR)
977COMPSUBLOC = $(VIMRTLOC)$(COMPSUBDIR)
978KMAPSUBLOC = $(VIMRTLOC)$(KMAPSUBDIR)
979MACROSUBLOC = $(VIMRTLOC)$(MACROSUBDIR)
980TOOLSSUBLOC = $(VIMRTLOC)$(TOOLSSUBDIR)
981TUTORSUBLOC = $(VIMRTLOC)$(TUTORSUBDIR)
Bram Moolenaar217ad922005-03-20 22:37:15 +0000982SPELLSUBLOC = $(VIMRTLOC)$(SPELLSUBDIR)
Bram Moolenaare1d12892004-06-13 13:02:36 +0000983PRINTSUBLOC = $(VIMRTLOC)$(PRINTSUBDIR)
984SCRIPTLOC = $(VIMRTLOC)
985
986### Only set VIMRUNTIMEDIR when VIMRTLOC is set to a different location and
987### the runtime directory is not below it.
988#VIMRUNTIMEDIR = $(VIMRTLOC)
989
990### Name of the evim file target.
991EVIM_FILE = $(DESTDIR)$(SCRIPTLOC)/evim.vim
992MSWIN_FILE = $(DESTDIR)$(SCRIPTLOC)/mswin.vim
993
994### Name of the menu file target.
995SYS_MENU_FILE = $(DESTDIR)$(SCRIPTLOC)/menu.vim
996SYS_SYNMENU_FILE = $(DESTDIR)$(SCRIPTLOC)/synmenu.vim
997SYS_DELMENU_FILE = $(DESTDIR)$(SCRIPTLOC)/delmenu.vim
998
999### Name of the bugreport file target.
1000SYS_BUGR_FILE = $(DESTDIR)$(SCRIPTLOC)/bugreport.vim
1001
1002### Name of the file type detection file target.
1003SYS_FILETYPE_FILE = $(DESTDIR)$(SCRIPTLOC)/filetype.vim
1004
1005### Name of the file type detection file target.
1006SYS_FTOFF_FILE = $(DESTDIR)$(SCRIPTLOC)/ftoff.vim
1007
1008### Name of the file type detection script file target.
1009SYS_SCRIPTS_FILE = $(DESTDIR)$(SCRIPTLOC)/scripts.vim
1010
1011### Name of the ftplugin-on file target.
1012SYS_FTPLUGIN_FILE = $(DESTDIR)$(SCRIPTLOC)/ftplugin.vim
1013
1014### Name of the ftplugin-off file target.
1015SYS_FTPLUGOF_FILE = $(DESTDIR)$(SCRIPTLOC)/ftplugof.vim
1016
1017### Name of the indent-on file target.
1018SYS_INDENT_FILE = $(DESTDIR)$(SCRIPTLOC)/indent.vim
1019
1020### Name of the indent-off file target.
1021SYS_INDOFF_FILE = $(DESTDIR)$(SCRIPTLOC)/indoff.vim
1022
1023### Name of the option window script file target.
1024SYS_OPTWIN_FILE = $(DESTDIR)$(SCRIPTLOC)/optwin.vim
1025
1026# Program to install the program in the target directory. Could also be "mv".
1027INSTALL_PROG = cp
1028
1029# Program to install the data in the target directory. Cannot be "mv"!
1030INSTALL_DATA = cp
1031INSTALL_DATA_R = cp -r
1032
1033### Program to run on installed binary
1034#STRIP = strip
1035
1036### Permissions for binaries {{{1
1037BINMOD = 755
1038
1039### Permissions for man page
1040MANMOD = 644
1041
1042### Permissions for help files
1043HELPMOD = 644
1044
1045### Permissions for Perl and shell scripts
1046SCRIPTMOD = 755
1047
1048### Permission for Vim script files (menu.vim, bugreport.vim, ..)
1049VIMSCRIPTMOD = 644
1050
1051### Permissions for all directories that are created
1052DIRMOD = 755
1053
1054### Permissions for all other files that are created
1055FILEMOD = 644
1056
1057# Where to copy the man and help files from
1058HELPSOURCE = ../runtime/doc
1059
1060# Where to copy the script files from (menu, bugreport)
1061SCRIPTSOURCE = ../runtime
1062
1063# Where to copy the colorscheme files from
1064COLSOURCE = ../runtime/colors
1065
1066# Where to copy the syntax files from
1067SYNSOURCE = ../runtime/syntax
1068
1069# Where to copy the indent files from
1070INDSOURCE = ../runtime/indent
1071
1072# Where to copy the standard plugin files from
Bram Moolenaar87e25fd2005-07-27 21:13:01 +00001073AUTOSOURCE = ../runtime/autoload
1074
1075# Where to copy the standard plugin files from
Bram Moolenaare1d12892004-06-13 13:02:36 +00001076PLUGSOURCE = ../runtime/plugin
1077
1078# Where to copy the ftplugin files from
1079FTPLUGSOURCE = ../runtime/ftplugin
1080
1081# Where to copy the macro files from
1082MACROSOURCE = ../runtime/macros
1083
1084# Where to copy the tools files from
1085TOOLSSOURCE = ../runtime/tools
1086
1087# Where to copy the tutor files from
1088TUTORSOURCE = ../runtime/tutor
1089
Bram Moolenaar217ad922005-03-20 22:37:15 +00001090# Where to copy the spell files from
1091SPELLSOURCE = ../runtime/spell
1092
Bram Moolenaare1d12892004-06-13 13:02:36 +00001093# Where to look for language specific files
1094LANGSOURCE = ../runtime/lang
1095
1096# Where to look for compiler files
1097COMPSOURCE = ../runtime/compiler
1098
1099# Where to look for keymap files
1100KMAPSOURCE = ../runtime/keymap
1101
1102# Where to look for print resource files
1103PRINTSOURCE = ../runtime/print
1104
1105# If you are using Linux, you might want to use this to make vim the
1106# default vi editor, it will create a link from vi to Vim when doing
1107# "make install". An existing file will be overwritten!
1108# When not using it, some make programs can't handle an undefined $(LINKIT).
Bram Moolenaarc4ea3f42008-06-04 13:28:18 +00001109#LINKIT = ln -f -s $(DEST_BIN)/$(VIMTARGET) $(DESTDIR)/usr/bin/vi
Bram Moolenaare1d12892004-06-13 13:02:36 +00001110LINKIT = @echo >/dev/null
1111
1112###
1113### GRAPHICAL USER INTERFACE (GUI). {{{1
1114### 'configure --enable-gui' can enable one of these for you if you did set
1115### a corresponding CONF_OPT_GUI above and have X11.
1116### Override configures choice by uncommenting all the following lines.
1117### As they are, the GUI is disabled. Replace "NONE" with "ATHENA" or "MOTIF"
1118### for enabling the Athena or Motif GUI.
1119#GUI_SRC = $(NONE_SRC)
1120#GUI_OBJ = $(NONE_OBJ)
1121#GUI_DEFS = $(NONE_DEFS)
1122#GUI_IPATH = $(NONE_IPATH)
1123#GUI_LIBS_DIR = $(NONE_LIBS_DIR)
1124#GUI_LIBS1 = $(NONE_LIBS1)
1125#GUI_LIBS2 = $(NONE_LIBS2)
1126#GUI_INSTALL = $(NONE_INSTALL)
1127#GUI_TARGETS = $(NONE_TARGETS)
1128#GUI_MAN_TARGETS= $(NONE_MAN_TARGETS)
1129#GUI_TESTTARGET = $(NONE_TESTTARGET)
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001130#GUI_BUNDLE = $(NONE_BUNDLE)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001131
1132# Without a GUI install the normal way.
1133NONE_INSTALL = install_normal
1134
1135### GTK GUI
1136GTK_SRC = gui.c gui_gtk.c gui_gtk_x11.c pty.c gui_gtk_f.c \
1137 gui_beval.c
1138GTK_OBJ = objects/gui.o objects/gui_gtk.o objects/gui_gtk_x11.o \
1139 objects/pty.o objects/gui_gtk_f.o \
1140 objects/gui_beval.o
1141GTK_DEFS = -DFEAT_GUI_GTK $(NARROW_PROTO)
1142GTK_IPATH = $(GUI_INC_LOC)
1143GTK_LIBS_DIR = $(GUI_LIB_LOC)
1144GTK_LIBS1 =
1145GTK_LIBS2 = $(GTK_LIBNAME)
Bram Moolenaarb64bb6e2008-06-20 19:29:35 +00001146GTK_INSTALL = install_normal install_gui_extra
Bram Moolenaare1d12892004-06-13 13:02:36 +00001147GTK_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001148GTK_MAN_TARGETS = yes
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001149GTK_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001150GTK_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001151
1152### Motif GUI
Bram Moolenaardfccaf02004-12-31 20:56:11 +00001153MOTIF_SRC = gui.c gui_motif.c gui_x11.c pty.c gui_beval.c \
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00001154 gui_xmdlg.c gui_xmebw.c
Bram Moolenaare1d12892004-06-13 13:02:36 +00001155MOTIF_OBJ = objects/gui.o objects/gui_motif.o objects/gui_x11.o \
Bram Moolenaardfccaf02004-12-31 20:56:11 +00001156 objects/pty.o objects/gui_beval.o \
Bram Moolenaarb7fcef52005-01-02 11:31:05 +00001157 objects/gui_xmdlg.o objects/gui_xmebw.o
Bram Moolenaare1d12892004-06-13 13:02:36 +00001158MOTIF_DEFS = -DFEAT_GUI_MOTIF $(NARROW_PROTO)
1159MOTIF_IPATH = $(GUI_INC_LOC)
1160MOTIF_LIBS_DIR = $(GUI_LIB_LOC)
1161MOTIF_LIBS1 =
1162MOTIF_LIBS2 = $(MOTIF_LIBNAME) -lXt
Bram Moolenaarb64bb6e2008-06-20 19:29:35 +00001163MOTIF_INSTALL = install_normal install_gui_extra
Bram Moolenaare1d12892004-06-13 13:02:36 +00001164MOTIF_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001165MOTIF_MAN_TARGETS = yes
Bram Moolenaare1d12892004-06-13 13:02:36 +00001166MOTIF_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001167MOTIF_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001168
1169### Athena GUI
1170### Use Xaw3d to make the menus look a little bit nicer
1171#XAW_LIB = -lXaw3d
1172XAW_LIB = -lXaw
1173
1174### When using Xaw3d, uncomment/comment the following lines to also get the
1175### scrollbars from Xaw3d.
1176#ATHENA_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c gui_at_fs.c
1177#ATHENA_OBJ = objects/gui.o objects/gui_athena.o objects/gui_x11.o \
1178# objects/pty.o objects/gui_beval.o objects/gui_at_fs.o
1179#ATHENA_DEFS = -DFEAT_GUI_ATHENA $(NARROW_PROTO) \
1180# -Dvim_scrollbarWidgetClass=scrollbarWidgetClass \
1181# -Dvim_XawScrollbarSetThumb=XawScrollbarSetThumb
1182ATHENA_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c \
1183 gui_at_sb.c gui_at_fs.c
1184ATHENA_OBJ = objects/gui.o objects/gui_athena.o objects/gui_x11.o \
1185 objects/pty.o objects/gui_beval.o \
1186 objects/gui_at_sb.o objects/gui_at_fs.o
1187ATHENA_DEFS = -DFEAT_GUI_ATHENA $(NARROW_PROTO)
1188
1189ATHENA_IPATH = $(GUI_INC_LOC)
1190ATHENA_LIBS_DIR = $(GUI_LIB_LOC)
1191ATHENA_LIBS1 = $(XAW_LIB)
1192ATHENA_LIBS2 = -lXt
Bram Moolenaarb64bb6e2008-06-20 19:29:35 +00001193ATHENA_INSTALL = install_normal install_gui_extra
Bram Moolenaare1d12892004-06-13 13:02:36 +00001194ATHENA_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001195ATHENA_MAN_TARGETS = yes
Bram Moolenaare1d12892004-06-13 13:02:36 +00001196ATHENA_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001197ATHENA_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001198
1199### neXtaw GUI
1200NEXTAW_LIB = -lneXtaw
1201
1202NEXTAW_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c gui_at_fs.c
1203NEXTAW_OBJ = objects/gui.o objects/gui_athena.o objects/gui_x11.o \
1204 objects/pty.o objects/gui_beval.o objects/gui_at_fs.o
1205NEXTAW_DEFS = -DFEAT_GUI_ATHENA -DFEAT_GUI_NEXTAW $(NARROW_PROTO)
1206
1207NEXTAW_IPATH = $(GUI_INC_LOC)
1208NEXTAW_LIBS_DIR = $(GUI_LIB_LOC)
1209NEXTAW_LIBS1 = $(NEXTAW_LIB)
1210NEXTAW_LIBS2 = -lXt
Bram Moolenaarb64bb6e2008-06-20 19:29:35 +00001211NEXTAW_INSTALL = install_normal install_gui_extra
Bram Moolenaare1d12892004-06-13 13:02:36 +00001212NEXTAW_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001213NEXTAW_MAN_TARGETS = yes
Bram Moolenaare1d12892004-06-13 13:02:36 +00001214NEXTAW_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001215NEXTAW_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001216
1217### (J) Sun OpenWindows 3.2 (SunOS 4.1.x) or earlier that produce these ld
1218# errors: ld: Undefined symbol
1219# _get_wmShellWidgetClass
1220# _get_applicationShellWidgetClass
1221# then you need to get patches 100512-02 and 100573-03 from Sun. In the
1222# meantime, uncomment the following GUI_X_LIBS definition as a workaround:
1223#GUI_X_LIBS = -Bstatic -lXmu -Bdynamic -lXext
1224# If you also get cos, sin etc. as undefined symbols, try uncommenting this
1225# too:
1226#EXTRA_LIBS = /usr/openwin/lib/libXmu.sa -lm
1227
Bram Moolenaare1d12892004-06-13 13:02:36 +00001228# PHOTON GUI
1229PHOTONGUI_SRC = gui.c gui_photon.c pty.c
1230PHOTONGUI_OBJ = objects/gui.o objects/gui_photon.o objects/pty.o
1231PHOTONGUI_DEFS = -DFEAT_GUI_PHOTON
1232PHOTONGUI_IPATH =
1233PHOTONGUI_LIBS_DIR =
1234PHOTONGUI_LIBS1 = -lph -lphexlib
1235PHOTONGUI_LIBS2 =
Bram Moolenaarb64bb6e2008-06-20 19:29:35 +00001236PHOTONGUI_INSTALL = install_normal install_gui_extra
Bram Moolenaare1d12892004-06-13 13:02:36 +00001237PHOTONGUI_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001238PHOTONGUI_MAN_TARGETS = yes
Bram Moolenaare1d12892004-06-13 13:02:36 +00001239PHOTONGUI_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001240PHOTONGUI_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001241
1242# CARBON GUI
1243CARBONGUI_SRC = gui.c gui_mac.c
1244CARBONGUI_OBJ = objects/gui.o objects/gui_mac.o objects/pty.o
Bram Moolenaara23ccb82006-02-27 00:08:02 +00001245CARBONGUI_DEFS = -DFEAT_GUI_MAC -fno-common -fpascal-strings \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001246 -Wall -Wno-unknown-pragmas \
1247 -mdynamic-no-pic -pipe
1248CARBONGUI_IPATH = -I. -Iproto
Bram Moolenaara23ccb82006-02-27 00:08:02 +00001249CARBONGUI_LIBS_DIR =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001250CARBONGUI_LIBS1 = -framework Carbon
1251CARBONGUI_LIBS2 =
Bram Moolenaar3577c6f2008-06-24 21:16:56 +00001252CARBONGUI_INSTALL = install_macosx
Bram Moolenaare1d12892004-06-13 13:02:36 +00001253CARBONGUI_TARGETS =
1254CARBONGUI_MAN_TARGETS =
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00001255CARBONGUI_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001256CARBONGUI_BUNDLE = gui_bundle
1257APPDIR = $(VIMNAME).app
1258CARBONGUI_TESTARG = VIMPROG=../$(APPDIR)/Contents/MacOS/$(VIMTARGET)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001259
1260# All GUI files
Bram Moolenaar9372a112005-12-06 19:59:18 +00001261ALL_GUI_SRC = gui.c gui_gtk.c gui_gtk_f.c gui_motif.c gui_xmdlg.c gui_xmebw.c gui_athena.c gui_gtk_x11.c gui_x11.c gui_at_sb.c gui_at_fs.c pty.c
Bram Moolenaar323850c2005-01-04 21:24:54 +00001262ALL_GUI_PRO = gui.pro gui_gtk.pro gui_motif.pro gui_xmdlg.pro gui_athena.pro gui_gtk_x11.pro gui_x11.pro gui_w16.pro gui_w32.pro gui_photon.pro
Bram Moolenaare1d12892004-06-13 13:02:36 +00001263
1264# }}}
1265
1266### Command to create dependencies based on #include "..."
1267### prototype headers are ignored due to -DPROTO, system
1268### headers #include <...> are ignored if we use the -MM option, as
1269### e.g. provided by gcc-cpp.
1270### Include FEAT_GUI to get gependency on gui.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00001271### Need to change "-I /<path>" to "-isystem /<path>" for GCC 3.x.
1272CPP_DEPEND = $(CC) -I$(srcdir) -M$(CPP_MM) \
1273 `echo "$(DEPEND_CFLAGS)" $(DEPEND_CFLAGS_FILTER)`
Bram Moolenaare1d12892004-06-13 13:02:36 +00001274
1275# flags for cproto
1276# This is for cproto 3 patchlevel 8 or below
1277# __inline, __attribute__ and __extension__ are not recognized by cproto
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00001278# G_IMPLEMENT_INLINES is to avoid functions defined in glib/gutils.h.
Bram Moolenaar0ab2a882009-05-13 10:51:08 +00001279#NO_ATTR = -D__inline= -D__inline__= -DG_IMPLEMENT_INLINES \
1280# -D"__attribute__\\(x\\)=" -D"__asm__\\(x\\)=" \
1281# -D__extension__= -D__restrict="" \
1282# -D__gnuc_va_list=char -D__builtin_va_list=char
Bram Moolenaare1d12892004-06-13 13:02:36 +00001283
1284#
Bram Moolenaar0ab2a882009-05-13 10:51:08 +00001285# This is for cproto 3 patchlevel 9 or above (currently 4.6, 4.7g)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001286# __inline and __attribute__ are now recognized by cproto
1287# -D"foo()=" is not supported by all compilers so do not use it
Bram Moolenaar0ab2a882009-05-13 10:51:08 +00001288NO_ATTR=
Bram Moolenaare1d12892004-06-13 13:02:36 +00001289#
Bram Moolenaare1d12892004-06-13 13:02:36 +00001290# Use this for cproto 3 patchlevel 6 or below (use "cproto -V" to check):
1291# PROTO_FLAGS = -f4 -m__ARGS -d -E"$(CPP)" $(NO_ATTR)
1292#
1293# Use this for cproto 3 patchlevel 7 or above (use "cproto -V" to check):
1294PROTO_FLAGS = -m -M__ARGS -d -E"$(CPP)" $(NO_ATTR)
1295
1296
1297################################################
1298## no changes required below this line ##
1299################################################
1300
1301SHELL = /bin/sh
1302
1303.SUFFIXES:
Bram Moolenaar9372a112005-12-06 19:59:18 +00001304.SUFFIXES: .c .o .pro
Bram Moolenaare1d12892004-06-13 13:02:36 +00001305
1306PRE_DEFS = -Iproto $(DEFS) $(GUI_DEFS) $(GUI_IPATH) $(CPPFLAGS) $(EXTRA_IPATHS)
Bram Moolenaar0ba04292010-07-14 23:23:17 +02001307POST_DEFS = $(X_CFLAGS) $(LUA_CFLAGS) $(MZSCHEME_CFLAGS) $(PERL_CFLAGS) $(ECL_CFLAGS) $(PYTHON_CFLAGS) $(TCL_CFLAGS) $(RUBY_CFLAGS) $(EXTRA_DEFS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001308
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001309ALL_CFLAGS = $(PRE_DEFS) $(CFLAGS) $(PROFILE_CFLAGS) $(POST_DEFS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001310
Bram Moolenaare224ffa2006-03-01 00:01:28 +00001311# Exclude $CFLAGS for osdef.sh, for Mac 10.4 some flags don't work together
1312# with "-E".
1313OSDEF_CFLAGS = $(PRE_DEFS) $(POST_DEFS)
1314
Bram Moolenaar051b7822005-05-19 21:00:46 +00001315LINT_CFLAGS = -DLINT -I. $(PRE_DEFS) $(POST_DEFS) -Dinline= -D__extension__= -Dalloca=alloca
1316
1317LINT_EXTRA = -DUSE_SNIFF -DHANGUL_INPUT -D"__attribute__(x)="
Bram Moolenaare1d12892004-06-13 13:02:36 +00001318
1319DEPEND_CFLAGS = -DPROTO -DDEPEND -DFEAT_GUI $(LINT_CFLAGS)
1320
Bram Moolenaare1d12892004-06-13 13:02:36 +00001321ALL_LIB_DIRS = $(GUI_LIBS_DIR) $(X_LIBS_DIR)
Bram Moolenaar0ba04292010-07-14 23:23:17 +02001322ALL_LIBS = $(GUI_LIBS1) $(GUI_X_LIBS) $(GUI_LIBS2) $(X_PRE_LIBS) $(X_LIBS) $(X_EXTRA_LIBS) $(LIBS) $(EXTRA_LIBS) $(LUA_LIBS) $(MZSCHEME_LIBS) $(PERL_LIBS) $(PYTHON_LIBS) $(TCL_LIBS) $(RUBY_LIBS) $(PROFILE_LIBS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001323
1324# abbreviations
1325DEST_BIN = $(DESTDIR)$(BINDIR)
1326DEST_VIM = $(DESTDIR)$(VIMLOC)
1327DEST_RT = $(DESTDIR)$(VIMRTLOC)
1328DEST_HELP = $(DESTDIR)$(HELPSUBLOC)
1329DEST_COL = $(DESTDIR)$(COLSUBLOC)
1330DEST_SYN = $(DESTDIR)$(SYNSUBLOC)
1331DEST_IND = $(DESTDIR)$(INDSUBLOC)
Bram Moolenaar87e25fd2005-07-27 21:13:01 +00001332DEST_AUTO = $(DESTDIR)$(AUTOSUBLOC)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001333DEST_PLUG = $(DESTDIR)$(PLUGSUBLOC)
1334DEST_FTP = $(DESTDIR)$(FTPLUGSUBLOC)
1335DEST_LANG = $(DESTDIR)$(LANGSUBLOC)
1336DEST_COMP = $(DESTDIR)$(COMPSUBLOC)
1337DEST_KMAP = $(DESTDIR)$(KMAPSUBLOC)
1338DEST_MACRO = $(DESTDIR)$(MACROSUBLOC)
1339DEST_TOOLS = $(DESTDIR)$(TOOLSSUBLOC)
1340DEST_TUTOR = $(DESTDIR)$(TUTORSUBLOC)
Bram Moolenaar217ad922005-03-20 22:37:15 +00001341DEST_SPELL = $(DESTDIR)$(SPELLSUBLOC)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001342DEST_SCRIPT = $(DESTDIR)$(SCRIPTLOC)
1343DEST_PRINT = $(DESTDIR)$(PRINTSUBLOC)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001344DEST_MAN_TOP = $(DESTDIR)$(MANDIR)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001345
1346# We assume that the ".../man/xx/man1/" directory is for latin1 manual pages.
1347# Some systems use UTF-8, but these should find the ".../man/xx.UTF-8/man1/"
1348# directory first.
Bram Moolenaar217ad922005-03-20 22:37:15 +00001349# FreeBSD uses ".../man/xx.ISO8859-1/man1" for latin1, use that one too.
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001350DEST_MAN = $(DEST_MAN_TOP)$(MAN1DIR)
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00001351DEST_MAN_FR = $(DEST_MAN_TOP)/fr$(MAN1DIR)
1352DEST_MAN_FR_I = $(DEST_MAN_TOP)/fr.ISO8859-1$(MAN1DIR)
1353DEST_MAN_FR_U = $(DEST_MAN_TOP)/fr.UTF-8$(MAN1DIR)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001354DEST_MAN_IT = $(DEST_MAN_TOP)/it$(MAN1DIR)
Bram Moolenaar217ad922005-03-20 22:37:15 +00001355DEST_MAN_IT_I = $(DEST_MAN_TOP)/it.ISO8859-1$(MAN1DIR)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001356DEST_MAN_IT_U = $(DEST_MAN_TOP)/it.UTF-8$(MAN1DIR)
Bram Moolenaar910f66f2006-04-05 20:41:53 +00001357DEST_MAN_PL = $(DEST_MAN_TOP)/pl$(MAN1DIR)
1358DEST_MAN_PL_I = $(DEST_MAN_TOP)/pl.ISO8859-2$(MAN1DIR)
Bram Moolenaar899dddf2006-03-26 21:06:50 +00001359DEST_MAN_PL_U = $(DEST_MAN_TOP)/pl.UTF-8$(MAN1DIR)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001360DEST_MAN_RU = $(DEST_MAN_TOP)/ru.KOI8-R$(MAN1DIR)
1361DEST_MAN_RU_U = $(DEST_MAN_TOP)/ru.UTF-8$(MAN1DIR)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001362
1363# BASIC_SRC: files that are always used
1364# GUI_SRC: extra GUI files for current configuration
1365# ALL_GUI_SRC: all GUI files for Unix
1366#
1367# SRC: files used for current configuration
1368# TAGS_SRC: source files used for make tags
1369# TAGS_INCL: include files used for make tags
1370# ALL_SRC: source files used for make depend and make lint
1371
1372TAGS_INCL = *.h
1373
1374BASIC_SRC = \
Bram Moolenaar40e6a712010-05-16 22:32:54 +02001375 blowfish.c \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001376 buffer.c \
1377 charset.c \
1378 diff.c \
1379 digraph.c \
1380 edit.c \
1381 eval.c \
1382 ex_cmds.c \
1383 ex_cmds2.c \
1384 ex_docmd.c \
1385 ex_eval.c \
1386 ex_getln.c \
1387 fileio.c \
1388 fold.c \
1389 getchar.c \
Bram Moolenaar58d98232005-07-23 22:25:46 +00001390 hardcopy.c \
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001391 hashtab.c \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001392 if_cscope.c \
1393 if_xcmdsrv.c \
1394 main.c \
1395 mark.c \
1396 memfile.c \
1397 memline.c \
1398 menu.c \
1399 message.c \
1400 misc1.c \
1401 misc2.c \
1402 move.c \
1403 mbyte.c \
1404 normal.c \
1405 ops.c \
1406 option.c \
1407 os_unix.c \
1408 auto/pathdef.c \
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001409 popupmnu.c \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001410 quickfix.c \
1411 regexp.c \
1412 screen.c \
1413 search.c \
Bram Moolenaar40e6a712010-05-16 22:32:54 +02001414 sha256.c \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001415 spell.c \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001416 syntax.c \
1417 tag.c \
1418 term.c \
1419 ui.c \
1420 undo.c \
1421 version.c \
1422 window.c \
1423 $(OS_EXTRA_SRC)
1424
Bram Moolenaar0ba04292010-07-14 23:23:17 +02001425SRC = $(BASIC_SRC) $(GUI_SRC) $(HANGULIN_SRC) $(LUA_SRC) $(MZSCHEME_SRC) \
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001426 $(PERL_SRC) $(PYTHON_SRC) $(TCL_SRC) $(RUBY_SRC) \
1427 $(SNIFF_SRC) $(WORKSHOP_SRC) $(WSDEBUG_SRC)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001428
Bram Moolenaar9372a112005-12-06 19:59:18 +00001429TAGS_SRC = *.c *.cpp if_perl.xs
Bram Moolenaare1d12892004-06-13 13:02:36 +00001430
Bram Moolenaar0ba04292010-07-14 23:23:17 +02001431EXTRA_SRC = hangulin.c if_lua.c if_mzsch.c auto/if_perl.c if_perlsfio.c \
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001432 if_python.c if_tcl.c if_ruby.c if_sniff.c gui_beval.c \
1433 workshop.c wsdebug.c integration.c netbeans.c
Bram Moolenaare1d12892004-06-13 13:02:36 +00001434
1435# All sources, also the ones that are not configured
1436ALL_SRC = $(BASIC_SRC) $(ALL_GUI_SRC) $(EXTRA_SRC)
1437
1438# Which files to check with lint. Select one of these three lines. ALL_SRC
1439# checks more, but may not work well for checking a GUI that wasn't configured.
1440# The perl sources also don't work well with lint.
1441LINT_SRC = $(BASIC_SRC) $(GUI_SRC) $(HANGULIN_SRC) $(PYTHON_SRC) $(TCL_SRC) \
1442 $(SNIFF_SRC) $(WORKSHOP_SRC) $(WSDEBUG_SRC) $(NETBEANS_SRC)
1443#LINT_SRC = $(SRC)
1444#LINT_SRC = $(ALL_SRC)
Bram Moolenaar0ab2a882009-05-13 10:51:08 +00001445#LINT_SRC = $(BASIC_SRC)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001446
1447OBJ = \
1448 objects/buffer.o \
Bram Moolenaar40e6a712010-05-16 22:32:54 +02001449 objects/blowfish.o \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001450 objects/charset.o \
1451 objects/diff.o \
1452 objects/digraph.o \
1453 objects/edit.o \
1454 objects/eval.o \
1455 objects/ex_cmds.o \
1456 objects/ex_cmds2.o \
1457 objects/ex_docmd.o \
1458 objects/ex_eval.o \
1459 objects/ex_getln.o \
1460 objects/fileio.o \
1461 objects/fold.o \
1462 objects/getchar.o \
Bram Moolenaar58d98232005-07-23 22:25:46 +00001463 objects/hardcopy.o \
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001464 objects/hashtab.o \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001465 $(HANGULIN_OBJ) \
1466 objects/if_cscope.o \
1467 objects/if_xcmdsrv.o \
1468 objects/main.o \
1469 objects/mark.o \
1470 objects/memfile.o \
1471 objects/memline.o \
1472 objects/menu.o \
1473 objects/message.o \
1474 objects/misc1.o \
1475 objects/misc2.o \
1476 objects/move.o \
1477 objects/mbyte.o \
1478 objects/normal.o \
1479 objects/ops.o \
1480 objects/option.o \
1481 objects/os_unix.o \
1482 objects/pathdef.o \
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001483 objects/popupmnu.o \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001484 objects/quickfix.o \
1485 objects/regexp.o \
1486 objects/screen.o \
1487 objects/search.o \
Bram Moolenaar40e6a712010-05-16 22:32:54 +02001488 objects/sha256.o \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001489 objects/spell.o \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001490 objects/syntax.o \
1491 $(SNIFF_OBJ) \
1492 objects/tag.o \
1493 objects/term.o \
1494 objects/ui.o \
1495 objects/undo.o \
1496 objects/window.o \
1497 $(GUI_OBJ) \
Bram Moolenaar0ba04292010-07-14 23:23:17 +02001498 $(LUA_OBJ) \
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001499 $(MZSCHEME_OBJ) \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001500 $(PERL_OBJ) \
1501 $(PYTHON_OBJ) \
1502 $(TCL_OBJ) \
1503 $(RUBY_OBJ) \
1504 $(OS_EXTRA_OBJ) \
1505 $(WORKSHOP_OBJ) \
1506 $(NETBEANS_OBJ) \
1507 $(WSDEBUG_OBJ)
1508
1509PRO_AUTO = \
Bram Moolenaar40e6a712010-05-16 22:32:54 +02001510 blowfish.pro \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001511 buffer.pro \
1512 charset.pro \
1513 diff.pro \
1514 digraph.pro \
1515 edit.pro \
1516 eval.pro \
1517 ex_cmds.pro \
1518 ex_cmds2.pro \
1519 ex_docmd.pro \
1520 ex_eval.pro \
1521 ex_getln.pro \
1522 fileio.pro \
1523 fold.pro \
1524 getchar.pro \
Bram Moolenaar58d98232005-07-23 22:25:46 +00001525 hardcopy.pro \
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001526 hashtab.pro \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001527 hangulin.pro \
1528 if_cscope.pro \
1529 if_xcmdsrv.pro \
1530 if_python.pro \
1531 if_ruby.pro \
1532 main.pro \
1533 mark.pro \
1534 memfile.pro \
1535 memline.pro \
1536 menu.pro \
1537 message.pro \
1538 misc1.pro \
1539 misc2.pro \
1540 move.pro \
1541 mbyte.pro \
1542 normal.pro \
1543 ops.pro \
1544 option.pro \
1545 os_unix.pro \
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001546 popupmnu.pro \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001547 quickfix.pro \
1548 regexp.pro \
1549 screen.pro \
1550 search.pro \
Bram Moolenaar40e6a712010-05-16 22:32:54 +02001551 sha256.pro \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001552 spell.pro \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001553 syntax.pro \
1554 tag.pro \
1555 term.pro \
1556 termlib.pro \
1557 ui.pro \
1558 undo.pro \
1559 version.pro \
1560 window.pro \
1561 gui_beval.pro \
1562 workshop.pro \
1563 netbeans.pro \
1564 $(ALL_GUI_PRO) \
1565 $(TCL_PRO)
1566
Bram Moolenaar910f66f2006-04-05 20:41:53 +00001567# Resources used for the Mac are in one directory.
1568RSRC_DIR = os_mac_rsrc
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001569
Bram Moolenaare1d12892004-06-13 13:02:36 +00001570PRO_MANUAL = os_amiga.pro os_msdos.pro os_win16.pro os_win32.pro \
1571 os_mswin.pro os_beos.pro os_vms.pro os_riscos.pro $(PERL_PRO)
1572
1573# Default target is making the executable and tools
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00001574all: $(VIMTARGET) $(TOOLS) languages $(GUI_BUNDLE)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001575
1576tools: $(TOOLS)
1577
1578# Run configure with all the setting from above.
1579#
1580# Note: auto/config.h doesn't depend on configure, because running configure
1581# doesn't always update auto/config.h. The timestamp isn't changed if the
1582# file contents didn't change (to avoid recompiling everything). Including a
1583# dependency on auto/config.h would cause running configure each time when
1584# auto/config.h isn't updated. The dependency on auto/config.mk should make
1585# sure configure is run when it's needed.
1586#
1587config auto/config.mk: auto/configure config.mk.in config.h.in
1588 GUI_INC_LOC="$(GUI_INC_LOC)" GUI_LIB_LOC="$(GUI_LIB_LOC)" \
1589 CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \
1590 LDFLAGS="$(LDFLAGS)" $(CONF_SHELL) srcdir="$(srcdir)" \
1591 ./configure $(CONF_OPT_GUI) $(CONF_OPT_X) $(CONF_OPT_XSMP) \
1592 $(CONF_OPT_DARWIN) $(CONF_OPT_PERL) $(CONF_OPT_PYTHON) \
1593 $(CONF_OPT_TCL) $(CONF_OPT_RUBY) $(CONF_OPT_NLS) \
1594 $(CONF_OPT_CSCOPE) $(CONF_OPT_MULTIBYTE) $(CONF_OPT_INPUT) \
1595 $(CONF_OPT_OUTPUT) $(CONF_OPT_GPM) $(CONF_OPT_WORKSHOP) \
1596 $(CONF_OPT_SNIFF) $(CONF_OPT_FEAT) $(CONF_TERM_LIB) \
1597 $(CONF_OPT_COMPBY) $(CONF_OPT_ACL) $(CONF_OPT_NETBEANS) \
Bram Moolenaar3577c6f2008-06-24 21:16:56 +00001598 $(CONF_ARGS) $(CONF_OPT_MZSCHEME) $(CONF_OPT_PLTHOME) \
Bram Moolenaar0ba04292010-07-14 23:23:17 +02001599 $(CONF_OPT_LUA) $(CONF_OPT_LUA_PREFIX) \
Bram Moolenaar3577c6f2008-06-24 21:16:56 +00001600 $(CONF_OPT_SYSMOUSE)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001601
1602# Use "make reconfig" to rerun configure without cached values.
1603# When config.h changes, most things will be recompiled automatically.
Bram Moolenaar592e0a22004-07-03 16:05:59 +00001604# Invoke $(MAKE) to run config with the empty auto/config.mk.
1605# Invoke $(MAKE) to build all with the filled auto/config.mk.
1606reconfig: scratch clean
1607 $(MAKE) -f Makefile config
1608 $(MAKE) -f Makefile all
Bram Moolenaare1d12892004-06-13 13:02:36 +00001609
1610# Run autoconf to produce auto/configure.
1611# Note:
1612# - DO NOT RUN autoconf MANUALLY! It will overwrite ./configure instead of
1613# producing auto/configure.
1614# - autoconf is not run automatically, because a patch usually changes both
1615# configure.in and auto/configure but can't update the timestamps. People
1616# who do not have (the correct version of) autoconf would run into trouble.
1617#
1618# Two tricks are required to make autoconf put its output in the "auto" dir:
1619# - Temporarily move the ./configure script to ./configure.save. Don't
1620# overwrite it, it's probably the result of an aborted autoconf.
1621# - Use sed to change ./config.log to auto/config.log in the configure script.
Bram Moolenaar9d75c832005-01-25 21:57:23 +00001622# Autoconf 2.5x (2.59 at least) produces a few more files that we need to take
1623# care of:
1624# - configure.lineno: has the line numbers replaced with $LINENO. That
1625# improves patches a LOT, thus use it instead (until someone says it doesn't
1626# work on some system).
1627# - autom4te.cache directory is created and not cleaned up. Delete it.
1628# - Uses ">config.log" instead of "./config.log".
Bram Moolenaare1d12892004-06-13 13:02:36 +00001629autoconf:
1630 if test ! -f configure.save; then mv configure configure.save; fi
1631 autoconf
Bram Moolenaar9d75c832005-01-25 21:57:23 +00001632 sed -e 's+>config.log+>auto/config.log+' -e 's+\./config.log+auto/config.log+' configure > auto/configure
Bram Moolenaare1d12892004-06-13 13:02:36 +00001633 chmod 755 auto/configure
1634 mv -f configure.save configure
Bram Moolenaar9d75c832005-01-25 21:57:23 +00001635 -rm -rf autom4te.cache
Bram Moolenaare1d12892004-06-13 13:02:36 +00001636 -rm -f auto/config.status auto/config.cache
1637
1638# Re-execute this Makefile to include the new auto/config.mk produced by
1639# configure Only used when typing "make" with a fresh auto/config.mk.
1640myself:
1641 $(MAKE) -f Makefile all
1642
1643
1644# The normal command to compile a .c file to its .o file.
1645CCC = $(CC) -c -I$(srcdir) $(ALL_CFLAGS)
1646
1647
1648# Link the target for normal use or debugging.
1649# A shell script is used to try linking without unneccesary libraries.
1650$(VIMTARGET): auto/config.mk objects $(OBJ) version.c version.h
1651 $(CCC) version.c -o objects/version.o
1652 @LINK="$(PURIFY) $(SHRPENV) $(CClink) $(ALL_LIB_DIRS) $(LDFLAGS) \
1653 -o $(VIMTARGET) $(OBJ) objects/version.o $(ALL_LIBS)" \
1654 MAKE="$(MAKE)" sh $(srcdir)/link.sh
1655
1656xxd/xxd$(EXEEXT): xxd/xxd.c
1657 cd xxd; CC="$(CC)" CFLAGS="$(CPPFLAGS) $(CFLAGS)" \
1658 $(MAKE) -f Makefile
1659
1660# Build the language specific files if they were unpacked.
1661# Generate the converted .mo files separately, it's no problem if this fails.
1662languages:
1663 @if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
Bram Moolenaar58d98232005-07-23 22:25:46 +00001664 cd $(PODIR); \
Bram Moolenaar58d98232005-07-23 22:25:46 +00001665 CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix); \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001666 fi
1667 -@if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
1668 cd $(PODIR); CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix) converted; \
1669 fi
1670
1671# Update the *.po files for changes in the sources. Only run manually.
1672update-po:
1673 cd $(PODIR); CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix) update-po
1674
1675# Generate function prototypes. This is not needed to compile vim, but if
1676# you want to use it, cproto is out there on the net somewhere -- Webb
1677#
1678# When generating os_amiga.pro, os_msdos.pro and os_win32.pro there will be a
1679# few include files that can not be found, that's OK.
1680
1681proto: $(PRO_AUTO) $(PRO_MANUAL)
1682
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001683# Filter out arguments that cproto doesn't support.
1684# Don't pass "-pthread" to cproto, it sees it as a list of individual flags.
1685# The -E"gcc -E" argument must be separate to avoid problems with shell
1686# quoting.
1687CPROTO = cproto $(PROTO_FLAGS) -DPROTO \
1688 `echo '$(LINT_CFLAGS)' | sed -e 's/-pthread//g'`
1689
Bram Moolenaare1d12892004-06-13 13:02:36 +00001690### Would be nice if this would work for "normal" make.
1691### Currently it only works for (Free)BSD make.
1692#$(PRO_AUTO): $$(*F).c
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001693# $(CPROTO) -DFEAT_GUI $(*F).c > $@
Bram Moolenaare1d12892004-06-13 13:02:36 +00001694
1695# Always define FEAT_GUI. This may generate a few warnings if it's also
1696# defined in auto/config.h, you can ignore that.
1697.c.pro:
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001698 $(CPROTO) -DFEAT_GUI $< > proto/$@
Bram Moolenaare1d12892004-06-13 13:02:36 +00001699 echo "/* vim: set ft=c : */" >> proto/$@
1700
1701os_amiga.pro: os_amiga.c
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001702 $(CPROTO) -DAMIGA -UHAVE_CONFIG_H -DBPTR=char* $< > proto/$@
Bram Moolenaare1d12892004-06-13 13:02:36 +00001703 echo "/* vim: set ft=c : */" >> proto/$@
1704
1705os_msdos.pro: os_msdos.c
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001706 $(CPROTO) -DMSDOS -UHAVE_CONFIG_H $< > proto/$@
Bram Moolenaare1d12892004-06-13 13:02:36 +00001707 echo "/* vim: set ft=c : */" >> proto/$@
1708
1709os_win16.pro: os_win16.c
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001710 $(CPROTO) -DWIN16 -UHAVE_CONFIG_H $< > proto/$@
Bram Moolenaare1d12892004-06-13 13:02:36 +00001711 echo "/* vim: set ft=c : */" >> proto/$@
1712
1713os_win32.pro: os_win32.c
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001714 $(CPROTO) -DWIN32 -UHAVE_CONFIG_H $< > proto/$@
Bram Moolenaare1d12892004-06-13 13:02:36 +00001715 echo "/* vim: set ft=c : */" >> proto/$@
1716
1717os_mswin.pro: os_mswin.c
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001718 $(CPROTO) -DWIN16 -DWIN32 -UHAVE_CONFIG_H $< > proto/$@
Bram Moolenaare1d12892004-06-13 13:02:36 +00001719 echo "/* vim: set ft=c : */" >> proto/$@
1720
1721os_beos.pro: os_beos.c
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001722 $(CPROTO) -D__BEOS__ -UHAVE_CONFIG_H $< > proto/$@
Bram Moolenaare1d12892004-06-13 13:02:36 +00001723 echo "/* vim: set ft=c : */" >> proto/$@
1724
1725os_vms.pro: os_vms.c
1726# must use os_vms_conf.h for auto/config.h
1727 mv auto/config.h auto/config.h.save
1728 cp os_vms_conf.h auto/config.h
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001729 $(CPROTO) -DVMS -UFEAT_GUI_ATHENA -UFEAT_GUI_NEXTAW -UFEAT_GUI_MOTIF -UFEAT_GUI_GTK $< > proto/$@
Bram Moolenaare1d12892004-06-13 13:02:36 +00001730 echo "/* vim: set ft=c : */" >> proto/$@
1731 rm auto/config.h
1732 mv auto/config.h.save auto/config.h
1733
1734# if_perl.pro is special: Use the generated if_perl.c for input and remove
1735# prototypes for local functions.
1736if_perl.pro: auto/if_perl.c
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001737 $(CPROTO) -DFEAT_GUI auto/if_perl.c | sed "/_VI/d" > proto/$@
Bram Moolenaare1d12892004-06-13 13:02:36 +00001738
1739
1740notags:
1741 -rm -f tags
1742
1743# Note: tags is made for the currently configured version, can't include both
1744# Motif and Athena GUI
1745# You can ignore error messages for missing files.
1746tags TAGS: notags
1747 $(TAGPRG) $(TAGS_SRC) $(TAGS_INCL)
1748
1749# Make a highlight file for types. Requires Exuberant ctags and awk
1750types: types.vim
1751types.vim: $(TAGS_SRC) $(TAGS_INCL)
1752 ctags --c-kinds=gstu -o- $(TAGS_SRC) $(TAGS_INCL) |\
1753 awk 'BEGIN{printf("syntax keyword Type\t")}\
1754 {printf("%s ", $$1)}END{print ""}' > $@
1755
1756# Execute the test scripts. Run these after compiling Vim, before installing.
1757# This doesn't depend on $(VIMTARGET), because that won't work when configure
1758# wasn't run yet. Restart make to build it instead.
1759#
1760# This will produce a lot of garbage on your screen, including a few error
1761# messages. Don't worry about that.
1762# If there is a real error, there will be a difference between "test.out" and
1763# a "test99.ok" file.
Bram Moolenaarcd8b20a2009-05-22 16:20:57 +00001764# If everything is alright, the final message will be "ALL DONE". If not you
1765# get "TEST FAILURE".
Bram Moolenaare1d12892004-06-13 13:02:36 +00001766#
1767test check:
1768 $(MAKE) -f Makefile $(VIMTARGET)
Bram Moolenaar1a14c2c2006-03-25 21:52:34 +00001769 -if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
Bram Moolenaar316059c2006-01-14 21:18:42 +00001770 cd $(PODIR); $(MAKE) -f Makefile check VIM=../$(VIMTARGET); \
1771 fi
Bram Moolenaarc236c162008-07-13 17:41:49 +00001772 -if test $(VIMTARGET) != vim -a ! -r vim; then \
Bram Moolenaar5a305422006-04-28 22:38:25 +00001773 ln -s $(VIMTARGET) vim; \
1774 fi
Bram Moolenaard12f5c12006-01-25 22:10:52 +00001775 cd testdir; $(MAKE) -f Makefile $(GUI_TESTTARGET) VIMPROG=../$(VIMTARGET) $(GUI_TESTARG)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001776
1777testclean:
1778 cd testdir; $(MAKE) -f Makefile clean
Bram Moolenaar316059c2006-01-14 21:18:42 +00001779 if test -d $(PODIR); then \
1780 cd $(PODIR); $(MAKE) checkclean; \
1781 fi
Bram Moolenaare1d12892004-06-13 13:02:36 +00001782
Bram Moolenaarb64bb6e2008-06-20 19:29:35 +00001783install: $(GUI_INSTALL)
1784
1785install_normal: installvim installtools $(INSTALL_LANGS) install-icons
1786
1787install_gui_extra: installgtutorbin
1788
1789installvim: installvimbin installtutorbin \
1790 installruntime installlinks installmanlinks
1791
Bram Moolenaare1d12892004-06-13 13:02:36 +00001792#
1793# Avoid overwriting an existing executable, somebody might be running it and
1794# overwriting it could cause it to crash. Deleting it is OK, it won't be
1795# really deleted until all running processes for it have exited. It is
1796# renamed first, in case the deleting doesn't work.
1797#
1798# If you want to keep an older version, rename it before running "make
1799# install".
1800#
Bram Moolenaare1d12892004-06-13 13:02:36 +00001801installvimbin: $(VIMTARGET) $(DESTDIR)$(exec_prefix) $(DEST_BIN)
1802 -if test -f $(DEST_BIN)/$(VIMTARGET); then \
1803 mv -f $(DEST_BIN)/$(VIMTARGET) $(DEST_BIN)/$(VIMNAME).rm; \
1804 rm -f $(DEST_BIN)/$(VIMNAME).rm; \
1805 fi
1806 $(INSTALL_PROG) $(VIMTARGET) $(DEST_BIN)
1807 $(STRIP) $(DEST_BIN)/$(VIMTARGET)
1808 chmod $(BINMOD) $(DEST_BIN)/$(VIMTARGET)
1809# may create a link to the new executable from /usr/bin/vi
1810 -$(LINKIT)
1811
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001812# Long list of arguments for the shell script that installs the manual pages
1813# for one language.
1814INSTALLMANARGS = $(VIMLOC) $(SCRIPTLOC) $(VIMRCLOC) $(HELPSOURCE) $(MANMOD) \
1815 $(VIMNAME) $(VIMDIFFNAME) $(EVIMNAME)
1816
Bram Moolenaare344bea2005-09-01 20:46:49 +00001817# Install most of the runtime files
1818installruntime: installrtbase installmacros installtutor installspell
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00001819
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001820# install the help files; first adjust the contents for the final location
Bram Moolenaare344bea2005-09-01 20:46:49 +00001821installrtbase: $(HELPSOURCE)/vim.1 $(DEST_VIM) $(DEST_RT) \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001822 $(DEST_HELP) $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND) \
Bram Moolenaar18144c82006-04-12 21:52:12 +00001823 $(DEST_FTP) $(DEST_AUTO) $(DEST_AUTO)/xml $(DEST_PLUG) \
1824 $(DEST_TUTOR) $(DEST_SPELL) $(DEST_COMP)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001825 -$(SHELL) ./installman.sh install $(DEST_MAN) "" $(INSTALLMANARGS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001826 @echo generating help tags
1827# Generate the help tags with ":helptags" to handle all languages.
1828 -@cd $(HELPSOURCE); $(MAKE) VIMEXE=$(DEST_BIN)/$(VIMTARGET) vimtags
1829 cd $(HELPSOURCE); \
1830 files=`ls *.txt tags`; \
1831 files="$$files `ls *.??x tags-?? 2>/dev/null || true`"; \
1832 $(INSTALL_DATA) $$files $(DEST_HELP); \
1833 cd $(DEST_HELP); \
1834 chmod $(HELPMOD) $$files
1835 $(INSTALL_DATA) $(HELPSOURCE)/*.pl $(DEST_HELP)
1836 chmod $(SCRIPTMOD) $(DEST_HELP)/*.pl
1837# install the menu files
1838 $(INSTALL_DATA) $(SCRIPTSOURCE)/menu.vim $(SYS_MENU_FILE)
1839 chmod $(VIMSCRIPTMOD) $(SYS_MENU_FILE)
1840 $(INSTALL_DATA) $(SCRIPTSOURCE)/synmenu.vim $(SYS_SYNMENU_FILE)
1841 chmod $(VIMSCRIPTMOD) $(SYS_SYNMENU_FILE)
1842 $(INSTALL_DATA) $(SCRIPTSOURCE)/delmenu.vim $(SYS_DELMENU_FILE)
1843 chmod $(VIMSCRIPTMOD) $(SYS_DELMENU_FILE)
1844# install the evim file
1845 $(INSTALL_DATA) $(SCRIPTSOURCE)/mswin.vim $(MSWIN_FILE)
1846 chmod $(VIMSCRIPTMOD) $(MSWIN_FILE)
1847 $(INSTALL_DATA) $(SCRIPTSOURCE)/evim.vim $(EVIM_FILE)
1848 chmod $(VIMSCRIPTMOD) $(EVIM_FILE)
1849# install the bugreport file
1850 $(INSTALL_DATA) $(SCRIPTSOURCE)/bugreport.vim $(SYS_BUGR_FILE)
1851 chmod $(VIMSCRIPTMOD) $(SYS_BUGR_FILE)
1852# install the example vimrc files
1853 $(INSTALL_DATA) $(SCRIPTSOURCE)/vimrc_example.vim $(DEST_SCRIPT)
1854 chmod $(VIMSCRIPTMOD) $(DEST_SCRIPT)/vimrc_example.vim
1855 $(INSTALL_DATA) $(SCRIPTSOURCE)/gvimrc_example.vim $(DEST_SCRIPT)
1856 chmod $(VIMSCRIPTMOD) $(DEST_SCRIPT)/gvimrc_example.vim
1857# install the file type detection files
1858 $(INSTALL_DATA) $(SCRIPTSOURCE)/filetype.vim $(SYS_FILETYPE_FILE)
1859 chmod $(VIMSCRIPTMOD) $(SYS_FILETYPE_FILE)
1860 $(INSTALL_DATA) $(SCRIPTSOURCE)/ftoff.vim $(SYS_FTOFF_FILE)
1861 chmod $(VIMSCRIPTMOD) $(SYS_FTOFF_FILE)
1862 $(INSTALL_DATA) $(SCRIPTSOURCE)/scripts.vim $(SYS_SCRIPTS_FILE)
1863 chmod $(VIMSCRIPTMOD) $(SYS_SCRIPTS_FILE)
1864 $(INSTALL_DATA) $(SCRIPTSOURCE)/ftplugin.vim $(SYS_FTPLUGIN_FILE)
1865 chmod $(VIMSCRIPTMOD) $(SYS_FTPLUGIN_FILE)
1866 $(INSTALL_DATA) $(SCRIPTSOURCE)/ftplugof.vim $(SYS_FTPLUGOF_FILE)
1867 chmod $(VIMSCRIPTMOD) $(SYS_FTPLUGOF_FILE)
1868 $(INSTALL_DATA) $(SCRIPTSOURCE)/indent.vim $(SYS_INDENT_FILE)
1869 chmod $(VIMSCRIPTMOD) $(SYS_INDENT_FILE)
1870 $(INSTALL_DATA) $(SCRIPTSOURCE)/indoff.vim $(SYS_INDOFF_FILE)
1871 chmod $(VIMSCRIPTMOD) $(SYS_INDOFF_FILE)
1872 $(INSTALL_DATA) $(SCRIPTSOURCE)/optwin.vim $(SYS_OPTWIN_FILE)
1873 chmod $(VIMSCRIPTMOD) $(SYS_OPTWIN_FILE)
1874# install the print resource files
1875 cd $(PRINTSOURCE); $(INSTALL_DATA) *.ps $(DEST_PRINT)
1876 cd $(DEST_PRINT); chmod $(FILEMOD) *.ps
1877# install the colorscheme files
1878 cd $(COLSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_COL)
1879 cd $(DEST_COL); chmod $(HELPMOD) *.vim README.txt
1880# install the syntax files
1881 cd $(SYNSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_SYN)
1882 cd $(DEST_SYN); chmod $(HELPMOD) *.vim README.txt
1883# install the indent files
1884 cd $(INDSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_IND)
1885 cd $(DEST_IND); chmod $(HELPMOD) *.vim README.txt
Bram Moolenaar87e25fd2005-07-27 21:13:01 +00001886# install the standard autoload files
1887 cd $(AUTOSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_AUTO)
1888 cd $(DEST_AUTO); chmod $(HELPMOD) *.vim README.txt
Bram Moolenaar18144c82006-04-12 21:52:12 +00001889 cd $(AUTOSOURCE)/xml; $(INSTALL_DATA) *.vim $(DEST_AUTO)/xml
1890 cd $(DEST_AUTO)/xml; chmod $(HELPMOD) *.vim
Bram Moolenaare1d12892004-06-13 13:02:36 +00001891# install the standard plugin files
1892 cd $(PLUGSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_PLUG)
1893 cd $(DEST_PLUG); chmod $(HELPMOD) *.vim README.txt
1894# install the ftplugin files
Bram Moolenaar0387e652010-05-07 16:54:37 +02001895 cd $(FTPLUGSOURCE); $(INSTALL_DATA) *.vim README.txt logtalk.dict $(DEST_FTP)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001896 cd $(DEST_FTP); chmod $(HELPMOD) *.vim README.txt
1897# install the compiler files
1898 cd $(COMPSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_COMP)
1899 cd $(DEST_COMP); chmod $(HELPMOD) *.vim README.txt
1900
Bram Moolenaar582fd852005-03-28 20:58:01 +00001901installmacros: $(DEST_VIM) $(DEST_RT) $(DEST_MACRO)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001902 $(INSTALL_DATA_R) $(MACROSOURCE)/* $(DEST_MACRO)
1903 chmod $(DIRMOD) `find $(DEST_MACRO) -type d -print`
1904 chmod $(FILEMOD) `find $(DEST_MACRO) -type f -print`
1905 chmod $(SCRIPTMOD) $(DEST_MACRO)/less.sh
1906# When using CVS some CVS directories might have been copied.
1907 cvs=`find $(DEST_MACRO) \( -name CVS -o -name AAPDIR \) -print`; \
1908 if test -n "$$cvs"; then \
1909 rm -rf $$cvs; \
1910 fi
1911
1912# install the tutor files
Bram Moolenaare344bea2005-09-01 20:46:49 +00001913installtutorbin: $(DEST_VIM)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001914 $(INSTALL_DATA) vimtutor $(DEST_BIN)/$(VIMNAME)tutor
1915 chmod $(SCRIPTMOD) $(DEST_BIN)/$(VIMNAME)tutor
Bram Moolenaarb64bb6e2008-06-20 19:29:35 +00001916
1917installgtutorbin: $(DEST_VIM)
Bram Moolenaar2b570782008-05-07 15:40:33 +00001918 $(INSTALL_DATA) gvimtutor $(DEST_BIN)/$(GVIMNAME)tutor
1919 chmod $(SCRIPTMOD) $(DEST_BIN)/$(GVIMNAME)tutor
Bram Moolenaare344bea2005-09-01 20:46:49 +00001920
1921installtutor: $(DEST_RT) $(DEST_TUTOR)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001922 -$(INSTALL_DATA) $(TUTORSOURCE)/README* $(TUTORSOURCE)/tutor* $(DEST_TUTOR)
1923 chmod $(HELPMOD) $(DEST_TUTOR)/*
1924
Bram Moolenaarcee55602005-08-21 22:12:59 +00001925# Install the spell files, if they exist. This assumes at least the English
1926# spell file is there.
Bram Moolenaar582fd852005-03-28 20:58:01 +00001927installspell: $(DEST_VIM) $(DEST_RT) $(DEST_SPELL)
Bram Moolenaar0e21a3f2005-04-17 20:28:32 +00001928 if test -f $(SPELLSOURCE)/en.latin1.spl; then \
Bram Moolenaardb552d602006-03-23 22:59:57 +00001929 $(INSTALL_DATA) $(SPELLSOURCE)/*.spl $(SPELLSOURCE)/*.sug $(SPELLSOURCE)/*.vim $(DEST_SPELL); \
1930 chmod $(HELPMOD) $(DEST_SPELL)/*.spl $(DEST_SPELL)/*.sug $(DEST_SPELL)/*.vim; \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001931 fi
1932
Bram Moolenaare1d12892004-06-13 13:02:36 +00001933# install helper program xxd
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001934installtools: $(TOOLS) $(DESTDIR)$(exec_prefix) $(DEST_BIN) \
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00001935 $(TOOLSSOURCE) $(DEST_VIM) $(DEST_RT) $(DEST_TOOLS) \
1936 $(INSTALL_TOOL_LANGS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001937 if test -f $(DEST_BIN)/xxd$(EXEEXT); then \
1938 mv -f $(DEST_BIN)/xxd$(EXEEXT) $(DEST_BIN)/xxd.rm; \
1939 rm -f $(DEST_BIN)/xxd.rm; \
1940 fi
1941 $(INSTALL_PROG) xxd/xxd$(EXEEXT) $(DEST_BIN)
1942 $(STRIP) $(DEST_BIN)/xxd$(EXEEXT)
1943 chmod $(BINMOD) $(DEST_BIN)/xxd$(EXEEXT)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001944 -$(SHELL) ./installman.sh xxd $(DEST_MAN) "" $(INSTALLMANARGS)
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00001945
Bram Moolenaare1d12892004-06-13 13:02:36 +00001946# install the runtime tools
1947 $(INSTALL_DATA_R) $(TOOLSSOURCE)/* $(DEST_TOOLS)
1948# When using CVS some CVS directories might have been copied.
1949 cvs=`find $(DEST_TOOLS) \( -name CVS -o -name AAPDIR \) -print`; \
1950 if test -n "$$cvs"; then \
1951 rm -rf $$cvs; \
1952 fi
1953 -chmod $(FILEMOD) $(DEST_TOOLS)/*
1954# replace the path in some tools
1955 perlpath=`./which.sh perl` && sed -e "s+/usr/bin/perl+$$perlpath+" $(TOOLSSOURCE)/efm_perl.pl >$(DEST_TOOLS)/efm_perl.pl
1956 awkpath=`./which.sh nawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \
1957 awkpath=`./which.sh gawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \
1958 awkpath=`./which.sh awk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; fi; fi
1959 -chmod $(SCRIPTMOD) `grep -l "^#!" $(DEST_TOOLS)/*`
1960
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00001961# install the language specific files for tools, if they were unpacked
1962install-tool-languages:
1963 -$(SHELL) ./installman.sh xxd $(DEST_MAN_FR) "-fr" $(INSTALLMANARGS)
1964 -$(SHELL) ./installman.sh xxd $(DEST_MAN_FR_I) "-fr" $(INSTALLMANARGS)
1965 -$(SHELL) ./installman.sh xxd $(DEST_MAN_FR_U) "-fr.UTF-8" $(INSTALLMANARGS)
1966 -$(SHELL) ./installman.sh xxd $(DEST_MAN_IT) "-it" $(INSTALLMANARGS)
1967 -$(SHELL) ./installman.sh xxd $(DEST_MAN_IT_I) "-it" $(INSTALLMANARGS)
1968 -$(SHELL) ./installman.sh xxd $(DEST_MAN_IT_U) "-it.UTF-8" $(INSTALLMANARGS)
Bram Moolenaar899dddf2006-03-26 21:06:50 +00001969 -$(SHELL) ./installman.sh xxd $(DEST_MAN_PL) "-pl" $(INSTALLMANARGS)
Bram Moolenaar910f66f2006-04-05 20:41:53 +00001970 -$(SHELL) ./installman.sh xxd $(DEST_MAN_PL_I) "-pl" $(INSTALLMANARGS)
Bram Moolenaar899dddf2006-03-26 21:06:50 +00001971 -$(SHELL) ./installman.sh xxd $(DEST_MAN_PL_U) "-pl.UTF-8" $(INSTALLMANARGS)
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00001972 -$(SHELL) ./installman.sh xxd $(DEST_MAN_RU) "-ru" $(INSTALLMANARGS)
1973 -$(SHELL) ./installman.sh xxd $(DEST_MAN_RU_U) "-ru.UTF-8" $(INSTALLMANARGS)
1974
Bram Moolenaare1d12892004-06-13 13:02:36 +00001975# install the language specific files, if they were unpacked
1976install-languages: languages $(DEST_LANG) $(DEST_KMAP)
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00001977 -$(SHELL) ./installman.sh install $(DEST_MAN_FR) "-fr" $(INSTALLMANARGS)
1978 -$(SHELL) ./installman.sh install $(DEST_MAN_FR_I) "-fr" $(INSTALLMANARGS)
1979 -$(SHELL) ./installman.sh install $(DEST_MAN_FR_U) "-fr.UTF-8" $(INSTALLMANARGS)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001980 -$(SHELL) ./installman.sh install $(DEST_MAN_IT) "-it" $(INSTALLMANARGS)
Bram Moolenaar217ad922005-03-20 22:37:15 +00001981 -$(SHELL) ./installman.sh install $(DEST_MAN_IT_I) "-it" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001982 -$(SHELL) ./installman.sh install $(DEST_MAN_IT_U) "-it.UTF-8" $(INSTALLMANARGS)
Bram Moolenaar899dddf2006-03-26 21:06:50 +00001983 -$(SHELL) ./installman.sh install $(DEST_MAN_PL) "-pl" $(INSTALLMANARGS)
Bram Moolenaar910f66f2006-04-05 20:41:53 +00001984 -$(SHELL) ./installman.sh install $(DEST_MAN_PL_I) "-pl" $(INSTALLMANARGS)
Bram Moolenaar899dddf2006-03-26 21:06:50 +00001985 -$(SHELL) ./installman.sh install $(DEST_MAN_PL_U) "-pl.UTF-8" $(INSTALLMANARGS)
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001986 -$(SHELL) ./installman.sh install $(DEST_MAN_RU) "-ru" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001987 -$(SHELL) ./installman.sh install $(DEST_MAN_RU_U) "-ru.UTF-8" $(INSTALLMANARGS)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001988 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00001989 $(DEST_MAN_FR) $(INSTALLMLARGS)
1990 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
1991 $(DEST_MAN_FR_I) $(INSTALLMLARGS)
1992 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
1993 $(DEST_MAN_FR_U) $(INSTALLMLARGS)
1994 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001995 $(DEST_MAN_IT) $(INSTALLMLARGS)
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001996 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001997 $(DEST_MAN_IT_I) $(INSTALLMLARGS)
1998 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001999 $(DEST_MAN_IT_U) $(INSTALLMLARGS)
2000 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002001 $(DEST_MAN_PL) $(INSTALLMLARGS)
2002 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaar910f66f2006-04-05 20:41:53 +00002003 $(DEST_MAN_PL_I) $(INSTALLMLARGS)
2004 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002005 $(DEST_MAN_PL_U) $(INSTALLMLARGS)
2006 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002007 $(DEST_MAN_RU) $(INSTALLMLARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002008 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
2009 $(DEST_MAN_RU_U) $(INSTALLMLARGS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002010 if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
2011 cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) LOCALEDIR=$(DEST_LANG) \
2012 INSTALL_DATA=$(INSTALL_DATA) FILEMOD=$(FILEMOD) install; \
2013 fi
2014 if test -d $(LANGSOURCE); then \
2015 $(INSTALL_DATA) $(LANGSOURCE)/README.txt $(LANGSOURCE)/*.vim $(DEST_LANG); \
2016 chmod $(FILEMOD) $(DEST_LANG)/README.txt $(DEST_LANG)/*.vim; \
2017 fi
2018 if test -d $(KMAPSOURCE); then \
2019 $(INSTALL_DATA) $(KMAPSOURCE)/README.txt $(KMAPSOURCE)/*.vim $(DEST_KMAP); \
2020 chmod $(FILEMOD) $(DEST_KMAP)/README.txt $(DEST_KMAP)/*.vim; \
2021 fi
2022
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00002023# install the icons for KDE, if the directory exists and the icon doesn't.
Bram Moolenaare1d12892004-06-13 13:02:36 +00002024ICON48PATH = $(DESTDIR)$(DATADIR)/icons/hicolor/48x48/apps
2025ICON32PATH = $(DESTDIR)$(DATADIR)/icons/locolor/32x32/apps
2026ICON16PATH = $(DESTDIR)$(DATADIR)/icons/locolor/16x16/apps
2027KDEPATH = $(HOME)/.kde/share/icons
2028install-icons:
2029 if test -d $(ICON48PATH) -a -w $(ICON48PATH) \
2030 -a ! -f $(ICON48PATH)/gvim.png; then \
2031 $(INSTALL_DATA) $(SCRIPTSOURCE)/vim48x48.png $(ICON48PATH)/gvim.png; \
2032 fi
2033 if test -d $(ICON32PATH) -a -w $(ICON32PATH) \
2034 -a ! -f $(ICON32PATH)/gvim.png; then \
2035 $(INSTALL_DATA) $(SCRIPTSOURCE)/vim32x32.png $(ICON32PATH)/gvim.png; \
2036 fi
2037 if test -d $(ICON16PATH) -a -w $(ICON16PATH) \
2038 -a ! -f $(ICON16PATH)/gvim.png; then \
2039 $(INSTALL_DATA) $(SCRIPTSOURCE)/vim16x16.png $(ICON16PATH)/gvim.png; \
2040 fi
2041
2042
2043$(HELPSOURCE)/vim.1 $(MACROSOURCE) $(TOOLSSOURCE):
2044 @echo Runtime files not found.
2045 @echo You need to unpack the runtime archive before running "make install".
2046 test -f error
2047
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002048$(DESTDIR)$(exec_prefix) $(DEST_BIN) \
2049 $(DEST_VIM) $(DEST_RT) $(DEST_HELP) \
Bram Moolenaare1d12892004-06-13 13:02:36 +00002050 $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND) $(DEST_FTP) \
2051 $(DEST_LANG) $(DEST_KMAP) $(DEST_COMP) \
Bram Moolenaar217ad922005-03-20 22:37:15 +00002052 $(DEST_MACRO) $(DEST_TOOLS) $(DEST_TUTOR) $(DEST_SPELL) \
Bram Moolenaar18144c82006-04-12 21:52:12 +00002053 $(DEST_AUTO) $(DEST_AUTO)/xml $(DEST_PLUG):
Bram Moolenaare1d12892004-06-13 13:02:36 +00002054 -$(SHELL) ./mkinstalldirs $@
2055 -chmod $(DIRMOD) $@
2056
2057# create links from various names to vim. This is only done when the links
2058# (or executables with the same name) don't exist yet.
2059installlinks: $(GUI_TARGETS) \
2060 $(DEST_BIN)/$(EXTARGET) \
2061 $(DEST_BIN)/$(VIEWTARGET) \
2062 $(DEST_BIN)/$(RVIMTARGET) \
2063 $(DEST_BIN)/$(RVIEWTARGET) \
2064 $(INSTALLVIMDIFF)
2065
2066installglinks: $(DEST_BIN)/$(GVIMTARGET) \
2067 $(DEST_BIN)/$(GVIEWTARGET) \
2068 $(DEST_BIN)/$(RGVIMTARGET) \
2069 $(DEST_BIN)/$(RGVIEWTARGET) \
2070 $(DEST_BIN)/$(EVIMTARGET) \
2071 $(DEST_BIN)/$(EVIEWTARGET) \
2072 $(INSTALLGVIMDIFF)
2073
2074installvimdiff: $(DEST_BIN)/$(VIMDIFFTARGET)
2075installgvimdiff: $(DEST_BIN)/$(GVIMDIFFTARGET)
2076
2077$(DEST_BIN)/$(EXTARGET):
2078 cd $(DEST_BIN); ln -s $(VIMTARGET) $(EXTARGET)
2079
2080$(DEST_BIN)/$(VIEWTARGET):
2081 cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIEWTARGET)
2082
2083$(DEST_BIN)/$(GVIMTARGET):
2084 cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMTARGET)
2085
2086$(DEST_BIN)/$(GVIEWTARGET):
2087 cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIEWTARGET)
2088
2089$(DEST_BIN)/$(RVIMTARGET):
2090 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIMTARGET)
2091
2092$(DEST_BIN)/$(RVIEWTARGET):
2093 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIEWTARGET)
2094
2095$(DEST_BIN)/$(RGVIMTARGET):
2096 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIMTARGET)
2097
2098$(DEST_BIN)/$(RGVIEWTARGET):
2099 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIEWTARGET)
2100
2101$(DEST_BIN)/$(VIMDIFFTARGET):
2102 cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIMDIFFTARGET)
2103
2104$(DEST_BIN)/$(GVIMDIFFTARGET):
2105 cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMDIFFTARGET)
2106
2107$(DEST_BIN)/$(EVIMTARGET):
2108 cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIMTARGET)
2109
2110$(DEST_BIN)/$(EVIEWTARGET):
2111 cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIEWTARGET)
2112
Bram Moolenaardb552d602006-03-23 22:59:57 +00002113# Create links for the manual pages with various names to vim. This is only
Bram Moolenaare1d12892004-06-13 13:02:36 +00002114# done when the links (or manpages with the same name) don't exist yet.
Bram Moolenaare1d12892004-06-13 13:02:36 +00002115
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002116INSTALLMLARGS = $(VIMNAME) $(VIMDIFFNAME) $(EVIMNAME) \
2117 $(EXNAME) $(VIEWNAME) $(RVIMNAME) $(RVIEWNAME) \
2118 $(GVIMNAME) $(GVIEWNAME) $(RGVIMNAME) $(RGVIEWNAME) \
2119 $(GVIMDIFFNAME) $(EVIEWNAME)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002120
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00002121installmanlinks:
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002122 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
2123 $(DEST_MAN) $(INSTALLMLARGS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002124
2125uninstall: uninstall_runtime
2126 -rm -f $(DEST_BIN)/$(VIMTARGET)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002127 -rm -f $(DEST_BIN)/vimtutor
Bram Moolenaar2b570782008-05-07 15:40:33 +00002128 -rm -f $(DEST_BIN)/gvimtutor
Bram Moolenaare1d12892004-06-13 13:02:36 +00002129 -rm -f $(DEST_BIN)/$(EXTARGET) $(DEST_BIN)/$(VIEWTARGET)
2130 -rm -f $(DEST_BIN)/$(GVIMTARGET) $(DEST_BIN)/$(GVIEWTARGET)
2131 -rm -f $(DEST_BIN)/$(RVIMTARGET) $(DEST_BIN)/$(RVIEWTARGET)
2132 -rm -f $(DEST_BIN)/$(RGVIMTARGET) $(DEST_BIN)/$(RGVIEWTARGET)
2133 -rm -f $(DEST_BIN)/$(VIMDIFFTARGET) $(DEST_BIN)/$(GVIMDIFFTARGET)
2134 -rm -f $(DEST_BIN)/$(EVIMTARGET) $(DEST_BIN)/$(EVIEWTARGET)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002135 -rm -f $(DEST_BIN)/xxd$(EXEEXT)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002136
2137# Note: the "rmdir" will fail if any files were added after "make install"
2138uninstall_runtime:
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002139 -$(SHELL) ./installman.sh uninstall $(DEST_MAN) "" $(INSTALLMANARGS)
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00002140 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_FR) "" $(INSTALLMANARGS)
2141 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_FR_I) "" $(INSTALLMANARGS)
2142 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_FR_U) "" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002143 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_IT) "" $(INSTALLMANARGS)
Bram Moolenaar217ad922005-03-20 22:37:15 +00002144 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_IT_I) "" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002145 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_IT_U) "" $(INSTALLMANARGS)
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002146 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_PL) "" $(INSTALLMANARGS)
Bram Moolenaar910f66f2006-04-05 20:41:53 +00002147 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_PL_I) "" $(INSTALLMANARGS)
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002148 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_PL_U) "" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002149 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_RU) "" $(INSTALLMANARGS)
2150 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_RU_U) "" $(INSTALLMANARGS)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002151 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2152 $(DEST_MAN) $(INSTALLMLARGS)
2153 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00002154 $(DEST_MAN_FR) $(INSTALLMLARGS)
2155 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2156 $(DEST_MAN_FR_I) $(INSTALLMLARGS)
2157 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2158 $(DEST_MAN_FR_U) $(INSTALLMLARGS)
2159 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002160 $(DEST_MAN_IT) $(INSTALLMLARGS)
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002161 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaar217ad922005-03-20 22:37:15 +00002162 $(DEST_MAN_IT_I) $(INSTALLMLARGS)
2163 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002164 $(DEST_MAN_IT_U) $(INSTALLMLARGS)
2165 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002166 $(DEST_MAN_PL) $(INSTALLMLARGS)
2167 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaar910f66f2006-04-05 20:41:53 +00002168 $(DEST_MAN_PL_I) $(INSTALLMLARGS)
2169 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002170 $(DEST_MAN_PL_U) $(INSTALLMLARGS)
2171 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002172 $(DEST_MAN_RU) $(INSTALLMLARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002173 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2174 $(DEST_MAN_RU_U) $(INSTALLMLARGS)
2175 -rm -f $(DEST_MAN)/xxd.1
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00002176 -rm -f $(DEST_MAN_FR)/xxd.1 $(DEST_MAN_FR_I)/xxd.1 $(DEST_MAN_FR_U)/xxd.1
Bram Moolenaar217ad922005-03-20 22:37:15 +00002177 -rm -f $(DEST_MAN_IT)/xxd.1 $(DEST_MAN_IT_I)/xxd.1 $(DEST_MAN_IT_U)/xxd.1
Bram Moolenaar910f66f2006-04-05 20:41:53 +00002178 -rm -f $(DEST_MAN_PL)/xxd.1 $(DEST_MAN_PL_I)/xxd.1 $(DEST_MAN_PL_U)/xxd.1
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002179 -rm -f $(DEST_MAN_RU)/xxd.1 $(DEST_MAN_RU_U)/xxd.1
Bram Moolenaare1d12892004-06-13 13:02:36 +00002180 -rm -f $(DEST_HELP)/*.txt $(DEST_HELP)/tags $(DEST_HELP)/*.pl
2181 -rm -f $(DEST_HELP)/*.??x $(DEST_HELP)/tags-??
2182 -rm -f $(SYS_MENU_FILE) $(SYS_SYNMENU_FILE) $(SYS_DELMENU_FILE)
2183 -rm -f $(SYS_BUGR_FILE) $(EVIM_FILE) $(MSWIN_FILE)
2184 -rm -f $(DEST_SCRIPT)/gvimrc_example.vim $(DEST_SCRIPT)/vimrc_example.vim
2185 -rm -f $(SYS_FILETYPE_FILE) $(SYS_FTOFF_FILE) $(SYS_SCRIPTS_FILE)
2186 -rm -f $(SYS_INDOFF_FILE) $(SYS_INDENT_FILE)
2187 -rm -f $(SYS_FTPLUGOF_FILE) $(SYS_FTPLUGIN_FILE)
2188 -rm -f $(SYS_OPTWIN_FILE)
2189 -rm -f $(DEST_COL)/*.vim $(DEST_COL)/README.txt
2190 -rm -f $(DEST_SYN)/*.vim $(DEST_SYN)/README.txt
2191 -rm -f $(DEST_IND)/*.vim $(DEST_IND)/README.txt
2192 -rm -rf $(DEST_MACRO)
2193 -rm -rf $(DEST_TUTOR)
Bram Moolenaar217ad922005-03-20 22:37:15 +00002194 -rm -rf $(DEST_SPELL)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002195 -rm -rf $(DEST_TOOLS)
2196 -rm -rf $(DEST_LANG)
2197 -rm -rf $(DEST_KMAP)
2198 -rm -rf $(DEST_COMP)
2199 -rm -f $(DEST_PRINT)/*.ps
2200 -rmdir $(DEST_HELP) $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND)
2201 -rm -rf $(DEST_FTP)/*.vim $(DEST_FTP)/README.txt
Bram Moolenaar18144c82006-04-12 21:52:12 +00002202 -rm -f $(DEST_AUTO)/*.vim $(DEST_AUTO)/README.txt $(DEST_AUTO)/xml/*.vim
Bram Moolenaare1d12892004-06-13 13:02:36 +00002203 -rm -f $(DEST_PLUG)/*.vim $(DEST_PLUG)/README.txt
Bram Moolenaar18144c82006-04-12 21:52:12 +00002204 -rmdir $(DEST_FTP) $(DEST_AUTO)/xml $(DEST_AUTO) $(DEST_PLUG) $(DEST_RT)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002205# This will fail when other Vim versions are installed, no worries.
2206 -rmdir $(DEST_VIM)
2207
2208# Clean up all the files that have been produced, except configure's.
2209# We support common typing mistakes for Juergen! :-)
2210clean celan: testclean
Bram Moolenaar5a305422006-04-28 22:38:25 +00002211 -rm -f *.o objects/* core $(VIMTARGET).core $(VIMTARGET) vim xxd/*.o
Bram Moolenaare1d12892004-06-13 13:02:36 +00002212 -rm -f $(TOOLS) auto/osdef.h auto/pathdef.c auto/if_perl.c
2213 -rm -f conftest* *~ auto/link.sed
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002214 -rm -rf $(APPDIR)
Bram Moolenaar9e70cf12009-05-26 20:59:55 +00002215 -rm -rf mzscheme_base.c
Bram Moolenaare1d12892004-06-13 13:02:36 +00002216 if test -d $(PODIR); then \
2217 cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) clean; \
2218 fi
2219
2220# Make a shadow directory for compilation on another system or with different
2221# features.
2222SHADOWDIR = shadow
2223
2224shadow: runtime pixmaps
2225 mkdir $(SHADOWDIR)
Bram Moolenaarc4ea3f42008-06-04 13:28:18 +00002226 cd $(SHADOWDIR); ln -s ../*.[ch] ../*.in ../*.sh ../*.xs ../*.xbm ../toolcheck ../proto ../po ../vimtutor ../gvimtutor ../mkinstalldirs .
Bram Moolenaare1d12892004-06-13 13:02:36 +00002227 mkdir $(SHADOWDIR)/auto
2228 cd $(SHADOWDIR)/auto; ln -s ../../auto/configure .
2229 cd $(SHADOWDIR); rm -f auto/link.sed
2230 cp Makefile configure $(SHADOWDIR)
2231 rm -f $(SHADOWDIR)/auto/config.mk $(SHADOWDIR)/config.mk.dist
2232 cp config.mk.dist $(SHADOWDIR)/auto/config.mk
2233 cp config.mk.dist $(SHADOWDIR)
2234 mkdir $(SHADOWDIR)/xxd
2235 cd $(SHADOWDIR)/xxd; ln -s ../../xxd/*.[ch] ../../xxd/Make* .
Bram Moolenaar910f66f2006-04-05 20:41:53 +00002236 if test -d $(RSRC_DIR); then \
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00002237 cd $(SHADOWDIR); \
Bram Moolenaar70fc5272006-05-13 10:55:25 +00002238 ln -s ../infplist.xml .; \
Bram Moolenaar910f66f2006-04-05 20:41:53 +00002239 ln -s ../$(RSRC_DIR) ../os_mac.rsr.hqx ../dehqx.py .; \
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00002240 fi
Bram Moolenaare1d12892004-06-13 13:02:36 +00002241 mkdir $(SHADOWDIR)/testdir
2242 cd $(SHADOWDIR)/testdir; ln -s ../../testdir/Makefile \
2243 ../../testdir/vimrc.unix \
2244 ../../testdir/*.in \
Bram Moolenaarc4ea3f42008-06-04 13:28:18 +00002245 ../../testdir/*.vim \
Bram Moolenaare1d12892004-06-13 13:02:36 +00002246 ../../testdir/*.ok .
2247
2248# Link needed for doing "make install" in a shadow directory.
2249runtime:
2250 -ln -s ../runtime .
2251
2252# Link needed for doing "make" using GTK in a shadow directory.
2253pixmaps:
2254 -ln -s ../pixmaps .
2255
2256# Update the synmenu.vim file with the latest Syntax menu.
2257# This is only needed when runtime/makemenu.vim was changed.
2258menu: ./vim ../runtime/makemenu.vim
2259 ./vim -u ../runtime/makemenu.vim
2260
2261# Start configure from scratch
2262scrub scratch:
2263 -rm -f auto/config.status auto/config.cache config.log auto/config.log
2264 -rm -f auto/config.h auto/link.log auto/link.sed auto/config.mk
2265 touch auto/config.h
2266 cp config.mk.dist auto/config.mk
2267
2268distclean: clean scratch
2269 -rm -f tags
2270
2271dist: distclean
2272 @echo
2273 @echo Making the distribution has to be done in the top directory
2274
2275mdepend:
2276 -@rm -f Makefile~
2277 cp Makefile Makefile~
2278 sed -e '/\#\#\# Dependencies/q' < Makefile > tmp_make
2279 @for i in $(ALL_SRC) ; do \
2280 echo "$$i" ; \
2281 echo `echo "$$i" | sed -e 's/[^ ]*\.c$$/objects\/\1.o/'`": $$i" `\
2282 $(CPP) $$i |\
2283 grep '^# .*"\./.*\.h"' |\
2284 sort -t'"' -u +1 -2 |\
2285 sed -e 's/.*"\.\/\(.*\)".*/\1/'\
2286 ` >> tmp_make ; \
2287 done
2288 mv tmp_make Makefile
2289
2290depend:
2291 -@rm -f Makefile~
2292 cp Makefile Makefile~
2293 sed -e '/\#\#\# Dependencies/q' < Makefile > tmp_make
2294 -for i in $(ALL_SRC); do echo $$i; \
2295 $(CPP_DEPEND) $$i | \
2296 sed -e 's+^\([^ ]*\.o\)+objects/\1+' >> tmp_make; done
2297 mv tmp_make Makefile
2298
Bram Moolenaar9d75c832005-01-25 21:57:23 +00002299# Run lint. Clean up the *.ln files that are sometimes left behind.
Bram Moolenaare1d12892004-06-13 13:02:36 +00002300lint:
Bram Moolenaar0ab2a882009-05-13 10:51:08 +00002301 $(LINT) $(LINT_OPTIONS) $(LINT_CFLAGS) $(LINT_EXTRA) $(LINT_SRC)
Bram Moolenaar9d75c832005-01-25 21:57:23 +00002302 -rm -f *.ln
Bram Moolenaare1d12892004-06-13 13:02:36 +00002303
2304# Check dosinst.c with lint.
2305lintinstall:
Bram Moolenaar0ab2a882009-05-13 10:51:08 +00002306 $(LINT) $(LINT_OPTIONS) -DWIN32 -DUNIX_LINT dosinst.c
Bram Moolenaar9d75c832005-01-25 21:57:23 +00002307 -rm -f dosinst.ln
Bram Moolenaare1d12892004-06-13 13:02:36 +00002308
2309###########################################################################
2310
2311.c.o:
2312 $(CCC) $<
2313
Bram Moolenaare1d12892004-06-13 13:02:36 +00002314auto/if_perl.c: if_perl.xs
2315 $(PERL) -e 'unless ( $$] >= 5.005 ) { for (qw(na defgv errgv)) { print "#define PL_$$_ $$_\n" }}' > $@
2316 $(PERL) $(PERLLIB)/ExtUtils/xsubpp -prototypes -typemap \
2317 $(PERLLIB)/ExtUtils/typemap if_perl.xs >> $@
2318
2319auto/osdef.h: auto/config.h osdef.sh osdef1.h.in osdef2.h.in
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002320 CC="$(CC) $(OSDEF_CFLAGS)" srcdir=$(srcdir) sh $(srcdir)/osdef.sh
Bram Moolenaare1d12892004-06-13 13:02:36 +00002321
Bram Moolenaarde947682006-09-02 14:32:22 +00002322QUOTESED = sed -e 's/[\\"]/\\&/g' -e 's/\\"/"/' -e 's/\\";$$/";/'
Bram Moolenaare1d12892004-06-13 13:02:36 +00002323auto/pathdef.c: Makefile auto/config.mk
2324 -@echo creating $@
2325 -@echo '/* pathdef.c */' > $@
2326 -@echo '/* This file is automatically created by Makefile' >> $@
2327 -@echo ' * DO NOT EDIT! Change Makefile only. */' >> $@
2328 -@echo '#include "vim.h"' >> $@
2329 -@echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' | $(QUOTESED) >> $@
2330 -@echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' | $(QUOTESED) >> $@
2331 -@echo 'char_u *all_cflags = (char_u *)"$(CC) -c -I$(srcdir) $(ALL_CFLAGS)";' | $(QUOTESED) >> $@
2332 -@echo 'char_u *all_lflags = (char_u *)"$(CC) $(ALL_LIB_DIRS) $(LDFLAGS) -o $(VIMTARGET) $(ALL_LIBS) ";' | $(QUOTESED) >> $@
2333 -@echo 'char_u *compiled_user = (char_u *)"' | tr -d $(NL) >> $@
2334 -@if test -n "$(COMPILEDBY)"; then \
2335 echo "$(COMPILEDBY)" | tr -d $(NL) >> $@; \
2336 else ((logname) 2>/dev/null || whoami) | tr -d $(NL) >> $@; fi
2337 -@echo '";' >> $@
2338 -@echo 'char_u *compiled_sys = (char_u *)"' | tr -d $(NL) >> $@
2339 -@if test -z "$(COMPILEDBY)"; then hostname | tr -d $(NL) >> $@; fi
2340 -@echo '";' >> $@
2341 -@sh $(srcdir)/pathdef.sh
2342
2343# All the object files are put in the "objects" directory. Since not all make
2344# commands understand putting object files in another directory, it must be
2345# specified for each file separately.
2346
2347objects:
2348 mkdir objects
2349
Bram Moolenaar40e6a712010-05-16 22:32:54 +02002350objects/blowfish.o: blowfish.c
2351 $(CCC) -o $@ blowfish.c
2352
Bram Moolenaare1d12892004-06-13 13:02:36 +00002353objects/buffer.o: buffer.c
2354 $(CCC) -o $@ buffer.c
2355
2356objects/charset.o: charset.c
2357 $(CCC) -o $@ charset.c
2358
2359objects/diff.o: diff.c
2360 $(CCC) -o $@ diff.c
2361
2362objects/digraph.o: digraph.c
2363 $(CCC) -o $@ digraph.c
2364
2365objects/edit.o: edit.c
2366 $(CCC) -o $@ edit.c
2367
2368objects/eval.o: eval.c
2369 $(CCC) -o $@ eval.c
2370
2371objects/ex_cmds.o: ex_cmds.c
2372 $(CCC) -o $@ ex_cmds.c
2373
2374objects/ex_cmds2.o: ex_cmds2.c
2375 $(CCC) -o $@ ex_cmds2.c
2376
2377objects/ex_docmd.o: ex_docmd.c
2378 $(CCC) -o $@ ex_docmd.c
2379
2380objects/ex_eval.o: ex_eval.c
2381 $(CCC) -o $@ ex_eval.c
2382
2383objects/ex_getln.o: ex_getln.c
2384 $(CCC) -o $@ ex_getln.c
2385
2386objects/fileio.o: fileio.c
2387 $(CCC) -o $@ fileio.c
2388
2389objects/fold.o: fold.c
2390 $(CCC) -o $@ fold.c
2391
2392objects/getchar.o: getchar.c
2393 $(CCC) -o $@ getchar.c
2394
Bram Moolenaar58d98232005-07-23 22:25:46 +00002395objects/hardcopy.o: hardcopy.c
2396 $(CCC) -o $@ hardcopy.c
2397
Bram Moolenaarc01140a2006-03-24 22:21:52 +00002398objects/hashtab.o: hashtab.c
2399 $(CCC) -o $@ hashtab.c
Bram Moolenaar383f9bc2005-01-19 22:18:32 +00002400
Bram Moolenaare1d12892004-06-13 13:02:36 +00002401objects/gui.o: gui.c
2402 $(CCC) -o $@ gui.c
2403
2404objects/gui_at_fs.o: gui_at_fs.c
2405 $(CCC) -o $@ gui_at_fs.c
2406
2407objects/gui_at_sb.o: gui_at_sb.c
2408 $(CCC) -o $@ gui_at_sb.c
2409
2410objects/gui_athena.o: gui_athena.c
2411 $(CCC) -o $@ gui_athena.c
2412
Bram Moolenaare1d12892004-06-13 13:02:36 +00002413objects/gui_beval.o: gui_beval.c
2414 $(CCC) -o $@ gui_beval.c
2415
2416objects/gui_gtk.o: gui_gtk.c
2417 $(CCC) -o $@ gui_gtk.c
2418
2419objects/gui_gtk_f.o: gui_gtk_f.c
2420 $(CCC) -o $@ gui_gtk_f.c
2421
2422objects/gui_gtk_x11.o: gui_gtk_x11.c
2423 $(CCC) -o $@ gui_gtk_x11.c
2424
2425objects/gui_motif.o: gui_motif.c
2426 $(CCC) -o $@ gui_motif.c
2427
Bram Moolenaardfccaf02004-12-31 20:56:11 +00002428objects/gui_xmdlg.o: gui_xmdlg.c
2429 $(CCC) -o $@ gui_xmdlg.c
2430
Bram Moolenaarb7fcef52005-01-02 11:31:05 +00002431objects/gui_xmebw.o: gui_xmebw.c
2432 $(CCC) -o $@ gui_xmebw.c
2433
Bram Moolenaare1d12892004-06-13 13:02:36 +00002434objects/gui_x11.o: gui_x11.c
2435 $(CCC) -o $@ gui_x11.c
2436
2437objects/gui_photon.o: gui_photon.c
2438 $(CCC) -o $@ gui_photon.c
2439
2440objects/gui_mac.o: gui_mac.c
2441 $(CCC) -o $@ gui_mac.c
2442
2443objects/hangulin.o: hangulin.c
2444 $(CCC) -o $@ hangulin.c
2445
2446objects/if_cscope.o: if_cscope.c
2447 $(CCC) -o $@ if_cscope.c
2448
2449objects/if_xcmdsrv.o: if_xcmdsrv.c
2450 $(CCC) -o $@ if_xcmdsrv.c
2451
Bram Moolenaar0ba04292010-07-14 23:23:17 +02002452objects/if_lua.o: if_lua.c
2453 $(CCC) -o $@ if_lua.c
2454
Bram Moolenaar9e70cf12009-05-26 20:59:55 +00002455objects/if_mzsch.o: if_mzsch.c $(MZSCHEME_EXTRA)
Bram Moolenaarcd8b20a2009-05-22 16:20:57 +00002456 $(CCC) -o $@ $(MZSCHEME_CFLAGS_EXTRA) if_mzsch.c
Bram Moolenaar9e70cf12009-05-26 20:59:55 +00002457
2458mzscheme_base.c:
2459 $(MZSCHEME_MZC) --c-mods mzscheme_base.c ++lib scheme/base
Bram Moolenaar325b7a22004-07-05 15:58:32 +00002460
Bram Moolenaare1d12892004-06-13 13:02:36 +00002461objects/if_perl.o: auto/if_perl.c
2462 $(CCC) -o $@ auto/if_perl.c
2463
2464objects/if_perlsfio.o: if_perlsfio.c
2465 $(CCC) -o $@ if_perlsfio.c
2466
2467objects/if_python.o: if_python.c
Bram Moolenaarcd8b20a2009-05-22 16:20:57 +00002468 $(CCC) -o $@ $(PYTHON_CFLAGS_EXTRA) if_python.c
Bram Moolenaare1d12892004-06-13 13:02:36 +00002469
2470objects/if_ruby.o: if_ruby.c
2471 $(CCC) -o $@ if_ruby.c
2472
2473objects/if_sniff.o: if_sniff.c
2474 $(CCC) -o $@ if_sniff.c
2475
2476objects/if_tcl.o: if_tcl.c
2477 $(CCC) -o $@ if_tcl.c
2478
2479objects/integration.o: integration.c
2480 $(CCC) -o $@ integration.c
2481
2482objects/main.o: main.c
2483 $(CCC) -o $@ main.c
2484
2485objects/mark.o: mark.c
2486 $(CCC) -o $@ mark.c
2487
2488objects/memfile.o: memfile.c
2489 $(CCC) -o $@ memfile.c
2490
2491objects/memline.o: memline.c
2492 $(CCC) -o $@ memline.c
2493
2494objects/menu.o: menu.c
2495 $(CCC) -o $@ menu.c
2496
2497objects/message.o: message.c
2498 $(CCC) -o $@ message.c
2499
2500objects/misc1.o: misc1.c
2501 $(CCC) -o $@ misc1.c
2502
2503objects/misc2.o: misc2.c
2504 $(CCC) -o $@ misc2.c
2505
2506objects/move.o: move.c
2507 $(CCC) -o $@ move.c
2508
2509objects/mbyte.o: mbyte.c
2510 $(CCC) -o $@ mbyte.c
2511
2512objects/normal.o: normal.c
2513 $(CCC) -o $@ normal.c
2514
2515objects/ops.o: ops.c
2516 $(CCC) -o $@ ops.c
2517
2518objects/option.o: option.c
2519 $(CCC) -o $@ option.c
2520
2521objects/os_beos.o: os_beos.c
2522 $(CCC) -o $@ os_beos.c
2523
2524objects/os_qnx.o: os_qnx.c
2525 $(CCC) -o $@ os_qnx.c
2526
Bram Moolenaar164fca32010-07-14 13:58:07 +02002527objects/os_macosx.o: os_macosx.m
2528 $(CCC) -o $@ os_macosx.m
Bram Moolenaare1d12892004-06-13 13:02:36 +00002529
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002530objects/os_mac_conv.o: os_mac_conv.c
2531 $(CCC) -o $@ os_mac_conv.c
2532
Bram Moolenaare1d12892004-06-13 13:02:36 +00002533objects/os_unix.o: os_unix.c
2534 $(CCC) -o $@ os_unix.c
2535
2536objects/pathdef.o: auto/pathdef.c
2537 $(CCC) -o $@ auto/pathdef.c
2538
2539objects/py_config.o: $(PYTHON_CONFDIR)/config.c
2540 $(CCC) -o $@ $(PYTHON_CONFDIR)/config.c \
2541 -I$(PYTHON_CONFDIR) -DHAVE_CONFIG_H -DNO_MAIN
2542
2543objects/py_getpath.o: $(PYTHON_CONFDIR)/getpath.c
2544 $(CCC) -o $@ $(PYTHON_CONFDIR)/getpath.c \
2545 -I$(PYTHON_CONFDIR) -DHAVE_CONFIG_H -DNO_MAIN \
2546 $(PYTHON_GETPATH_CFLAGS)
2547
2548objects/pty.o: pty.c
2549 $(CCC) -o $@ pty.c
2550
Bram Moolenaarc01140a2006-03-24 22:21:52 +00002551objects/popupmnu.o: popupmnu.c
2552 $(CCC) -o $@ popupmnu.c
Bram Moolenaar1c7715d2005-10-03 22:02:18 +00002553
Bram Moolenaare1d12892004-06-13 13:02:36 +00002554objects/quickfix.o: quickfix.c
2555 $(CCC) -o $@ quickfix.c
2556
2557objects/regexp.o: regexp.c
2558 $(CCC) -o $@ regexp.c
2559
2560objects/screen.o: screen.c
2561 $(CCC) -o $@ screen.c
2562
2563objects/search.o: search.c
2564 $(CCC) -o $@ search.c
2565
Bram Moolenaar40e6a712010-05-16 22:32:54 +02002566objects/sha256.o: sha256.c
2567 $(CCC) -o $@ sha256.c
2568
Bram Moolenaar217ad922005-03-20 22:37:15 +00002569objects/spell.o: spell.c
2570 $(CCC) -o $@ spell.c
2571
Bram Moolenaare1d12892004-06-13 13:02:36 +00002572objects/syntax.o: syntax.c
2573 $(CCC) -o $@ syntax.c
2574
2575objects/tag.o: tag.c
2576 $(CCC) -o $@ tag.c
2577
2578objects/term.o: term.c
2579 $(CCC) -o $@ term.c
2580
2581objects/ui.o: ui.c
2582 $(CCC) -o $@ ui.c
2583
2584objects/undo.o: undo.c
2585 $(CCC) -o $@ undo.c
2586
2587objects/window.o: window.c
2588 $(CCC) -o $@ window.c
2589
2590objects/workshop.o: workshop.c
2591 $(CCC) -o $@ workshop.c
2592
2593objects/wsdebug.o: wsdebug.c
2594 $(CCC) -o $@ wsdebug.c
2595
2596objects/netbeans.o: netbeans.c
2597 $(CCC) -o $@ netbeans.c
2598
2599Makefile:
2600 @echo The name of the makefile MUST be "Makefile" (with capital M)!!!!
2601
2602###############################################################################
2603### MacOS X installation
2604###
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002605### This installs a runnable Vim.app in $(prefix)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002606
2607REZ = /Developer/Tools/Rez
Bram Moolenaare1d12892004-06-13 13:02:36 +00002608RESDIR = $(APPDIR)/Contents/Resources
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00002609VERSION = $(VIMMAJOR).$(VIMMINOR)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002610
2611### Common flags
2612M4FLAGSX = $(M4FLAGS) -DAPP_EXE=$(VIMNAME) -DAPP_NAME=$(VIMNAME) \
Bram Moolenaar910f66f2006-04-05 20:41:53 +00002613 -DAPP_VER=$(VERSION)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002614
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002615install_macosx: gui_bundle
Bram Moolenaare344bea2005-09-01 20:46:49 +00002616# Remove the link to the runtime dir, don't want to copy all of that.
Bram Moolenaar56718732006-03-15 22:53:57 +00002617 -rm $(RESDIR)/vim/runtime
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002618 $(INSTALL_DATA_R) $(APPDIR) $(DESTDIR)$(prefix)
Bram Moolenaardb552d602006-03-23 22:59:57 +00002619# Generate the help tags file now, it won't work with "make installruntime".
2620 -@srcdir=`pwd`; cd $(HELPSOURCE); $(MAKE) VIMEXE=$$srcdir/$(VIMTARGET) vimtags
Bram Moolenaare344bea2005-09-01 20:46:49 +00002621# Install the runtime files. Recursive!
Bram Moolenaar56718732006-03-15 22:53:57 +00002622 -mkdir -p $(DESTDIR)$(prefix)/$(RESDIR)/vim/runtime
2623# -mkdir $(DESTDIR)$(prefix)/$(APPDIR)/bin
Bram Moolenaare344bea2005-09-01 20:46:49 +00002624 srcdir=`pwd`; $(MAKE) -f Makefile installruntime \
2625 VIMEXE=$$srcdir/$(VIMTARGET) \
Bram Moolenaarce51ebc2008-01-04 10:54:50 +00002626 prefix=$(DESTDIR)$(prefix)/$(RESDIR)$(VIMDIR) \
2627 exec_prefix=$(DESTDIR)$(prefix)/$(APPDIR)/Contents \
2628 BINDIR=$(DESTDIR)$(prefix)/$(APPDIR)/Contents/MacOS \
2629 VIMLOC=$(DESTDIR)$(prefix)/$(RESDIR)$(VIMDIR) \
2630 VIMRTLOC=$(DESTDIR)$(prefix)/$(RESDIR)$(VIMDIR)/runtime
Bram Moolenaare344bea2005-09-01 20:46:49 +00002631# Put the link back.
Bram Moolenaar56718732006-03-15 22:53:57 +00002632 ln -s `pwd`/../runtime $(RESDIR)/vim
Bram Moolenaara38edcd2007-05-10 17:46:55 +00002633# Copy rgb.txt, Mac doesn't always have X11
2634 $(INSTALL_DATA) $(SCRIPTSOURCE)/rgb.txt $(DESTDIR)$(prefix)/$(RESDIR)/vim/runtime
Bram Moolenaar3577c6f2008-06-24 21:16:56 +00002635# TODO: Create the vimtutor and/or gvimtutor application.
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002636
Bram Moolenaar56718732006-03-15 22:53:57 +00002637gui_bundle: $(RESDIR) bundle-dir bundle-executable bundle-info bundle-resource \
Bram Moolenaare1d12892004-06-13 13:02:36 +00002638 bundle-language
2639
Bram Moolenaar56718732006-03-15 22:53:57 +00002640$(RESDIR):
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002641 mkdir -p $@
2642
Bram Moolenaare1d12892004-06-13 13:02:36 +00002643bundle-dir: $(APPDIR)/Contents $(VIMTARGET)
Bram Moolenaare344bea2005-09-01 20:46:49 +00002644# Make a link to the runtime directory, so that we can try out the executable
2645# without installing it.
Bram Moolenaar56718732006-03-15 22:53:57 +00002646 mkdir -p $(RESDIR)/vim
2647 -ln -s `pwd`/../runtime $(RESDIR)/vim
Bram Moolenaare1d12892004-06-13 13:02:36 +00002648
2649bundle-executable: $(VIMTARGET)
Bram Moolenaar56718732006-03-15 22:53:57 +00002650 mkdir -p $(APPDIR)/Contents/MacOS
Bram Moolenaare1d12892004-06-13 13:02:36 +00002651 cp $(VIMTARGET) $(APPDIR)/Contents/MacOS/$(VIMTARGET)
2652
2653bundle-info: bundle-dir
2654 @echo "Creating PkgInfo"
2655 @echo -n "APPLVIM!" > $(APPDIR)/Contents/PkgInfo
2656 @echo "Creating Info.plist"
2657 m4 $(M4FLAGSX) infplist.xml > $(APPDIR)/Contents/Info.plist
2658
Bram Moolenaar910f66f2006-04-05 20:41:53 +00002659bundle-resource: bundle-dir bundle-rsrc
2660 cp -f $(RSRC_DIR)/*.icns $(RESDIR)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002661
2662### Classic resources
2663# Resource fork (in the form of a .rsrc file) for Classic Vim (Mac OS 9)
2664# This file is also required for OS X Vim.
2665bundle-rsrc: os_mac.rsr.hqx
2666 @echo "Creating resource fork"
2667 python dehqx.py $<
2668 rm -f gui_mac.rsrc
2669 mv gui_mac.rsrc.rsrcfork $(RESDIR)/$(VIMNAME).rsrc
2670
2671# po/Make_osx.pl says something about generating a Mac message file
2672# for Ukrananian. Would somebody using Mac OS X in Ukranian
2673# *really* be upset that Carbon Vim was not localised in
2674# Ukranian?
2675#
2676#bundle-language: bundle-dir po/Make_osx.pl
2677# cd po && perl Make_osx.pl --outdir ../$(RESDIR) $(MULTILANG)
2678bundle-language: bundle-dir
2679
2680$(APPDIR)/Contents:
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002681 -$(SHELL) ./mkinstalldirs $(APPDIR)/Contents/MacOS
2682 -$(SHELL) ./mkinstalldirs $(RESDIR)/English.lproj
Bram Moolenaare1d12892004-06-13 13:02:36 +00002683
Bram Moolenaare1d12892004-06-13 13:02:36 +00002684
2685###############################################################################
2686### (automatically generated by 'make depend')
2687### Dependencies:
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002688objects/blowfish.o: blowfish.c vim.h auto/config.h feature.h os_unix.h \
2689 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2690 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2691 globals.h farsi.h arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002692objects/buffer.o: buffer.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002693 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2694 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2695 arabic.h version.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002696objects/charset.o: charset.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002697 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2698 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2699 arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002700objects/diff.o: diff.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002701 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2702 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2703 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002704objects/digraph.o: digraph.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002705 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2706 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2707 arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002708objects/edit.o: edit.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002709 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2710 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2711 arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002712objects/eval.o: eval.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002713 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2714 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2715 arabic.h version.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002716objects/ex_cmds.o: ex_cmds.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002717 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2718 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2719 arabic.h version.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002720objects/ex_cmds2.o: ex_cmds2.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002721 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2722 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2723 globals.h farsi.h arabic.h version.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002724objects/ex_docmd.o: ex_docmd.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002725 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2726 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2727 globals.h farsi.h arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002728objects/ex_eval.o: ex_eval.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002729 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2730 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2731 arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002732objects/ex_getln.o: ex_getln.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002733 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2734 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2735 globals.h farsi.h arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002736objects/fileio.o: fileio.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002737 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2738 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2739 arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002740objects/fold.o: fold.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002741 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2742 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2743 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002744objects/getchar.o: getchar.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002745 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2746 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2747 arabic.h
Bram Moolenaar58d98232005-07-23 22:25:46 +00002748objects/hardcopy.o: hardcopy.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002749 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2750 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2751 globals.h farsi.h arabic.h version.h
Bram Moolenaarc01140a2006-03-24 22:21:52 +00002752objects/hashtab.o: hashtab.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002753 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2754 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2755 arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002756objects/if_cscope.o: if_cscope.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002757 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2758 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2759 globals.h farsi.h arabic.h if_cscope.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002760objects/if_xcmdsrv.o: if_xcmdsrv.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002761 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2762 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2763 globals.h farsi.h arabic.h version.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002764objects/main.o: main.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002765 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2766 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2767 arabic.h farsi.c arabic.c
Bram Moolenaare1d12892004-06-13 13:02:36 +00002768objects/mark.o: mark.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002769 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2770 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2771 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002772objects/memfile.o: memfile.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002773 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2774 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2775 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002776objects/memline.o: memline.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002777 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2778 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2779 arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002780objects/menu.o: menu.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002781 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2782 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2783 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002784objects/message.o: message.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002785 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2786 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2787 arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002788objects/misc1.o: misc1.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002789 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2790 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2791 arabic.h version.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002792objects/misc2.o: misc2.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002793 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2794 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2795 arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002796objects/move.o: move.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002797 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2798 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2799 arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002800objects/mbyte.o: mbyte.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002801 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2802 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2803 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002804objects/normal.o: normal.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002805 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2806 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2807 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002808objects/ops.o: ops.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002809 keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \
2810 proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002811objects/option.o: option.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002812 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2813 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2814 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002815objects/os_unix.o: os_unix.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002816 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2817 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2818 arabic.h if_mzsch.h os_unixx.h
2819objects/pathdef.o: auto/pathdef.c vim.h auto/config.h feature.h os_unix.h \
2820 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2821 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2822 globals.h farsi.h arabic.h
Bram Moolenaarc01140a2006-03-24 22:21:52 +00002823objects/popupmnu.o: popupmnu.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002824 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2825 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2826 globals.h farsi.h arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002827objects/quickfix.o: quickfix.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002828 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2829 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2830 globals.h farsi.h arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002831objects/regexp.o: regexp.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002832 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2833 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2834 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002835objects/screen.o: screen.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002836 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2837 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2838 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002839objects/search.o: search.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002840 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2841 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2842 arabic.h
2843objects/sha256.o: sha256.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2844 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2845 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2846 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002847objects/spell.o: spell.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002848 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2849 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2850 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002851objects/syntax.o: syntax.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002852 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2853 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2854 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002855objects/tag.o: tag.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002856 keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \
2857 proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002858objects/term.o: term.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002859 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2860 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2861 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002862objects/ui.o: ui.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002863 keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \
2864 proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002865objects/undo.o: undo.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002866 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2867 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2868 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002869objects/version.o: version.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002870 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2871 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2872 arabic.h version.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002873objects/window.o: window.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002874 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2875 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2876 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002877objects/gui.o: gui.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002878 keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \
2879 proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h
Bram Moolenaar202795b2005-10-11 20:29:39 +00002880objects/gui_gtk.o: gui_gtk.c gui_gtk_f.h vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002881 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2882 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2883 globals.h farsi.h arabic.h ../pixmaps/stock_icons.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002884objects/gui_gtk_f.o: gui_gtk_f.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002885 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2886 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2887 globals.h farsi.h arabic.h gui_gtk_f.h
Bram Moolenaar202795b2005-10-11 20:29:39 +00002888objects/gui_motif.o: gui_motif.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002889 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2890 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2891 globals.h farsi.h arabic.h gui_xmebw.h ../pixmaps/alert.xpm \
2892 ../pixmaps/error.xpm ../pixmaps/generic.xpm ../pixmaps/info.xpm \
2893 ../pixmaps/quest.xpm gui_x11_pm.h ../pixmaps/tb_new.xpm \
2894 ../pixmaps/tb_open.xpm ../pixmaps/tb_close.xpm ../pixmaps/tb_save.xpm \
2895 ../pixmaps/tb_print.xpm ../pixmaps/tb_cut.xpm ../pixmaps/tb_copy.xpm \
2896 ../pixmaps/tb_paste.xpm ../pixmaps/tb_find.xpm \
2897 ../pixmaps/tb_find_next.xpm ../pixmaps/tb_find_prev.xpm \
2898 ../pixmaps/tb_find_help.xpm ../pixmaps/tb_exit.xpm \
2899 ../pixmaps/tb_undo.xpm ../pixmaps/tb_redo.xpm ../pixmaps/tb_help.xpm \
2900 ../pixmaps/tb_macro.xpm ../pixmaps/tb_make.xpm \
2901 ../pixmaps/tb_save_all.xpm ../pixmaps/tb_jump.xpm \
2902 ../pixmaps/tb_ctags.xpm ../pixmaps/tb_load_session.xpm \
2903 ../pixmaps/tb_save_session.xpm ../pixmaps/tb_new_session.xpm \
2904 ../pixmaps/tb_blank.xpm ../pixmaps/tb_maximize.xpm \
2905 ../pixmaps/tb_split.xpm ../pixmaps/tb_minimize.xpm \
2906 ../pixmaps/tb_shell.xpm ../pixmaps/tb_replace.xpm \
2907 ../pixmaps/tb_vsplit.xpm ../pixmaps/tb_maxwidth.xpm \
2908 ../pixmaps/tb_minwidth.xpm
Bram Moolenaar202795b2005-10-11 20:29:39 +00002909objects/gui_xmdlg.o: gui_xmdlg.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002910 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2911 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2912 globals.h farsi.h arabic.h
Bram Moolenaar202795b2005-10-11 20:29:39 +00002913objects/gui_xmebw.o: gui_xmebw.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002914 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2915 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2916 globals.h farsi.h arabic.h gui_xmebwp.h gui_xmebw.h
Bram Moolenaar202795b2005-10-11 20:29:39 +00002917objects/gui_athena.o: gui_athena.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002918 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2919 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2920 globals.h farsi.h arabic.h gui_at_sb.h gui_x11_pm.h \
2921 ../pixmaps/tb_new.xpm ../pixmaps/tb_open.xpm ../pixmaps/tb_close.xpm \
2922 ../pixmaps/tb_save.xpm ../pixmaps/tb_print.xpm ../pixmaps/tb_cut.xpm \
2923 ../pixmaps/tb_copy.xpm ../pixmaps/tb_paste.xpm ../pixmaps/tb_find.xpm \
2924 ../pixmaps/tb_find_next.xpm ../pixmaps/tb_find_prev.xpm \
2925 ../pixmaps/tb_find_help.xpm ../pixmaps/tb_exit.xpm \
2926 ../pixmaps/tb_undo.xpm ../pixmaps/tb_redo.xpm ../pixmaps/tb_help.xpm \
2927 ../pixmaps/tb_macro.xpm ../pixmaps/tb_make.xpm \
2928 ../pixmaps/tb_save_all.xpm ../pixmaps/tb_jump.xpm \
2929 ../pixmaps/tb_ctags.xpm ../pixmaps/tb_load_session.xpm \
2930 ../pixmaps/tb_save_session.xpm ../pixmaps/tb_new_session.xpm \
2931 ../pixmaps/tb_blank.xpm ../pixmaps/tb_maximize.xpm \
2932 ../pixmaps/tb_split.xpm ../pixmaps/tb_minimize.xpm \
2933 ../pixmaps/tb_shell.xpm ../pixmaps/tb_replace.xpm \
2934 ../pixmaps/tb_vsplit.xpm ../pixmaps/tb_maxwidth.xpm \
2935 ../pixmaps/tb_minwidth.xpm
Bram Moolenaar202795b2005-10-11 20:29:39 +00002936objects/gui_gtk_x11.o: gui_gtk_x11.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002937 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2938 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2939 globals.h farsi.h arabic.h gui_gtk_f.h ../runtime/vim32x32.xpm \
2940 ../runtime/vim16x16.xpm ../runtime/vim48x48.xpm
Bram Moolenaar202795b2005-10-11 20:29:39 +00002941objects/gui_x11.o: gui_x11.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002942 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2943 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2944 arabic.h ../runtime/vim32x32.xpm ../runtime/vim16x16.xpm \
2945 ../runtime/vim48x48.xpm
Bram Moolenaar202795b2005-10-11 20:29:39 +00002946objects/gui_at_sb.o: gui_at_sb.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002947 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2948 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2949 globals.h farsi.h arabic.h gui_at_sb.h
Bram Moolenaar202795b2005-10-11 20:29:39 +00002950objects/gui_at_fs.o: gui_at_fs.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002951 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2952 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2953 globals.h farsi.h arabic.h gui_at_sb.h
Bram Moolenaar202795b2005-10-11 20:29:39 +00002954objects/pty.o: pty.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002955 keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \
2956 proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002957objects/hangulin.o: hangulin.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002958 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2959 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2960 globals.h farsi.h arabic.h
Bram Moolenaar0ba04292010-07-14 23:23:17 +02002961objects/if_lua.o: if_lua.c vim.h auto/config.h feature.h os_unix.h \
2962 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2963 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2964 globals.h farsi.h arabic.h
Bram Moolenaarc01140a2006-03-24 22:21:52 +00002965objects/if_mzsch.o: if_mzsch.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002966 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2967 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2968 globals.h farsi.h arabic.h if_mzsch.h mzscheme_base.c
2969objects/if_perl.o: auto/if_perl.c vim.h auto/config.h feature.h os_unix.h \
2970 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2971 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2972 globals.h farsi.h arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002973objects/if_perlsfio.o: if_perlsfio.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002974 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2975 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2976 globals.h farsi.h arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002977objects/if_python.o: if_python.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002978 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2979 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2980 globals.h farsi.h arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002981objects/if_tcl.o: if_tcl.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002982 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2983 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2984 arabic.h
Bram Moolenaar202795b2005-10-11 20:29:39 +00002985objects/if_ruby.o: if_ruby.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002986 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2987 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2988 arabic.h version.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002989objects/if_sniff.o: if_sniff.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002990 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2991 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2992 globals.h farsi.h arabic.h os_unixx.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002993objects/gui_beval.o: gui_beval.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002994 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2995 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2996 globals.h farsi.h arabic.h
Bram Moolenaar202795b2005-10-11 20:29:39 +00002997objects/workshop.o: workshop.c auto/config.h integration.h vim.h feature.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002998 os_unix.h auto/osdef.h ascii.h keymap.h term.h macros.h option.h \
2999 structs.h regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h \
3000 proto.h globals.h farsi.h arabic.h version.h workshop.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00003001objects/wsdebug.o: wsdebug.c
3002objects/integration.o: integration.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02003003 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3004 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
3005 globals.h farsi.h arabic.h integration.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00003006objects/netbeans.o: netbeans.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02003007 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3008 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
3009 globals.h farsi.h arabic.h version.h