blob: b01029f94139251a104c3f0c2582fbb3a5adf92e [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
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +020044# --enable-python3interp for Python3 interpreter
Bram Moolenaare1d12892004-06-13 13:02:36 +000045# --enable-rubyinterp for Ruby interpreter
46# --enable-tclinterp for Tcl interpreter
47# --enable-cscope for Cscope interface
48# - Uncomment one of the lines with --with-features= to enable a set of
49# features (but not the interfaces just mentioned).
50# - Uncomment the line with --disable-acl to disable ACL support even
51# though your system supports it.
52# - Uncomment the line with --disable-gpm to disable gpm support
Bram Moolenaar3577c6f2008-06-24 21:16:56 +000053# even though you have gpm libraries and includes.
54# - Uncomment the line with --disable-sysmouse to disable sysmouse
55# support even though you have /dev/sysmouse and includes.
Bram Moolenaare1d12892004-06-13 13:02:36 +000056# - Uncomment one of the lines with CFLAGS and/or CC if you have
57# something very special or want to tune the optimizer.
58# - Search for the name of your system to see if it needs anything
59# special.
60# - A few versions of make use '.include "file"' instead of 'include
61# file'. Adjust the include line below if yours does.
62#
63# 2. Edit feature.h {{{1
64# Only if you do not agree with the default compile features, e.g.:
65# - you want Vim to be as vi compatible as it can be
66# - you want to use Emacs tags files
67# - you want right-to-left editing (Hebrew)
68# - you want 'langmap' support (Greek)
69# - you want to remove features to make Vim smaller
70#
71# 3. "make" {{{1
72# Will first run ./configure with the options in this file. Then it will
73# start make again on this Makefile to do the compiling. You can also do
74# this in two steps with:
75# make config
76# make
77# The configuration phase creates/overwrites auto/config.h and
78# auto/config.mk.
79# The configure script is created with "make autoconf". It can detect
80# different features of your system and act accordingly. However, it is
81# not correct for all systems. Check this:
82# - If you have X windows, but configure could not find it or reported
83# another include/library directory then you wanted to use, you have
84# to set CONF_OPT_X below. You might also check the installation of
85# xmkmf.
86# - If you have --enable-gui=motif and have Motif on your system, but
87# configure reports "checking for location of gui... <not found>", you
88# have to set GUI_INC_LOC and GUI_LIB_LOC below.
89# If you changed something, do this to run configure again:
90# make reconfig
91#
92# - If you do not trust the automatic configuration code, then inspect
93# auto/config.h and auto/config.mk, before starting the actual build
94# phase. If possible edit this Makefile, rather than auto/config.mk --
95# especially look at the definition of VIMLOC below. Note that the
96# configure phase overwrites auto/config.mk and auto/config.h again.
97# - If you get error messages, find out what is wrong and try to correct
98# it in this Makefile. You may need to do "make reconfig" when you
99# change anything that configure uses (e.g. switching from an old C
100# compiler to an ANSI C compiler). Only when auto/configure does
101# something wrong you may need to change one of the other files. If
102# you find a clean way to fix the problem, consider sending a note to
103# the author of autoconf (bug-gnu-utils@prep.ai.mit.edu) or Vim
104# (Bram@vim.org). Don't bother to do that when you made a hack
105# solution for a non-standard system.
106#
107# 4. "make test" {{{1
108# This is optional. This will run Vim scripts on a number of test
109# files, and compare the produced output with the expected output.
Bram Moolenaarcd8b20a2009-05-22 16:20:57 +0000110# If all is well, you will get the "ALL DONE" message in the end. If a
111# test fails you get "TEST FAILURE". See below (search for "/^test").
Bram Moolenaare1d12892004-06-13 13:02:36 +0000112#
113# 5. "make install" {{{1
114# If the new Vim seems to be working OK you can install it and the
115# documentation in the appropriate location. The default is
116# "/usr/local". Change "prefix" below to change the location.
117# "auto/pathdef.c" will be compiled again after changing this to make
118# the executable know where the help files are located.
119# Note that any existing executable is removed or overwritten. If you
120# want to keep it you will have to make a backup copy first.
121# The runtime files are in a different directory for each version. You
122# might want to delete an older version.
123# If you don't want to install everything, there are other targets:
124# make installvim only installs Vim, not the tools
125# make installvimbin only installs the Vim executable
Bram Moolenaare344bea2005-09-01 20:46:49 +0000126# make installruntime installs most of the runtime files
127# make installrtbase only installs the Vim help and
Bram Moolenaare1d12892004-06-13 13:02:36 +0000128# runtime files
129# make installlinks only installs the Vim binary links
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000130# make installmanlinks only installs the Vim manpage links
Bram Moolenaare1d12892004-06-13 13:02:36 +0000131# make installmacros only installs the Vim macros
Bram Moolenaare344bea2005-09-01 20:46:49 +0000132# make installtutorbin only installs the Vim tutor program
133# make installtutor only installs the Vim tutor files
Bram Moolenaar217ad922005-03-20 22:37:15 +0000134# make installspell only installs the spell files
Bram Moolenaare1d12892004-06-13 13:02:36 +0000135# make installtools only installs xxd
136# If you install Vim, not to install for real but to prepare a package
137# or RPM, set DESTDIR to the root of the tree.
138#
139# 6. Use Vim until a new version comes out. {{{1
140#
141# 7. "make uninstall_runtime" {{{1
142# Will remove the runtime files for the current version. This is safe
143# to use while another version is being used, only version-specific
144# files will be deleted.
145# To remove the runtime files of another version:
146# make uninstall_runtime VIMRTDIR=/vim54
147# If you want to delete all installed files, use:
148# make uninstall
149# Note that this will delete files that have the same name for any
150# version, thus you might need to do a "make install" soon after this.
151# Be careful not to remove a version of Vim that is still being used!
152# To find out which files and directories will be deleted, use:
153# make -n uninstall
154# }}}
155#
Bram Moolenaara5792f52005-11-23 21:25:05 +0000156### This Makefile has been successfully tested on many systems. {{{
Bram Moolenaare1d12892004-06-13 13:02:36 +0000157### Only the ones that require special options are mentioned here.
158### Check the (*) column for remarks, listed below.
159### Later code changes may cause small problems, otherwise Vim is supposed to
160### compile and run without problems.
161
162#system: configurations: version (*) tested by:
163#------------- ------------------------ ------- - ----------
164#AIX 3.2.5 cc (not gcc) - 4.5 (M) Will Fiveash
165#AIX 4 cc +X11 -GUI 3.27 (4) Axel Kielhorn
166#AIX 4.1.4 cc +X11 +GUI 4.5 (5) Nico Bakker
167#AIX 4.2.1 cc 5.2k (C) Will Fiveash
168#AIX 4.3.3.12 xic 3.6.6 5.6 (5) David R. Favor
169#A/UX 3.1.1 gcc +X11 4.0 (6) Jim Jagielski
170#BeOS PR mwcc DR3 5.0n (T) Olaf Seibert
171#BSDI 2.1 (x86) shlicc2 gcc-2.6.3 -X11 X11R6 4.5 (1) Jos Backus
172#BSD/OS 3.0 (x86) gcc gcc-2.7.2.1 -X11 X11R6 4.6c (1) Jos Backus
173#CX/UX 6.2 cc +X11 +GUI_Mofif 5.4 (V) Kipp E. Howard
174#DG/UX 5.4* gcc 2.5.8 GUI 5.0e (H) Jonas Schlein
175#DG/UX 5.4R4.20 gcc 2.7.2 GUI 5.0s (H) Rocky Olive
176#HP-UX (most) c89 cc 5.1 (2) Bram Moolenaar
177#HP-UX_9.04 cc +X11 +Motif 5.0 (2) Carton Lao
178#Irix 6.3 (O2) cc ? 4.5 (L) Edouard Poor
179#Irix 6.4 cc ? 5.0m (S) Rick Sayre
180#Irix 6.5 cc ? 6.0 (S) David Harrison
181#Irix 64 bit 4.5 (K) Jon Wright
182#Linux 2.0 gcc-2.7.2 Infomagic Motif 4.3 (3) Ronald Rietman
183#Linux 2.0.31 gcc +X11 +GUI Athena 5.0w (U) Darren Hiebert
184#LynxOS 3.0.1 2.9-gnupro-98r2 +X11 +GUI Athena 5.7.1(O) Lorenz Hahn
185#LynxOS 3.1.0 2.9-gnupro-98r2 +X11 +GUI Athena 5.7.1(O) Lorenz Hahn
186#NEC UP4800 UNIX_SV 4.2MP cc +X11R6 Motif,Athena4.6b (Q) Lennart Schultz
187#NetBSD 1.0A gcc-2.4.5 -X11 -GUI 3.21 (X) Juergen Weigert
188#QNX 4.2 wcc386-10.6 -X11 4.2 (D) G.F. Desrochers
189#QNX 4.23 Watcom -X11 4.2 (F) John Oleynick
190#SCO Unix v3.2.5 cc +X11 Motif 3.27 (C) M. Kuperblum
191#SCO Open Server 5 gcc 2.7.2.3 +X11 +GUI Motif 5.3 (A) Glauber Ribeiro
192#SINIX-N 5.43 RM400 R4000 cc +X11 +GUI 5.0l (I) Martin Furter
193#SINIX-Z 5.42 i386 gcc 2.7.2.3 +X11 +GUI Motif 5.1 (I) Joachim Fehn
194#SINIX-Y 5.43 RM600 R4000 gcc 2.7.2.3 +X11 +GUI Motif 5.1 (I) Joachim Fehn
195#Reliant/SINIX 5.44 cc +X11 +GUI 5.5a (I) B. Pruemmer
196#SNI Targon31 TOS 4.1.11 gcc-2.4.5 +X11 -GUI 4.6c (B) Paul Slootman
197#Solaris 2.4 (Sparc) cc +X11 +GUI 3.29 (9) Glauber
198#Solaris 2.4/2.5 clcc +X11 -GUI openwin 3.20 (7) Robert Colon
199#Solaris 2.5 (sun4m) cc (SC4.0) +X11R6 +GUI (CDE) 4.6b (E) Andrew Large
200#Solaris 2.5 cc +X11 +GUI Athena 4.2 (9) Sonia Heimann
201#Solaris 2.5 gcc 2.5.6 +X11 Motif 5.0m (R) Ant. Colombo
202#Solaris 2.6 gcc 2.8.1 ncursus 5.3 (G) Larry W. Virden
203#Solaris with -lthread 5.5 (W) K. Nagano
204#Solaris gcc (b) Riccardo
205#SunOS 4.1.x +X11 -GUI 5.1b (J) Bram Moolenaar
206#SunOS 4.1.3_U1 (sun4c) gcc +X11 +GUI Athena 5.0w (J) Darren Hiebert
207#SUPER-UX 6.2 (NEC SX-4) cc +X11R6 Motif,Athena4.6b (P) Lennart Schultz
Bram Moolenaar311d9822007-02-27 15:48:28 +0000208#Tandem/NSK (c) Matthew Woehlke
Bram Moolenaare1d12892004-06-13 13:02:36 +0000209#Unisys 6035 cc +X11 Motif 5.3 (8) Glauber Ribeiro
210#ESIX V4.2 cc +X11 6.0 (a) Reinhard Wobst
211#Mac OS X 10.[23] gcc Carbon 6.2 (x) Bram Moolenaar
212# }}}
213
214# (*) Remarks: {{{
215#
216# (1) Uncomment line below for shlicc2
217# (2) HPUX with compile problems or wrong digraphs, uncomment line below
218# (3) Infomagic Motif needs GUI_LIB_LOC and GUI_INC_LOC set, see below.
219# And add "-lXpm" to MOTIF_LIBS2.
220# (4) For cc the optimizer must be disabled (use CFLAGS= after running
221# configure) (symptom: ":set termcap" output looks weird).
222# (5) Compiler may need extra argument, see below.
223# (6) See below for a few lines to uncomment
224# (7) See below for lines which enable the use of clcc
225# (8) Needs some EXTRA_LIBS, search for Unisys below
226# (9) Needs an extra compiler flag to compile gui_at_sb.c, see below.
227# (A) May need EXTRA_LIBS, see below
228# (B) Can't compile GUI because there is no waitpid()... Disable GUI below.
229# (C) Force the use of curses instead of termcap, see below.
230# (D) Uncomment lines below for QNX
231# (E) You might want to use termlib instead of termcap, see below.
232# (F) See below for instructions.
233# (G) Using ncursus version 4.2 has reported to cause a crash. Use the
234# Sun cursus library instead.
235# (H) See line for EXTRA_LIBS below.
236# (I) SINIX-N 5.42 and 5.43 need some EXTRA_LIBS. Also for Reliant-Unix.
237# (J) If you get undefined symbols, see below for a solution.
238# (K) See lines to uncomment below for machines with 64 bit pointers.
239# (L) For Silicon Graphics O2 workstations remove "-lnsl" from auto/config.mk
240# (M) gcc version cygnus-2.0.1 does NOT work (symptom: "dl" deletes two
241# characters instead of one).
242# (N) SCO with decmouse.
243# (O) LynxOS needs EXTRA_LIBS, see below.
244# (P) For SuperUX 6.2 on NEC SX-4 see a few lines below to uncomment.
245# (Q) For UNIXSVR 4.2MP on NEC UP4800 see below for lines to uncomment.
246# (R) For Solaris 2.5 (or 2.5.1) with gcc > 2.5.6, uncomment line below.
247# (S) For Irix 6.x with MipsPro compiler, use -OPT:Olimit. See line below.
248# (T) See ../doc/os_beos.txt.
249# (U) Must uncomment CONF_OPT_PYTHON option below to disable Python
250# detection, since the configure script runs into an error when it
251# detects Python (probably because of the bash shell).
252# (V) See lines to uncomment below.
253# (X) Need to use the .include "auto/config.mk" line below
254# (Y) See line with c89 below
255# (Z) See lines with cc or c89 below
256# (a) See line with EXTRA_LIBS below.
257# (b) When using gcc with the Solaris linker, make sure you don't use GNU
258# strip, otherwise the binary may not run: "Cannot find ELF".
Bram Moolenaar311d9822007-02-27 15:48:28 +0000259# (c) Add -lfloss to EXTRA_LIBS, see below.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000260# (x) When you get warnings for precompiled header files, run
261# "sudo fixPrecomps". Also see CONF_OPT_DARWIN below.
262# }}}
263
264
265#DO NOT CHANGE the next line, we need it for configure to find the compiler
266#instead of using the default from the "make" program.
267#Use a line further down to change the value for CC.
268CC=
269
270# Change and use these defines if configure cannot find your Motif stuff.
271# Unfortunately there is no "standard" location for Motif. {{{
272# These defines can contain a single directory (recommended) or a list of
273# directories (for when you are working with several systems). The LAST
274# directory that exists is used.
275# When changed, run "make reconfig" next!
276#GUI_INC_LOC = -I/usr/include/Motif2.0 -I/usr/include/Motif1.2
277#GUI_LIB_LOC = -L/usr/lib/Motif2.0 -L/usr/lib/Motif1.2
278### Use these two lines for Infomagic Motif (3)
279#GUI_INC_LOC = -I/usr/X11R6/include
280#GUI_LIB_LOC = -L/usr/X11R6/lib
281# }}}
282
283######################## auto/config.mk ######################## {{{1
284# At this position auto/config.mk is included. When starting from the
285# distribution it is almost empty. After running auto/configure it contains
286# settings that have been discovered for your system. Settings below this
287# include override settings in auto/config.mk!
288
289# Note: if auto/config.mk is lost somehow (e.g., because configure was
290# interrupted), create an empty auto/config.mk file and do "make config".
291
292# (X) How to include auto/config.mk depends on the version of "make" you have,
293# if the current choice doesn't work, try the other one.
294
295include auto/config.mk
296#.include "auto/config.mk"
297CClink = $(CC)
298
299#}}}
300
301# Include the configuration choices first, so we can override everything
302# below. As shipped, this file contains a target that causes to run
303# configure. Once configure was run, this file contains a list of
304# make variables with predefined values instead. Thus any second invocation
Bram Moolenaara5792f52005-11-23 21:25:05 +0000305# of make, will build Vim.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000306
307# CONFIGURE - configure arguments {{{1
308# You can give a lot of options to configure.
309# Change this to your desire and do 'make config' afterwards
310
311# examples (can only use one!):
312#CONF_ARGS = --exec-prefix=/usr
Bram Moolenaarc01140a2006-03-24 22:21:52 +0000313#CONF_ARGS = --with-vim-name=vim7 --with-ex-name=ex7 --with-view-name=view7
Bram Moolenaare1d12892004-06-13 13:02:36 +0000314#CONF_ARGS = --with-global-runtime=/etc/vim
Bram Moolenaarc236c162008-07-13 17:41:49 +0000315#CONF_ARGS = --with-local-dir=/usr/share
316#CONF_ARGS = --without-local-dir
Bram Moolenaare1d12892004-06-13 13:02:36 +0000317
318# Use this one if you distribute a modified version of Vim.
319#CONF_ARGS = --with-modified-by="John Doe"
320
321# GUI - For creating Vim with GUI (gvim) (B)
322# Uncomment this line when you don't want to get the GUI version, although you
323# have GTK, Motif and/or Athena. Also use --without-x if you don't want X11
324# at all.
325#CONF_OPT_GUI = --disable-gui
326
327# Uncomment one of these lines if you have that GUI but don't want to use it.
Bram Moolenaar24b23172007-05-06 12:54:06 +0000328# The automatic check will use another one that can be found.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000329# Gnome is disabled by default, it may cause trouble.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000330#CONF_OPT_GUI = --disable-gtk2-check
Bram Moolenaare1d12892004-06-13 13:02:36 +0000331#CONF_OPT_GUI = --enable-gnome2-check
332#CONF_OPT_GUI = --disable-motif-check
333#CONF_OPT_GUI = --disable-athena-check
334#CONF_OPT_GUI = --disable-nextaw-check
335
336# Uncomment one of these lines to select a specific GUI to use.
337# When using "yes" or nothing, configure will use the first one found: GTK+,
338# Motif or Athena.
339#
340# GTK versions that are known not to work 100% are rejected.
341# Use "--disable-gtktest" to accept them anyway.
Bram Moolenaar182c5be2010-06-25 05:37:59 +0200342# Only GTK 2 is supported, for GTK 1 use Vim 7.2.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000343#
Bram Moolenaar24b23172007-05-06 12:54:06 +0000344# GNOME means GTK with Gnome support. If using GTK and --enable-gnome-check
345# is used then GNOME will automatically be used if it is found. If you have
346# GNOME, but do not want to use it (e.g., want a GTK-only version), then use
347# --enable-gui=gtk or leave out --enable-gnome-check.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000348#
349# If the selected GUI isn't found, the GUI is disabled automatically
Bram Moolenaare1d12892004-06-13 13:02:36 +0000350#CONF_OPT_GUI = --enable-gui=gtk2
351#CONF_OPT_GUI = --enable-gui=gtk2 --disable-gtktest
Bram Moolenaare1d12892004-06-13 13:02:36 +0000352#CONF_OPT_GUI = --enable-gui=gnome2
353#CONF_OPT_GUI = --enable-gui=gnome2 --disable-gtktest
354#CONF_OPT_GUI = --enable-gui=motif
355#CONF_OPT_GUI = --enable-gui=motif --with-motif-lib="-static -lXm -shared"
356#CONF_OPT_GUI = --enable-gui=athena
357#CONF_OPT_GUI = --enable-gui=nextaw
358
359# DARWIN - detecting Mac OS X
360# Uncomment this line when you want to compile a Unix version of Vim on
361# Darwin. None of the Mac specific options or files will be used.
362#CONF_OPT_DARWIN = --disable-darwin
Bram Moolenaar899dddf2006-03-26 21:06:50 +0000363
364# Select the architecture supported. Default is to build for the current
365# platform. Use "both" for a universal binary. That probably doesn't work
366# when including Perl, Python, etc.
Bram Moolenaara23ccb82006-02-27 00:08:02 +0000367#CONF_OPT_DARWIN = --with-mac-arch=i386
368#CONF_OPT_DARWIN = --with-mac-arch=ppc
Bram Moolenaar899dddf2006-03-26 21:06:50 +0000369#CONF_OPT_DARWIN = --with-mac-arch=both
Bram Moolenaare1d12892004-06-13 13:02:36 +0000370
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000371# PERL
Bram Moolenaare1d12892004-06-13 13:02:36 +0000372# Uncomment this when you want to include the Perl interface.
373# The Perl option sometimes causes problems, because it adds extra flags
374# to the command line. If you see strange flags during compilation, check in
375# auto/config.mk where they come from. If it's PERL_CFLAGS, try commenting
376# the next line.
377# When you get an error for a missing "perl.exp" file, try creating an emtpy
378# one: "touch perl.exp".
379# This requires at least "small" features, "tiny" doesn't work.
380#CONF_OPT_PERL = --enable-perlinterp
381
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000382# PYTHON
Bram Moolenaare1d12892004-06-13 13:02:36 +0000383# Uncomment this when you want to include the Python interface.
Bram Moolenaar0e21a3f2005-04-17 20:28:32 +0000384# NOTE: This may cause threading to be enabled, which has side effects (such
385# as using different libraries and debugging becomes more difficult).
Bram Moolenaara5792f52005-11-23 21:25:05 +0000386# NOTE: Using this together with Perl may cause a crash in initialization.
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +0200387# For Python3 support make a symbolic link in /usr/local/bin:
388# ln -s python3 python3.1
389# If both python2.x and python3.x are enabled then the linking will be via
390# dlopen(), dlsym(), dlclose(), i.e. pythonX.Y.so must be available
Bram Moolenaare1d12892004-06-13 13:02:36 +0000391#CONF_OPT_PYTHON = --enable-pythoninterp
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +0200392#CONF_OPT_PYTHON3 = --enable-python3interp
Bram Moolenaare1d12892004-06-13 13:02:36 +0000393
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000394# TCL
Bram Moolenaare1d12892004-06-13 13:02:36 +0000395# Uncomment this when you want to include the Tcl interface.
396#CONF_OPT_TCL = --enable-tclinterp
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +0000397#CONF_OPT_TCL = --enable-tclinterp --with-tclsh=tclsh8.4
Bram Moolenaare1d12892004-06-13 13:02:36 +0000398
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000399# RUBY
Bram Moolenaare1d12892004-06-13 13:02:36 +0000400# Uncomment this when you want to include the Ruby interface.
Bram Moolenaar165641d2010-02-17 16:23:09 +0100401# Note: you need the development package (e.g., ruby1.9.1-dev on Ubuntu).
Bram Moolenaar182c5be2010-06-25 05:37:59 +0200402#CONF_OPT_RUBY = --enable-rubyinterp
403#CONF_OPT_RUBY = --enable-rubyinterp --with-ruby-command=ruby1.9.1
Bram Moolenaare1d12892004-06-13 13:02:36 +0000404
Bram Moolenaar0ba04292010-07-14 23:23:17 +0200405# LUA
406# Uncomment this when you want to include the Lua interface.
407#CONF_OPT_LUA = --enable-luainterp
408# Lua installation dir (also in LUA_PREFIX environment variable)
409#CONF_OPT_LUA_PREFIX = --with-lua-prefix=/usr/local
410#CONF_OPT_LUA_PREFIX = --with-lua-prefix=/usr
411
Bram Moolenaar325b7a22004-07-05 15:58:32 +0000412# MZSCHEME
413# Uncomment this when you want to include the MzScheme interface.
414#CONF_OPT_MZSCHEME = --enable-mzschemeinterp
415# PLT/mrscheme/drscheme Home dir; the PLTHOME environment variable also works
416#CONF_OPT_PLTHOME = --with-plthome=/usr/local/plt
417#CONF_OPT_PLTHOME = --with-plthome=/usr/local/drscheme
418#CONF_OPT_PLTHOME = --with-plthome=/home/me/mz
419
420# CSCOPE
Bram Moolenaare1d12892004-06-13 13:02:36 +0000421# Uncomment this when you want to include the Cscope interface.
422#CONF_OPT_CSCOPE = --enable-cscope
423
424# WORKSHOP - Sun Visual Workshop interface. Only works with Motif!
425#CONF_OPT_WORKSHOP = --enable-workshop
426
427# NETBEANS - NetBeans interface. Only works with Motif, GTK, and gnome.
428# Motif version must have XPM libraries (see |workshop-xpm|).
429# Uncomment this when you do not want the netbeans interface.
430#CONF_OPT_NETBEANS = --disable-netbeans
431
432# SNIFF - Include support for SNiFF+.
433#CONF_OPT_SNIFF = --enable-sniff
434
435# MULTIBYTE - To edit multi-byte characters.
436# Uncomment this when you want to edit a multibyte language.
437# It's automatically enabled with big features or IME support.
438# Note: Compile on a machine where setlocale() actually works, otherwise the
439# configure tests may fail.
440#CONF_OPT_MULTIBYTE = --enable-multibyte
441
442# NLS - National Language Support
443# Uncomment this when you do not want to support translated messages, even
444# though configure can find support for it.
445#CONF_OPT_NLS = --disable-nls
446
Bram Moolenaara5792f52005-11-23 21:25:05 +0000447# XIM - X Input Method. Special character input support for X11 (Chinese,
448# Japanese, special symbols, etc). Also needed for dead-key support.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000449# When omitted it's automatically enabled for the X-windows GUI.
Bram Moolenaara5792f52005-11-23 21:25:05 +0000450# HANGUL - Input Hangul (Korean) language using internal routines.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000451# Uncomment one of these when you want to input a multibyte language.
452#CONF_OPT_INPUT = --enable-xim
453#CONF_OPT_INPUT = --disable-xim
454#CONF_OPT_INPUT = --enable-hangulinput
455
456# FONTSET - X fontset support for output of languages with many characters.
457# Uncomment this when you want to output a multibyte language.
458#CONF_OPT_OUTPUT = --enable-fontset
459
460# ACL - Uncomment this when you do not want to include ACL support, even
461# though your system does support it. E.g., when it's buggy.
462#CONF_OPT_ACL = --disable-acl
463
464# gpm - For mouse support on Linux console via gpm
465# Uncomment this when you do not want to include gpm support, even
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000466# though you have gpm libraries and includes.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000467#CONF_OPT_GPM = --disable-gpm
468
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000469# sysmouse - For mouse support on FreeBSD and DragonFly console via sysmouse
470# Uncomment this when you do not want do include sysmouse support, even
471# though you have /dev/sysmouse and includes.
472#CONF_OPT_SYSMOUSE = --disable-sysmouse
473
Bram Moolenaare1d12892004-06-13 13:02:36 +0000474# FEATURES - For creating Vim with more or less features
475# Uncomment one of these lines when you want to include few to many features.
476# The default is "normal".
477#CONF_OPT_FEAT = --with-features=tiny
478#CONF_OPT_FEAT = --with-features=small
479#CONF_OPT_FEAT = --with-features=normal
480#CONF_OPT_FEAT = --with-features=big
Bram Moolenaarcfc0eee2010-05-17 21:37:47 +0200481#CONF_OPT_FEAT = --with-features=huge
Bram Moolenaare1d12892004-06-13 13:02:36 +0000482
483# COMPILED BY - For including a specific e-mail address for ":version".
484#CONF_OPT_COMPBY = "--with-compiledby=John Doe <JohnDoe@yahoo.com>"
485
486# X WINDOWS DISABLE - For creating a plain Vim without any X11 related fancies
487# (otherwise Vim configure will try to include xterm titlebar access)
488# Also disable the GUI above, otherwise it will be included anyway.
489# When both GUI and X11 have been disabled this may save about 15% of the
490# code and make Vim startup quicker.
491#CONF_OPT_X = --without-x
492
493# X WINDOWS DIRECTORY - specify X directories
Bram Moolenaara5792f52005-11-23 21:25:05 +0000494# If configure can't find you X stuff, or if you have multiple X11 derivatives
Bram Moolenaare1d12892004-06-13 13:02:36 +0000495# installed, you may wish to specify which one to use.
496# Select nothing to let configure choose.
497# This here selects openwin (as found on sun).
498#XROOT = /usr/openwin
499#CONF_OPT_X = --x-include=$(XROOT)/include --x-libraries=$(XROOT)/lib
500
501# X11 Session Management Protocol support
502# Vim will try to use XSMP to catch the user logging out if there are unsaved
503# files. Uncomment this line to disable that (it prevents vim trying to open
504# communications with the session manager).
505#CONF_OPT_XSMP = --disable-xsmp
506
507# You may wish to include xsmp but use exclude xsmp-interact if the logout
508# XSMP functionality does not work well with your session-manager (at time of
509# writing, this would be early GNOME-1 gnome-session: it 'freezes' other
510# applications after Vim has cancelled a logout (until Vim quits). This
511# *might* be the Vim code, but is more likely a bug in early GNOME-1.
512# This disables the dialog that asks you if you want to save files or not.
513#CONF_OPT_XSMP = --disable-xsmp-interact
514
515# COMPILER - Name of the compiler {{{1
516# The default from configure will mostly be fine, no need to change this, just
517# an example. If a compiler is defined here, configure will use it rather than
518# probing for one. It is dangerous to change this after configure was run.
519# Make will use your choice then -- but beware: Many things may change with
520# another compiler. It is wise to run 'make reconfig' to start all over
521# again.
522#CC = cc
523#CC = gcc
524
525# COMPILER FLAGS - change as you please. Either before running {{{1
526# configure or afterwards. For examples see below.
527# When using -g with some older versions of Linux you might get a
528# statically linked executable.
529# When not defined, configure will try to use -O2 -g for gcc and -O for cc.
530#CFLAGS = -g
531#CFLAGS = -O
532
533# Optimization limits - depends on the compiler. Automatic check in configure
534# doesn't work very well, because many compilers only give a warning for
535# unrecognized arguments.
536#CFLAGS = -O -OPT:Olimit=2600
537#CFLAGS = -O -Olimit 2000
538#CFLAGS = -O -FOlimit,2000
539
540# Often used for GCC: mixed optimizing, lot of optimizing, debugging
541#CFLAGS = -g -O2 -fno-strength-reduce -Wall -Wshadow -Wmissing-prototypes
Bram Moolenaar69a7cb42004-06-20 12:51:53 +0000542#CFLAGS = -g -O2 -fno-strength-reduce -Wall -Wmissing-prototypes
Bram Moolenaardf177f62005-02-22 08:39:57 +0000543#CFLAGS = -g -Wall -Wmissing-prototypes
Bram Moolenaare1d12892004-06-13 13:02:36 +0000544#CFLAGS = -O6 -fno-strength-reduce -Wall -Wshadow -Wmissing-prototypes
545#CFLAGS = -g -DDEBUG -Wall -Wshadow -Wmissing-prototypes
Bram Moolenaar592e0a22004-07-03 16:05:59 +0000546#CFLAGS = -g -O2 '-DSTARTUPTIME="vimstartup"' -fno-strength-reduce -Wall -Wmissing-prototypes
Bram Moolenaare1d12892004-06-13 13:02:36 +0000547
Bram Moolenaarcd8b20a2009-05-22 16:20:57 +0000548# Use this with GCC to check for mistakes, unused arguments, etc.
Bram Moolenaarcfc0eee2010-05-17 21:37:47 +0200549#CFLAGS = -g -Wall -Wextra -Wmissing-prototypes -Wunreachable-code -D_FORTIFY_SOURCE=1
550#PYTHON_CFLAGS_EXTRA = -Wno-missing-field-initializers
551#MZSCHEME_CFLAGS_EXTRA = -Wno-unreachable-code -Wno-unused-parameter
Bram Moolenaarcd8b20a2009-05-22 16:20:57 +0000552
Bram Moolenaare1d12892004-06-13 13:02:36 +0000553# EFENCE - Electric-Fence malloc debugging: catches memory accesses beyond
554# allocated memory (and makes every malloc()/free() very slow).
555# Electric Fence is free (search ftp sites).
Bram Moolenaar53180ce2005-07-05 21:48:14 +0000556# You may want to set the EF_PROTECT_BELOW environment variable to check the
557# other side of allocated memory.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000558# On FreeBSD you might need to enlarge the number of mmaps allowed. Do this
559# as root: sysctl -w vm.max_proc_mmap=30000
560#EXTRA_LIBS = /usr/local/lib/libefence.a
561
562# PURIFY - remove the # to use the "purify" program (hoi Nia++!)
563#PURIFY = purify
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000564
565# NBDEBUG - debugging the netbeans interface.
566#EXTRA_DEFS = -DNBDEBUG
567
Bram Moolenaare1d12892004-06-13 13:02:36 +0000568# }}}
569
570# LINT - for running lint
Bram Moolenaarcd8b20a2009-05-22 16:20:57 +0000571# For standard Unix lint
572LINT = lint
573LINT_OPTIONS = -beprxzF
574# For splint
575# It doesn't work well, crashes on include files and non-ascii characters.
576#LINT = splint
577#LINT_OPTIONS = +unixlib -weak -macrovarprefixexclude -showfunc -linelen 9999
Bram Moolenaare1d12892004-06-13 13:02:36 +0000578
579# PROFILING - Uncomment the next two lines to do profiling with gcc and gprof.
580# Might not work with GUI or Perl.
Bram Moolenaar4770d092006-01-12 23:22:24 +0000581# For unknown reasons adding "-lc" fixes a linking problem with GCC. That's
582# probably a bug in the "-pg" implementation.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000583# Need to recompile everything after changing this: "make clean" "make".
Bram Moolenaar02f07e02008-03-12 12:17:28 +0000584#PROFILE_CFLAGS = -pg -g -DWE_ARE_PROFILING
Bram Moolenaare1d12892004-06-13 13:02:36 +0000585#PROFILE_LIBS = -pg
Bram Moolenaar4770d092006-01-12 23:22:24 +0000586#PROFILE_LIBS = -pg -lc
Bram Moolenaare1d12892004-06-13 13:02:36 +0000587
Bram Moolenaar0a5fe212005-06-24 23:01:23 +0000588# MEMORY LEAK DETECTION
589# Requires installing the ccmalloc library.
Bram Moolenaara40ceaf2006-01-13 22:35:40 +0000590# Configuration is in the .ccmalloc or ~/.ccmalloc file.
Bram Moolenaar0a5fe212005-06-24 23:01:23 +0000591# Doesn't work very well, since memory linked to from global variables
Bram Moolenaar56718732006-03-15 22:53:57 +0000592# (in libraries) is also marked as leaked memory.
Bram Moolenaar0a5fe212005-06-24 23:01:23 +0000593#PROFILE_CFLAGS = -DEXITFREE
594#PROFILE_LIBS = -lccmalloc
595
Bram Moolenaare1d12892004-06-13 13:02:36 +0000596#####################################################
597### Specific systems, check if yours is listed! ### {{{
598#####################################################
599
600### Uncomment things here only if the values chosen by configure are wrong.
601### It's better to adjust configure.in and "make autoconf", if you can!
602### Then send the required changes to configure.in to the bugs list.
603
604### (1) BSD/OS 2.0.1, 2.1 or 3.0 using shared libraries
605###
606#CC = shlicc2
607#CFLAGS = -O2 -g -m486 -Wall -Wshadow -Wmissing-prototypes -fno-builtin
608
609### (2) HP-UX with a non-ANSI cc, use the c89 ANSI compiler
610### The first probably works on all systems
611### The second should work a bit better on newer systems
612### The third should work a bit better on HPUX 11.11
613### Information provided by: Richard Allen <ra@rhi.hi.is>
614#CC = c89 -D_HPUX_SOURCE
615#CC = c89 -O +Onolimit +ESlit -D_HPUX_SOURCE
616#CC = c89 -O +Onolimit +ESlit +e -D_HPUX_SOURCE
617
618### (2) For HP-UX: Enable the use of a different set of digraphs. Use this
619### when the default (ISO) digraphs look completely wrong.
620### After changing this do "touch digraph.c; make".
621#EXTRA_DEFS = -DHPUX_DIGRAPHS
622
623### (2) For HP-UX: 9.04 cpp default macro definition table of 128000 bytes
624### is too small to compile many routines. It produces too much defining
625### and no space errors.
626### Uncomment the following to specify a larger macro definition table.
627#CFLAGS = -Wp,-H256000
628
629### (2) For HP-UX 10.20 using the HP cc, with X11R6 and Motif 1.2, with
630### libraries in /usr/lib instead of /lib (avoiding transition links).
631### Information provided by: David Green
632#XROOT = /usr
633#CONF_OPT_X = --x-include=$(XROOT)/include/X11R6 --x-libraries=$(XROOT)/lib/X11R6
634#GUI_INC_LOC = -I/usr/include/Motif1.2
635#GUI_LIB_LOC = -L/usr/lib/Motif1.2_R6
636
637### (5) AIX 4.1.4 with cc
638#CFLAGS = -O -qmaxmem=8192
639
640### AIX with c89 (Walter Briscoe)
641#CC = c89
642#CPPFLAGS = -D_ALL_SOURCE
643
644### AIX 4.3.3.12 with xic 3.6.6 (David R. Favor)
645# needed to avoid a problem where strings.h gets included
646#CFLAGS = -qsrcmsg -O2 -qmaxmem=8192 -D__STR31__
647
648### (W) Solaris with multi-threaded libraries (-lthread):
649### If suspending doesn't work properly, try using this line:
650#EXTRA_DEFS = -D_REENTRANT
651
652### (7) Solaris 2.4/2.5 with Centerline compiler
653#CC = clcc
654#X_LIBS_DIR = -L/usr/openwin/lib -R/usr/openwin/lib
655#CFLAGS = -O
656
657### (9) Solaris 2.x with cc (SunPro), using Athena.
658### Only required for compiling gui_at_sb.c.
659### Symptom: "identifier redeclared: vim_XawScrollbarSetThumb"
660### Use one of the lines (either Full ANSI or no ANSI at all)
661#CFLAGS = $(CFLAGS) -Xc
662#CFLAGS = $(CFLAGS) -Xs
663
664### Solaris 2.3 with X11 and specific cc
665#CC=/opt/SUNWspro/bin/cc -O -Xa -v -R/usr/openwin/lib
666
667### Solaris with /usr/ucb/cc (it is rejected by autoconf as "cc")
668#CC = /usr/ucb/cc
669#EXTRA_LIBS = -R/usr/ucblib
670
671### Solaris with Forte Developer and FEAT_SUN_WORKSHOP
672# The Xpm library is available from http://koala.ilog.fr/ftp/pub/xpm.
673#CC = cc
674#XPM_DIR = /usr/local/xpm/xpm-3.4k-solaris
675#XPM_LIB = -L$(XPM_DIR)/lib -R$(XPM_DIR)/lib -lXpm
676#XPM_IPATH = -I$(XPM_DIR)/include
677#EXTRA_LIBS = $(XPM_LIB)
678#EXTRA_IPATHS = $(XPM_IPATH)
679#EXTRA_DEFS = -xCC -DHAVE_X11_XPM_H
680
681### Solaris with workshop compilers: Vim is unstable when compiled with
682# "-fast". Use this instead. (Shea Martin)
683#CFLAGS = -x02 -xtarget=ultra
684
685### (R) for Solaris 2.5 (or 2.5.1) with gcc > 2.5.6 you might need this:
686#LDFLAGS = -lw -ldl -lXmu
687#GUI_LIB_LOC = -L/usr/local/lib
688
689### (8) Unisys 6035 (Glauber Ribeiro)
690#EXTRA_LIBS = -lnsl -lsocket -lgen
691
692### When builtin functions cause problems with gcc (for Sun 4.1.x)
693#CFLAGS = -O2 -Wall -traditional -Wno-implicit
694
695### Apollo DOMAIN (with SYSTYPE = bsd4.3) (TESTED for version 3.0)
696#EXTRA_DEFS = -DDOMAIN
697#CFLAGS= -O -A systype,bsd4.3
698
699### Coherent 4.2.10 on Intel 386 platform
700#EXTRA_DEFS = -Dvoid=int
701#EXTRA_LIBS = -lterm -lsocket
702
703### SCO 3.2, with different library name for terminfo
704#EXTRA_LIBS = -ltinfo
705
706### UTS2 for Amdahl UTS 2.1.x
707#EXTRA_DEFS = -DUTS2
708#EXTRA_LIBS = -lsocket
709
710### UTS4 for Amdahl UTS 4.x
711#EXTRA_DEFS = -DUTS4 -Xa
712
713### USL for Unix Systems Laboratories (SYSV 4.2)
714#EXTRA_DEFS = -DUSL
715
716### RISCos on MIPS without X11
717#EXTRA_DEFS = -DMIPS
718
719### RISCos on MIPS with X11
720#EXTRA_LIBS = -lsun
721
722### (6) A/UX 3.1.1 with gcc (Jim Jagielski)
723#CC= gcc -D_POSIX_SOURCE
724#CFLAGS= -O2
725#EXTRA_LIBS = -lposix -lbsd -ltermcap -lX11
726
727### (A) Some versions of SCO Open Server 5 (Jan Christiaan van Winkel)
728### Also use the CONF_TERM_LIB below!
729#EXTRA_LIBS = -lgen
730
731### (D) QNX (by G.F. Desrochers)
732#CFLAGS = -g -O -mf -4
733
734### (F) QNX (by John Oleynick)
735# 1. If you don't have an X server: Comment out CONF_OPT_GUI and uncomment
736# CONF_OPT_X = --without-x.
737# 2. make config
738# 3. edit auto/config.mk and remove -ldir and -ltermcap from LIBS. It doesn't
739# have -ldir (does config find it somewhere?) and -ltermcap has at
740# least one problem so I use termlib.o instead. The problem with
741# termcap is that it segfaults if you call it with the name of
742# a non-existent terminal type.
743# 4. edit auto/config.h and add #define USE_TMPNAM
744# 5. add termlib.o to OBJ
745# 6. make
746
747### (H) for Data general DG/UX 5.4.2 and 5.4R3.10 (Jonas J. Schlein)
748#EXTRA_LIBS = -lgen
749
750### (I) SINIX-N 5.42 or 5.43 RM400 R4000 (also SINIX-Y and SINIX-Z)
751#EXTRA_LIBS = -lgen -lnsl
752### For SINIX-Y this is needed for the right prototype of gettimeofday()
753#EXTRA_DEFS = -D_XPG_IV
754
755### (I) Reliant-Unix (aka SINIX) 5.44 with standard cc
756# Use both "-F O3" lines for optimization or the "-g" line for debugging
757#EXTRA_LIBS = -lgen -lsocket -lnsl -lSM -lICE
758#CFLAGS = -F O3 -DSINIXN
759#LDFLAGS = -F O3
760#CFLAGS = -g -DSINIXN
761
762### (P) SCO 3.2.42, with different termcap names for some useful keys DJB
763#EXTRA_DEFS = -DSCOKEYS -DNETTERM_MOUSE -DDEC_MOUSE -DXTERM_MOUSE -DHAVE_GETTIMEOFDAY
764#EXTRA_LIBS = -lsocket -ltermcap -lmalloc -lc_s
765
766### (P) SuperUX 6.2 on NEC SX-4 (Lennart Schultz)
767#GUI_INC_LOC = -I/usr/include
768#GUI_LIB_LOC = -L/usr/lib
769#EXTRA_LIBS = -lgen
770
771### (Q) UNIXSVR 4.2MP on NEC UP4800 (Lennart Schultz)
772#GUI_INC_LOC = -I/usr/necccs/include
773#GUI_LIB_LOC = -L/usr/necccs/lib/X11R6
774#XROOT = /usr/necccs
775#CONF_OPT_X = --x-include=$(XROOT)/include --x-libraries=$(XROOT)/lib/X11R6
776#EXTRA_LIBS = -lsocket -lgen
777
778### Irix 4.0 & 5.2 (Silicon Graphics Machines, __sgi will be defined)
779# Not needed for Irix 5.3, Ives Aerts reported
780#EXTRA_LIBS = -lmalloc -lc_s
781# Irix 4.0, when regexp and regcmp cannot be found when linking:
782#EXTRA_LIBS = -lmalloc -lc_s -lPW
783
784### (S) Irix 6.x (MipsPro compiler): Uses different Olimit flag:
785# Note: This newer option style is used with the MipsPro compilers ONLY if
786# you are compiling an "n32" or "64" ABI binary (use either a -n32
787# flag or a -64 flag for CFLAGS). If you explicitly use a -o32 flag,
788# then the CFLAGS option format will be the typical style (i.e.
789# -Olimit 3000).
790#CFLAGS = -OPT:Olimit=3000 -O
791
792### (S) Irix 6.5 with MipsPro C compiler. Try this as a test to see new
793# compiler features! Beware, the optimization is EXTREMELY thorough
794# and takes quite a long time.
795# Note: See the note above. Here, the -mips3 option automatically
796# enables either the "n32" or "64" ABI, depending on what machine you
797# are compiling on (n32 is explicitly enabled here, just to make sure).
798#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
799#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
800
801### (K) for SGI Irix machines with 64 bit pointers ("uname -s" says IRIX64)
802### Suggested by Jon Wright <jon@gate.sinica.edu.tw>.
803### Tested on R8000 IRIX6.1 Power Indigo2.
804### Check /etc/compiler.defaults for your compiler settings.
805# either (for 64 bit pointers) uncomment the following line
806#GUI_LIB_LOC = -L/usr/lib64
807# then
808# 1) make config
809# 2) edit auto/config.mk and delete the -lelf entry in the LIBS line
810# 3) make
811#
812# or (for 32bit pointers) uncomment the following line
813#EXTRA_DEFS = -n32
814#GUI_LIB_LOC = -L/usr/lib32
815# then
816# 1) make config
817# 2) edit auto/config.mk, add -n32 to LDFLAGS
818# 3) make
Bram Moolenaarc4ea3f42008-06-04 13:28:18 +0000819#
820#Alternatively: use -o32 instead of -n32.
Bram Moolenaare1d12892004-06-13 13:02:36 +0000821###
822
823### (C) On SCO Unix v3.2.5 (and probably other versions) the termcap library,
824### which is found by configure, doesn't work correctly. Symptom is the
825### error message "Termcap entry too long". Uncomment the next line.
826### On AIX 4.2.1 (and other versions probably), libtermcap is reported
827### not to display properly.
828### after changing this, you need to do "make reconfig".
829#CONF_TERM_LIB = --with-tlib=curses
830
831### (E) If you want to use termlib library instead of the automatically found
832### one. After changing this, you need to do "make reconfig".
833#CONF_TERM_LIB = --with-tlib=termlib
834
835### (a) ESIX V4.2 (Reinhard Wobst)
836#EXTRA_LIBS = -lnsl -lsocket -lgen -lXIM -lXmu -lXext
837
Bram Moolenaar311d9822007-02-27 15:48:28 +0000838### (c) Tandem/NSK (Matthew Woehlke)
839#EXTRA_LIBS = -lfloss
840
Bram Moolenaare1d12892004-06-13 13:02:36 +0000841### If you want to use ncurses library instead of the automatically found one
842### after changing this, you need to do "make reconfig".
843#CONF_TERM_LIB = --with-tlib=ncurses
844
845### For GCC on MSDOS, the ".exe" suffix will be added.
846#EXEEXT = .exe
847#LNKEXT = .exe
848
849### (O) For LynxOS 2.5.0, tested on PC.
850#EXTRA_LIBS = -lXext -lSM -lICE -lbsd
851### For LynxOS 3.0.1, tested on PPC
852#EXTRA_LIBS= -lXext -lSM -lICE -lnetinet -lXmu -liberty -lX11
853### For LynxOS 3.1.0, tested on PC
854#EXTRA_LIBS= -lXext -lSM -lICE -lnetinet -lXmu
855
856
857### (V) For CX/UX 6.2 (on Harris/Concurrent NightHawk 4800, 5800). Remove
858### -Qtarget if only in a 5800 environment. (Kipp E. Howard)
859#CFLAGS = -O -Qtarget=m88110compat
860#EXTRA_LIBS = -lgen
861
862##################### end of system specific lines ################### }}}
863
864### Names of the programs and targets {{{1
865VIMTARGET = $(VIMNAME)$(EXEEXT)
866EXTARGET = $(EXNAME)$(LNKEXT)
867VIEWTARGET = $(VIEWNAME)$(LNKEXT)
868GVIMNAME = g$(VIMNAME)
869GVIMTARGET = $(GVIMNAME)$(LNKEXT)
870GVIEWNAME = g$(VIEWNAME)
871GVIEWTARGET = $(GVIEWNAME)$(LNKEXT)
872RVIMNAME = r$(VIMNAME)
873RVIMTARGET = $(RVIMNAME)$(LNKEXT)
874RVIEWNAME = r$(VIEWNAME)
875RVIEWTARGET = $(RVIEWNAME)$(LNKEXT)
876RGVIMNAME = r$(GVIMNAME)
877RGVIMTARGET = $(RGVIMNAME)$(LNKEXT)
878RGVIEWNAME = r$(GVIEWNAME)
879RGVIEWTARGET = $(RGVIEWNAME)$(LNKEXT)
880VIMDIFFNAME = $(VIMNAME)diff
881GVIMDIFFNAME = g$(VIMDIFFNAME)
882VIMDIFFTARGET = $(VIMDIFFNAME)$(LNKEXT)
883GVIMDIFFTARGET = $(GVIMDIFFNAME)$(LNKEXT)
884EVIMNAME = e$(VIMNAME)
885EVIMTARGET = $(EVIMNAME)$(LNKEXT)
886EVIEWNAME = e$(VIEWNAME)
887EVIEWTARGET = $(EVIEWNAME)$(LNKEXT)
888
889### Names of the tools that are also made {{{1
890TOOLS = xxd/xxd$(EXEEXT)
891
892### Installation directories. The defaults come from configure. {{{1
893#
894### prefix the top directory for the data (default "/usr/local")
895#
896# Uncomment the next line to install Vim in your home directory.
897#prefix = $(HOME)
898
899### exec_prefix is the top directory for the executable (default $(prefix))
900#
901# Uncomment the next line to install the Vim executable in "/usr/machine/bin"
902#exec_prefix = /usr/machine
903
904### BINDIR dir for the executable (default "$(exec_prefix)/bin")
905### MANDIR dir for the manual pages (default "$(prefix)/man")
906### DATADIR dir for the other files (default "$(prefix)/lib" or
907# "$(prefix)/share")
908# They may be different when using different architectures for the
909# executable and a common directory for the other files.
910#
911# Uncomment the next line to install Vim in "/usr/bin"
912#BINDIR = /usr/bin
913# Uncomment the next line to install Vim manuals in "/usr/share/man/man1"
914#MANDIR = /usr/share/man
915# Uncomment the next line to install Vim help files in "/usr/share/vim"
916#DATADIR = /usr/share
917
918### DESTDIR root of the installation tree. This is prepended to the other
919# directories. This directory must exist.
920#DESTDIR = ~/pkg/vim
921
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +0000922### Directory of the man pages
923MAN1DIR = /man1
Bram Moolenaare1d12892004-06-13 13:02:36 +0000924
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000925### Vim version (adjusted by a script)
926VIMMAJOR = 7
Bram Moolenaarfff2bee2010-05-15 13:56:02 +0200927VIMMINOR = 3a
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000928
Bram Moolenaare1d12892004-06-13 13:02:36 +0000929### Location of Vim files (should not need to be changed, and {{{1
930### some things might not work when they are changed!)
931VIMDIR = /vim
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +0000932VIMRTDIR = /vim$(VIMMAJOR)$(VIMMINOR)
Bram Moolenaare1d12892004-06-13 13:02:36 +0000933HELPSUBDIR = /doc
934COLSUBDIR = /colors
935SYNSUBDIR = /syntax
936INDSUBDIR = /indent
Bram Moolenaar87e25fd2005-07-27 21:13:01 +0000937AUTOSUBDIR = /autoload
Bram Moolenaare1d12892004-06-13 13:02:36 +0000938PLUGSUBDIR = /plugin
939FTPLUGSUBDIR = /ftplugin
940LANGSUBDIR = /lang
941COMPSUBDIR = /compiler
942KMAPSUBDIR = /keymap
943MACROSUBDIR = /macros
944TOOLSSUBDIR = /tools
945TUTORSUBDIR = /tutor
Bram Moolenaar217ad922005-03-20 22:37:15 +0000946SPELLSUBDIR = /spell
Bram Moolenaare1d12892004-06-13 13:02:36 +0000947PRINTSUBDIR = /print
948PODIR = po
949
950### VIMLOC common root of the Vim files (all versions)
951### VIMRTLOC common root of the runtime Vim files (this version)
952### VIMRCLOC compiled-in location for global [g]vimrc files (all versions)
953### VIMRUNTIMEDIR compiled-in location for runtime files (optional)
954### HELPSUBLOC location for help files
955### COLSUBLOC location for colorscheme files
956### SYNSUBLOC location for syntax files
957### INDSUBLOC location for indent files
Bram Moolenaar87e25fd2005-07-27 21:13:01 +0000958### AUTOSUBLOC location for standard autoload files
Bram Moolenaare1d12892004-06-13 13:02:36 +0000959### PLUGSUBLOC location for standard plugin files
960### FTPLUGSUBLOC location for ftplugin files
961### LANGSUBLOC location for language files
962### COMPSUBLOC location for compiler files
963### KMAPSUBLOC location for keymap files
964### MACROSUBLOC location for macro files
965### TOOLSSUBLOC location for tools files
966### TUTORSUBLOC location for tutor files
Bram Moolenaar217ad922005-03-20 22:37:15 +0000967### SPELLSUBLOC location for spell files
Bram Moolenaare1d12892004-06-13 13:02:36 +0000968### PRINTSUBLOC location for PostScript files (prolog, latin1, ..)
969### SCRIPTLOC location for script files (menu.vim, bugreport.vim, ..)
970### You can override these if you want to install them somewhere else.
971### Edit feature.h for compile-time settings.
972VIMLOC = $(DATADIR)$(VIMDIR)
973VIMRTLOC = $(DATADIR)$(VIMDIR)$(VIMRTDIR)
974VIMRCLOC = $(VIMLOC)
975HELPSUBLOC = $(VIMRTLOC)$(HELPSUBDIR)
976COLSUBLOC = $(VIMRTLOC)$(COLSUBDIR)
977SYNSUBLOC = $(VIMRTLOC)$(SYNSUBDIR)
978INDSUBLOC = $(VIMRTLOC)$(INDSUBDIR)
Bram Moolenaar87e25fd2005-07-27 21:13:01 +0000979AUTOSUBLOC = $(VIMRTLOC)$(AUTOSUBDIR)
Bram Moolenaare1d12892004-06-13 13:02:36 +0000980PLUGSUBLOC = $(VIMRTLOC)$(PLUGSUBDIR)
981FTPLUGSUBLOC = $(VIMRTLOC)$(FTPLUGSUBDIR)
982LANGSUBLOC = $(VIMRTLOC)$(LANGSUBDIR)
983COMPSUBLOC = $(VIMRTLOC)$(COMPSUBDIR)
984KMAPSUBLOC = $(VIMRTLOC)$(KMAPSUBDIR)
985MACROSUBLOC = $(VIMRTLOC)$(MACROSUBDIR)
986TOOLSSUBLOC = $(VIMRTLOC)$(TOOLSSUBDIR)
987TUTORSUBLOC = $(VIMRTLOC)$(TUTORSUBDIR)
Bram Moolenaar217ad922005-03-20 22:37:15 +0000988SPELLSUBLOC = $(VIMRTLOC)$(SPELLSUBDIR)
Bram Moolenaare1d12892004-06-13 13:02:36 +0000989PRINTSUBLOC = $(VIMRTLOC)$(PRINTSUBDIR)
990SCRIPTLOC = $(VIMRTLOC)
991
992### Only set VIMRUNTIMEDIR when VIMRTLOC is set to a different location and
993### the runtime directory is not below it.
994#VIMRUNTIMEDIR = $(VIMRTLOC)
995
996### Name of the evim file target.
997EVIM_FILE = $(DESTDIR)$(SCRIPTLOC)/evim.vim
998MSWIN_FILE = $(DESTDIR)$(SCRIPTLOC)/mswin.vim
999
1000### Name of the menu file target.
1001SYS_MENU_FILE = $(DESTDIR)$(SCRIPTLOC)/menu.vim
1002SYS_SYNMENU_FILE = $(DESTDIR)$(SCRIPTLOC)/synmenu.vim
1003SYS_DELMENU_FILE = $(DESTDIR)$(SCRIPTLOC)/delmenu.vim
1004
1005### Name of the bugreport file target.
1006SYS_BUGR_FILE = $(DESTDIR)$(SCRIPTLOC)/bugreport.vim
1007
1008### Name of the file type detection file target.
1009SYS_FILETYPE_FILE = $(DESTDIR)$(SCRIPTLOC)/filetype.vim
1010
1011### Name of the file type detection file target.
1012SYS_FTOFF_FILE = $(DESTDIR)$(SCRIPTLOC)/ftoff.vim
1013
1014### Name of the file type detection script file target.
1015SYS_SCRIPTS_FILE = $(DESTDIR)$(SCRIPTLOC)/scripts.vim
1016
1017### Name of the ftplugin-on file target.
1018SYS_FTPLUGIN_FILE = $(DESTDIR)$(SCRIPTLOC)/ftplugin.vim
1019
1020### Name of the ftplugin-off file target.
1021SYS_FTPLUGOF_FILE = $(DESTDIR)$(SCRIPTLOC)/ftplugof.vim
1022
1023### Name of the indent-on file target.
1024SYS_INDENT_FILE = $(DESTDIR)$(SCRIPTLOC)/indent.vim
1025
1026### Name of the indent-off file target.
1027SYS_INDOFF_FILE = $(DESTDIR)$(SCRIPTLOC)/indoff.vim
1028
1029### Name of the option window script file target.
1030SYS_OPTWIN_FILE = $(DESTDIR)$(SCRIPTLOC)/optwin.vim
1031
1032# Program to install the program in the target directory. Could also be "mv".
1033INSTALL_PROG = cp
1034
1035# Program to install the data in the target directory. Cannot be "mv"!
1036INSTALL_DATA = cp
1037INSTALL_DATA_R = cp -r
1038
1039### Program to run on installed binary
1040#STRIP = strip
1041
1042### Permissions for binaries {{{1
1043BINMOD = 755
1044
1045### Permissions for man page
1046MANMOD = 644
1047
1048### Permissions for help files
1049HELPMOD = 644
1050
1051### Permissions for Perl and shell scripts
1052SCRIPTMOD = 755
1053
1054### Permission for Vim script files (menu.vim, bugreport.vim, ..)
1055VIMSCRIPTMOD = 644
1056
1057### Permissions for all directories that are created
1058DIRMOD = 755
1059
1060### Permissions for all other files that are created
1061FILEMOD = 644
1062
1063# Where to copy the man and help files from
1064HELPSOURCE = ../runtime/doc
1065
1066# Where to copy the script files from (menu, bugreport)
1067SCRIPTSOURCE = ../runtime
1068
1069# Where to copy the colorscheme files from
1070COLSOURCE = ../runtime/colors
1071
1072# Where to copy the syntax files from
1073SYNSOURCE = ../runtime/syntax
1074
1075# Where to copy the indent files from
1076INDSOURCE = ../runtime/indent
1077
1078# Where to copy the standard plugin files from
Bram Moolenaar87e25fd2005-07-27 21:13:01 +00001079AUTOSOURCE = ../runtime/autoload
1080
1081# Where to copy the standard plugin files from
Bram Moolenaare1d12892004-06-13 13:02:36 +00001082PLUGSOURCE = ../runtime/plugin
1083
1084# Where to copy the ftplugin files from
1085FTPLUGSOURCE = ../runtime/ftplugin
1086
1087# Where to copy the macro files from
1088MACROSOURCE = ../runtime/macros
1089
1090# Where to copy the tools files from
1091TOOLSSOURCE = ../runtime/tools
1092
1093# Where to copy the tutor files from
1094TUTORSOURCE = ../runtime/tutor
1095
Bram Moolenaar217ad922005-03-20 22:37:15 +00001096# Where to copy the spell files from
1097SPELLSOURCE = ../runtime/spell
1098
Bram Moolenaare1d12892004-06-13 13:02:36 +00001099# Where to look for language specific files
1100LANGSOURCE = ../runtime/lang
1101
1102# Where to look for compiler files
1103COMPSOURCE = ../runtime/compiler
1104
1105# Where to look for keymap files
1106KMAPSOURCE = ../runtime/keymap
1107
1108# Where to look for print resource files
1109PRINTSOURCE = ../runtime/print
1110
1111# If you are using Linux, you might want to use this to make vim the
1112# default vi editor, it will create a link from vi to Vim when doing
1113# "make install". An existing file will be overwritten!
1114# When not using it, some make programs can't handle an undefined $(LINKIT).
Bram Moolenaarc4ea3f42008-06-04 13:28:18 +00001115#LINKIT = ln -f -s $(DEST_BIN)/$(VIMTARGET) $(DESTDIR)/usr/bin/vi
Bram Moolenaare1d12892004-06-13 13:02:36 +00001116LINKIT = @echo >/dev/null
1117
1118###
1119### GRAPHICAL USER INTERFACE (GUI). {{{1
1120### 'configure --enable-gui' can enable one of these for you if you did set
1121### a corresponding CONF_OPT_GUI above and have X11.
1122### Override configures choice by uncommenting all the following lines.
1123### As they are, the GUI is disabled. Replace "NONE" with "ATHENA" or "MOTIF"
1124### for enabling the Athena or Motif GUI.
1125#GUI_SRC = $(NONE_SRC)
1126#GUI_OBJ = $(NONE_OBJ)
1127#GUI_DEFS = $(NONE_DEFS)
1128#GUI_IPATH = $(NONE_IPATH)
1129#GUI_LIBS_DIR = $(NONE_LIBS_DIR)
1130#GUI_LIBS1 = $(NONE_LIBS1)
1131#GUI_LIBS2 = $(NONE_LIBS2)
1132#GUI_INSTALL = $(NONE_INSTALL)
1133#GUI_TARGETS = $(NONE_TARGETS)
1134#GUI_MAN_TARGETS= $(NONE_MAN_TARGETS)
1135#GUI_TESTTARGET = $(NONE_TESTTARGET)
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001136#GUI_BUNDLE = $(NONE_BUNDLE)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001137
1138# Without a GUI install the normal way.
1139NONE_INSTALL = install_normal
1140
1141### GTK GUI
1142GTK_SRC = gui.c gui_gtk.c gui_gtk_x11.c pty.c gui_gtk_f.c \
1143 gui_beval.c
1144GTK_OBJ = objects/gui.o objects/gui_gtk.o objects/gui_gtk_x11.o \
1145 objects/pty.o objects/gui_gtk_f.o \
1146 objects/gui_beval.o
1147GTK_DEFS = -DFEAT_GUI_GTK $(NARROW_PROTO)
1148GTK_IPATH = $(GUI_INC_LOC)
1149GTK_LIBS_DIR = $(GUI_LIB_LOC)
1150GTK_LIBS1 =
1151GTK_LIBS2 = $(GTK_LIBNAME)
Bram Moolenaarb64bb6e2008-06-20 19:29:35 +00001152GTK_INSTALL = install_normal install_gui_extra
Bram Moolenaare1d12892004-06-13 13:02:36 +00001153GTK_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001154GTK_MAN_TARGETS = yes
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00001155GTK_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001156GTK_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001157
1158### Motif GUI
Bram Moolenaardfccaf02004-12-31 20:56:11 +00001159MOTIF_SRC = gui.c gui_motif.c gui_x11.c pty.c gui_beval.c \
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00001160 gui_xmdlg.c gui_xmebw.c
Bram Moolenaare1d12892004-06-13 13:02:36 +00001161MOTIF_OBJ = objects/gui.o objects/gui_motif.o objects/gui_x11.o \
Bram Moolenaardfccaf02004-12-31 20:56:11 +00001162 objects/pty.o objects/gui_beval.o \
Bram Moolenaarb7fcef52005-01-02 11:31:05 +00001163 objects/gui_xmdlg.o objects/gui_xmebw.o
Bram Moolenaare1d12892004-06-13 13:02:36 +00001164MOTIF_DEFS = -DFEAT_GUI_MOTIF $(NARROW_PROTO)
1165MOTIF_IPATH = $(GUI_INC_LOC)
1166MOTIF_LIBS_DIR = $(GUI_LIB_LOC)
1167MOTIF_LIBS1 =
1168MOTIF_LIBS2 = $(MOTIF_LIBNAME) -lXt
Bram Moolenaarb64bb6e2008-06-20 19:29:35 +00001169MOTIF_INSTALL = install_normal install_gui_extra
Bram Moolenaare1d12892004-06-13 13:02:36 +00001170MOTIF_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001171MOTIF_MAN_TARGETS = yes
Bram Moolenaare1d12892004-06-13 13:02:36 +00001172MOTIF_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001173MOTIF_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001174
1175### Athena GUI
1176### Use Xaw3d to make the menus look a little bit nicer
1177#XAW_LIB = -lXaw3d
1178XAW_LIB = -lXaw
1179
1180### When using Xaw3d, uncomment/comment the following lines to also get the
1181### scrollbars from Xaw3d.
1182#ATHENA_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c gui_at_fs.c
1183#ATHENA_OBJ = objects/gui.o objects/gui_athena.o objects/gui_x11.o \
1184# objects/pty.o objects/gui_beval.o objects/gui_at_fs.o
1185#ATHENA_DEFS = -DFEAT_GUI_ATHENA $(NARROW_PROTO) \
1186# -Dvim_scrollbarWidgetClass=scrollbarWidgetClass \
1187# -Dvim_XawScrollbarSetThumb=XawScrollbarSetThumb
1188ATHENA_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c \
1189 gui_at_sb.c gui_at_fs.c
1190ATHENA_OBJ = objects/gui.o objects/gui_athena.o objects/gui_x11.o \
1191 objects/pty.o objects/gui_beval.o \
1192 objects/gui_at_sb.o objects/gui_at_fs.o
1193ATHENA_DEFS = -DFEAT_GUI_ATHENA $(NARROW_PROTO)
1194
1195ATHENA_IPATH = $(GUI_INC_LOC)
1196ATHENA_LIBS_DIR = $(GUI_LIB_LOC)
1197ATHENA_LIBS1 = $(XAW_LIB)
1198ATHENA_LIBS2 = -lXt
Bram Moolenaarb64bb6e2008-06-20 19:29:35 +00001199ATHENA_INSTALL = install_normal install_gui_extra
Bram Moolenaare1d12892004-06-13 13:02:36 +00001200ATHENA_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001201ATHENA_MAN_TARGETS = yes
Bram Moolenaare1d12892004-06-13 13:02:36 +00001202ATHENA_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001203ATHENA_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001204
1205### neXtaw GUI
1206NEXTAW_LIB = -lneXtaw
1207
1208NEXTAW_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c gui_at_fs.c
1209NEXTAW_OBJ = objects/gui.o objects/gui_athena.o objects/gui_x11.o \
1210 objects/pty.o objects/gui_beval.o objects/gui_at_fs.o
1211NEXTAW_DEFS = -DFEAT_GUI_ATHENA -DFEAT_GUI_NEXTAW $(NARROW_PROTO)
1212
1213NEXTAW_IPATH = $(GUI_INC_LOC)
1214NEXTAW_LIBS_DIR = $(GUI_LIB_LOC)
1215NEXTAW_LIBS1 = $(NEXTAW_LIB)
1216NEXTAW_LIBS2 = -lXt
Bram Moolenaarb64bb6e2008-06-20 19:29:35 +00001217NEXTAW_INSTALL = install_normal install_gui_extra
Bram Moolenaare1d12892004-06-13 13:02:36 +00001218NEXTAW_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001219NEXTAW_MAN_TARGETS = yes
Bram Moolenaare1d12892004-06-13 13:02:36 +00001220NEXTAW_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001221NEXTAW_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001222
1223### (J) Sun OpenWindows 3.2 (SunOS 4.1.x) or earlier that produce these ld
1224# errors: ld: Undefined symbol
1225# _get_wmShellWidgetClass
1226# _get_applicationShellWidgetClass
1227# then you need to get patches 100512-02 and 100573-03 from Sun. In the
1228# meantime, uncomment the following GUI_X_LIBS definition as a workaround:
1229#GUI_X_LIBS = -Bstatic -lXmu -Bdynamic -lXext
1230# If you also get cos, sin etc. as undefined symbols, try uncommenting this
1231# too:
1232#EXTRA_LIBS = /usr/openwin/lib/libXmu.sa -lm
1233
Bram Moolenaare1d12892004-06-13 13:02:36 +00001234# PHOTON GUI
1235PHOTONGUI_SRC = gui.c gui_photon.c pty.c
1236PHOTONGUI_OBJ = objects/gui.o objects/gui_photon.o objects/pty.o
1237PHOTONGUI_DEFS = -DFEAT_GUI_PHOTON
1238PHOTONGUI_IPATH =
1239PHOTONGUI_LIBS_DIR =
1240PHOTONGUI_LIBS1 = -lph -lphexlib
1241PHOTONGUI_LIBS2 =
Bram Moolenaarb64bb6e2008-06-20 19:29:35 +00001242PHOTONGUI_INSTALL = install_normal install_gui_extra
Bram Moolenaare1d12892004-06-13 13:02:36 +00001243PHOTONGUI_TARGETS = installglinks
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001244PHOTONGUI_MAN_TARGETS = yes
Bram Moolenaare1d12892004-06-13 13:02:36 +00001245PHOTONGUI_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001246PHOTONGUI_BUNDLE =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001247
1248# CARBON GUI
1249CARBONGUI_SRC = gui.c gui_mac.c
1250CARBONGUI_OBJ = objects/gui.o objects/gui_mac.o objects/pty.o
Bram Moolenaara23ccb82006-02-27 00:08:02 +00001251CARBONGUI_DEFS = -DFEAT_GUI_MAC -fno-common -fpascal-strings \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001252 -Wall -Wno-unknown-pragmas \
1253 -mdynamic-no-pic -pipe
1254CARBONGUI_IPATH = -I. -Iproto
Bram Moolenaara23ccb82006-02-27 00:08:02 +00001255CARBONGUI_LIBS_DIR =
Bram Moolenaare1d12892004-06-13 13:02:36 +00001256CARBONGUI_LIBS1 = -framework Carbon
1257CARBONGUI_LIBS2 =
Bram Moolenaar3577c6f2008-06-24 21:16:56 +00001258CARBONGUI_INSTALL = install_macosx
Bram Moolenaare1d12892004-06-13 13:02:36 +00001259CARBONGUI_TARGETS =
1260CARBONGUI_MAN_TARGETS =
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00001261CARBONGUI_TESTTARGET = gui
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00001262CARBONGUI_BUNDLE = gui_bundle
1263APPDIR = $(VIMNAME).app
1264CARBONGUI_TESTARG = VIMPROG=../$(APPDIR)/Contents/MacOS/$(VIMTARGET)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001265
1266# All GUI files
Bram Moolenaar9372a112005-12-06 19:59:18 +00001267ALL_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 +00001268ALL_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 +00001269
1270# }}}
1271
1272### Command to create dependencies based on #include "..."
1273### prototype headers are ignored due to -DPROTO, system
1274### headers #include <...> are ignored if we use the -MM option, as
1275### e.g. provided by gcc-cpp.
1276### Include FEAT_GUI to get gependency on gui.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00001277### Need to change "-I /<path>" to "-isystem /<path>" for GCC 3.x.
1278CPP_DEPEND = $(CC) -I$(srcdir) -M$(CPP_MM) \
1279 `echo "$(DEPEND_CFLAGS)" $(DEPEND_CFLAGS_FILTER)`
Bram Moolenaare1d12892004-06-13 13:02:36 +00001280
1281# flags for cproto
1282# This is for cproto 3 patchlevel 8 or below
1283# __inline, __attribute__ and __extension__ are not recognized by cproto
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00001284# G_IMPLEMENT_INLINES is to avoid functions defined in glib/gutils.h.
Bram Moolenaar0ab2a882009-05-13 10:51:08 +00001285#NO_ATTR = -D__inline= -D__inline__= -DG_IMPLEMENT_INLINES \
1286# -D"__attribute__\\(x\\)=" -D"__asm__\\(x\\)=" \
1287# -D__extension__= -D__restrict="" \
1288# -D__gnuc_va_list=char -D__builtin_va_list=char
Bram Moolenaare1d12892004-06-13 13:02:36 +00001289
1290#
Bram Moolenaar0ab2a882009-05-13 10:51:08 +00001291# This is for cproto 3 patchlevel 9 or above (currently 4.6, 4.7g)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001292# __inline and __attribute__ are now recognized by cproto
1293# -D"foo()=" is not supported by all compilers so do not use it
Bram Moolenaar0ab2a882009-05-13 10:51:08 +00001294NO_ATTR=
Bram Moolenaare1d12892004-06-13 13:02:36 +00001295#
Bram Moolenaare1d12892004-06-13 13:02:36 +00001296# Use this for cproto 3 patchlevel 6 or below (use "cproto -V" to check):
1297# PROTO_FLAGS = -f4 -m__ARGS -d -E"$(CPP)" $(NO_ATTR)
1298#
1299# Use this for cproto 3 patchlevel 7 or above (use "cproto -V" to check):
1300PROTO_FLAGS = -m -M__ARGS -d -E"$(CPP)" $(NO_ATTR)
1301
1302
1303################################################
1304## no changes required below this line ##
1305################################################
1306
1307SHELL = /bin/sh
1308
1309.SUFFIXES:
Bram Moolenaar9372a112005-12-06 19:59:18 +00001310.SUFFIXES: .c .o .pro
Bram Moolenaare1d12892004-06-13 13:02:36 +00001311
1312PRE_DEFS = -Iproto $(DEFS) $(GUI_DEFS) $(GUI_IPATH) $(CPPFLAGS) $(EXTRA_IPATHS)
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +02001313POST_DEFS = $(X_CFLAGS) $(LUA_CFLAGS) $(MZSCHEME_CFLAGS) $(PERL_CFLAGS) $(ECL_CFLAGS) $(TCL_CFLAGS) $(RUBY_CFLAGS) $(EXTRA_DEFS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001314
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001315ALL_CFLAGS = $(PRE_DEFS) $(CFLAGS) $(PROFILE_CFLAGS) $(POST_DEFS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001316
Bram Moolenaare224ffa2006-03-01 00:01:28 +00001317# Exclude $CFLAGS for osdef.sh, for Mac 10.4 some flags don't work together
1318# with "-E".
1319OSDEF_CFLAGS = $(PRE_DEFS) $(POST_DEFS)
1320
Bram Moolenaar051b7822005-05-19 21:00:46 +00001321LINT_CFLAGS = -DLINT -I. $(PRE_DEFS) $(POST_DEFS) -Dinline= -D__extension__= -Dalloca=alloca
1322
1323LINT_EXTRA = -DUSE_SNIFF -DHANGUL_INPUT -D"__attribute__(x)="
Bram Moolenaare1d12892004-06-13 13:02:36 +00001324
1325DEPEND_CFLAGS = -DPROTO -DDEPEND -DFEAT_GUI $(LINT_CFLAGS)
1326
Bram Moolenaare1d12892004-06-13 13:02:36 +00001327ALL_LIB_DIRS = $(GUI_LIBS_DIR) $(X_LIBS_DIR)
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +02001328ALL_LIBS = \
1329 $(GUI_LIBS1) \
1330 $(GUI_X_LIBS) \
1331 $(GUI_LIBS2) \
1332 $(X_PRE_LIBS) \
1333 $(X_LIBS) \
1334 $(X_EXTRA_LIBS) \
1335 $(LIBS) \
1336 $(EXTRA_LIBS) \
1337 $(LUA_LIBS) \
1338 $(MZSCHEME_LIBS) \
1339 $(PERL_LIBS) \
1340 $(PYTHON_LIBS) \
1341 $(PYTHON3_LIBS) \
1342 $(TCL_LIBS) \
1343 $(RUBY_LIBS) \
1344 $(PROFILE_LIBS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001345
1346# abbreviations
1347DEST_BIN = $(DESTDIR)$(BINDIR)
1348DEST_VIM = $(DESTDIR)$(VIMLOC)
1349DEST_RT = $(DESTDIR)$(VIMRTLOC)
1350DEST_HELP = $(DESTDIR)$(HELPSUBLOC)
1351DEST_COL = $(DESTDIR)$(COLSUBLOC)
1352DEST_SYN = $(DESTDIR)$(SYNSUBLOC)
1353DEST_IND = $(DESTDIR)$(INDSUBLOC)
Bram Moolenaar87e25fd2005-07-27 21:13:01 +00001354DEST_AUTO = $(DESTDIR)$(AUTOSUBLOC)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001355DEST_PLUG = $(DESTDIR)$(PLUGSUBLOC)
1356DEST_FTP = $(DESTDIR)$(FTPLUGSUBLOC)
1357DEST_LANG = $(DESTDIR)$(LANGSUBLOC)
1358DEST_COMP = $(DESTDIR)$(COMPSUBLOC)
1359DEST_KMAP = $(DESTDIR)$(KMAPSUBLOC)
1360DEST_MACRO = $(DESTDIR)$(MACROSUBLOC)
1361DEST_TOOLS = $(DESTDIR)$(TOOLSSUBLOC)
1362DEST_TUTOR = $(DESTDIR)$(TUTORSUBLOC)
Bram Moolenaar217ad922005-03-20 22:37:15 +00001363DEST_SPELL = $(DESTDIR)$(SPELLSUBLOC)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001364DEST_SCRIPT = $(DESTDIR)$(SCRIPTLOC)
1365DEST_PRINT = $(DESTDIR)$(PRINTSUBLOC)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001366DEST_MAN_TOP = $(DESTDIR)$(MANDIR)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001367
1368# We assume that the ".../man/xx/man1/" directory is for latin1 manual pages.
1369# Some systems use UTF-8, but these should find the ".../man/xx.UTF-8/man1/"
1370# directory first.
Bram Moolenaar217ad922005-03-20 22:37:15 +00001371# FreeBSD uses ".../man/xx.ISO8859-1/man1" for latin1, use that one too.
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001372DEST_MAN = $(DEST_MAN_TOP)$(MAN1DIR)
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00001373DEST_MAN_FR = $(DEST_MAN_TOP)/fr$(MAN1DIR)
1374DEST_MAN_FR_I = $(DEST_MAN_TOP)/fr.ISO8859-1$(MAN1DIR)
1375DEST_MAN_FR_U = $(DEST_MAN_TOP)/fr.UTF-8$(MAN1DIR)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001376DEST_MAN_IT = $(DEST_MAN_TOP)/it$(MAN1DIR)
Bram Moolenaar217ad922005-03-20 22:37:15 +00001377DEST_MAN_IT_I = $(DEST_MAN_TOP)/it.ISO8859-1$(MAN1DIR)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001378DEST_MAN_IT_U = $(DEST_MAN_TOP)/it.UTF-8$(MAN1DIR)
Bram Moolenaar910f66f2006-04-05 20:41:53 +00001379DEST_MAN_PL = $(DEST_MAN_TOP)/pl$(MAN1DIR)
1380DEST_MAN_PL_I = $(DEST_MAN_TOP)/pl.ISO8859-2$(MAN1DIR)
Bram Moolenaar899dddf2006-03-26 21:06:50 +00001381DEST_MAN_PL_U = $(DEST_MAN_TOP)/pl.UTF-8$(MAN1DIR)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00001382DEST_MAN_RU = $(DEST_MAN_TOP)/ru.KOI8-R$(MAN1DIR)
1383DEST_MAN_RU_U = $(DEST_MAN_TOP)/ru.UTF-8$(MAN1DIR)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001384
1385# BASIC_SRC: files that are always used
1386# GUI_SRC: extra GUI files for current configuration
1387# ALL_GUI_SRC: all GUI files for Unix
1388#
1389# SRC: files used for current configuration
1390# TAGS_SRC: source files used for make tags
1391# TAGS_INCL: include files used for make tags
1392# ALL_SRC: source files used for make depend and make lint
1393
1394TAGS_INCL = *.h
1395
1396BASIC_SRC = \
Bram Moolenaar40e6a712010-05-16 22:32:54 +02001397 blowfish.c \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001398 buffer.c \
1399 charset.c \
1400 diff.c \
1401 digraph.c \
1402 edit.c \
1403 eval.c \
1404 ex_cmds.c \
1405 ex_cmds2.c \
1406 ex_docmd.c \
1407 ex_eval.c \
1408 ex_getln.c \
1409 fileio.c \
1410 fold.c \
1411 getchar.c \
Bram Moolenaar58d98232005-07-23 22:25:46 +00001412 hardcopy.c \
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001413 hashtab.c \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001414 if_cscope.c \
1415 if_xcmdsrv.c \
1416 main.c \
1417 mark.c \
1418 memfile.c \
1419 memline.c \
1420 menu.c \
1421 message.c \
1422 misc1.c \
1423 misc2.c \
1424 move.c \
1425 mbyte.c \
1426 normal.c \
1427 ops.c \
1428 option.c \
1429 os_unix.c \
1430 auto/pathdef.c \
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001431 popupmnu.c \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001432 quickfix.c \
1433 regexp.c \
1434 screen.c \
1435 search.c \
Bram Moolenaar40e6a712010-05-16 22:32:54 +02001436 sha256.c \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001437 spell.c \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001438 syntax.c \
1439 tag.c \
1440 term.c \
1441 ui.c \
1442 undo.c \
1443 version.c \
1444 window.c \
1445 $(OS_EXTRA_SRC)
1446
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +02001447SRC = $(BASIC_SRC) \
1448 $(GUI_SRC) \
1449 $(HANGULIN_SRC) \
1450 $(LUA_SRC) \
1451 $(MZSCHEME_SRC) \
1452 $(PERL_SRC) \
1453 $(PYTHON_SRC) $(PYTHON3_SRC) \
1454 $(TCL_SRC) \
1455 $(RUBY_SRC) \
1456 $(SNIFF_SRC) \
1457 $(WORKSHOP_SRC) \
1458 $(WSDEBUG_SRC)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001459
Bram Moolenaar9372a112005-12-06 19:59:18 +00001460TAGS_SRC = *.c *.cpp if_perl.xs
Bram Moolenaare1d12892004-06-13 13:02:36 +00001461
Bram Moolenaar0ba04292010-07-14 23:23:17 +02001462EXTRA_SRC = hangulin.c if_lua.c if_mzsch.c auto/if_perl.c if_perlsfio.c \
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +02001463 if_python.c if_python3.c if_tcl.c if_ruby.c if_sniff.c \
1464 gui_beval.c workshop.c wsdebug.c integration.c netbeans.c
Bram Moolenaare1d12892004-06-13 13:02:36 +00001465
1466# All sources, also the ones that are not configured
1467ALL_SRC = $(BASIC_SRC) $(ALL_GUI_SRC) $(EXTRA_SRC)
1468
1469# Which files to check with lint. Select one of these three lines. ALL_SRC
1470# checks more, but may not work well for checking a GUI that wasn't configured.
1471# The perl sources also don't work well with lint.
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +02001472LINT_SRC = $(BASIC_SRC) $(GUI_SRC) $(HANGULIN_SRC) $(PYTHON_SRC) $(PYTHON3_SRC) $(TCL_SRC) \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001473 $(SNIFF_SRC) $(WORKSHOP_SRC) $(WSDEBUG_SRC) $(NETBEANS_SRC)
1474#LINT_SRC = $(SRC)
1475#LINT_SRC = $(ALL_SRC)
Bram Moolenaar0ab2a882009-05-13 10:51:08 +00001476#LINT_SRC = $(BASIC_SRC)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001477
1478OBJ = \
1479 objects/buffer.o \
Bram Moolenaar40e6a712010-05-16 22:32:54 +02001480 objects/blowfish.o \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001481 objects/charset.o \
1482 objects/diff.o \
1483 objects/digraph.o \
1484 objects/edit.o \
1485 objects/eval.o \
1486 objects/ex_cmds.o \
1487 objects/ex_cmds2.o \
1488 objects/ex_docmd.o \
1489 objects/ex_eval.o \
1490 objects/ex_getln.o \
1491 objects/fileio.o \
1492 objects/fold.o \
1493 objects/getchar.o \
Bram Moolenaar58d98232005-07-23 22:25:46 +00001494 objects/hardcopy.o \
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001495 objects/hashtab.o \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001496 $(HANGULIN_OBJ) \
1497 objects/if_cscope.o \
1498 objects/if_xcmdsrv.o \
1499 objects/main.o \
1500 objects/mark.o \
1501 objects/memfile.o \
1502 objects/memline.o \
1503 objects/menu.o \
1504 objects/message.o \
1505 objects/misc1.o \
1506 objects/misc2.o \
1507 objects/move.o \
1508 objects/mbyte.o \
1509 objects/normal.o \
1510 objects/ops.o \
1511 objects/option.o \
1512 objects/os_unix.o \
1513 objects/pathdef.o \
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001514 objects/popupmnu.o \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001515 objects/quickfix.o \
1516 objects/regexp.o \
1517 objects/screen.o \
1518 objects/search.o \
Bram Moolenaar40e6a712010-05-16 22:32:54 +02001519 objects/sha256.o \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001520 objects/spell.o \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001521 objects/syntax.o \
1522 $(SNIFF_OBJ) \
1523 objects/tag.o \
1524 objects/term.o \
1525 objects/ui.o \
1526 objects/undo.o \
1527 objects/window.o \
1528 $(GUI_OBJ) \
Bram Moolenaar0ba04292010-07-14 23:23:17 +02001529 $(LUA_OBJ) \
Bram Moolenaar325b7a22004-07-05 15:58:32 +00001530 $(MZSCHEME_OBJ) \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001531 $(PERL_OBJ) \
1532 $(PYTHON_OBJ) \
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +02001533 $(PYTHON3_OBJ) \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001534 $(TCL_OBJ) \
1535 $(RUBY_OBJ) \
1536 $(OS_EXTRA_OBJ) \
1537 $(WORKSHOP_OBJ) \
1538 $(NETBEANS_OBJ) \
1539 $(WSDEBUG_OBJ)
1540
1541PRO_AUTO = \
Bram Moolenaar40e6a712010-05-16 22:32:54 +02001542 blowfish.pro \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001543 buffer.pro \
1544 charset.pro \
1545 diff.pro \
1546 digraph.pro \
1547 edit.pro \
1548 eval.pro \
1549 ex_cmds.pro \
1550 ex_cmds2.pro \
1551 ex_docmd.pro \
1552 ex_eval.pro \
1553 ex_getln.pro \
1554 fileio.pro \
1555 fold.pro \
1556 getchar.pro \
Bram Moolenaar58d98232005-07-23 22:25:46 +00001557 hardcopy.pro \
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001558 hashtab.pro \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001559 hangulin.pro \
1560 if_cscope.pro \
1561 if_xcmdsrv.pro \
1562 if_python.pro \
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +02001563 if_python3.pro \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001564 if_ruby.pro \
1565 main.pro \
1566 mark.pro \
1567 memfile.pro \
1568 memline.pro \
1569 menu.pro \
1570 message.pro \
1571 misc1.pro \
1572 misc2.pro \
1573 move.pro \
1574 mbyte.pro \
1575 normal.pro \
1576 ops.pro \
1577 option.pro \
1578 os_unix.pro \
Bram Moolenaarc01140a2006-03-24 22:21:52 +00001579 popupmnu.pro \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001580 quickfix.pro \
1581 regexp.pro \
1582 screen.pro \
1583 search.pro \
Bram Moolenaar40e6a712010-05-16 22:32:54 +02001584 sha256.pro \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001585 spell.pro \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001586 syntax.pro \
1587 tag.pro \
1588 term.pro \
1589 termlib.pro \
1590 ui.pro \
1591 undo.pro \
1592 version.pro \
1593 window.pro \
1594 gui_beval.pro \
1595 workshop.pro \
1596 netbeans.pro \
1597 $(ALL_GUI_PRO) \
1598 $(TCL_PRO)
1599
Bram Moolenaar910f66f2006-04-05 20:41:53 +00001600# Resources used for the Mac are in one directory.
1601RSRC_DIR = os_mac_rsrc
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00001602
Bram Moolenaare1d12892004-06-13 13:02:36 +00001603PRO_MANUAL = os_amiga.pro os_msdos.pro os_win16.pro os_win32.pro \
1604 os_mswin.pro os_beos.pro os_vms.pro os_riscos.pro $(PERL_PRO)
1605
1606# Default target is making the executable and tools
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00001607all: $(VIMTARGET) $(TOOLS) languages $(GUI_BUNDLE)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001608
1609tools: $(TOOLS)
1610
1611# Run configure with all the setting from above.
1612#
1613# Note: auto/config.h doesn't depend on configure, because running configure
1614# doesn't always update auto/config.h. The timestamp isn't changed if the
1615# file contents didn't change (to avoid recompiling everything). Including a
1616# dependency on auto/config.h would cause running configure each time when
1617# auto/config.h isn't updated. The dependency on auto/config.mk should make
1618# sure configure is run when it's needed.
1619#
1620config auto/config.mk: auto/configure config.mk.in config.h.in
1621 GUI_INC_LOC="$(GUI_INC_LOC)" GUI_LIB_LOC="$(GUI_LIB_LOC)" \
1622 CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \
1623 LDFLAGS="$(LDFLAGS)" $(CONF_SHELL) srcdir="$(srcdir)" \
1624 ./configure $(CONF_OPT_GUI) $(CONF_OPT_X) $(CONF_OPT_XSMP) \
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +02001625 $(CONF_OPT_DARWIN) $(CONF_OPT_PERL) $(CONF_OPT_PYTHON) $(CONF_OPT_PYTHON3) \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001626 $(CONF_OPT_TCL) $(CONF_OPT_RUBY) $(CONF_OPT_NLS) \
1627 $(CONF_OPT_CSCOPE) $(CONF_OPT_MULTIBYTE) $(CONF_OPT_INPUT) \
1628 $(CONF_OPT_OUTPUT) $(CONF_OPT_GPM) $(CONF_OPT_WORKSHOP) \
1629 $(CONF_OPT_SNIFF) $(CONF_OPT_FEAT) $(CONF_TERM_LIB) \
1630 $(CONF_OPT_COMPBY) $(CONF_OPT_ACL) $(CONF_OPT_NETBEANS) \
Bram Moolenaar3577c6f2008-06-24 21:16:56 +00001631 $(CONF_ARGS) $(CONF_OPT_MZSCHEME) $(CONF_OPT_PLTHOME) \
Bram Moolenaar0ba04292010-07-14 23:23:17 +02001632 $(CONF_OPT_LUA) $(CONF_OPT_LUA_PREFIX) \
Bram Moolenaar3577c6f2008-06-24 21:16:56 +00001633 $(CONF_OPT_SYSMOUSE)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001634
1635# Use "make reconfig" to rerun configure without cached values.
1636# When config.h changes, most things will be recompiled automatically.
Bram Moolenaar592e0a22004-07-03 16:05:59 +00001637# Invoke $(MAKE) to run config with the empty auto/config.mk.
1638# Invoke $(MAKE) to build all with the filled auto/config.mk.
1639reconfig: scratch clean
1640 $(MAKE) -f Makefile config
1641 $(MAKE) -f Makefile all
Bram Moolenaare1d12892004-06-13 13:02:36 +00001642
1643# Run autoconf to produce auto/configure.
1644# Note:
1645# - DO NOT RUN autoconf MANUALLY! It will overwrite ./configure instead of
1646# producing auto/configure.
1647# - autoconf is not run automatically, because a patch usually changes both
1648# configure.in and auto/configure but can't update the timestamps. People
1649# who do not have (the correct version of) autoconf would run into trouble.
1650#
1651# Two tricks are required to make autoconf put its output in the "auto" dir:
1652# - Temporarily move the ./configure script to ./configure.save. Don't
1653# overwrite it, it's probably the result of an aborted autoconf.
1654# - Use sed to change ./config.log to auto/config.log in the configure script.
Bram Moolenaar9d75c832005-01-25 21:57:23 +00001655# Autoconf 2.5x (2.59 at least) produces a few more files that we need to take
1656# care of:
1657# - configure.lineno: has the line numbers replaced with $LINENO. That
1658# improves patches a LOT, thus use it instead (until someone says it doesn't
1659# work on some system).
1660# - autom4te.cache directory is created and not cleaned up. Delete it.
1661# - Uses ">config.log" instead of "./config.log".
Bram Moolenaare1d12892004-06-13 13:02:36 +00001662autoconf:
1663 if test ! -f configure.save; then mv configure configure.save; fi
1664 autoconf
Bram Moolenaar9d75c832005-01-25 21:57:23 +00001665 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 +00001666 chmod 755 auto/configure
1667 mv -f configure.save configure
Bram Moolenaar9d75c832005-01-25 21:57:23 +00001668 -rm -rf autom4te.cache
Bram Moolenaare1d12892004-06-13 13:02:36 +00001669 -rm -f auto/config.status auto/config.cache
1670
1671# Re-execute this Makefile to include the new auto/config.mk produced by
1672# configure Only used when typing "make" with a fresh auto/config.mk.
1673myself:
1674 $(MAKE) -f Makefile all
1675
1676
1677# The normal command to compile a .c file to its .o file.
1678CCC = $(CC) -c -I$(srcdir) $(ALL_CFLAGS)
1679
1680
1681# Link the target for normal use or debugging.
1682# A shell script is used to try linking without unneccesary libraries.
1683$(VIMTARGET): auto/config.mk objects $(OBJ) version.c version.h
1684 $(CCC) version.c -o objects/version.o
1685 @LINK="$(PURIFY) $(SHRPENV) $(CClink) $(ALL_LIB_DIRS) $(LDFLAGS) \
1686 -o $(VIMTARGET) $(OBJ) objects/version.o $(ALL_LIBS)" \
1687 MAKE="$(MAKE)" sh $(srcdir)/link.sh
1688
1689xxd/xxd$(EXEEXT): xxd/xxd.c
1690 cd xxd; CC="$(CC)" CFLAGS="$(CPPFLAGS) $(CFLAGS)" \
1691 $(MAKE) -f Makefile
1692
1693# Build the language specific files if they were unpacked.
1694# Generate the converted .mo files separately, it's no problem if this fails.
1695languages:
1696 @if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
Bram Moolenaar58d98232005-07-23 22:25:46 +00001697 cd $(PODIR); \
Bram Moolenaar58d98232005-07-23 22:25:46 +00001698 CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix); \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001699 fi
1700 -@if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
1701 cd $(PODIR); CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix) converted; \
1702 fi
1703
1704# Update the *.po files for changes in the sources. Only run manually.
1705update-po:
1706 cd $(PODIR); CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix) update-po
1707
1708# Generate function prototypes. This is not needed to compile vim, but if
1709# you want to use it, cproto is out there on the net somewhere -- Webb
1710#
1711# When generating os_amiga.pro, os_msdos.pro and os_win32.pro there will be a
1712# few include files that can not be found, that's OK.
1713
1714proto: $(PRO_AUTO) $(PRO_MANUAL)
1715
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001716# Filter out arguments that cproto doesn't support.
1717# Don't pass "-pthread" to cproto, it sees it as a list of individual flags.
1718# The -E"gcc -E" argument must be separate to avoid problems with shell
1719# quoting.
1720CPROTO = cproto $(PROTO_FLAGS) -DPROTO \
1721 `echo '$(LINT_CFLAGS)' | sed -e 's/-pthread//g'`
1722
Bram Moolenaare1d12892004-06-13 13:02:36 +00001723### Would be nice if this would work for "normal" make.
1724### Currently it only works for (Free)BSD make.
1725#$(PRO_AUTO): $$(*F).c
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001726# $(CPROTO) -DFEAT_GUI $(*F).c > $@
Bram Moolenaare1d12892004-06-13 13:02:36 +00001727
1728# Always define FEAT_GUI. This may generate a few warnings if it's also
1729# defined in auto/config.h, you can ignore that.
1730.c.pro:
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001731 $(CPROTO) -DFEAT_GUI $< > proto/$@
Bram Moolenaare1d12892004-06-13 13:02:36 +00001732 echo "/* vim: set ft=c : */" >> proto/$@
1733
1734os_amiga.pro: os_amiga.c
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001735 $(CPROTO) -DAMIGA -UHAVE_CONFIG_H -DBPTR=char* $< > proto/$@
Bram Moolenaare1d12892004-06-13 13:02:36 +00001736 echo "/* vim: set ft=c : */" >> proto/$@
1737
1738os_msdos.pro: os_msdos.c
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001739 $(CPROTO) -DMSDOS -UHAVE_CONFIG_H $< > proto/$@
Bram Moolenaare1d12892004-06-13 13:02:36 +00001740 echo "/* vim: set ft=c : */" >> proto/$@
1741
1742os_win16.pro: os_win16.c
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001743 $(CPROTO) -DWIN16 -UHAVE_CONFIG_H $< > proto/$@
Bram Moolenaare1d12892004-06-13 13:02:36 +00001744 echo "/* vim: set ft=c : */" >> proto/$@
1745
1746os_win32.pro: os_win32.c
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001747 $(CPROTO) -DWIN32 -UHAVE_CONFIG_H $< > proto/$@
Bram Moolenaare1d12892004-06-13 13:02:36 +00001748 echo "/* vim: set ft=c : */" >> proto/$@
1749
1750os_mswin.pro: os_mswin.c
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001751 $(CPROTO) -DWIN16 -DWIN32 -UHAVE_CONFIG_H $< > proto/$@
Bram Moolenaare1d12892004-06-13 13:02:36 +00001752 echo "/* vim: set ft=c : */" >> proto/$@
1753
1754os_beos.pro: os_beos.c
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001755 $(CPROTO) -D__BEOS__ -UHAVE_CONFIG_H $< > proto/$@
Bram Moolenaare1d12892004-06-13 13:02:36 +00001756 echo "/* vim: set ft=c : */" >> proto/$@
1757
1758os_vms.pro: os_vms.c
1759# must use os_vms_conf.h for auto/config.h
1760 mv auto/config.h auto/config.h.save
1761 cp os_vms_conf.h auto/config.h
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001762 $(CPROTO) -DVMS -UFEAT_GUI_ATHENA -UFEAT_GUI_NEXTAW -UFEAT_GUI_MOTIF -UFEAT_GUI_GTK $< > proto/$@
Bram Moolenaare1d12892004-06-13 13:02:36 +00001763 echo "/* vim: set ft=c : */" >> proto/$@
1764 rm auto/config.h
1765 mv auto/config.h.save auto/config.h
1766
1767# if_perl.pro is special: Use the generated if_perl.c for input and remove
1768# prototypes for local functions.
1769if_perl.pro: auto/if_perl.c
Bram Moolenaar69f787a2010-07-11 20:52:58 +02001770 $(CPROTO) -DFEAT_GUI auto/if_perl.c | sed "/_VI/d" > proto/$@
Bram Moolenaare1d12892004-06-13 13:02:36 +00001771
1772
1773notags:
1774 -rm -f tags
1775
1776# Note: tags is made for the currently configured version, can't include both
1777# Motif and Athena GUI
1778# You can ignore error messages for missing files.
1779tags TAGS: notags
1780 $(TAGPRG) $(TAGS_SRC) $(TAGS_INCL)
1781
1782# Make a highlight file for types. Requires Exuberant ctags and awk
1783types: types.vim
1784types.vim: $(TAGS_SRC) $(TAGS_INCL)
1785 ctags --c-kinds=gstu -o- $(TAGS_SRC) $(TAGS_INCL) |\
1786 awk 'BEGIN{printf("syntax keyword Type\t")}\
1787 {printf("%s ", $$1)}END{print ""}' > $@
1788
1789# Execute the test scripts. Run these after compiling Vim, before installing.
1790# This doesn't depend on $(VIMTARGET), because that won't work when configure
1791# wasn't run yet. Restart make to build it instead.
1792#
1793# This will produce a lot of garbage on your screen, including a few error
1794# messages. Don't worry about that.
1795# If there is a real error, there will be a difference between "test.out" and
1796# a "test99.ok" file.
Bram Moolenaarcd8b20a2009-05-22 16:20:57 +00001797# If everything is alright, the final message will be "ALL DONE". If not you
1798# get "TEST FAILURE".
Bram Moolenaare1d12892004-06-13 13:02:36 +00001799#
1800test check:
1801 $(MAKE) -f Makefile $(VIMTARGET)
Bram Moolenaar1a14c2c2006-03-25 21:52:34 +00001802 -if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
Bram Moolenaar316059c2006-01-14 21:18:42 +00001803 cd $(PODIR); $(MAKE) -f Makefile check VIM=../$(VIMTARGET); \
1804 fi
Bram Moolenaarc236c162008-07-13 17:41:49 +00001805 -if test $(VIMTARGET) != vim -a ! -r vim; then \
Bram Moolenaar5a305422006-04-28 22:38:25 +00001806 ln -s $(VIMTARGET) vim; \
1807 fi
Bram Moolenaard12f5c12006-01-25 22:10:52 +00001808 cd testdir; $(MAKE) -f Makefile $(GUI_TESTTARGET) VIMPROG=../$(VIMTARGET) $(GUI_TESTARG)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001809
1810testclean:
1811 cd testdir; $(MAKE) -f Makefile clean
Bram Moolenaar316059c2006-01-14 21:18:42 +00001812 if test -d $(PODIR); then \
1813 cd $(PODIR); $(MAKE) checkclean; \
1814 fi
Bram Moolenaare1d12892004-06-13 13:02:36 +00001815
Bram Moolenaarb64bb6e2008-06-20 19:29:35 +00001816install: $(GUI_INSTALL)
1817
1818install_normal: installvim installtools $(INSTALL_LANGS) install-icons
1819
1820install_gui_extra: installgtutorbin
1821
1822installvim: installvimbin installtutorbin \
1823 installruntime installlinks installmanlinks
1824
Bram Moolenaare1d12892004-06-13 13:02:36 +00001825#
1826# Avoid overwriting an existing executable, somebody might be running it and
1827# overwriting it could cause it to crash. Deleting it is OK, it won't be
1828# really deleted until all running processes for it have exited. It is
1829# renamed first, in case the deleting doesn't work.
1830#
1831# If you want to keep an older version, rename it before running "make
1832# install".
1833#
Bram Moolenaare1d12892004-06-13 13:02:36 +00001834installvimbin: $(VIMTARGET) $(DESTDIR)$(exec_prefix) $(DEST_BIN)
1835 -if test -f $(DEST_BIN)/$(VIMTARGET); then \
1836 mv -f $(DEST_BIN)/$(VIMTARGET) $(DEST_BIN)/$(VIMNAME).rm; \
1837 rm -f $(DEST_BIN)/$(VIMNAME).rm; \
1838 fi
1839 $(INSTALL_PROG) $(VIMTARGET) $(DEST_BIN)
1840 $(STRIP) $(DEST_BIN)/$(VIMTARGET)
1841 chmod $(BINMOD) $(DEST_BIN)/$(VIMTARGET)
1842# may create a link to the new executable from /usr/bin/vi
1843 -$(LINKIT)
1844
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001845# Long list of arguments for the shell script that installs the manual pages
1846# for one language.
1847INSTALLMANARGS = $(VIMLOC) $(SCRIPTLOC) $(VIMRCLOC) $(HELPSOURCE) $(MANMOD) \
1848 $(VIMNAME) $(VIMDIFFNAME) $(EVIMNAME)
1849
Bram Moolenaare344bea2005-09-01 20:46:49 +00001850# Install most of the runtime files
1851installruntime: installrtbase installmacros installtutor installspell
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00001852
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001853# install the help files; first adjust the contents for the final location
Bram Moolenaare344bea2005-09-01 20:46:49 +00001854installrtbase: $(HELPSOURCE)/vim.1 $(DEST_VIM) $(DEST_RT) \
Bram Moolenaare1d12892004-06-13 13:02:36 +00001855 $(DEST_HELP) $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND) \
Bram Moolenaar18144c82006-04-12 21:52:12 +00001856 $(DEST_FTP) $(DEST_AUTO) $(DEST_AUTO)/xml $(DEST_PLUG) \
1857 $(DEST_TUTOR) $(DEST_SPELL) $(DEST_COMP)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001858 -$(SHELL) ./installman.sh install $(DEST_MAN) "" $(INSTALLMANARGS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001859 @echo generating help tags
1860# Generate the help tags with ":helptags" to handle all languages.
1861 -@cd $(HELPSOURCE); $(MAKE) VIMEXE=$(DEST_BIN)/$(VIMTARGET) vimtags
1862 cd $(HELPSOURCE); \
1863 files=`ls *.txt tags`; \
1864 files="$$files `ls *.??x tags-?? 2>/dev/null || true`"; \
1865 $(INSTALL_DATA) $$files $(DEST_HELP); \
1866 cd $(DEST_HELP); \
1867 chmod $(HELPMOD) $$files
1868 $(INSTALL_DATA) $(HELPSOURCE)/*.pl $(DEST_HELP)
1869 chmod $(SCRIPTMOD) $(DEST_HELP)/*.pl
1870# install the menu files
1871 $(INSTALL_DATA) $(SCRIPTSOURCE)/menu.vim $(SYS_MENU_FILE)
1872 chmod $(VIMSCRIPTMOD) $(SYS_MENU_FILE)
1873 $(INSTALL_DATA) $(SCRIPTSOURCE)/synmenu.vim $(SYS_SYNMENU_FILE)
1874 chmod $(VIMSCRIPTMOD) $(SYS_SYNMENU_FILE)
1875 $(INSTALL_DATA) $(SCRIPTSOURCE)/delmenu.vim $(SYS_DELMENU_FILE)
1876 chmod $(VIMSCRIPTMOD) $(SYS_DELMENU_FILE)
1877# install the evim file
1878 $(INSTALL_DATA) $(SCRIPTSOURCE)/mswin.vim $(MSWIN_FILE)
1879 chmod $(VIMSCRIPTMOD) $(MSWIN_FILE)
1880 $(INSTALL_DATA) $(SCRIPTSOURCE)/evim.vim $(EVIM_FILE)
1881 chmod $(VIMSCRIPTMOD) $(EVIM_FILE)
1882# install the bugreport file
1883 $(INSTALL_DATA) $(SCRIPTSOURCE)/bugreport.vim $(SYS_BUGR_FILE)
1884 chmod $(VIMSCRIPTMOD) $(SYS_BUGR_FILE)
1885# install the example vimrc files
1886 $(INSTALL_DATA) $(SCRIPTSOURCE)/vimrc_example.vim $(DEST_SCRIPT)
1887 chmod $(VIMSCRIPTMOD) $(DEST_SCRIPT)/vimrc_example.vim
1888 $(INSTALL_DATA) $(SCRIPTSOURCE)/gvimrc_example.vim $(DEST_SCRIPT)
1889 chmod $(VIMSCRIPTMOD) $(DEST_SCRIPT)/gvimrc_example.vim
1890# install the file type detection files
1891 $(INSTALL_DATA) $(SCRIPTSOURCE)/filetype.vim $(SYS_FILETYPE_FILE)
1892 chmod $(VIMSCRIPTMOD) $(SYS_FILETYPE_FILE)
1893 $(INSTALL_DATA) $(SCRIPTSOURCE)/ftoff.vim $(SYS_FTOFF_FILE)
1894 chmod $(VIMSCRIPTMOD) $(SYS_FTOFF_FILE)
1895 $(INSTALL_DATA) $(SCRIPTSOURCE)/scripts.vim $(SYS_SCRIPTS_FILE)
1896 chmod $(VIMSCRIPTMOD) $(SYS_SCRIPTS_FILE)
1897 $(INSTALL_DATA) $(SCRIPTSOURCE)/ftplugin.vim $(SYS_FTPLUGIN_FILE)
1898 chmod $(VIMSCRIPTMOD) $(SYS_FTPLUGIN_FILE)
1899 $(INSTALL_DATA) $(SCRIPTSOURCE)/ftplugof.vim $(SYS_FTPLUGOF_FILE)
1900 chmod $(VIMSCRIPTMOD) $(SYS_FTPLUGOF_FILE)
1901 $(INSTALL_DATA) $(SCRIPTSOURCE)/indent.vim $(SYS_INDENT_FILE)
1902 chmod $(VIMSCRIPTMOD) $(SYS_INDENT_FILE)
1903 $(INSTALL_DATA) $(SCRIPTSOURCE)/indoff.vim $(SYS_INDOFF_FILE)
1904 chmod $(VIMSCRIPTMOD) $(SYS_INDOFF_FILE)
1905 $(INSTALL_DATA) $(SCRIPTSOURCE)/optwin.vim $(SYS_OPTWIN_FILE)
1906 chmod $(VIMSCRIPTMOD) $(SYS_OPTWIN_FILE)
1907# install the print resource files
1908 cd $(PRINTSOURCE); $(INSTALL_DATA) *.ps $(DEST_PRINT)
1909 cd $(DEST_PRINT); chmod $(FILEMOD) *.ps
1910# install the colorscheme files
1911 cd $(COLSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_COL)
1912 cd $(DEST_COL); chmod $(HELPMOD) *.vim README.txt
1913# install the syntax files
1914 cd $(SYNSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_SYN)
1915 cd $(DEST_SYN); chmod $(HELPMOD) *.vim README.txt
1916# install the indent files
1917 cd $(INDSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_IND)
1918 cd $(DEST_IND); chmod $(HELPMOD) *.vim README.txt
Bram Moolenaar87e25fd2005-07-27 21:13:01 +00001919# install the standard autoload files
1920 cd $(AUTOSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_AUTO)
1921 cd $(DEST_AUTO); chmod $(HELPMOD) *.vim README.txt
Bram Moolenaar18144c82006-04-12 21:52:12 +00001922 cd $(AUTOSOURCE)/xml; $(INSTALL_DATA) *.vim $(DEST_AUTO)/xml
1923 cd $(DEST_AUTO)/xml; chmod $(HELPMOD) *.vim
Bram Moolenaare1d12892004-06-13 13:02:36 +00001924# install the standard plugin files
1925 cd $(PLUGSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_PLUG)
1926 cd $(DEST_PLUG); chmod $(HELPMOD) *.vim README.txt
1927# install the ftplugin files
Bram Moolenaar0387e652010-05-07 16:54:37 +02001928 cd $(FTPLUGSOURCE); $(INSTALL_DATA) *.vim README.txt logtalk.dict $(DEST_FTP)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001929 cd $(DEST_FTP); chmod $(HELPMOD) *.vim README.txt
1930# install the compiler files
1931 cd $(COMPSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_COMP)
1932 cd $(DEST_COMP); chmod $(HELPMOD) *.vim README.txt
1933
Bram Moolenaar582fd852005-03-28 20:58:01 +00001934installmacros: $(DEST_VIM) $(DEST_RT) $(DEST_MACRO)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001935 $(INSTALL_DATA_R) $(MACROSOURCE)/* $(DEST_MACRO)
1936 chmod $(DIRMOD) `find $(DEST_MACRO) -type d -print`
1937 chmod $(FILEMOD) `find $(DEST_MACRO) -type f -print`
1938 chmod $(SCRIPTMOD) $(DEST_MACRO)/less.sh
1939# When using CVS some CVS directories might have been copied.
1940 cvs=`find $(DEST_MACRO) \( -name CVS -o -name AAPDIR \) -print`; \
1941 if test -n "$$cvs"; then \
1942 rm -rf $$cvs; \
1943 fi
1944
1945# install the tutor files
Bram Moolenaare344bea2005-09-01 20:46:49 +00001946installtutorbin: $(DEST_VIM)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001947 $(INSTALL_DATA) vimtutor $(DEST_BIN)/$(VIMNAME)tutor
1948 chmod $(SCRIPTMOD) $(DEST_BIN)/$(VIMNAME)tutor
Bram Moolenaarb64bb6e2008-06-20 19:29:35 +00001949
1950installgtutorbin: $(DEST_VIM)
Bram Moolenaar2b570782008-05-07 15:40:33 +00001951 $(INSTALL_DATA) gvimtutor $(DEST_BIN)/$(GVIMNAME)tutor
1952 chmod $(SCRIPTMOD) $(DEST_BIN)/$(GVIMNAME)tutor
Bram Moolenaare344bea2005-09-01 20:46:49 +00001953
1954installtutor: $(DEST_RT) $(DEST_TUTOR)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001955 -$(INSTALL_DATA) $(TUTORSOURCE)/README* $(TUTORSOURCE)/tutor* $(DEST_TUTOR)
1956 chmod $(HELPMOD) $(DEST_TUTOR)/*
1957
Bram Moolenaarcee55602005-08-21 22:12:59 +00001958# Install the spell files, if they exist. This assumes at least the English
1959# spell file is there.
Bram Moolenaar582fd852005-03-28 20:58:01 +00001960installspell: $(DEST_VIM) $(DEST_RT) $(DEST_SPELL)
Bram Moolenaar0e21a3f2005-04-17 20:28:32 +00001961 if test -f $(SPELLSOURCE)/en.latin1.spl; then \
Bram Moolenaardb552d602006-03-23 22:59:57 +00001962 $(INSTALL_DATA) $(SPELLSOURCE)/*.spl $(SPELLSOURCE)/*.sug $(SPELLSOURCE)/*.vim $(DEST_SPELL); \
1963 chmod $(HELPMOD) $(DEST_SPELL)/*.spl $(DEST_SPELL)/*.sug $(DEST_SPELL)/*.vim; \
Bram Moolenaar217ad922005-03-20 22:37:15 +00001964 fi
1965
Bram Moolenaare1d12892004-06-13 13:02:36 +00001966# install helper program xxd
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001967installtools: $(TOOLS) $(DESTDIR)$(exec_prefix) $(DEST_BIN) \
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00001968 $(TOOLSSOURCE) $(DEST_VIM) $(DEST_RT) $(DEST_TOOLS) \
1969 $(INSTALL_TOOL_LANGS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00001970 if test -f $(DEST_BIN)/xxd$(EXEEXT); then \
1971 mv -f $(DEST_BIN)/xxd$(EXEEXT) $(DEST_BIN)/xxd.rm; \
1972 rm -f $(DEST_BIN)/xxd.rm; \
1973 fi
1974 $(INSTALL_PROG) xxd/xxd$(EXEEXT) $(DEST_BIN)
1975 $(STRIP) $(DEST_BIN)/xxd$(EXEEXT)
1976 chmod $(BINMOD) $(DEST_BIN)/xxd$(EXEEXT)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00001977 -$(SHELL) ./installman.sh xxd $(DEST_MAN) "" $(INSTALLMANARGS)
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00001978
Bram Moolenaare1d12892004-06-13 13:02:36 +00001979# install the runtime tools
1980 $(INSTALL_DATA_R) $(TOOLSSOURCE)/* $(DEST_TOOLS)
1981# When using CVS some CVS directories might have been copied.
1982 cvs=`find $(DEST_TOOLS) \( -name CVS -o -name AAPDIR \) -print`; \
1983 if test -n "$$cvs"; then \
1984 rm -rf $$cvs; \
1985 fi
1986 -chmod $(FILEMOD) $(DEST_TOOLS)/*
1987# replace the path in some tools
1988 perlpath=`./which.sh perl` && sed -e "s+/usr/bin/perl+$$perlpath+" $(TOOLSSOURCE)/efm_perl.pl >$(DEST_TOOLS)/efm_perl.pl
1989 awkpath=`./which.sh nawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \
1990 awkpath=`./which.sh gawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \
1991 awkpath=`./which.sh awk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; fi; fi
1992 -chmod $(SCRIPTMOD) `grep -l "^#!" $(DEST_TOOLS)/*`
1993
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00001994# install the language specific files for tools, if they were unpacked
1995install-tool-languages:
1996 -$(SHELL) ./installman.sh xxd $(DEST_MAN_FR) "-fr" $(INSTALLMANARGS)
1997 -$(SHELL) ./installman.sh xxd $(DEST_MAN_FR_I) "-fr" $(INSTALLMANARGS)
1998 -$(SHELL) ./installman.sh xxd $(DEST_MAN_FR_U) "-fr.UTF-8" $(INSTALLMANARGS)
1999 -$(SHELL) ./installman.sh xxd $(DEST_MAN_IT) "-it" $(INSTALLMANARGS)
2000 -$(SHELL) ./installman.sh xxd $(DEST_MAN_IT_I) "-it" $(INSTALLMANARGS)
2001 -$(SHELL) ./installman.sh xxd $(DEST_MAN_IT_U) "-it.UTF-8" $(INSTALLMANARGS)
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002002 -$(SHELL) ./installman.sh xxd $(DEST_MAN_PL) "-pl" $(INSTALLMANARGS)
Bram Moolenaar910f66f2006-04-05 20:41:53 +00002003 -$(SHELL) ./installman.sh xxd $(DEST_MAN_PL_I) "-pl" $(INSTALLMANARGS)
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002004 -$(SHELL) ./installman.sh xxd $(DEST_MAN_PL_U) "-pl.UTF-8" $(INSTALLMANARGS)
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00002005 -$(SHELL) ./installman.sh xxd $(DEST_MAN_RU) "-ru" $(INSTALLMANARGS)
2006 -$(SHELL) ./installman.sh xxd $(DEST_MAN_RU_U) "-ru.UTF-8" $(INSTALLMANARGS)
2007
Bram Moolenaare1d12892004-06-13 13:02:36 +00002008# install the language specific files, if they were unpacked
2009install-languages: languages $(DEST_LANG) $(DEST_KMAP)
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00002010 -$(SHELL) ./installman.sh install $(DEST_MAN_FR) "-fr" $(INSTALLMANARGS)
2011 -$(SHELL) ./installman.sh install $(DEST_MAN_FR_I) "-fr" $(INSTALLMANARGS)
2012 -$(SHELL) ./installman.sh install $(DEST_MAN_FR_U) "-fr.UTF-8" $(INSTALLMANARGS)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002013 -$(SHELL) ./installman.sh install $(DEST_MAN_IT) "-it" $(INSTALLMANARGS)
Bram Moolenaar217ad922005-03-20 22:37:15 +00002014 -$(SHELL) ./installman.sh install $(DEST_MAN_IT_I) "-it" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002015 -$(SHELL) ./installman.sh install $(DEST_MAN_IT_U) "-it.UTF-8" $(INSTALLMANARGS)
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002016 -$(SHELL) ./installman.sh install $(DEST_MAN_PL) "-pl" $(INSTALLMANARGS)
Bram Moolenaar910f66f2006-04-05 20:41:53 +00002017 -$(SHELL) ./installman.sh install $(DEST_MAN_PL_I) "-pl" $(INSTALLMANARGS)
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002018 -$(SHELL) ./installman.sh install $(DEST_MAN_PL_U) "-pl.UTF-8" $(INSTALLMANARGS)
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002019 -$(SHELL) ./installman.sh install $(DEST_MAN_RU) "-ru" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002020 -$(SHELL) ./installman.sh install $(DEST_MAN_RU_U) "-ru.UTF-8" $(INSTALLMANARGS)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002021 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00002022 $(DEST_MAN_FR) $(INSTALLMLARGS)
2023 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
2024 $(DEST_MAN_FR_I) $(INSTALLMLARGS)
2025 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
2026 $(DEST_MAN_FR_U) $(INSTALLMLARGS)
2027 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002028 $(DEST_MAN_IT) $(INSTALLMLARGS)
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002029 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaar217ad922005-03-20 22:37:15 +00002030 $(DEST_MAN_IT_I) $(INSTALLMLARGS)
2031 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002032 $(DEST_MAN_IT_U) $(INSTALLMLARGS)
2033 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002034 $(DEST_MAN_PL) $(INSTALLMLARGS)
2035 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaar910f66f2006-04-05 20:41:53 +00002036 $(DEST_MAN_PL_I) $(INSTALLMLARGS)
2037 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002038 $(DEST_MAN_PL_U) $(INSTALLMLARGS)
2039 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002040 $(DEST_MAN_RU) $(INSTALLMLARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002041 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
2042 $(DEST_MAN_RU_U) $(INSTALLMLARGS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002043 if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
2044 cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) LOCALEDIR=$(DEST_LANG) \
2045 INSTALL_DATA=$(INSTALL_DATA) FILEMOD=$(FILEMOD) install; \
2046 fi
2047 if test -d $(LANGSOURCE); then \
2048 $(INSTALL_DATA) $(LANGSOURCE)/README.txt $(LANGSOURCE)/*.vim $(DEST_LANG); \
2049 chmod $(FILEMOD) $(DEST_LANG)/README.txt $(DEST_LANG)/*.vim; \
2050 fi
2051 if test -d $(KMAPSOURCE); then \
2052 $(INSTALL_DATA) $(KMAPSOURCE)/README.txt $(KMAPSOURCE)/*.vim $(DEST_KMAP); \
2053 chmod $(FILEMOD) $(DEST_KMAP)/README.txt $(DEST_KMAP)/*.vim; \
2054 fi
2055
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00002056# install the icons for KDE, if the directory exists and the icon doesn't.
Bram Moolenaare1d12892004-06-13 13:02:36 +00002057ICON48PATH = $(DESTDIR)$(DATADIR)/icons/hicolor/48x48/apps
2058ICON32PATH = $(DESTDIR)$(DATADIR)/icons/locolor/32x32/apps
2059ICON16PATH = $(DESTDIR)$(DATADIR)/icons/locolor/16x16/apps
2060KDEPATH = $(HOME)/.kde/share/icons
2061install-icons:
2062 if test -d $(ICON48PATH) -a -w $(ICON48PATH) \
2063 -a ! -f $(ICON48PATH)/gvim.png; then \
2064 $(INSTALL_DATA) $(SCRIPTSOURCE)/vim48x48.png $(ICON48PATH)/gvim.png; \
2065 fi
2066 if test -d $(ICON32PATH) -a -w $(ICON32PATH) \
2067 -a ! -f $(ICON32PATH)/gvim.png; then \
2068 $(INSTALL_DATA) $(SCRIPTSOURCE)/vim32x32.png $(ICON32PATH)/gvim.png; \
2069 fi
2070 if test -d $(ICON16PATH) -a -w $(ICON16PATH) \
2071 -a ! -f $(ICON16PATH)/gvim.png; then \
2072 $(INSTALL_DATA) $(SCRIPTSOURCE)/vim16x16.png $(ICON16PATH)/gvim.png; \
2073 fi
2074
2075
2076$(HELPSOURCE)/vim.1 $(MACROSOURCE) $(TOOLSSOURCE):
2077 @echo Runtime files not found.
2078 @echo You need to unpack the runtime archive before running "make install".
2079 test -f error
2080
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002081$(DESTDIR)$(exec_prefix) $(DEST_BIN) \
2082 $(DEST_VIM) $(DEST_RT) $(DEST_HELP) \
Bram Moolenaare1d12892004-06-13 13:02:36 +00002083 $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND) $(DEST_FTP) \
2084 $(DEST_LANG) $(DEST_KMAP) $(DEST_COMP) \
Bram Moolenaar217ad922005-03-20 22:37:15 +00002085 $(DEST_MACRO) $(DEST_TOOLS) $(DEST_TUTOR) $(DEST_SPELL) \
Bram Moolenaar18144c82006-04-12 21:52:12 +00002086 $(DEST_AUTO) $(DEST_AUTO)/xml $(DEST_PLUG):
Bram Moolenaare1d12892004-06-13 13:02:36 +00002087 -$(SHELL) ./mkinstalldirs $@
2088 -chmod $(DIRMOD) $@
2089
2090# create links from various names to vim. This is only done when the links
2091# (or executables with the same name) don't exist yet.
2092installlinks: $(GUI_TARGETS) \
2093 $(DEST_BIN)/$(EXTARGET) \
2094 $(DEST_BIN)/$(VIEWTARGET) \
2095 $(DEST_BIN)/$(RVIMTARGET) \
2096 $(DEST_BIN)/$(RVIEWTARGET) \
2097 $(INSTALLVIMDIFF)
2098
2099installglinks: $(DEST_BIN)/$(GVIMTARGET) \
2100 $(DEST_BIN)/$(GVIEWTARGET) \
2101 $(DEST_BIN)/$(RGVIMTARGET) \
2102 $(DEST_BIN)/$(RGVIEWTARGET) \
2103 $(DEST_BIN)/$(EVIMTARGET) \
2104 $(DEST_BIN)/$(EVIEWTARGET) \
2105 $(INSTALLGVIMDIFF)
2106
2107installvimdiff: $(DEST_BIN)/$(VIMDIFFTARGET)
2108installgvimdiff: $(DEST_BIN)/$(GVIMDIFFTARGET)
2109
2110$(DEST_BIN)/$(EXTARGET):
2111 cd $(DEST_BIN); ln -s $(VIMTARGET) $(EXTARGET)
2112
2113$(DEST_BIN)/$(VIEWTARGET):
2114 cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIEWTARGET)
2115
2116$(DEST_BIN)/$(GVIMTARGET):
2117 cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMTARGET)
2118
2119$(DEST_BIN)/$(GVIEWTARGET):
2120 cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIEWTARGET)
2121
2122$(DEST_BIN)/$(RVIMTARGET):
2123 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIMTARGET)
2124
2125$(DEST_BIN)/$(RVIEWTARGET):
2126 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIEWTARGET)
2127
2128$(DEST_BIN)/$(RGVIMTARGET):
2129 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIMTARGET)
2130
2131$(DEST_BIN)/$(RGVIEWTARGET):
2132 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIEWTARGET)
2133
2134$(DEST_BIN)/$(VIMDIFFTARGET):
2135 cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIMDIFFTARGET)
2136
2137$(DEST_BIN)/$(GVIMDIFFTARGET):
2138 cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMDIFFTARGET)
2139
2140$(DEST_BIN)/$(EVIMTARGET):
2141 cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIMTARGET)
2142
2143$(DEST_BIN)/$(EVIEWTARGET):
2144 cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIEWTARGET)
2145
Bram Moolenaardb552d602006-03-23 22:59:57 +00002146# Create links for the manual pages with various names to vim. This is only
Bram Moolenaare1d12892004-06-13 13:02:36 +00002147# done when the links (or manpages with the same name) don't exist yet.
Bram Moolenaare1d12892004-06-13 13:02:36 +00002148
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002149INSTALLMLARGS = $(VIMNAME) $(VIMDIFFNAME) $(EVIMNAME) \
2150 $(EXNAME) $(VIEWNAME) $(RVIMNAME) $(RVIEWNAME) \
2151 $(GVIMNAME) $(GVIEWNAME) $(RGVIMNAME) $(RGVIEWNAME) \
2152 $(GVIMDIFFNAME) $(EVIEWNAME)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002153
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00002154installmanlinks:
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002155 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \
2156 $(DEST_MAN) $(INSTALLMLARGS)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002157
2158uninstall: uninstall_runtime
2159 -rm -f $(DEST_BIN)/$(VIMTARGET)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002160 -rm -f $(DEST_BIN)/vimtutor
Bram Moolenaar2b570782008-05-07 15:40:33 +00002161 -rm -f $(DEST_BIN)/gvimtutor
Bram Moolenaare1d12892004-06-13 13:02:36 +00002162 -rm -f $(DEST_BIN)/$(EXTARGET) $(DEST_BIN)/$(VIEWTARGET)
2163 -rm -f $(DEST_BIN)/$(GVIMTARGET) $(DEST_BIN)/$(GVIEWTARGET)
2164 -rm -f $(DEST_BIN)/$(RVIMTARGET) $(DEST_BIN)/$(RVIEWTARGET)
2165 -rm -f $(DEST_BIN)/$(RGVIMTARGET) $(DEST_BIN)/$(RGVIEWTARGET)
2166 -rm -f $(DEST_BIN)/$(VIMDIFFTARGET) $(DEST_BIN)/$(GVIMDIFFTARGET)
2167 -rm -f $(DEST_BIN)/$(EVIMTARGET) $(DEST_BIN)/$(EVIEWTARGET)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002168 -rm -f $(DEST_BIN)/xxd$(EXEEXT)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002169
2170# Note: the "rmdir" will fail if any files were added after "make install"
2171uninstall_runtime:
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002172 -$(SHELL) ./installman.sh uninstall $(DEST_MAN) "" $(INSTALLMANARGS)
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00002173 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_FR) "" $(INSTALLMANARGS)
2174 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_FR_I) "" $(INSTALLMANARGS)
2175 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_FR_U) "" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002176 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_IT) "" $(INSTALLMANARGS)
Bram Moolenaar217ad922005-03-20 22:37:15 +00002177 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_IT_I) "" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002178 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_IT_U) "" $(INSTALLMANARGS)
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002179 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_PL) "" $(INSTALLMANARGS)
Bram Moolenaar910f66f2006-04-05 20:41:53 +00002180 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_PL_I) "" $(INSTALLMANARGS)
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002181 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_PL_U) "" $(INSTALLMANARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002182 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_RU) "" $(INSTALLMANARGS)
2183 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_RU_U) "" $(INSTALLMANARGS)
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002184 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2185 $(DEST_MAN) $(INSTALLMLARGS)
2186 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00002187 $(DEST_MAN_FR) $(INSTALLMLARGS)
2188 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2189 $(DEST_MAN_FR_I) $(INSTALLMLARGS)
2190 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2191 $(DEST_MAN_FR_U) $(INSTALLMLARGS)
2192 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaarb5bf5b82004-12-24 14:35:23 +00002193 $(DEST_MAN_IT) $(INSTALLMLARGS)
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002194 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaar217ad922005-03-20 22:37:15 +00002195 $(DEST_MAN_IT_I) $(INSTALLMLARGS)
2196 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002197 $(DEST_MAN_IT_U) $(INSTALLMLARGS)
2198 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002199 $(DEST_MAN_PL) $(INSTALLMLARGS)
2200 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaar910f66f2006-04-05 20:41:53 +00002201 $(DEST_MAN_PL_I) $(INSTALLMLARGS)
2202 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002203 $(DEST_MAN_PL_U) $(INSTALLMLARGS)
2204 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002205 $(DEST_MAN_RU) $(INSTALLMLARGS)
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002206 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
2207 $(DEST_MAN_RU_U) $(INSTALLMLARGS)
2208 -rm -f $(DEST_MAN)/xxd.1
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00002209 -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 +00002210 -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 +00002211 -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 +00002212 -rm -f $(DEST_MAN_RU)/xxd.1 $(DEST_MAN_RU_U)/xxd.1
Bram Moolenaare1d12892004-06-13 13:02:36 +00002213 -rm -f $(DEST_HELP)/*.txt $(DEST_HELP)/tags $(DEST_HELP)/*.pl
2214 -rm -f $(DEST_HELP)/*.??x $(DEST_HELP)/tags-??
2215 -rm -f $(SYS_MENU_FILE) $(SYS_SYNMENU_FILE) $(SYS_DELMENU_FILE)
2216 -rm -f $(SYS_BUGR_FILE) $(EVIM_FILE) $(MSWIN_FILE)
2217 -rm -f $(DEST_SCRIPT)/gvimrc_example.vim $(DEST_SCRIPT)/vimrc_example.vim
2218 -rm -f $(SYS_FILETYPE_FILE) $(SYS_FTOFF_FILE) $(SYS_SCRIPTS_FILE)
2219 -rm -f $(SYS_INDOFF_FILE) $(SYS_INDENT_FILE)
2220 -rm -f $(SYS_FTPLUGOF_FILE) $(SYS_FTPLUGIN_FILE)
2221 -rm -f $(SYS_OPTWIN_FILE)
2222 -rm -f $(DEST_COL)/*.vim $(DEST_COL)/README.txt
2223 -rm -f $(DEST_SYN)/*.vim $(DEST_SYN)/README.txt
2224 -rm -f $(DEST_IND)/*.vim $(DEST_IND)/README.txt
2225 -rm -rf $(DEST_MACRO)
2226 -rm -rf $(DEST_TUTOR)
Bram Moolenaar217ad922005-03-20 22:37:15 +00002227 -rm -rf $(DEST_SPELL)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002228 -rm -rf $(DEST_TOOLS)
2229 -rm -rf $(DEST_LANG)
2230 -rm -rf $(DEST_KMAP)
2231 -rm -rf $(DEST_COMP)
2232 -rm -f $(DEST_PRINT)/*.ps
2233 -rmdir $(DEST_HELP) $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND)
2234 -rm -rf $(DEST_FTP)/*.vim $(DEST_FTP)/README.txt
Bram Moolenaar18144c82006-04-12 21:52:12 +00002235 -rm -f $(DEST_AUTO)/*.vim $(DEST_AUTO)/README.txt $(DEST_AUTO)/xml/*.vim
Bram Moolenaare1d12892004-06-13 13:02:36 +00002236 -rm -f $(DEST_PLUG)/*.vim $(DEST_PLUG)/README.txt
Bram Moolenaar18144c82006-04-12 21:52:12 +00002237 -rmdir $(DEST_FTP) $(DEST_AUTO)/xml $(DEST_AUTO) $(DEST_PLUG) $(DEST_RT)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002238# This will fail when other Vim versions are installed, no worries.
2239 -rmdir $(DEST_VIM)
2240
2241# Clean up all the files that have been produced, except configure's.
2242# We support common typing mistakes for Juergen! :-)
2243clean celan: testclean
Bram Moolenaar5a305422006-04-28 22:38:25 +00002244 -rm -f *.o objects/* core $(VIMTARGET).core $(VIMTARGET) vim xxd/*.o
Bram Moolenaare1d12892004-06-13 13:02:36 +00002245 -rm -f $(TOOLS) auto/osdef.h auto/pathdef.c auto/if_perl.c
2246 -rm -f conftest* *~ auto/link.sed
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002247 -rm -rf $(APPDIR)
Bram Moolenaar9e70cf12009-05-26 20:59:55 +00002248 -rm -rf mzscheme_base.c
Bram Moolenaare1d12892004-06-13 13:02:36 +00002249 if test -d $(PODIR); then \
2250 cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) clean; \
2251 fi
2252
2253# Make a shadow directory for compilation on another system or with different
2254# features.
2255SHADOWDIR = shadow
2256
2257shadow: runtime pixmaps
2258 mkdir $(SHADOWDIR)
Bram Moolenaarc4ea3f42008-06-04 13:28:18 +00002259 cd $(SHADOWDIR); ln -s ../*.[ch] ../*.in ../*.sh ../*.xs ../*.xbm ../toolcheck ../proto ../po ../vimtutor ../gvimtutor ../mkinstalldirs .
Bram Moolenaare1d12892004-06-13 13:02:36 +00002260 mkdir $(SHADOWDIR)/auto
2261 cd $(SHADOWDIR)/auto; ln -s ../../auto/configure .
2262 cd $(SHADOWDIR); rm -f auto/link.sed
2263 cp Makefile configure $(SHADOWDIR)
2264 rm -f $(SHADOWDIR)/auto/config.mk $(SHADOWDIR)/config.mk.dist
2265 cp config.mk.dist $(SHADOWDIR)/auto/config.mk
2266 cp config.mk.dist $(SHADOWDIR)
2267 mkdir $(SHADOWDIR)/xxd
2268 cd $(SHADOWDIR)/xxd; ln -s ../../xxd/*.[ch] ../../xxd/Make* .
Bram Moolenaar910f66f2006-04-05 20:41:53 +00002269 if test -d $(RSRC_DIR); then \
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00002270 cd $(SHADOWDIR); \
Bram Moolenaar70fc5272006-05-13 10:55:25 +00002271 ln -s ../infplist.xml .; \
Bram Moolenaar910f66f2006-04-05 20:41:53 +00002272 ln -s ../$(RSRC_DIR) ../os_mac.rsr.hqx ../dehqx.py .; \
Bram Moolenaar7e8fd632006-02-18 22:14:51 +00002273 fi
Bram Moolenaare1d12892004-06-13 13:02:36 +00002274 mkdir $(SHADOWDIR)/testdir
2275 cd $(SHADOWDIR)/testdir; ln -s ../../testdir/Makefile \
2276 ../../testdir/vimrc.unix \
2277 ../../testdir/*.in \
Bram Moolenaarc4ea3f42008-06-04 13:28:18 +00002278 ../../testdir/*.vim \
Bram Moolenaare1d12892004-06-13 13:02:36 +00002279 ../../testdir/*.ok .
2280
2281# Link needed for doing "make install" in a shadow directory.
2282runtime:
2283 -ln -s ../runtime .
2284
2285# Link needed for doing "make" using GTK in a shadow directory.
2286pixmaps:
2287 -ln -s ../pixmaps .
2288
2289# Update the synmenu.vim file with the latest Syntax menu.
2290# This is only needed when runtime/makemenu.vim was changed.
2291menu: ./vim ../runtime/makemenu.vim
2292 ./vim -u ../runtime/makemenu.vim
2293
2294# Start configure from scratch
2295scrub scratch:
2296 -rm -f auto/config.status auto/config.cache config.log auto/config.log
2297 -rm -f auto/config.h auto/link.log auto/link.sed auto/config.mk
2298 touch auto/config.h
2299 cp config.mk.dist auto/config.mk
2300
2301distclean: clean scratch
2302 -rm -f tags
2303
2304dist: distclean
2305 @echo
2306 @echo Making the distribution has to be done in the top directory
2307
2308mdepend:
2309 -@rm -f Makefile~
2310 cp Makefile Makefile~
2311 sed -e '/\#\#\# Dependencies/q' < Makefile > tmp_make
2312 @for i in $(ALL_SRC) ; do \
2313 echo "$$i" ; \
2314 echo `echo "$$i" | sed -e 's/[^ ]*\.c$$/objects\/\1.o/'`": $$i" `\
2315 $(CPP) $$i |\
2316 grep '^# .*"\./.*\.h"' |\
2317 sort -t'"' -u +1 -2 |\
2318 sed -e 's/.*"\.\/\(.*\)".*/\1/'\
2319 ` >> tmp_make ; \
2320 done
2321 mv tmp_make Makefile
2322
2323depend:
2324 -@rm -f Makefile~
2325 cp Makefile Makefile~
2326 sed -e '/\#\#\# Dependencies/q' < Makefile > tmp_make
2327 -for i in $(ALL_SRC); do echo $$i; \
2328 $(CPP_DEPEND) $$i | \
2329 sed -e 's+^\([^ ]*\.o\)+objects/\1+' >> tmp_make; done
2330 mv tmp_make Makefile
2331
Bram Moolenaar9d75c832005-01-25 21:57:23 +00002332# Run lint. Clean up the *.ln files that are sometimes left behind.
Bram Moolenaare1d12892004-06-13 13:02:36 +00002333lint:
Bram Moolenaar0ab2a882009-05-13 10:51:08 +00002334 $(LINT) $(LINT_OPTIONS) $(LINT_CFLAGS) $(LINT_EXTRA) $(LINT_SRC)
Bram Moolenaar9d75c832005-01-25 21:57:23 +00002335 -rm -f *.ln
Bram Moolenaare1d12892004-06-13 13:02:36 +00002336
2337# Check dosinst.c with lint.
2338lintinstall:
Bram Moolenaar0ab2a882009-05-13 10:51:08 +00002339 $(LINT) $(LINT_OPTIONS) -DWIN32 -DUNIX_LINT dosinst.c
Bram Moolenaar9d75c832005-01-25 21:57:23 +00002340 -rm -f dosinst.ln
Bram Moolenaare1d12892004-06-13 13:02:36 +00002341
2342###########################################################################
2343
2344.c.o:
2345 $(CCC) $<
2346
Bram Moolenaare1d12892004-06-13 13:02:36 +00002347auto/if_perl.c: if_perl.xs
2348 $(PERL) -e 'unless ( $$] >= 5.005 ) { for (qw(na defgv errgv)) { print "#define PL_$$_ $$_\n" }}' > $@
2349 $(PERL) $(PERLLIB)/ExtUtils/xsubpp -prototypes -typemap \
2350 $(PERLLIB)/ExtUtils/typemap if_perl.xs >> $@
2351
2352auto/osdef.h: auto/config.h osdef.sh osdef1.h.in osdef2.h.in
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002353 CC="$(CC) $(OSDEF_CFLAGS)" srcdir=$(srcdir) sh $(srcdir)/osdef.sh
Bram Moolenaare1d12892004-06-13 13:02:36 +00002354
Bram Moolenaarde947682006-09-02 14:32:22 +00002355QUOTESED = sed -e 's/[\\"]/\\&/g' -e 's/\\"/"/' -e 's/\\";$$/";/'
Bram Moolenaare1d12892004-06-13 13:02:36 +00002356auto/pathdef.c: Makefile auto/config.mk
2357 -@echo creating $@
2358 -@echo '/* pathdef.c */' > $@
2359 -@echo '/* This file is automatically created by Makefile' >> $@
2360 -@echo ' * DO NOT EDIT! Change Makefile only. */' >> $@
2361 -@echo '#include "vim.h"' >> $@
2362 -@echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' | $(QUOTESED) >> $@
2363 -@echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' | $(QUOTESED) >> $@
2364 -@echo 'char_u *all_cflags = (char_u *)"$(CC) -c -I$(srcdir) $(ALL_CFLAGS)";' | $(QUOTESED) >> $@
2365 -@echo 'char_u *all_lflags = (char_u *)"$(CC) $(ALL_LIB_DIRS) $(LDFLAGS) -o $(VIMTARGET) $(ALL_LIBS) ";' | $(QUOTESED) >> $@
2366 -@echo 'char_u *compiled_user = (char_u *)"' | tr -d $(NL) >> $@
2367 -@if test -n "$(COMPILEDBY)"; then \
2368 echo "$(COMPILEDBY)" | tr -d $(NL) >> $@; \
2369 else ((logname) 2>/dev/null || whoami) | tr -d $(NL) >> $@; fi
2370 -@echo '";' >> $@
2371 -@echo 'char_u *compiled_sys = (char_u *)"' | tr -d $(NL) >> $@
2372 -@if test -z "$(COMPILEDBY)"; then hostname | tr -d $(NL) >> $@; fi
2373 -@echo '";' >> $@
2374 -@sh $(srcdir)/pathdef.sh
2375
2376# All the object files are put in the "objects" directory. Since not all make
2377# commands understand putting object files in another directory, it must be
2378# specified for each file separately.
2379
2380objects:
2381 mkdir objects
2382
Bram Moolenaar40e6a712010-05-16 22:32:54 +02002383objects/blowfish.o: blowfish.c
2384 $(CCC) -o $@ blowfish.c
2385
Bram Moolenaare1d12892004-06-13 13:02:36 +00002386objects/buffer.o: buffer.c
2387 $(CCC) -o $@ buffer.c
2388
2389objects/charset.o: charset.c
2390 $(CCC) -o $@ charset.c
2391
2392objects/diff.o: diff.c
2393 $(CCC) -o $@ diff.c
2394
2395objects/digraph.o: digraph.c
2396 $(CCC) -o $@ digraph.c
2397
2398objects/edit.o: edit.c
2399 $(CCC) -o $@ edit.c
2400
2401objects/eval.o: eval.c
2402 $(CCC) -o $@ eval.c
2403
2404objects/ex_cmds.o: ex_cmds.c
2405 $(CCC) -o $@ ex_cmds.c
2406
2407objects/ex_cmds2.o: ex_cmds2.c
2408 $(CCC) -o $@ ex_cmds2.c
2409
2410objects/ex_docmd.o: ex_docmd.c
2411 $(CCC) -o $@ ex_docmd.c
2412
2413objects/ex_eval.o: ex_eval.c
2414 $(CCC) -o $@ ex_eval.c
2415
2416objects/ex_getln.o: ex_getln.c
2417 $(CCC) -o $@ ex_getln.c
2418
2419objects/fileio.o: fileio.c
2420 $(CCC) -o $@ fileio.c
2421
2422objects/fold.o: fold.c
2423 $(CCC) -o $@ fold.c
2424
2425objects/getchar.o: getchar.c
2426 $(CCC) -o $@ getchar.c
2427
Bram Moolenaar58d98232005-07-23 22:25:46 +00002428objects/hardcopy.o: hardcopy.c
2429 $(CCC) -o $@ hardcopy.c
2430
Bram Moolenaarc01140a2006-03-24 22:21:52 +00002431objects/hashtab.o: hashtab.c
2432 $(CCC) -o $@ hashtab.c
Bram Moolenaar383f9bc2005-01-19 22:18:32 +00002433
Bram Moolenaare1d12892004-06-13 13:02:36 +00002434objects/gui.o: gui.c
2435 $(CCC) -o $@ gui.c
2436
2437objects/gui_at_fs.o: gui_at_fs.c
2438 $(CCC) -o $@ gui_at_fs.c
2439
2440objects/gui_at_sb.o: gui_at_sb.c
2441 $(CCC) -o $@ gui_at_sb.c
2442
2443objects/gui_athena.o: gui_athena.c
2444 $(CCC) -o $@ gui_athena.c
2445
Bram Moolenaare1d12892004-06-13 13:02:36 +00002446objects/gui_beval.o: gui_beval.c
2447 $(CCC) -o $@ gui_beval.c
2448
2449objects/gui_gtk.o: gui_gtk.c
2450 $(CCC) -o $@ gui_gtk.c
2451
2452objects/gui_gtk_f.o: gui_gtk_f.c
2453 $(CCC) -o $@ gui_gtk_f.c
2454
2455objects/gui_gtk_x11.o: gui_gtk_x11.c
2456 $(CCC) -o $@ gui_gtk_x11.c
2457
2458objects/gui_motif.o: gui_motif.c
2459 $(CCC) -o $@ gui_motif.c
2460
Bram Moolenaardfccaf02004-12-31 20:56:11 +00002461objects/gui_xmdlg.o: gui_xmdlg.c
2462 $(CCC) -o $@ gui_xmdlg.c
2463
Bram Moolenaarb7fcef52005-01-02 11:31:05 +00002464objects/gui_xmebw.o: gui_xmebw.c
2465 $(CCC) -o $@ gui_xmebw.c
2466
Bram Moolenaare1d12892004-06-13 13:02:36 +00002467objects/gui_x11.o: gui_x11.c
2468 $(CCC) -o $@ gui_x11.c
2469
2470objects/gui_photon.o: gui_photon.c
2471 $(CCC) -o $@ gui_photon.c
2472
2473objects/gui_mac.o: gui_mac.c
2474 $(CCC) -o $@ gui_mac.c
2475
2476objects/hangulin.o: hangulin.c
2477 $(CCC) -o $@ hangulin.c
2478
2479objects/if_cscope.o: if_cscope.c
2480 $(CCC) -o $@ if_cscope.c
2481
2482objects/if_xcmdsrv.o: if_xcmdsrv.c
2483 $(CCC) -o $@ if_xcmdsrv.c
2484
Bram Moolenaar0ba04292010-07-14 23:23:17 +02002485objects/if_lua.o: if_lua.c
2486 $(CCC) -o $@ if_lua.c
2487
Bram Moolenaar9e70cf12009-05-26 20:59:55 +00002488objects/if_mzsch.o: if_mzsch.c $(MZSCHEME_EXTRA)
Bram Moolenaarcd8b20a2009-05-22 16:20:57 +00002489 $(CCC) -o $@ $(MZSCHEME_CFLAGS_EXTRA) if_mzsch.c
Bram Moolenaar9e70cf12009-05-26 20:59:55 +00002490
2491mzscheme_base.c:
2492 $(MZSCHEME_MZC) --c-mods mzscheme_base.c ++lib scheme/base
Bram Moolenaar325b7a22004-07-05 15:58:32 +00002493
Bram Moolenaare1d12892004-06-13 13:02:36 +00002494objects/if_perl.o: auto/if_perl.c
2495 $(CCC) -o $@ auto/if_perl.c
2496
2497objects/if_perlsfio.o: if_perlsfio.c
2498 $(CCC) -o $@ if_perlsfio.c
2499
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +02002500objects/py_config.o: $(PYTHON_CONFDIR)/config.c
2501 $(CCC) $(PYTHON_CFLAGS) -o $@ $(PYTHON_CONFDIR)/config.c \
2502 -I$(PYTHON_CONFDIR) -DHAVE_CONFIG_H -DNO_MAIN
2503
2504objects/py_getpath.o: $(PYTHON_CONFDIR)/getpath.c
2505 $(CCC) $(PYTHON_CFLAGS) -o $@ $(PYTHON_CONFDIR)/getpath.c \
2506 -I$(PYTHON_CONFDIR) -DHAVE_CONFIG_H -DNO_MAIN \
2507 $(PYTHON_GETPATH_CFLAGS)
2508
2509objects/py3_config.o: $(PYTHON3_CONFDIR)/config.c
2510 $(CCC) $(PYTHON3_CFLAGS) -o $@ $(PYTHON3_CONFDIR)/config.c \
2511 -I$(PYTHON3_CONFDIR) -DHAVE_CONFIG_H -DNO_MAIN
2512
2513objects/if_python.o: if_python.c
2514 $(CCC) $(PYTHON_CFLAGS) $(PYTHON_CFLAGS_EXTRA) -o $@ if_python.c
2515
2516objects/if_python3.o: if_python3.c
2517 $(CCC) $(PYTHON3_CFLAGS) $(PYTHON3_CFLAGS_EXTRA) -o $@ if_python3.c
Bram Moolenaare1d12892004-06-13 13:02:36 +00002518
2519objects/if_ruby.o: if_ruby.c
2520 $(CCC) -o $@ if_ruby.c
2521
2522objects/if_sniff.o: if_sniff.c
2523 $(CCC) -o $@ if_sniff.c
2524
2525objects/if_tcl.o: if_tcl.c
2526 $(CCC) -o $@ if_tcl.c
2527
2528objects/integration.o: integration.c
2529 $(CCC) -o $@ integration.c
2530
2531objects/main.o: main.c
2532 $(CCC) -o $@ main.c
2533
2534objects/mark.o: mark.c
2535 $(CCC) -o $@ mark.c
2536
2537objects/memfile.o: memfile.c
2538 $(CCC) -o $@ memfile.c
2539
2540objects/memline.o: memline.c
2541 $(CCC) -o $@ memline.c
2542
2543objects/menu.o: menu.c
2544 $(CCC) -o $@ menu.c
2545
2546objects/message.o: message.c
2547 $(CCC) -o $@ message.c
2548
2549objects/misc1.o: misc1.c
2550 $(CCC) -o $@ misc1.c
2551
2552objects/misc2.o: misc2.c
2553 $(CCC) -o $@ misc2.c
2554
2555objects/move.o: move.c
2556 $(CCC) -o $@ move.c
2557
2558objects/mbyte.o: mbyte.c
2559 $(CCC) -o $@ mbyte.c
2560
2561objects/normal.o: normal.c
2562 $(CCC) -o $@ normal.c
2563
2564objects/ops.o: ops.c
2565 $(CCC) -o $@ ops.c
2566
2567objects/option.o: option.c
2568 $(CCC) -o $@ option.c
2569
2570objects/os_beos.o: os_beos.c
2571 $(CCC) -o $@ os_beos.c
2572
2573objects/os_qnx.o: os_qnx.c
2574 $(CCC) -o $@ os_qnx.c
2575
Bram Moolenaar164fca32010-07-14 13:58:07 +02002576objects/os_macosx.o: os_macosx.m
2577 $(CCC) -o $@ os_macosx.m
Bram Moolenaare1d12892004-06-13 13:02:36 +00002578
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002579objects/os_mac_conv.o: os_mac_conv.c
2580 $(CCC) -o $@ os_mac_conv.c
2581
Bram Moolenaare1d12892004-06-13 13:02:36 +00002582objects/os_unix.o: os_unix.c
2583 $(CCC) -o $@ os_unix.c
2584
2585objects/pathdef.o: auto/pathdef.c
2586 $(CCC) -o $@ auto/pathdef.c
2587
Bram Moolenaare1d12892004-06-13 13:02:36 +00002588objects/pty.o: pty.c
2589 $(CCC) -o $@ pty.c
2590
Bram Moolenaarc01140a2006-03-24 22:21:52 +00002591objects/popupmnu.o: popupmnu.c
2592 $(CCC) -o $@ popupmnu.c
Bram Moolenaar1c7715d2005-10-03 22:02:18 +00002593
Bram Moolenaare1d12892004-06-13 13:02:36 +00002594objects/quickfix.o: quickfix.c
2595 $(CCC) -o $@ quickfix.c
2596
2597objects/regexp.o: regexp.c
2598 $(CCC) -o $@ regexp.c
2599
2600objects/screen.o: screen.c
2601 $(CCC) -o $@ screen.c
2602
2603objects/search.o: search.c
2604 $(CCC) -o $@ search.c
2605
Bram Moolenaar40e6a712010-05-16 22:32:54 +02002606objects/sha256.o: sha256.c
2607 $(CCC) -o $@ sha256.c
2608
Bram Moolenaar217ad922005-03-20 22:37:15 +00002609objects/spell.o: spell.c
2610 $(CCC) -o $@ spell.c
2611
Bram Moolenaare1d12892004-06-13 13:02:36 +00002612objects/syntax.o: syntax.c
2613 $(CCC) -o $@ syntax.c
2614
2615objects/tag.o: tag.c
2616 $(CCC) -o $@ tag.c
2617
2618objects/term.o: term.c
2619 $(CCC) -o $@ term.c
2620
2621objects/ui.o: ui.c
2622 $(CCC) -o $@ ui.c
2623
2624objects/undo.o: undo.c
2625 $(CCC) -o $@ undo.c
2626
2627objects/window.o: window.c
2628 $(CCC) -o $@ window.c
2629
2630objects/workshop.o: workshop.c
2631 $(CCC) -o $@ workshop.c
2632
2633objects/wsdebug.o: wsdebug.c
2634 $(CCC) -o $@ wsdebug.c
2635
2636objects/netbeans.o: netbeans.c
2637 $(CCC) -o $@ netbeans.c
2638
2639Makefile:
2640 @echo The name of the makefile MUST be "Makefile" (with capital M)!!!!
2641
2642###############################################################################
2643### MacOS X installation
2644###
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002645### This installs a runnable Vim.app in $(prefix)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002646
2647REZ = /Developer/Tools/Rez
Bram Moolenaare1d12892004-06-13 13:02:36 +00002648RESDIR = $(APPDIR)/Contents/Resources
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00002649VERSION = $(VIMMAJOR).$(VIMMINOR)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002650
2651### Common flags
2652M4FLAGSX = $(M4FLAGS) -DAPP_EXE=$(VIMNAME) -DAPP_NAME=$(VIMNAME) \
Bram Moolenaar910f66f2006-04-05 20:41:53 +00002653 -DAPP_VER=$(VERSION)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002654
Bram Moolenaarcd71fa32005-03-11 22:46:48 +00002655install_macosx: gui_bundle
Bram Moolenaare344bea2005-09-01 20:46:49 +00002656# Remove the link to the runtime dir, don't want to copy all of that.
Bram Moolenaar56718732006-03-15 22:53:57 +00002657 -rm $(RESDIR)/vim/runtime
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002658 $(INSTALL_DATA_R) $(APPDIR) $(DESTDIR)$(prefix)
Bram Moolenaardb552d602006-03-23 22:59:57 +00002659# Generate the help tags file now, it won't work with "make installruntime".
2660 -@srcdir=`pwd`; cd $(HELPSOURCE); $(MAKE) VIMEXE=$$srcdir/$(VIMTARGET) vimtags
Bram Moolenaare344bea2005-09-01 20:46:49 +00002661# Install the runtime files. Recursive!
Bram Moolenaar56718732006-03-15 22:53:57 +00002662 -mkdir -p $(DESTDIR)$(prefix)/$(RESDIR)/vim/runtime
2663# -mkdir $(DESTDIR)$(prefix)/$(APPDIR)/bin
Bram Moolenaare344bea2005-09-01 20:46:49 +00002664 srcdir=`pwd`; $(MAKE) -f Makefile installruntime \
2665 VIMEXE=$$srcdir/$(VIMTARGET) \
Bram Moolenaarce51ebc2008-01-04 10:54:50 +00002666 prefix=$(DESTDIR)$(prefix)/$(RESDIR)$(VIMDIR) \
2667 exec_prefix=$(DESTDIR)$(prefix)/$(APPDIR)/Contents \
2668 BINDIR=$(DESTDIR)$(prefix)/$(APPDIR)/Contents/MacOS \
2669 VIMLOC=$(DESTDIR)$(prefix)/$(RESDIR)$(VIMDIR) \
2670 VIMRTLOC=$(DESTDIR)$(prefix)/$(RESDIR)$(VIMDIR)/runtime
Bram Moolenaare344bea2005-09-01 20:46:49 +00002671# Put the link back.
Bram Moolenaar56718732006-03-15 22:53:57 +00002672 ln -s `pwd`/../runtime $(RESDIR)/vim
Bram Moolenaara38edcd2007-05-10 17:46:55 +00002673# Copy rgb.txt, Mac doesn't always have X11
2674 $(INSTALL_DATA) $(SCRIPTSOURCE)/rgb.txt $(DESTDIR)$(prefix)/$(RESDIR)/vim/runtime
Bram Moolenaar3577c6f2008-06-24 21:16:56 +00002675# TODO: Create the vimtutor and/or gvimtutor application.
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002676
Bram Moolenaar56718732006-03-15 22:53:57 +00002677gui_bundle: $(RESDIR) bundle-dir bundle-executable bundle-info bundle-resource \
Bram Moolenaare1d12892004-06-13 13:02:36 +00002678 bundle-language
2679
Bram Moolenaar56718732006-03-15 22:53:57 +00002680$(RESDIR):
Bram Moolenaar4317d9b2005-03-18 20:25:31 +00002681 mkdir -p $@
2682
Bram Moolenaare1d12892004-06-13 13:02:36 +00002683bundle-dir: $(APPDIR)/Contents $(VIMTARGET)
Bram Moolenaare344bea2005-09-01 20:46:49 +00002684# Make a link to the runtime directory, so that we can try out the executable
2685# without installing it.
Bram Moolenaar56718732006-03-15 22:53:57 +00002686 mkdir -p $(RESDIR)/vim
2687 -ln -s `pwd`/../runtime $(RESDIR)/vim
Bram Moolenaare1d12892004-06-13 13:02:36 +00002688
2689bundle-executable: $(VIMTARGET)
Bram Moolenaar56718732006-03-15 22:53:57 +00002690 mkdir -p $(APPDIR)/Contents/MacOS
Bram Moolenaare1d12892004-06-13 13:02:36 +00002691 cp $(VIMTARGET) $(APPDIR)/Contents/MacOS/$(VIMTARGET)
2692
2693bundle-info: bundle-dir
2694 @echo "Creating PkgInfo"
2695 @echo -n "APPLVIM!" > $(APPDIR)/Contents/PkgInfo
2696 @echo "Creating Info.plist"
2697 m4 $(M4FLAGSX) infplist.xml > $(APPDIR)/Contents/Info.plist
2698
Bram Moolenaar910f66f2006-04-05 20:41:53 +00002699bundle-resource: bundle-dir bundle-rsrc
2700 cp -f $(RSRC_DIR)/*.icns $(RESDIR)
Bram Moolenaare1d12892004-06-13 13:02:36 +00002701
2702### Classic resources
2703# Resource fork (in the form of a .rsrc file) for Classic Vim (Mac OS 9)
2704# This file is also required for OS X Vim.
2705bundle-rsrc: os_mac.rsr.hqx
2706 @echo "Creating resource fork"
2707 python dehqx.py $<
2708 rm -f gui_mac.rsrc
2709 mv gui_mac.rsrc.rsrcfork $(RESDIR)/$(VIMNAME).rsrc
2710
2711# po/Make_osx.pl says something about generating a Mac message file
2712# for Ukrananian. Would somebody using Mac OS X in Ukranian
2713# *really* be upset that Carbon Vim was not localised in
2714# Ukranian?
2715#
2716#bundle-language: bundle-dir po/Make_osx.pl
2717# cd po && perl Make_osx.pl --outdir ../$(RESDIR) $(MULTILANG)
2718bundle-language: bundle-dir
2719
2720$(APPDIR)/Contents:
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002721 -$(SHELL) ./mkinstalldirs $(APPDIR)/Contents/MacOS
2722 -$(SHELL) ./mkinstalldirs $(RESDIR)/English.lproj
Bram Moolenaare1d12892004-06-13 13:02:36 +00002723
Bram Moolenaare1d12892004-06-13 13:02:36 +00002724
2725###############################################################################
2726### (automatically generated by 'make depend')
2727### Dependencies:
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002728objects/blowfish.o: blowfish.c vim.h auto/config.h feature.h os_unix.h \
2729 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2730 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2731 globals.h farsi.h arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002732objects/buffer.o: buffer.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002733 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2734 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2735 arabic.h version.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002736objects/charset.o: charset.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/diff.o: diff.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/digraph.o: digraph.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 Moolenaare1d12892004-06-13 13:02:36 +00002748objects/edit.o: edit.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002749 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2750 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2751 arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002752objects/eval.o: eval.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 version.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002756objects/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 +02002757 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2758 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2759 arabic.h version.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002760objects/ex_cmds2.o: ex_cmds2.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/ex_docmd.o: ex_docmd.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002765 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2766 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2767 globals.h farsi.h arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002768objects/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 +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 Moolenaare1d12892004-06-13 13:02:36 +00002772objects/ex_getln.o: ex_getln.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002773 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2774 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2775 globals.h farsi.h arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002776objects/fileio.o: fileio.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/fold.o: fold.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/getchar.o: getchar.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 Moolenaar58d98232005-07-23 22:25:46 +00002788objects/hardcopy.o: hardcopy.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002789 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2790 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2791 globals.h farsi.h arabic.h version.h
Bram Moolenaarc01140a2006-03-24 22:21:52 +00002792objects/hashtab.o: hashtab.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/if_cscope.o: if_cscope.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002797 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2798 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2799 globals.h farsi.h arabic.h if_cscope.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002800objects/if_xcmdsrv.o: if_xcmdsrv.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002801 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2802 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2803 globals.h farsi.h arabic.h version.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002804objects/main.o: main.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 farsi.c arabic.c
Bram Moolenaare1d12892004-06-13 13:02:36 +00002808objects/mark.o: mark.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002809 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2810 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2811 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002812objects/memfile.o: memfile.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002813 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2814 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2815 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002816objects/memline.o: memline.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002817 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2818 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2819 arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002820objects/menu.o: menu.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002821 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2822 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2823 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002824objects/message.o: message.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002825 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2826 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2827 arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002828objects/misc1.o: misc1.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002829 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2830 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2831 arabic.h version.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002832objects/misc2.o: misc2.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002833 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2834 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2835 arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002836objects/move.o: move.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002837 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2838 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2839 arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002840objects/mbyte.o: mbyte.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002841 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2842 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2843 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002844objects/normal.o: normal.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002845 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2846 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2847 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002848objects/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 +02002849 keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \
2850 proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002851objects/option.o: option.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/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 +02002856 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2857 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2858 arabic.h if_mzsch.h os_unixx.h
2859objects/pathdef.o: auto/pathdef.c vim.h auto/config.h feature.h os_unix.h \
2860 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2861 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2862 globals.h farsi.h arabic.h
Bram Moolenaarc01140a2006-03-24 22:21:52 +00002863objects/popupmnu.o: popupmnu.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002864 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2865 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2866 globals.h farsi.h arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002867objects/quickfix.o: quickfix.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002868 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2869 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2870 globals.h farsi.h arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002871objects/regexp.o: regexp.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002872 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2873 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2874 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002875objects/screen.o: screen.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002876 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2877 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2878 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002879objects/search.o: search.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002880 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2881 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2882 arabic.h
2883objects/sha256.o: sha256.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
2884 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2885 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2886 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002887objects/spell.o: spell.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002888 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2889 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2890 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002891objects/syntax.o: syntax.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002892 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2893 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2894 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002895objects/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 +02002896 keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \
2897 proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002898objects/term.o: term.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002899 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2900 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2901 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002902objects/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 +02002903 keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \
2904 proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002905objects/undo.o: undo.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002906 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2907 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2908 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002909objects/version.o: version.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002910 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2911 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2912 arabic.h version.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002913objects/window.o: window.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002914 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
2915 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
2916 arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00002917objects/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 +02002918 keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \
2919 proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h
Bram Moolenaar202795b2005-10-11 20:29:39 +00002920objects/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 +02002921 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2922 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2923 globals.h farsi.h arabic.h ../pixmaps/stock_icons.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002924objects/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 +02002925 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2926 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2927 globals.h farsi.h arabic.h gui_gtk_f.h
Bram Moolenaar202795b2005-10-11 20:29:39 +00002928objects/gui_motif.o: gui_motif.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002929 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2930 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2931 globals.h farsi.h arabic.h gui_xmebw.h ../pixmaps/alert.xpm \
2932 ../pixmaps/error.xpm ../pixmaps/generic.xpm ../pixmaps/info.xpm \
2933 ../pixmaps/quest.xpm gui_x11_pm.h ../pixmaps/tb_new.xpm \
2934 ../pixmaps/tb_open.xpm ../pixmaps/tb_close.xpm ../pixmaps/tb_save.xpm \
2935 ../pixmaps/tb_print.xpm ../pixmaps/tb_cut.xpm ../pixmaps/tb_copy.xpm \
2936 ../pixmaps/tb_paste.xpm ../pixmaps/tb_find.xpm \
2937 ../pixmaps/tb_find_next.xpm ../pixmaps/tb_find_prev.xpm \
2938 ../pixmaps/tb_find_help.xpm ../pixmaps/tb_exit.xpm \
2939 ../pixmaps/tb_undo.xpm ../pixmaps/tb_redo.xpm ../pixmaps/tb_help.xpm \
2940 ../pixmaps/tb_macro.xpm ../pixmaps/tb_make.xpm \
2941 ../pixmaps/tb_save_all.xpm ../pixmaps/tb_jump.xpm \
2942 ../pixmaps/tb_ctags.xpm ../pixmaps/tb_load_session.xpm \
2943 ../pixmaps/tb_save_session.xpm ../pixmaps/tb_new_session.xpm \
2944 ../pixmaps/tb_blank.xpm ../pixmaps/tb_maximize.xpm \
2945 ../pixmaps/tb_split.xpm ../pixmaps/tb_minimize.xpm \
2946 ../pixmaps/tb_shell.xpm ../pixmaps/tb_replace.xpm \
2947 ../pixmaps/tb_vsplit.xpm ../pixmaps/tb_maxwidth.xpm \
2948 ../pixmaps/tb_minwidth.xpm
Bram Moolenaar202795b2005-10-11 20:29:39 +00002949objects/gui_xmdlg.o: gui_xmdlg.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002950 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2951 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2952 globals.h farsi.h arabic.h
Bram Moolenaar202795b2005-10-11 20:29:39 +00002953objects/gui_xmebw.o: gui_xmebw.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002954 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2955 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2956 globals.h farsi.h arabic.h gui_xmebwp.h gui_xmebw.h
Bram Moolenaar202795b2005-10-11 20:29:39 +00002957objects/gui_athena.o: gui_athena.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 gui_at_sb.h gui_x11_pm.h \
2961 ../pixmaps/tb_new.xpm ../pixmaps/tb_open.xpm ../pixmaps/tb_close.xpm \
2962 ../pixmaps/tb_save.xpm ../pixmaps/tb_print.xpm ../pixmaps/tb_cut.xpm \
2963 ../pixmaps/tb_copy.xpm ../pixmaps/tb_paste.xpm ../pixmaps/tb_find.xpm \
2964 ../pixmaps/tb_find_next.xpm ../pixmaps/tb_find_prev.xpm \
2965 ../pixmaps/tb_find_help.xpm ../pixmaps/tb_exit.xpm \
2966 ../pixmaps/tb_undo.xpm ../pixmaps/tb_redo.xpm ../pixmaps/tb_help.xpm \
2967 ../pixmaps/tb_macro.xpm ../pixmaps/tb_make.xpm \
2968 ../pixmaps/tb_save_all.xpm ../pixmaps/tb_jump.xpm \
2969 ../pixmaps/tb_ctags.xpm ../pixmaps/tb_load_session.xpm \
2970 ../pixmaps/tb_save_session.xpm ../pixmaps/tb_new_session.xpm \
2971 ../pixmaps/tb_blank.xpm ../pixmaps/tb_maximize.xpm \
2972 ../pixmaps/tb_split.xpm ../pixmaps/tb_minimize.xpm \
2973 ../pixmaps/tb_shell.xpm ../pixmaps/tb_replace.xpm \
2974 ../pixmaps/tb_vsplit.xpm ../pixmaps/tb_maxwidth.xpm \
2975 ../pixmaps/tb_minwidth.xpm
Bram Moolenaar202795b2005-10-11 20:29:39 +00002976objects/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 +02002977 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2978 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2979 globals.h farsi.h arabic.h gui_gtk_f.h ../runtime/vim32x32.xpm \
2980 ../runtime/vim16x16.xpm ../runtime/vim48x48.xpm
Bram Moolenaar202795b2005-10-11 20:29:39 +00002981objects/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 +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 ../runtime/vim32x32.xpm ../runtime/vim16x16.xpm \
2985 ../runtime/vim48x48.xpm
Bram Moolenaar202795b2005-10-11 20:29:39 +00002986objects/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 +02002987 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2988 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2989 globals.h farsi.h arabic.h gui_at_sb.h
Bram Moolenaar202795b2005-10-11 20:29:39 +00002990objects/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 +02002991 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2992 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2993 globals.h farsi.h arabic.h gui_at_sb.h
Bram Moolenaar202795b2005-10-11 20:29:39 +00002994objects/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 +02002995 keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \
2996 proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00002997objects/hangulin.o: hangulin.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02002998 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2999 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
3000 globals.h farsi.h arabic.h
Bram Moolenaar0ba04292010-07-14 23:23:17 +02003001objects/if_lua.o: if_lua.c vim.h auto/config.h feature.h os_unix.h \
3002 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3003 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
3004 globals.h farsi.h arabic.h
Bram Moolenaarc01140a2006-03-24 22:21:52 +00003005objects/if_mzsch.o: if_mzsch.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02003006 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3007 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
3008 globals.h farsi.h arabic.h if_mzsch.h mzscheme_base.c
3009objects/if_perl.o: auto/if_perl.c vim.h auto/config.h feature.h os_unix.h \
3010 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3011 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
3012 globals.h farsi.h arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00003013objects/if_perlsfio.o: if_perlsfio.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02003014 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3015 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
3016 globals.h farsi.h arabic.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00003017objects/if_python.o: if_python.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02003018 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3019 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
3020 globals.h farsi.h arabic.h
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +02003021objects/if_python3.o: if_python3.c vim.h auto/config.h feature.h os_unix.h \
3022 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3023 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
3024 globals.h farsi.h arabic.h
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +00003025objects/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 +02003026 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3027 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
3028 arabic.h
Bram Moolenaar202795b2005-10-11 20:29:39 +00003029objects/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 +02003030 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3031 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
3032 arabic.h version.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00003033objects/if_sniff.o: if_sniff.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02003034 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3035 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
3036 globals.h farsi.h arabic.h os_unixx.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00003037objects/gui_beval.o: gui_beval.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02003038 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3039 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
3040 globals.h farsi.h arabic.h
Bram Moolenaar202795b2005-10-11 20:29:39 +00003041objects/workshop.o: workshop.c auto/config.h integration.h vim.h feature.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02003042 os_unix.h auto/osdef.h ascii.h keymap.h term.h macros.h option.h \
3043 structs.h regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h \
3044 proto.h globals.h farsi.h arabic.h version.h workshop.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00003045objects/wsdebug.o: wsdebug.c
3046objects/integration.o: integration.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02003047 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3048 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
3049 globals.h farsi.h arabic.h integration.h
Bram Moolenaare1d12892004-06-13 13:02:36 +00003050objects/netbeans.o: netbeans.c vim.h auto/config.h feature.h os_unix.h \
Bram Moolenaarb26e6322010-05-22 21:34:09 +02003051 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3052 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
3053 globals.h farsi.h arabic.h version.h