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