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 = 0b 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.ISO8859-2$(MAN1DIR) 1326DEST_MAN_PL_U = $(DEST_MAN_TOP)/pl.UTF-8$(MAN1DIR) 1327DEST_MAN_RU = $(DEST_MAN_TOP)/ru.KOI8-R$(MAN1DIR) 1328DEST_MAN_RU_U = $(DEST_MAN_TOP)/ru.UTF-8$(MAN1DIR) 1329 1330# BASIC_SRC: files that are always used 1331# GUI_SRC: extra GUI files for current configuration 1332# ALL_GUI_SRC: all GUI files for Unix 1333# 1334# SRC: files used for current configuration 1335# TAGS_SRC: source files used for make tags 1336# TAGS_INCL: include files used for make tags 1337# ALL_SRC: source files used for make depend and make lint 1338 1339TAGS_INCL = *.h 1340 1341BASIC_SRC = \ 1342 buffer.c \ 1343 charset.c \ 1344 diff.c \ 1345 digraph.c \ 1346 edit.c \ 1347 eval.c \ 1348 ex_cmds.c \ 1349 ex_cmds2.c \ 1350 ex_docmd.c \ 1351 ex_eval.c \ 1352 ex_getln.c \ 1353 fileio.c \ 1354 fold.c \ 1355 getchar.c \ 1356 hardcopy.c \ 1357 hashtab.c \ 1358 if_cscope.c \ 1359 if_xcmdsrv.c \ 1360 main.c \ 1361 mark.c \ 1362 memfile.c \ 1363 memline.c \ 1364 menu.c \ 1365 message.c \ 1366 misc1.c \ 1367 misc2.c \ 1368 move.c \ 1369 mbyte.c \ 1370 normal.c \ 1371 ops.c \ 1372 option.c \ 1373 os_unix.c \ 1374 auto/pathdef.c \ 1375 popupmnu.c \ 1376 quickfix.c \ 1377 regexp.c \ 1378 screen.c \ 1379 search.c \ 1380 spell.c \ 1381 syntax.c \ 1382 tag.c \ 1383 term.c \ 1384 ui.c \ 1385 undo.c \ 1386 version.c \ 1387 window.c \ 1388 $(OS_EXTRA_SRC) 1389 1390SRC = $(BASIC_SRC) $(GUI_SRC) $(HANGULIN_SRC) $(MZSCHEME_SRC) \ 1391 $(PERL_SRC) $(PYTHON_SRC) $(TCL_SRC) $(RUBY_SRC) \ 1392 $(SNIFF_SRC) $(WORKSHOP_SRC) $(WSDEBUG_SRC) 1393 1394TAGS_SRC = *.c *.cpp if_perl.xs 1395 1396EXTRA_SRC = hangulin.c if_mzsch.c auto/if_perl.c if_perlsfio.c \ 1397 if_python.c if_tcl.c if_ruby.c if_sniff.c gui_beval.c \ 1398 workshop.c wsdebug.c integration.c netbeans.c 1399 1400# All sources, also the ones that are not configured 1401ALL_SRC = $(BASIC_SRC) $(ALL_GUI_SRC) $(EXTRA_SRC) 1402 1403# Which files to check with lint. Select one of these three lines. ALL_SRC 1404# checks more, but may not work well for checking a GUI that wasn't configured. 1405# The perl sources also don't work well with lint. 1406LINT_SRC = $(BASIC_SRC) $(GUI_SRC) $(HANGULIN_SRC) $(PYTHON_SRC) $(TCL_SRC) \ 1407 $(SNIFF_SRC) $(WORKSHOP_SRC) $(WSDEBUG_SRC) $(NETBEANS_SRC) 1408#LINT_SRC = $(SRC) 1409#LINT_SRC = $(ALL_SRC) 1410 1411OBJ = \ 1412 objects/buffer.o \ 1413 objects/charset.o \ 1414 objects/diff.o \ 1415 objects/digraph.o \ 1416 objects/edit.o \ 1417 objects/eval.o \ 1418 objects/ex_cmds.o \ 1419 objects/ex_cmds2.o \ 1420 objects/ex_docmd.o \ 1421 objects/ex_eval.o \ 1422 objects/ex_getln.o \ 1423 objects/fileio.o \ 1424 objects/fold.o \ 1425 objects/getchar.o \ 1426 objects/hardcopy.o \ 1427 objects/hashtab.o \ 1428 $(HANGULIN_OBJ) \ 1429 objects/if_cscope.o \ 1430 objects/if_xcmdsrv.o \ 1431 objects/main.o \ 1432 objects/mark.o \ 1433 objects/memfile.o \ 1434 objects/memline.o \ 1435 objects/menu.o \ 1436 objects/message.o \ 1437 objects/misc1.o \ 1438 objects/misc2.o \ 1439 objects/move.o \ 1440 objects/mbyte.o \ 1441 objects/normal.o \ 1442 objects/ops.o \ 1443 objects/option.o \ 1444 objects/os_unix.o \ 1445 objects/pathdef.o \ 1446 objects/popupmnu.o \ 1447 objects/quickfix.o \ 1448 objects/regexp.o \ 1449 objects/screen.o \ 1450 objects/search.o \ 1451 objects/spell.o \ 1452 objects/syntax.o \ 1453 $(SNIFF_OBJ) \ 1454 objects/tag.o \ 1455 objects/term.o \ 1456 objects/ui.o \ 1457 objects/undo.o \ 1458 objects/window.o \ 1459 $(GUI_OBJ) \ 1460 $(MZSCHEME_OBJ) \ 1461 $(PERL_OBJ) \ 1462 $(PYTHON_OBJ) \ 1463 $(TCL_OBJ) \ 1464 $(RUBY_OBJ) \ 1465 $(OS_EXTRA_OBJ) \ 1466 $(WORKSHOP_OBJ) \ 1467 $(NETBEANS_OBJ) \ 1468 $(WSDEBUG_OBJ) 1469 1470PRO_AUTO = \ 1471 buffer.pro \ 1472 charset.pro \ 1473 diff.pro \ 1474 digraph.pro \ 1475 edit.pro \ 1476 eval.pro \ 1477 ex_cmds.pro \ 1478 ex_cmds2.pro \ 1479 ex_docmd.pro \ 1480 ex_eval.pro \ 1481 ex_getln.pro \ 1482 fileio.pro \ 1483 fold.pro \ 1484 getchar.pro \ 1485 hardcopy.pro \ 1486 hashtab.pro \ 1487 hangulin.pro \ 1488 if_cscope.pro \ 1489 if_xcmdsrv.pro \ 1490 if_python.pro \ 1491 if_ruby.pro \ 1492 main.pro \ 1493 mark.pro \ 1494 memfile.pro \ 1495 memline.pro \ 1496 menu.pro \ 1497 message.pro \ 1498 misc1.pro \ 1499 misc2.pro \ 1500 move.pro \ 1501 mbyte.pro \ 1502 normal.pro \ 1503 ops.pro \ 1504 option.pro \ 1505 os_unix.pro \ 1506 popupmnu.pro \ 1507 quickfix.pro \ 1508 regexp.pro \ 1509 screen.pro \ 1510 search.pro \ 1511 spell.pro \ 1512 syntax.pro \ 1513 tag.pro \ 1514 term.pro \ 1515 termlib.pro \ 1516 ui.pro \ 1517 undo.pro \ 1518 version.pro \ 1519 window.pro \ 1520 gui_beval.pro \ 1521 workshop.pro \ 1522 netbeans.pro \ 1523 $(ALL_GUI_PRO) \ 1524 $(TCL_PRO) 1525 1526ICON_APP = gui_mac.icns 1527 1528PRO_MANUAL = os_amiga.pro os_msdos.pro os_win16.pro os_win32.pro \ 1529 os_mswin.pro os_beos.pro os_vms.pro os_riscos.pro $(PERL_PRO) 1530 1531# Default target is making the executable and tools 1532all: $(VIMTARGET) $(TOOLS) languages $(GUI_BUNDLE) 1533 1534tools: $(TOOLS) 1535 1536# Run configure with all the setting from above. 1537# 1538# Note: auto/config.h doesn't depend on configure, because running configure 1539# doesn't always update auto/config.h. The timestamp isn't changed if the 1540# file contents didn't change (to avoid recompiling everything). Including a 1541# dependency on auto/config.h would cause running configure each time when 1542# auto/config.h isn't updated. The dependency on auto/config.mk should make 1543# sure configure is run when it's needed. 1544# 1545config auto/config.mk: auto/configure config.mk.in config.h.in 1546 GUI_INC_LOC="$(GUI_INC_LOC)" GUI_LIB_LOC="$(GUI_LIB_LOC)" \ 1547 CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \ 1548 LDFLAGS="$(LDFLAGS)" $(CONF_SHELL) srcdir="$(srcdir)" \ 1549 ./configure $(CONF_OPT_GUI) $(CONF_OPT_X) $(CONF_OPT_XSMP) \ 1550 $(CONF_OPT_DARWIN) $(CONF_OPT_PERL) $(CONF_OPT_PYTHON) \ 1551 $(CONF_OPT_TCL) $(CONF_OPT_RUBY) $(CONF_OPT_NLS) \ 1552 $(CONF_OPT_CSCOPE) $(CONF_OPT_MULTIBYTE) $(CONF_OPT_INPUT) \ 1553 $(CONF_OPT_OUTPUT) $(CONF_OPT_GPM) $(CONF_OPT_WORKSHOP) \ 1554 $(CONF_OPT_SNIFF) $(CONF_OPT_FEAT) $(CONF_TERM_LIB) \ 1555 $(CONF_OPT_COMPBY) $(CONF_OPT_ACL) $(CONF_OPT_NETBEANS) \ 1556 $(CONF_ARGS) $(CONF_OPT_MZSCHEME) $(CONF_OPT_PLTHOME) 1557 1558# Use "make reconfig" to rerun configure without cached values. 1559# When config.h changes, most things will be recompiled automatically. 1560# Invoke $(MAKE) to run config with the empty auto/config.mk. 1561# Invoke $(MAKE) to build all with the filled auto/config.mk. 1562reconfig: scratch clean 1563 $(MAKE) -f Makefile config 1564 $(MAKE) -f Makefile all 1565 1566# Run autoconf to produce auto/configure. 1567# Note: 1568# - DO NOT RUN autoconf MANUALLY! It will overwrite ./configure instead of 1569# producing auto/configure. 1570# - autoconf is not run automatically, because a patch usually changes both 1571# configure.in and auto/configure but can't update the timestamps. People 1572# who do not have (the correct version of) autoconf would run into trouble. 1573# 1574# Two tricks are required to make autoconf put its output in the "auto" dir: 1575# - Temporarily move the ./configure script to ./configure.save. Don't 1576# overwrite it, it's probably the result of an aborted autoconf. 1577# - Use sed to change ./config.log to auto/config.log in the configure script. 1578# Autoconf 2.5x (2.59 at least) produces a few more files that we need to take 1579# care of: 1580# - configure.lineno: has the line numbers replaced with $LINENO. That 1581# improves patches a LOT, thus use it instead (until someone says it doesn't 1582# work on some system). 1583# - autom4te.cache directory is created and not cleaned up. Delete it. 1584# - Uses ">config.log" instead of "./config.log". 1585autoconf: 1586 if test ! -f configure.save; then mv configure configure.save; fi 1587 autoconf 1588 sed -e 's+>config.log+>auto/config.log+' -e 's+\./config.log+auto/config.log+' configure > auto/configure 1589 chmod 755 auto/configure 1590 mv -f configure.save configure 1591 -rm -rf autom4te.cache 1592 -rm -f auto/config.status auto/config.cache 1593 1594# Re-execute this Makefile to include the new auto/config.mk produced by 1595# configure Only used when typing "make" with a fresh auto/config.mk. 1596myself: 1597 $(MAKE) -f Makefile all 1598 1599 1600# The normal command to compile a .c file to its .o file. 1601CCC = $(CC) -c -I$(srcdir) $(ALL_CFLAGS) 1602 1603 1604# Link the target for normal use or debugging. 1605# A shell script is used to try linking without unneccesary libraries. 1606$(VIMTARGET): auto/config.mk objects $(OBJ) version.c version.h 1607 $(CCC) version.c -o objects/version.o 1608 @LINK="$(PURIFY) $(SHRPENV) $(CClink) $(ALL_LIB_DIRS) $(LDFLAGS) \ 1609 -o $(VIMTARGET) $(OBJ) objects/version.o $(ALL_LIBS)" \ 1610 MAKE="$(MAKE)" sh $(srcdir)/link.sh 1611 1612xxd/xxd$(EXEEXT): xxd/xxd.c 1613 cd xxd; CC="$(CC)" CFLAGS="$(CPPFLAGS) $(CFLAGS)" \ 1614 $(MAKE) -f Makefile 1615 1616# Build the language specific files if they were unpacked. 1617# Generate the converted .mo files separately, it's no problem if this fails. 1618languages: 1619 @if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \ 1620 cd $(PODIR); \ 1621 CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix); \ 1622 fi 1623 -@if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \ 1624 cd $(PODIR); CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix) converted; \ 1625 fi 1626 1627# Update the *.po files for changes in the sources. Only run manually. 1628update-po: 1629 cd $(PODIR); CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix) update-po 1630 1631# Generate function prototypes. This is not needed to compile vim, but if 1632# you want to use it, cproto is out there on the net somewhere -- Webb 1633# 1634# When generating os_amiga.pro, os_msdos.pro and os_win32.pro there will be a 1635# few include files that can not be found, that's OK. 1636 1637proto: $(PRO_AUTO) $(PRO_MANUAL) 1638 1639### Would be nice if this would work for "normal" make. 1640### Currently it only works for (Free)BSD make. 1641#$(PRO_AUTO): $$(*F).c 1642# cproto $(PFLAGS) -DFEAT_GUI $(*F).c > $@ 1643 1644# Always define FEAT_GUI. This may generate a few warnings if it's also 1645# defined in auto/config.h, you can ignore that. 1646.c.pro: 1647 cproto $(PFLAGS) -DFEAT_GUI $< > proto/$@ 1648 echo "/* vim: set ft=c : */" >> proto/$@ 1649 1650os_amiga.pro: os_amiga.c 1651 cproto $(PFLAGS) -DAMIGA -UHAVE_CONFIG_H -DBPTR=char* $< > proto/$@ 1652 echo "/* vim: set ft=c : */" >> proto/$@ 1653 1654os_msdos.pro: os_msdos.c 1655 cproto $(PFLAGS) -DMSDOS -UHAVE_CONFIG_H $< > proto/$@ 1656 echo "/* vim: set ft=c : */" >> proto/$@ 1657 1658os_win16.pro: os_win16.c 1659 cproto $(PFLAGS) -DWIN16 -UHAVE_CONFIG_H $< > proto/$@ 1660 echo "/* vim: set ft=c : */" >> proto/$@ 1661 1662os_win32.pro: os_win32.c 1663 cproto $(PFLAGS) -DWIN32 -UHAVE_CONFIG_H $< > proto/$@ 1664 echo "/* vim: set ft=c : */" >> proto/$@ 1665 1666os_mswin.pro: os_mswin.c 1667 cproto $(PFLAGS) -DWIN16 -DWIN32 -UHAVE_CONFIG_H $< > proto/$@ 1668 echo "/* vim: set ft=c : */" >> proto/$@ 1669 1670os_beos.pro: os_beos.c 1671 cproto $(PFLAGS) -D__BEOS__ -UHAVE_CONFIG_H $< > proto/$@ 1672 echo "/* vim: set ft=c : */" >> proto/$@ 1673 1674os_vms.pro: os_vms.c 1675# must use os_vms_conf.h for auto/config.h 1676 mv auto/config.h auto/config.h.save 1677 cp os_vms_conf.h auto/config.h 1678 cproto $(PFLAGS) -DVMS -UFEAT_GUI_ATHENA -UFEAT_GUI_NEXTAW -UFEAT_GUI_MOTIF -UFEAT_GUI_GTK $< > proto/$@ 1679 echo "/* vim: set ft=c : */" >> proto/$@ 1680 rm auto/config.h 1681 mv auto/config.h.save auto/config.h 1682 1683# if_perl.pro is special: Use the generated if_perl.c for input and remove 1684# prototypes for local functions. 1685if_perl.pro: auto/if_perl.c 1686 cproto $(PFLAGS) -DFEAT_GUI auto/if_perl.c | sed "/_VI/d" > proto/$@ 1687 1688 1689notags: 1690 -rm -f tags 1691 1692# Note: tags is made for the currently configured version, can't include both 1693# Motif and Athena GUI 1694# You can ignore error messages for missing files. 1695tags TAGS: notags 1696 $(TAGPRG) $(TAGS_SRC) $(TAGS_INCL) 1697 1698# Make a highlight file for types. Requires Exuberant ctags and awk 1699types: types.vim 1700types.vim: $(TAGS_SRC) $(TAGS_INCL) 1701 ctags --c-kinds=gstu -o- $(TAGS_SRC) $(TAGS_INCL) |\ 1702 awk 'BEGIN{printf("syntax keyword Type\t")}\ 1703 {printf("%s ", $$1)}END{print ""}' > $@ 1704 1705# Execute the test scripts. Run these after compiling Vim, before installing. 1706# This doesn't depend on $(VIMTARGET), because that won't work when configure 1707# wasn't run yet. Restart make to build it instead. 1708# 1709# This will produce a lot of garbage on your screen, including a few error 1710# messages. Don't worry about that. 1711# If there is a real error, there will be a difference between "test.out" and 1712# a "test99.ok" file. 1713# If everything is allright, the final message will be "ALL DONE". 1714# 1715test check: 1716 $(MAKE) -f Makefile $(VIMTARGET) 1717 -if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \ 1718 cd $(PODIR); $(MAKE) -f Makefile check VIM=../$(VIMTARGET); \ 1719 fi 1720 cd testdir; $(MAKE) -f Makefile $(GUI_TESTTARGET) VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) 1721 1722testclean: 1723 cd testdir; $(MAKE) -f Makefile clean 1724 if test -d $(PODIR); then \ 1725 cd $(PODIR); $(MAKE) checkclean; \ 1726 fi 1727 1728# 1729# Avoid overwriting an existing executable, somebody might be running it and 1730# overwriting it could cause it to crash. Deleting it is OK, it won't be 1731# really deleted until all running processes for it have exited. It is 1732# renamed first, in case the deleting doesn't work. 1733# 1734# If you want to keep an older version, rename it before running "make 1735# install". 1736# 1737install: $(GUI_INSTALL) 1738 1739install_normal: installvim installtools $(INSTALL_LANGS) install-icons 1740 1741installvim: installvimbin installtutorbin \ 1742 installruntime installlinks installmanlinks 1743 1744installvimbin: $(VIMTARGET) $(DESTDIR)$(exec_prefix) $(DEST_BIN) 1745 -if test -f $(DEST_BIN)/$(VIMTARGET); then \ 1746 mv -f $(DEST_BIN)/$(VIMTARGET) $(DEST_BIN)/$(VIMNAME).rm; \ 1747 rm -f $(DEST_BIN)/$(VIMNAME).rm; \ 1748 fi 1749 $(INSTALL_PROG) $(VIMTARGET) $(DEST_BIN) 1750 $(STRIP) $(DEST_BIN)/$(VIMTARGET) 1751 chmod $(BINMOD) $(DEST_BIN)/$(VIMTARGET) 1752# may create a link to the new executable from /usr/bin/vi 1753 -$(LINKIT) 1754 1755# Long list of arguments for the shell script that installs the manual pages 1756# for one language. 1757INSTALLMANARGS = $(VIMLOC) $(SCRIPTLOC) $(VIMRCLOC) $(HELPSOURCE) $(MANMOD) \ 1758 $(VIMNAME) $(VIMDIFFNAME) $(EVIMNAME) 1759 1760# Install most of the runtime files 1761installruntime: installrtbase installmacros installtutor installspell 1762 1763# install the help files; first adjust the contents for the final location 1764installrtbase: $(HELPSOURCE)/vim.1 $(DEST_VIM) $(DEST_RT) \ 1765 $(DEST_HELP) $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND) \ 1766 $(DEST_FTP) $(DEST_AUTO) $(DEST_PLUG) $(DEST_TUTOR) \ 1767 $(DEST_SPELL) $(DEST_COMP) 1768 -$(SHELL) ./installman.sh install $(DEST_MAN) "" $(INSTALLMANARGS) 1769 @echo generating help tags 1770# Generate the help tags with ":helptags" to handle all languages. 1771 -@cd $(HELPSOURCE); $(MAKE) VIMEXE=$(DEST_BIN)/$(VIMTARGET) vimtags 1772 cd $(HELPSOURCE); \ 1773 files=`ls *.txt tags`; \ 1774 files="$$files `ls *.??x tags-?? 2>/dev/null || true`"; \ 1775 $(INSTALL_DATA) $$files $(DEST_HELP); \ 1776 cd $(DEST_HELP); \ 1777 chmod $(HELPMOD) $$files 1778 $(INSTALL_DATA) $(HELPSOURCE)/*.pl $(DEST_HELP) 1779 chmod $(SCRIPTMOD) $(DEST_HELP)/*.pl 1780# install the menu files 1781 $(INSTALL_DATA) $(SCRIPTSOURCE)/menu.vim $(SYS_MENU_FILE) 1782 chmod $(VIMSCRIPTMOD) $(SYS_MENU_FILE) 1783 $(INSTALL_DATA) $(SCRIPTSOURCE)/synmenu.vim $(SYS_SYNMENU_FILE) 1784 chmod $(VIMSCRIPTMOD) $(SYS_SYNMENU_FILE) 1785 $(INSTALL_DATA) $(SCRIPTSOURCE)/delmenu.vim $(SYS_DELMENU_FILE) 1786 chmod $(VIMSCRIPTMOD) $(SYS_DELMENU_FILE) 1787# install the evim file 1788 $(INSTALL_DATA) $(SCRIPTSOURCE)/mswin.vim $(MSWIN_FILE) 1789 chmod $(VIMSCRIPTMOD) $(MSWIN_FILE) 1790 $(INSTALL_DATA) $(SCRIPTSOURCE)/evim.vim $(EVIM_FILE) 1791 chmod $(VIMSCRIPTMOD) $(EVIM_FILE) 1792# install the bugreport file 1793 $(INSTALL_DATA) $(SCRIPTSOURCE)/bugreport.vim $(SYS_BUGR_FILE) 1794 chmod $(VIMSCRIPTMOD) $(SYS_BUGR_FILE) 1795# install the example vimrc files 1796 $(INSTALL_DATA) $(SCRIPTSOURCE)/vimrc_example.vim $(DEST_SCRIPT) 1797 chmod $(VIMSCRIPTMOD) $(DEST_SCRIPT)/vimrc_example.vim 1798 $(INSTALL_DATA) $(SCRIPTSOURCE)/gvimrc_example.vim $(DEST_SCRIPT) 1799 chmod $(VIMSCRIPTMOD) $(DEST_SCRIPT)/gvimrc_example.vim 1800# install the file type detection files 1801 $(INSTALL_DATA) $(SCRIPTSOURCE)/filetype.vim $(SYS_FILETYPE_FILE) 1802 chmod $(VIMSCRIPTMOD) $(SYS_FILETYPE_FILE) 1803 $(INSTALL_DATA) $(SCRIPTSOURCE)/ftoff.vim $(SYS_FTOFF_FILE) 1804 chmod $(VIMSCRIPTMOD) $(SYS_FTOFF_FILE) 1805 $(INSTALL_DATA) $(SCRIPTSOURCE)/scripts.vim $(SYS_SCRIPTS_FILE) 1806 chmod $(VIMSCRIPTMOD) $(SYS_SCRIPTS_FILE) 1807 $(INSTALL_DATA) $(SCRIPTSOURCE)/ftplugin.vim $(SYS_FTPLUGIN_FILE) 1808 chmod $(VIMSCRIPTMOD) $(SYS_FTPLUGIN_FILE) 1809 $(INSTALL_DATA) $(SCRIPTSOURCE)/ftplugof.vim $(SYS_FTPLUGOF_FILE) 1810 chmod $(VIMSCRIPTMOD) $(SYS_FTPLUGOF_FILE) 1811 $(INSTALL_DATA) $(SCRIPTSOURCE)/indent.vim $(SYS_INDENT_FILE) 1812 chmod $(VIMSCRIPTMOD) $(SYS_INDENT_FILE) 1813 $(INSTALL_DATA) $(SCRIPTSOURCE)/indoff.vim $(SYS_INDOFF_FILE) 1814 chmod $(VIMSCRIPTMOD) $(SYS_INDOFF_FILE) 1815 $(INSTALL_DATA) $(SCRIPTSOURCE)/optwin.vim $(SYS_OPTWIN_FILE) 1816 chmod $(VIMSCRIPTMOD) $(SYS_OPTWIN_FILE) 1817# install the print resource files 1818 cd $(PRINTSOURCE); $(INSTALL_DATA) *.ps $(DEST_PRINT) 1819 cd $(DEST_PRINT); chmod $(FILEMOD) *.ps 1820# install the colorscheme files 1821 cd $(COLSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_COL) 1822 cd $(DEST_COL); chmod $(HELPMOD) *.vim README.txt 1823# install the syntax files 1824 cd $(SYNSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_SYN) 1825 cd $(DEST_SYN); chmod $(HELPMOD) *.vim README.txt 1826# install the indent files 1827 cd $(INDSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_IND) 1828 cd $(DEST_IND); chmod $(HELPMOD) *.vim README.txt 1829# install the standard autoload files 1830 cd $(AUTOSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_AUTO) 1831 cd $(DEST_AUTO); chmod $(HELPMOD) *.vim README.txt 1832# install the standard plugin files 1833 cd $(PLUGSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_PLUG) 1834 cd $(DEST_PLUG); chmod $(HELPMOD) *.vim README.txt 1835# install the ftplugin files 1836 cd $(FTPLUGSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_FTP) 1837 cd $(DEST_FTP); chmod $(HELPMOD) *.vim README.txt 1838# install the compiler files 1839 cd $(COMPSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_COMP) 1840 cd $(DEST_COMP); chmod $(HELPMOD) *.vim README.txt 1841 1842installmacros: $(DEST_VIM) $(DEST_RT) $(DEST_MACRO) 1843 $(INSTALL_DATA_R) $(MACROSOURCE)/* $(DEST_MACRO) 1844 chmod $(DIRMOD) `find $(DEST_MACRO) -type d -print` 1845 chmod $(FILEMOD) `find $(DEST_MACRO) -type f -print` 1846 chmod $(SCRIPTMOD) $(DEST_MACRO)/less.sh 1847# When using CVS some CVS directories might have been copied. 1848 cvs=`find $(DEST_MACRO) \( -name CVS -o -name AAPDIR \) -print`; \ 1849 if test -n "$$cvs"; then \ 1850 rm -rf $$cvs; \ 1851 fi 1852 1853# install the tutor files 1854installtutorbin: $(DEST_VIM) 1855 $(INSTALL_DATA) vimtutor $(DEST_BIN)/$(VIMNAME)tutor 1856 chmod $(SCRIPTMOD) $(DEST_BIN)/$(VIMNAME)tutor 1857 1858installtutor: $(DEST_RT) $(DEST_TUTOR) 1859 -$(INSTALL_DATA) $(TUTORSOURCE)/README* $(TUTORSOURCE)/tutor* $(DEST_TUTOR) 1860 chmod $(HELPMOD) $(DEST_TUTOR)/* 1861 1862# Install the spell files, if they exist. This assumes at least the English 1863# spell file is there. 1864installspell: $(DEST_VIM) $(DEST_RT) $(DEST_SPELL) 1865 if test -f $(SPELLSOURCE)/en.latin1.spl; then \ 1866 $(INSTALL_DATA) $(SPELLSOURCE)/*.spl $(SPELLSOURCE)/*.sug $(SPELLSOURCE)/*.vim $(DEST_SPELL); \ 1867 chmod $(HELPMOD) $(DEST_SPELL)/*.spl $(DEST_SPELL)/*.sug $(DEST_SPELL)/*.vim; \ 1868 fi 1869 1870# install helper program xxd 1871installtools: $(TOOLS) $(DESTDIR)$(exec_prefix) $(DEST_BIN) \ 1872 $(TOOLSSOURCE) $(DEST_VIM) $(DEST_RT) $(DEST_TOOLS) \ 1873 $(INSTALL_TOOL_LANGS) 1874 if test -f $(DEST_BIN)/xxd$(EXEEXT); then \ 1875 mv -f $(DEST_BIN)/xxd$(EXEEXT) $(DEST_BIN)/xxd.rm; \ 1876 rm -f $(DEST_BIN)/xxd.rm; \ 1877 fi 1878 $(INSTALL_PROG) xxd/xxd$(EXEEXT) $(DEST_BIN) 1879 $(STRIP) $(DEST_BIN)/xxd$(EXEEXT) 1880 chmod $(BINMOD) $(DEST_BIN)/xxd$(EXEEXT) 1881 -$(SHELL) ./installman.sh xxd $(DEST_MAN) "" $(INSTALLMANARGS) 1882 1883# install the runtime tools 1884 $(INSTALL_DATA_R) $(TOOLSSOURCE)/* $(DEST_TOOLS) 1885# When using CVS some CVS directories might have been copied. 1886 cvs=`find $(DEST_TOOLS) \( -name CVS -o -name AAPDIR \) -print`; \ 1887 if test -n "$$cvs"; then \ 1888 rm -rf $$cvs; \ 1889 fi 1890 -chmod $(FILEMOD) $(DEST_TOOLS)/* 1891# replace the path in some tools 1892 perlpath=`./which.sh perl` && sed -e "s+/usr/bin/perl+$$perlpath+" $(TOOLSSOURCE)/efm_perl.pl >$(DEST_TOOLS)/efm_perl.pl 1893 awkpath=`./which.sh nawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \ 1894 awkpath=`./which.sh gawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \ 1895 awkpath=`./which.sh awk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; fi; fi 1896 -chmod $(SCRIPTMOD) `grep -l "^#!" $(DEST_TOOLS)/*` 1897 1898# install the language specific files for tools, if they were unpacked 1899install-tool-languages: 1900 -$(SHELL) ./installman.sh xxd $(DEST_MAN_FR) "-fr" $(INSTALLMANARGS) 1901 -$(SHELL) ./installman.sh xxd $(DEST_MAN_FR_I) "-fr" $(INSTALLMANARGS) 1902 -$(SHELL) ./installman.sh xxd $(DEST_MAN_FR_U) "-fr.UTF-8" $(INSTALLMANARGS) 1903 -$(SHELL) ./installman.sh xxd $(DEST_MAN_IT) "-it" $(INSTALLMANARGS) 1904 -$(SHELL) ./installman.sh xxd $(DEST_MAN_IT_I) "-it" $(INSTALLMANARGS) 1905 -$(SHELL) ./installman.sh xxd $(DEST_MAN_IT_U) "-it.UTF-8" $(INSTALLMANARGS) 1906 -$(SHELL) ./installman.sh xxd $(DEST_MAN_PL) "-pl" $(INSTALLMANARGS) 1907 -$(SHELL) ./installman.sh xxd $(DEST_MAN_PL_U) "-pl.UTF-8" $(INSTALLMANARGS) 1908 -$(SHELL) ./installman.sh xxd $(DEST_MAN_RU) "-ru" $(INSTALLMANARGS) 1909 -$(SHELL) ./installman.sh xxd $(DEST_MAN_RU_U) "-ru.UTF-8" $(INSTALLMANARGS) 1910 1911# install the language specific files, if they were unpacked 1912install-languages: languages $(DEST_LANG) $(DEST_KMAP) 1913 -$(SHELL) ./installman.sh install $(DEST_MAN_FR) "-fr" $(INSTALLMANARGS) 1914 -$(SHELL) ./installman.sh install $(DEST_MAN_FR_I) "-fr" $(INSTALLMANARGS) 1915 -$(SHELL) ./installman.sh install $(DEST_MAN_FR_U) "-fr.UTF-8" $(INSTALLMANARGS) 1916 -$(SHELL) ./installman.sh install $(DEST_MAN_IT) "-it" $(INSTALLMANARGS) 1917 -$(SHELL) ./installman.sh install $(DEST_MAN_IT_I) "-it" $(INSTALLMANARGS) 1918 -$(SHELL) ./installman.sh install $(DEST_MAN_IT_U) "-it.UTF-8" $(INSTALLMANARGS) 1919 -$(SHELL) ./installman.sh install $(DEST_MAN_PL) "-pl" $(INSTALLMANARGS) 1920 -$(SHELL) ./installman.sh install $(DEST_MAN_PL_U) "-pl.UTF-8" $(INSTALLMANARGS) 1921 -$(SHELL) ./installman.sh install $(DEST_MAN_RU) "-ru" $(INSTALLMANARGS) 1922 -$(SHELL) ./installman.sh install $(DEST_MAN_RU_U) "-ru.UTF-8" $(INSTALLMANARGS) 1923 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \ 1924 $(DEST_MAN_FR) $(INSTALLMLARGS) 1925 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \ 1926 $(DEST_MAN_FR_I) $(INSTALLMLARGS) 1927 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \ 1928 $(DEST_MAN_FR_U) $(INSTALLMLARGS) 1929 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \ 1930 $(DEST_MAN_IT) $(INSTALLMLARGS) 1931 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \ 1932 $(DEST_MAN_IT_I) $(INSTALLMLARGS) 1933 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \ 1934 $(DEST_MAN_IT_U) $(INSTALLMLARGS) 1935 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \ 1936 $(DEST_MAN_PL) $(INSTALLMLARGS) 1937 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \ 1938 $(DEST_MAN_PL_U) $(INSTALLMLARGS) 1939 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \ 1940 $(DEST_MAN_RU) $(INSTALLMLARGS) 1941 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \ 1942 $(DEST_MAN_RU_U) $(INSTALLMLARGS) 1943 if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \ 1944 cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) LOCALEDIR=$(DEST_LANG) \ 1945 INSTALL_DATA=$(INSTALL_DATA) FILEMOD=$(FILEMOD) install; \ 1946 fi 1947 if test -d $(LANGSOURCE); then \ 1948 $(INSTALL_DATA) $(LANGSOURCE)/README.txt $(LANGSOURCE)/*.vim $(DEST_LANG); \ 1949 chmod $(FILEMOD) $(DEST_LANG)/README.txt $(DEST_LANG)/*.vim; \ 1950 fi 1951 if test -d $(KMAPSOURCE); then \ 1952 $(INSTALL_DATA) $(KMAPSOURCE)/README.txt $(KMAPSOURCE)/*.vim $(DEST_KMAP); \ 1953 chmod $(FILEMOD) $(DEST_KMAP)/README.txt $(DEST_KMAP)/*.vim; \ 1954 fi 1955 1956# install the icons for KDE, if the directory exists and the icon doesn't. 1957ICON48PATH = $(DESTDIR)$(DATADIR)/icons/hicolor/48x48/apps 1958ICON32PATH = $(DESTDIR)$(DATADIR)/icons/locolor/32x32/apps 1959ICON16PATH = $(DESTDIR)$(DATADIR)/icons/locolor/16x16/apps 1960KDEPATH = $(HOME)/.kde/share/icons 1961install-icons: 1962 if test -d $(ICON48PATH) -a -w $(ICON48PATH) \ 1963 -a ! -f $(ICON48PATH)/gvim.png; then \ 1964 $(INSTALL_DATA) $(SCRIPTSOURCE)/vim48x48.png $(ICON48PATH)/gvim.png; \ 1965 fi 1966 if test -d $(ICON32PATH) -a -w $(ICON32PATH) \ 1967 -a ! -f $(ICON32PATH)/gvim.png; then \ 1968 $(INSTALL_DATA) $(SCRIPTSOURCE)/vim32x32.png $(ICON32PATH)/gvim.png; \ 1969 fi 1970 if test -d $(ICON16PATH) -a -w $(ICON16PATH) \ 1971 -a ! -f $(ICON16PATH)/gvim.png; then \ 1972 $(INSTALL_DATA) $(SCRIPTSOURCE)/vim16x16.png $(ICON16PATH)/gvim.png; \ 1973 fi 1974 1975 1976$(HELPSOURCE)/vim.1 $(MACROSOURCE) $(TOOLSSOURCE): 1977 @echo Runtime files not found. 1978 @echo You need to unpack the runtime archive before running "make install". 1979 test -f error 1980 1981$(DESTDIR)$(exec_prefix) $(DEST_BIN) \ 1982 $(DEST_VIM) $(DEST_RT) $(DEST_HELP) \ 1983 $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND) $(DEST_FTP) \ 1984 $(DEST_LANG) $(DEST_KMAP) $(DEST_COMP) \ 1985 $(DEST_MACRO) $(DEST_TOOLS) $(DEST_TUTOR) $(DEST_SPELL) \ 1986 $(DEST_AUTO) $(DEST_PLUG): 1987 -$(SHELL) ./mkinstalldirs $@ 1988 -chmod $(DIRMOD) $@ 1989 1990# create links from various names to vim. This is only done when the links 1991# (or executables with the same name) don't exist yet. 1992installlinks: $(GUI_TARGETS) \ 1993 $(DEST_BIN)/$(EXTARGET) \ 1994 $(DEST_BIN)/$(VIEWTARGET) \ 1995 $(DEST_BIN)/$(RVIMTARGET) \ 1996 $(DEST_BIN)/$(RVIEWTARGET) \ 1997 $(INSTALLVIMDIFF) 1998 1999installglinks: $(DEST_BIN)/$(GVIMTARGET) \ 2000 $(DEST_BIN)/$(GVIEWTARGET) \ 2001 $(DEST_BIN)/$(RGVIMTARGET) \ 2002 $(DEST_BIN)/$(RGVIEWTARGET) \ 2003 $(DEST_BIN)/$(EVIMTARGET) \ 2004 $(DEST_BIN)/$(EVIEWTARGET) \ 2005 $(INSTALLGVIMDIFF) 2006 2007installvimdiff: $(DEST_BIN)/$(VIMDIFFTARGET) 2008installgvimdiff: $(DEST_BIN)/$(GVIMDIFFTARGET) 2009 2010$(DEST_BIN)/$(EXTARGET): 2011 cd $(DEST_BIN); ln -s $(VIMTARGET) $(EXTARGET) 2012 2013$(DEST_BIN)/$(VIEWTARGET): 2014 cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIEWTARGET) 2015 2016$(DEST_BIN)/$(GVIMTARGET): 2017 cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMTARGET) 2018 2019$(DEST_BIN)/$(GVIEWTARGET): 2020 cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIEWTARGET) 2021 2022$(DEST_BIN)/$(RVIMTARGET): 2023 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIMTARGET) 2024 2025$(DEST_BIN)/$(RVIEWTARGET): 2026 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RVIEWTARGET) 2027 2028$(DEST_BIN)/$(RGVIMTARGET): 2029 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIMTARGET) 2030 2031$(DEST_BIN)/$(RGVIEWTARGET): 2032 cd $(DEST_BIN); ln -s $(VIMTARGET) $(RGVIEWTARGET) 2033 2034$(DEST_BIN)/$(VIMDIFFTARGET): 2035 cd $(DEST_BIN); ln -s $(VIMTARGET) $(VIMDIFFTARGET) 2036 2037$(DEST_BIN)/$(GVIMDIFFTARGET): 2038 cd $(DEST_BIN); ln -s $(VIMTARGET) $(GVIMDIFFTARGET) 2039 2040$(DEST_BIN)/$(EVIMTARGET): 2041 cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIMTARGET) 2042 2043$(DEST_BIN)/$(EVIEWTARGET): 2044 cd $(DEST_BIN); ln -s $(VIMTARGET) $(EVIEWTARGET) 2045 2046# Create links for the manual pages with various names to vim. This is only 2047# done when the links (or manpages with the same name) don't exist yet. 2048 2049INSTALLMLARGS = $(VIMNAME) $(VIMDIFFNAME) $(EVIMNAME) \ 2050 $(EXNAME) $(VIEWNAME) $(RVIMNAME) $(RVIEWNAME) \ 2051 $(GVIMNAME) $(GVIEWNAME) $(RGVIMNAME) $(RGVIEWNAME) \ 2052 $(GVIMDIFFNAME) $(EVIEWNAME) 2053 2054installmanlinks: 2055 -$(SHELL) ./installml.sh install "$(GUI_MAN_TARGETS)" \ 2056 $(DEST_MAN) $(INSTALLMLARGS) 2057 2058uninstall: uninstall_runtime 2059 -rm -f $(DEST_BIN)/$(VIMTARGET) 2060 -rm -f $(DEST_BIN)/vimtutor 2061 -rm -f $(DEST_BIN)/$(EXTARGET) $(DEST_BIN)/$(VIEWTARGET) 2062 -rm -f $(DEST_BIN)/$(GVIMTARGET) $(DEST_BIN)/$(GVIEWTARGET) 2063 -rm -f $(DEST_BIN)/$(RVIMTARGET) $(DEST_BIN)/$(RVIEWTARGET) 2064 -rm -f $(DEST_BIN)/$(RGVIMTARGET) $(DEST_BIN)/$(RGVIEWTARGET) 2065 -rm -f $(DEST_BIN)/$(VIMDIFFTARGET) $(DEST_BIN)/$(GVIMDIFFTARGET) 2066 -rm -f $(DEST_BIN)/$(EVIMTARGET) $(DEST_BIN)/$(EVIEWTARGET) 2067 -rm -f $(DEST_BIN)/xxd$(EXEEXT) 2068 2069# Note: the "rmdir" will fail if any files were added after "make install" 2070uninstall_runtime: 2071 -$(SHELL) ./installman.sh uninstall $(DEST_MAN) "" $(INSTALLMANARGS) 2072 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_FR) "" $(INSTALLMANARGS) 2073 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_FR_I) "" $(INSTALLMANARGS) 2074 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_FR_U) "" $(INSTALLMANARGS) 2075 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_IT) "" $(INSTALLMANARGS) 2076 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_IT_I) "" $(INSTALLMANARGS) 2077 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_IT_U) "" $(INSTALLMANARGS) 2078 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_PL) "" $(INSTALLMANARGS) 2079 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_PL_U) "" $(INSTALLMANARGS) 2080 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_RU) "" $(INSTALLMANARGS) 2081 -$(SHELL) ./installman.sh uninstall $(DEST_MAN_RU_U) "" $(INSTALLMANARGS) 2082 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \ 2083 $(DEST_MAN) $(INSTALLMLARGS) 2084 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \ 2085 $(DEST_MAN_FR) $(INSTALLMLARGS) 2086 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \ 2087 $(DEST_MAN_FR_I) $(INSTALLMLARGS) 2088 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \ 2089 $(DEST_MAN_FR_U) $(INSTALLMLARGS) 2090 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \ 2091 $(DEST_MAN_IT) $(INSTALLMLARGS) 2092 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \ 2093 $(DEST_MAN_IT_I) $(INSTALLMLARGS) 2094 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \ 2095 $(DEST_MAN_IT_U) $(INSTALLMLARGS) 2096 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \ 2097 $(DEST_MAN_PL) $(INSTALLMLARGS) 2098 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \ 2099 $(DEST_MAN_PL_U) $(INSTALLMLARGS) 2100 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \ 2101 $(DEST_MAN_RU) $(INSTALLMLARGS) 2102 -$(SHELL) ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \ 2103 $(DEST_MAN_RU_U) $(INSTALLMLARGS) 2104 -rm -f $(DEST_MAN)/xxd.1 2105 -rm -f $(DEST_MAN_FR)/xxd.1 $(DEST_MAN_FR_I)/xxd.1 $(DEST_MAN_FR_U)/xxd.1 2106 -rm -f $(DEST_MAN_IT)/xxd.1 $(DEST_MAN_IT_I)/xxd.1 $(DEST_MAN_IT_U)/xxd.1 2107 -rm -f $(DEST_MAN_PL)/xxd.1 $(DEST_MAN_PL_U)/xxd.1 2108 -rm -f $(DEST_MAN_RU)/xxd.1 $(DEST_MAN_RU_U)/xxd.1 2109 -rm -f $(DEST_HELP)/*.txt $(DEST_HELP)/tags $(DEST_HELP)/*.pl 2110 -rm -f $(DEST_HELP)/*.??x $(DEST_HELP)/tags-?? 2111 -rm -f $(SYS_MENU_FILE) $(SYS_SYNMENU_FILE) $(SYS_DELMENU_FILE) 2112 -rm -f $(SYS_BUGR_FILE) $(EVIM_FILE) $(MSWIN_FILE) 2113 -rm -f $(DEST_SCRIPT)/gvimrc_example.vim $(DEST_SCRIPT)/vimrc_example.vim 2114 -rm -f $(SYS_FILETYPE_FILE) $(SYS_FTOFF_FILE) $(SYS_SCRIPTS_FILE) 2115 -rm -f $(SYS_INDOFF_FILE) $(SYS_INDENT_FILE) 2116 -rm -f $(SYS_FTPLUGOF_FILE) $(SYS_FTPLUGIN_FILE) 2117 -rm -f $(SYS_OPTWIN_FILE) 2118 -rm -f $(DEST_COL)/*.vim $(DEST_COL)/README.txt 2119 -rm -f $(DEST_SYN)/*.vim $(DEST_SYN)/README.txt 2120 -rm -f $(DEST_IND)/*.vim $(DEST_IND)/README.txt 2121 -rm -rf $(DEST_MACRO) 2122 -rm -rf $(DEST_TUTOR) 2123 -rm -rf $(DEST_SPELL) 2124 -rm -rf $(DEST_TOOLS) 2125 -rm -rf $(DEST_LANG) 2126 -rm -rf $(DEST_KMAP) 2127 -rm -rf $(DEST_COMP) 2128 -rm -f $(DEST_PRINT)/*.ps 2129 -rmdir $(DEST_HELP) $(DEST_PRINT) $(DEST_COL) $(DEST_SYN) $(DEST_IND) 2130 -rm -rf $(DEST_FTP)/*.vim $(DEST_FTP)/README.txt 2131 -rm -f $(DEST_AUTO)/*.vim $(DEST_AUTO)/README.txt 2132 -rm -f $(DEST_PLUG)/*.vim $(DEST_PLUG)/README.txt 2133 -rmdir $(DEST_FTP) $(DEST_AUTO) $(DEST_PLUG) $(DEST_RT) 2134# This will fail when other Vim versions are installed, no worries. 2135 -rmdir $(DEST_VIM) 2136 2137# Clean up all the files that have been produced, except configure's. 2138# We support common typing mistakes for Juergen! :-) 2139clean celan: testclean 2140 -rm -f *.o objects/* core $(VIMTARGET).core $(VIMTARGET) xxd/*.o 2141 -rm -f $(TOOLS) auto/osdef.h auto/pathdef.c auto/if_perl.c 2142 -rm -f conftest* *~ auto/link.sed 2143 -rm -rf $(APPDIR) 2144 if test -d $(PODIR); then \ 2145 cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) clean; \ 2146 fi 2147 2148# Make a shadow directory for compilation on another system or with different 2149# features. 2150SHADOWDIR = shadow 2151 2152shadow: runtime pixmaps 2153 mkdir $(SHADOWDIR) 2154 cd $(SHADOWDIR); ln -s ../*.[ch] ../*.in ../*.sh ../*.xs ../*.xbm ../toolcheck ../proto ../vimtutor ../mkinstalldirs . 2155 mkdir $(SHADOWDIR)/auto 2156 cd $(SHADOWDIR)/auto; ln -s ../../auto/configure . 2157 cd $(SHADOWDIR); rm -f auto/link.sed 2158 cp Makefile configure $(SHADOWDIR) 2159 rm -f $(SHADOWDIR)/auto/config.mk $(SHADOWDIR)/config.mk.dist 2160 cp config.mk.dist $(SHADOWDIR)/auto/config.mk 2161 cp config.mk.dist $(SHADOWDIR) 2162 mkdir $(SHADOWDIR)/xxd 2163 cd $(SHADOWDIR)/xxd; ln -s ../../xxd/*.[ch] ../../xxd/Make* . 2164 if test -f $(ICON_APP); then \ 2165 cd $(SHADOWDIR); \ 2166 ln -s ../$(ICON_APP) ../os_mac.rsr.hqx ../dehqx.py .; \ 2167 fi 2168 mkdir $(SHADOWDIR)/testdir 2169 cd $(SHADOWDIR)/testdir; ln -s ../../testdir/Makefile \ 2170 ../../testdir/vimrc.unix \ 2171 ../../testdir/*.in \ 2172 ../../testdir/unix.vim \ 2173 ../../testdir/*.ok . 2174 2175# Link needed for doing "make install" in a shadow directory. 2176runtime: 2177 -ln -s ../runtime . 2178 2179# Link needed for doing "make" using GTK in a shadow directory. 2180pixmaps: 2181 -ln -s ../pixmaps . 2182 2183# Update the synmenu.vim file with the latest Syntax menu. 2184# This is only needed when runtime/makemenu.vim was changed. 2185menu: ./vim ../runtime/makemenu.vim 2186 ./vim -u ../runtime/makemenu.vim 2187 2188# Start configure from scratch 2189scrub scratch: 2190 -rm -f auto/config.status auto/config.cache config.log auto/config.log 2191 -rm -f auto/config.h auto/link.log auto/link.sed auto/config.mk 2192 touch auto/config.h 2193 cp config.mk.dist auto/config.mk 2194 2195distclean: clean scratch 2196 -rm -f tags 2197 2198dist: distclean 2199 @echo 2200 @echo Making the distribution has to be done in the top directory 2201 2202mdepend: 2203 -@rm -f Makefile~ 2204 cp Makefile Makefile~ 2205 sed -e '/\#\#\# Dependencies/q' < Makefile > tmp_make 2206 @for i in $(ALL_SRC) ; do \ 2207 echo "$$i" ; \ 2208 echo `echo "$$i" | sed -e 's/[^ ]*\.c$$/objects\/\1.o/'`": $$i" `\ 2209 $(CPP) $$i |\ 2210 grep '^# .*"\./.*\.h"' |\ 2211 sort -t'"' -u +1 -2 |\ 2212 sed -e 's/.*"\.\/\(.*\)".*/\1/'\ 2213 ` >> tmp_make ; \ 2214 done 2215 mv tmp_make Makefile 2216 2217depend: 2218 -@rm -f Makefile~ 2219 cp Makefile Makefile~ 2220 sed -e '/\#\#\# Dependencies/q' < Makefile > tmp_make 2221 -for i in $(ALL_SRC); do echo $$i; \ 2222 $(CPP_DEPEND) $$i | \ 2223 sed -e 's+^\([^ ]*\.o\)+objects/\1+' >> tmp_make; done 2224 mv tmp_make Makefile 2225 2226# Run lint. Clean up the *.ln files that are sometimes left behind. 2227lint: 2228 lint $(LINT_OPTIONS) $(LINT_CFLAGS) $(LINT_EXTRA) $(LINT_SRC) 2229 -rm -f *.ln 2230 2231# Check dosinst.c with lint. 2232lintinstall: 2233 lint $(LINT_OPTIONS) -DWIN32 -DUNIX_LINT dosinst.c 2234 -rm -f dosinst.ln 2235 2236########################################################################### 2237 2238.c.o: 2239 $(CCC) $< 2240 2241auto/if_perl.c: if_perl.xs 2242 $(PERL) -e 'unless ( $$] >= 5.005 ) { for (qw(na defgv errgv)) { print "#define PL_$$_ $$_\n" }}' > $@ 2243 $(PERL) $(PERLLIB)/ExtUtils/xsubpp -prototypes -typemap \ 2244 $(PERLLIB)/ExtUtils/typemap if_perl.xs >> $@ 2245 2246auto/osdef.h: auto/config.h osdef.sh osdef1.h.in osdef2.h.in 2247 CC="$(CC) $(OSDEF_CFLAGS)" srcdir=$(srcdir) sh $(srcdir)/osdef.sh 2248 2249QUOTESED = sed -e 's/"/\\"/g' -e 's/\\"/"/' -e 's/\\";$$/";/' 2250auto/pathdef.c: Makefile auto/config.mk 2251 -@echo creating $@ 2252 -@echo '/* pathdef.c */' > $@ 2253 -@echo '/* This file is automatically created by Makefile' >> $@ 2254 -@echo ' * DO NOT EDIT! Change Makefile only. */' >> $@ 2255 -@echo '#include "vim.h"' >> $@ 2256 -@echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' | $(QUOTESED) >> $@ 2257 -@echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' | $(QUOTESED) >> $@ 2258 -@echo 'char_u *all_cflags = (char_u *)"$(CC) -c -I$(srcdir) $(ALL_CFLAGS)";' | $(QUOTESED) >> $@ 2259 -@echo 'char_u *all_lflags = (char_u *)"$(CC) $(ALL_LIB_DIRS) $(LDFLAGS) -o $(VIMTARGET) $(ALL_LIBS) ";' | $(QUOTESED) >> $@ 2260 -@echo 'char_u *compiled_user = (char_u *)"' | tr -d $(NL) >> $@ 2261 -@if test -n "$(COMPILEDBY)"; then \ 2262 echo "$(COMPILEDBY)" | tr -d $(NL) >> $@; \ 2263 else ((logname) 2>/dev/null || whoami) | tr -d $(NL) >> $@; fi 2264 -@echo '";' >> $@ 2265 -@echo 'char_u *compiled_sys = (char_u *)"' | tr -d $(NL) >> $@ 2266 -@if test -z "$(COMPILEDBY)"; then hostname | tr -d $(NL) >> $@; fi 2267 -@echo '";' >> $@ 2268 -@sh $(srcdir)/pathdef.sh 2269 2270# All the object files are put in the "objects" directory. Since not all make 2271# commands understand putting object files in another directory, it must be 2272# specified for each file separately. 2273 2274objects: 2275 mkdir objects 2276 2277objects/buffer.o: buffer.c 2278 $(CCC) -o $@ buffer.c 2279 2280objects/charset.o: charset.c 2281 $(CCC) -o $@ charset.c 2282 2283objects/diff.o: diff.c 2284 $(CCC) -o $@ diff.c 2285 2286objects/digraph.o: digraph.c 2287 $(CCC) -o $@ digraph.c 2288 2289objects/edit.o: edit.c 2290 $(CCC) -o $@ edit.c 2291 2292objects/eval.o: eval.c 2293 $(CCC) -o $@ eval.c 2294 2295objects/ex_cmds.o: ex_cmds.c 2296 $(CCC) -o $@ ex_cmds.c 2297 2298objects/ex_cmds2.o: ex_cmds2.c 2299 $(CCC) -o $@ ex_cmds2.c 2300 2301objects/ex_docmd.o: ex_docmd.c 2302 $(CCC) -o $@ ex_docmd.c 2303 2304objects/ex_eval.o: ex_eval.c 2305 $(CCC) -o $@ ex_eval.c 2306 2307objects/ex_getln.o: ex_getln.c 2308 $(CCC) -o $@ ex_getln.c 2309 2310objects/fileio.o: fileio.c 2311 $(CCC) -o $@ fileio.c 2312 2313objects/fold.o: fold.c 2314 $(CCC) -o $@ fold.c 2315 2316objects/getchar.o: getchar.c 2317 $(CCC) -o $@ getchar.c 2318 2319objects/hardcopy.o: hardcopy.c 2320 $(CCC) -o $@ hardcopy.c 2321 2322objects/hashtab.o: hashtab.c 2323 $(CCC) -o $@ hashtab.c 2324 2325objects/gui.o: gui.c 2326 $(CCC) -o $@ gui.c 2327 2328objects/gui_at_fs.o: gui_at_fs.c 2329 $(CCC) -o $@ gui_at_fs.c 2330 2331objects/gui_at_sb.o: gui_at_sb.c 2332 $(CCC) -o $@ gui_at_sb.c 2333 2334objects/gui_athena.o: gui_athena.c 2335 $(CCC) -o $@ gui_athena.c 2336 2337objects/gui_beval.o: gui_beval.c 2338 $(CCC) -o $@ gui_beval.c 2339 2340objects/gui_gtk.o: gui_gtk.c 2341 $(CCC) -o $@ gui_gtk.c 2342 2343objects/gui_gtk_f.o: gui_gtk_f.c 2344 $(CCC) -o $@ gui_gtk_f.c 2345 2346objects/gui_gtk_x11.o: gui_gtk_x11.c 2347 $(CCC) -o $@ gui_gtk_x11.c 2348 2349objects/gui_motif.o: gui_motif.c 2350 $(CCC) -o $@ gui_motif.c 2351 2352objects/gui_xmdlg.o: gui_xmdlg.c 2353 $(CCC) -o $@ gui_xmdlg.c 2354 2355objects/gui_xmebw.o: gui_xmebw.c 2356 $(CCC) -o $@ gui_xmebw.c 2357 2358objects/gui_x11.o: gui_x11.c 2359 $(CCC) -o $@ gui_x11.c 2360 2361objects/gui_photon.o: gui_photon.c 2362 $(CCC) -o $@ gui_photon.c 2363 2364objects/gui_mac.o: gui_mac.c 2365 $(CCC) -o $@ gui_mac.c 2366 2367objects/hangulin.o: hangulin.c 2368 $(CCC) -o $@ hangulin.c 2369 2370objects/if_cscope.o: if_cscope.c 2371 $(CCC) -o $@ if_cscope.c 2372 2373objects/if_xcmdsrv.o: if_xcmdsrv.c 2374 $(CCC) -o $@ if_xcmdsrv.c 2375 2376objects/if_mzsch.o: if_mzsch.c 2377 $(CCC) -o $@ if_mzsch.c 2378 2379objects/if_perl.o: auto/if_perl.c 2380 $(CCC) -o $@ auto/if_perl.c 2381 2382objects/if_perlsfio.o: if_perlsfio.c 2383 $(CCC) -o $@ if_perlsfio.c 2384 2385objects/if_python.o: if_python.c 2386 $(CCC) -o $@ if_python.c 2387 2388objects/if_ruby.o: if_ruby.c 2389 $(CCC) -o $@ if_ruby.c 2390 2391objects/if_sniff.o: if_sniff.c 2392 $(CCC) -o $@ if_sniff.c 2393 2394objects/if_tcl.o: if_tcl.c 2395 $(CCC) -o $@ if_tcl.c 2396 2397objects/integration.o: integration.c 2398 $(CCC) -o $@ integration.c 2399 2400objects/main.o: main.c 2401 $(CCC) -o $@ main.c 2402 2403objects/mark.o: mark.c 2404 $(CCC) -o $@ mark.c 2405 2406objects/memfile.o: memfile.c 2407 $(CCC) -o $@ memfile.c 2408 2409objects/memline.o: memline.c 2410 $(CCC) -o $@ memline.c 2411 2412objects/menu.o: menu.c 2413 $(CCC) -o $@ menu.c 2414 2415objects/message.o: message.c 2416 $(CCC) -o $@ message.c 2417 2418objects/misc1.o: misc1.c 2419 $(CCC) -o $@ misc1.c 2420 2421objects/misc2.o: misc2.c 2422 $(CCC) -o $@ misc2.c 2423 2424objects/move.o: move.c 2425 $(CCC) -o $@ move.c 2426 2427objects/mbyte.o: mbyte.c 2428 $(CCC) -o $@ mbyte.c 2429 2430objects/normal.o: normal.c 2431 $(CCC) -o $@ normal.c 2432 2433objects/ops.o: ops.c 2434 $(CCC) -o $@ ops.c 2435 2436objects/option.o: option.c 2437 $(CCC) -o $@ option.c 2438 2439objects/os_beos.o: os_beos.c 2440 $(CCC) -o $@ os_beos.c 2441 2442objects/os_qnx.o: os_qnx.c 2443 $(CCC) -o $@ os_qnx.c 2444 2445objects/os_macosx.o: os_macosx.c 2446 $(CCC) -o $@ os_macosx.c 2447 2448objects/os_mac_conv.o: os_mac_conv.c 2449 $(CCC) -o $@ os_mac_conv.c 2450 2451objects/os_unix.o: os_unix.c 2452 $(CCC) -o $@ os_unix.c 2453 2454objects/pathdef.o: auto/pathdef.c 2455 $(CCC) -o $@ auto/pathdef.c 2456 2457objects/py_config.o: $(PYTHON_CONFDIR)/config.c 2458 $(CCC) -o $@ $(PYTHON_CONFDIR)/config.c \ 2459 -I$(PYTHON_CONFDIR) -DHAVE_CONFIG_H -DNO_MAIN 2460 2461objects/py_getpath.o: $(PYTHON_CONFDIR)/getpath.c 2462 $(CCC) -o $@ $(PYTHON_CONFDIR)/getpath.c \ 2463 -I$(PYTHON_CONFDIR) -DHAVE_CONFIG_H -DNO_MAIN \ 2464 $(PYTHON_GETPATH_CFLAGS) 2465 2466objects/pty.o: pty.c 2467 $(CCC) -o $@ pty.c 2468 2469objects/popupmnu.o: popupmnu.c 2470 $(CCC) -o $@ popupmnu.c 2471 2472objects/quickfix.o: quickfix.c 2473 $(CCC) -o $@ quickfix.c 2474 2475objects/regexp.o: regexp.c 2476 $(CCC) -o $@ regexp.c 2477 2478objects/screen.o: screen.c 2479 $(CCC) -o $@ screen.c 2480 2481objects/search.o: search.c 2482 $(CCC) -o $@ search.c 2483 2484objects/spell.o: spell.c 2485 $(CCC) -o $@ spell.c 2486 2487objects/syntax.o: syntax.c 2488 $(CCC) -o $@ syntax.c 2489 2490objects/tag.o: tag.c 2491 $(CCC) -o $@ tag.c 2492 2493objects/term.o: term.c 2494 $(CCC) -o $@ term.c 2495 2496objects/ui.o: ui.c 2497 $(CCC) -o $@ ui.c 2498 2499objects/undo.o: undo.c 2500 $(CCC) -o $@ undo.c 2501 2502objects/window.o: window.c 2503 $(CCC) -o $@ window.c 2504 2505objects/workshop.o: workshop.c 2506 $(CCC) -o $@ workshop.c 2507 2508objects/wsdebug.o: wsdebug.c 2509 $(CCC) -o $@ wsdebug.c 2510 2511objects/netbeans.o: netbeans.c 2512 $(CCC) -o $@ netbeans.c 2513 2514Makefile: 2515 @echo The name of the makefile MUST be "Makefile" (with capital M)!!!! 2516 2517############################################################################### 2518### MacOS X installation 2519### 2520### This installs a runnable Vim.app in $(prefix) 2521 2522REZ = /Developer/Tools/Rez 2523RESDIR = $(APPDIR)/Contents/Resources 2524VERSION = $(VIMMAJOR).$(VIMMINOR) 2525 2526### Common flags 2527M4FLAGSX = $(M4FLAGS) -DAPP_EXE=$(VIMNAME) -DAPP_NAME=$(VIMNAME) \ 2528 -DAPP_VER=$(VERSION) -DICON_APP=$(ICON_APP) 2529 2530### Icons 2531ICONS = $(RESDIR)/$(ICON_APP) 2532 2533# If you uncomment the following lines the *.icns in the src directory will be 2534# detected by this Makefile automatically, and used for Vim. 2535#ICON_APP = $(shell if [ -e app.icns ] ; then echo app.icns ; else echo gui_mac.icns ; fi) 2536#ICON_DOC = $(shell if [ -e doc.icns ] ; then echo doc.icns ; else echo ; fi) 2537#ICON_DOCTXT = $(shell if [ -e doc-txt.icns ] ; then echo doc-txt.icns ; else echo ; fi) 2538#ICONS = $(addprefix $(RESDIR)/, $(ICON_APP) $(ICON_DOC) $(ICON_DOCTXT)) 2539 2540install_macosx: gui_bundle 2541# Remove the link to the runtime dir, don't want to copy all of that. 2542 -rm $(RESDIR)/vim/runtime 2543 $(INSTALL_DATA_R) $(APPDIR) $(DESTDIR)$(prefix) 2544# Generate the help tags file now, it won't work with "make installruntime". 2545 -@srcdir=`pwd`; cd $(HELPSOURCE); $(MAKE) VIMEXE=$$srcdir/$(VIMTARGET) vimtags 2546# Install the runtime files. Recursive! 2547 -mkdir -p $(DESTDIR)$(prefix)/$(RESDIR)/vim/runtime 2548# -mkdir $(DESTDIR)$(prefix)/$(APPDIR)/bin 2549 srcdir=`pwd`; $(MAKE) -f Makefile installruntime \ 2550 VIMEXE=$$srcdir/$(VIMTARGET) \ 2551 prefix=$(DESTDIR)$(prefix)/$(RESDIR)/vim \ 2552 VIMRTLOC=$(DESTDIR)$(prefix)/$(RESDIR)/vim/runtime 2553# Put the link back. 2554 ln -s `pwd`/../runtime $(RESDIR)/vim 2555# TODO: Create the vimtutor application. 2556 2557gui_bundle: $(RESDIR) bundle-dir bundle-executable bundle-info bundle-resource \ 2558 bundle-language 2559 2560$(RESDIR): 2561 mkdir -p $@ 2562 2563bundle-dir: $(APPDIR)/Contents $(VIMTARGET) 2564# Make a link to the runtime directory, so that we can try out the executable 2565# without installing it. 2566 mkdir -p $(RESDIR)/vim 2567 -ln -s `pwd`/../runtime $(RESDIR)/vim 2568 2569bundle-executable: $(VIMTARGET) 2570 mkdir -p $(APPDIR)/Contents/MacOS 2571 cp $(VIMTARGET) $(APPDIR)/Contents/MacOS/$(VIMTARGET) 2572 2573bundle-info: bundle-dir 2574 @echo "Creating PkgInfo" 2575 @echo -n "APPLVIM!" > $(APPDIR)/Contents/PkgInfo 2576 @echo "Creating Info.plist" 2577 m4 $(M4FLAGSX) infplist.xml > $(APPDIR)/Contents/Info.plist 2578 2579bundle-resource: bundle-dir bundle-icons bundle-rsrc 2580 2581bundle-icons: $(ICONS) 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$(RESDIR)/%.icns: %.icns 2606 cp $< $@ 2607 2608 2609############################################################################### 2610### (automatically generated by 'make depend') 2611### Dependencies: 2612objects/buffer.o: buffer.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2613 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2614 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2615 arabic.h version.h 2616objects/charset.o: charset.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2617 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2618 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2619 arabic.h 2620objects/diff.o: diff.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2621 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2622 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2623 arabic.h 2624objects/digraph.o: digraph.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2625 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2626 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2627 arabic.h 2628objects/edit.o: edit.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2629 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2630 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2631 arabic.h 2632objects/eval.o: eval.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2633 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2634 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2635 arabic.h version.h 2636objects/ex_cmds.o: ex_cmds.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2637 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2638 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2639 arabic.h version.h 2640objects/ex_cmds2.o: ex_cmds2.c vim.h auto/config.h feature.h os_unix.h \ 2641 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2642 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2643 globals.h farsi.h arabic.h version.h 2644objects/ex_docmd.o: ex_docmd.c vim.h auto/config.h feature.h os_unix.h \ 2645 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2646 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2647 globals.h farsi.h arabic.h 2648objects/ex_eval.o: ex_eval.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2649 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2650 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2651 arabic.h 2652objects/ex_getln.o: ex_getln.c vim.h auto/config.h feature.h os_unix.h \ 2653 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2654 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2655 globals.h farsi.h arabic.h 2656objects/fileio.o: fileio.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2657 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2658 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2659 arabic.h 2660objects/fold.o: fold.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2661 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2662 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2663 arabic.h 2664objects/getchar.o: getchar.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2665 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2666 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2667 arabic.h 2668objects/hardcopy.o: hardcopy.c vim.h auto/config.h feature.h os_unix.h \ 2669 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2670 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2671 globals.h farsi.h arabic.h version.h 2672objects/hashtab.o: hashtab.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2673 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2674 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2675 arabic.h 2676objects/if_cscope.o: if_cscope.c vim.h auto/config.h feature.h os_unix.h \ 2677 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2678 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2679 globals.h farsi.h arabic.h if_cscope.h 2680objects/if_xcmdsrv.o: if_xcmdsrv.c vim.h auto/config.h feature.h os_unix.h \ 2681 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2682 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2683 globals.h farsi.h arabic.h version.h 2684objects/main.o: main.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2685 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2686 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2687 arabic.h farsi.c arabic.c 2688objects/mark.o: mark.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2689 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2690 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2691 arabic.h 2692objects/memfile.o: memfile.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2693 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2694 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2695 arabic.h 2696objects/memline.o: memline.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2697 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2698 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2699 arabic.h 2700objects/menu.o: menu.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2701 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2702 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2703 arabic.h 2704objects/message.o: message.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2705 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2706 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2707 arabic.h 2708objects/misc1.o: misc1.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2709 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2710 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2711 arabic.h version.h 2712objects/misc2.o: misc2.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2713 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2714 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2715 arabic.h 2716objects/move.o: move.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2717 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2718 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2719 arabic.h 2720objects/mbyte.o: mbyte.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2721 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2722 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2723 arabic.h 2724objects/normal.o: normal.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2725 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2726 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2727 arabic.h 2728objects/ops.o: ops.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \ 2729 keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \ 2730 proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h 2731objects/option.o: option.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2732 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2733 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2734 arabic.h 2735objects/os_unix.o: os_unix.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2736 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2737 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2738 arabic.h os_unixx.h 2739objects/pathdef.o: auto/pathdef.c ./vim.h ./auto/config.h ./feature.h ./os_unix.h \ 2740 ./auto/osdef.h ./ascii.h ./keymap.h ./term.h ./macros.h ./option.h \ 2741 ./structs.h ./regexp.h ./gui.h ./gui_beval.h proto/gui_beval.pro \ 2742 ./ex_cmds.h ./proto.h ./globals.h ./farsi.h ./arabic.h 2743objects/popupmnu.o: popupmnu.c vim.h auto/config.h feature.h os_unix.h \ 2744 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2745 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2746 globals.h farsi.h arabic.h 2747objects/quickfix.o: quickfix.c vim.h auto/config.h feature.h os_unix.h \ 2748 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2749 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2750 globals.h farsi.h arabic.h 2751objects/regexp.o: regexp.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2752 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2753 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2754 arabic.h 2755objects/screen.o: screen.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2756 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2757 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2758 arabic.h 2759objects/search.o: search.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2760 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2761 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2762 arabic.h 2763objects/spell.o: spell.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2764 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2765 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2766 arabic.h 2767objects/syntax.o: syntax.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2768 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2769 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2770 arabic.h 2771objects/tag.o: tag.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \ 2772 keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \ 2773 proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h 2774objects/term.o: term.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2775 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2776 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2777 arabic.h 2778objects/ui.o: ui.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \ 2779 keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \ 2780 proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h 2781objects/undo.o: undo.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2782 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2783 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2784 arabic.h 2785objects/version.o: version.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2786 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2787 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2788 arabic.h version.h 2789objects/window.o: window.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2790 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2791 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2792 arabic.h 2793objects/gui.o: gui.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \ 2794 keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \ 2795 proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h 2796objects/gui_gtk.o: gui_gtk.c gui_gtk_f.h vim.h auto/config.h feature.h os_unix.h \ 2797 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2798 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2799 globals.h farsi.h arabic.h ../pixmaps/stock_icons.h 2800objects/gui_gtk_f.o: gui_gtk_f.c vim.h auto/config.h feature.h os_unix.h \ 2801 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2802 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2803 globals.h farsi.h arabic.h gui_gtk_f.h 2804objects/gui_motif.o: gui_motif.c vim.h auto/config.h feature.h os_unix.h \ 2805 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2806 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2807 globals.h farsi.h arabic.h gui_xmebw.h ../pixmaps/alert.xpm \ 2808 ../pixmaps/error.xpm ../pixmaps/generic.xpm ../pixmaps/info.xpm \ 2809 ../pixmaps/quest.xpm gui_x11_pm.h ../pixmaps/tb_new.xpm \ 2810 ../pixmaps/tb_open.xpm ../pixmaps/tb_close.xpm ../pixmaps/tb_save.xpm \ 2811 ../pixmaps/tb_print.xpm ../pixmaps/tb_cut.xpm ../pixmaps/tb_copy.xpm \ 2812 ../pixmaps/tb_paste.xpm ../pixmaps/tb_find.xpm \ 2813 ../pixmaps/tb_find_next.xpm ../pixmaps/tb_find_prev.xpm \ 2814 ../pixmaps/tb_find_help.xpm ../pixmaps/tb_exit.xpm \ 2815 ../pixmaps/tb_undo.xpm ../pixmaps/tb_redo.xpm ../pixmaps/tb_help.xpm \ 2816 ../pixmaps/tb_macro.xpm ../pixmaps/tb_make.xpm \ 2817 ../pixmaps/tb_save_all.xpm ../pixmaps/tb_jump.xpm \ 2818 ../pixmaps/tb_ctags.xpm ../pixmaps/tb_load_session.xpm \ 2819 ../pixmaps/tb_save_session.xpm ../pixmaps/tb_new_session.xpm \ 2820 ../pixmaps/tb_blank.xpm ../pixmaps/tb_maximize.xpm \ 2821 ../pixmaps/tb_split.xpm ../pixmaps/tb_minimize.xpm \ 2822 ../pixmaps/tb_shell.xpm ../pixmaps/tb_replace.xpm \ 2823 ../pixmaps/tb_vsplit.xpm ../pixmaps/tb_maxwidth.xpm \ 2824 ../pixmaps/tb_minwidth.xpm 2825objects/gui_xmdlg.o: gui_xmdlg.c vim.h auto/config.h feature.h os_unix.h \ 2826 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2827 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2828 globals.h farsi.h arabic.h 2829objects/gui_xmebw.o: gui_xmebw.c vim.h auto/config.h feature.h os_unix.h \ 2830 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2831 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2832 globals.h farsi.h arabic.h gui_xmebwp.h gui_xmebw.h 2833objects/gui_athena.o: gui_athena.c vim.h auto/config.h feature.h os_unix.h \ 2834 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2835 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2836 globals.h farsi.h arabic.h gui_at_sb.h gui_x11_pm.h \ 2837 ../pixmaps/tb_new.xpm ../pixmaps/tb_open.xpm ../pixmaps/tb_close.xpm \ 2838 ../pixmaps/tb_save.xpm ../pixmaps/tb_print.xpm ../pixmaps/tb_cut.xpm \ 2839 ../pixmaps/tb_copy.xpm ../pixmaps/tb_paste.xpm ../pixmaps/tb_find.xpm \ 2840 ../pixmaps/tb_find_next.xpm ../pixmaps/tb_find_prev.xpm \ 2841 ../pixmaps/tb_find_help.xpm ../pixmaps/tb_exit.xpm \ 2842 ../pixmaps/tb_undo.xpm ../pixmaps/tb_redo.xpm ../pixmaps/tb_help.xpm \ 2843 ../pixmaps/tb_macro.xpm ../pixmaps/tb_make.xpm \ 2844 ../pixmaps/tb_save_all.xpm ../pixmaps/tb_jump.xpm \ 2845 ../pixmaps/tb_ctags.xpm ../pixmaps/tb_load_session.xpm \ 2846 ../pixmaps/tb_save_session.xpm ../pixmaps/tb_new_session.xpm \ 2847 ../pixmaps/tb_blank.xpm ../pixmaps/tb_maximize.xpm \ 2848 ../pixmaps/tb_split.xpm ../pixmaps/tb_minimize.xpm \ 2849 ../pixmaps/tb_shell.xpm ../pixmaps/tb_replace.xpm \ 2850 ../pixmaps/tb_vsplit.xpm ../pixmaps/tb_maxwidth.xpm \ 2851 ../pixmaps/tb_minwidth.xpm 2852objects/gui_gtk_x11.o: gui_gtk_x11.c vim.h auto/config.h feature.h os_unix.h \ 2853 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2854 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2855 globals.h farsi.h arabic.h gui_gtk_f.h ../runtime/vim32x32.xpm \ 2856 ../runtime/vim16x16.xpm ../runtime/vim48x48.xpm 2857objects/gui_x11.o: gui_x11.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2858 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2859 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2860 arabic.h ../runtime/vim32x32.xpm ../runtime/vim16x16.xpm \ 2861 ../runtime/vim48x48.xpm 2862objects/gui_at_sb.o: gui_at_sb.c vim.h auto/config.h feature.h os_unix.h \ 2863 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2864 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2865 globals.h farsi.h arabic.h gui_at_sb.h 2866objects/gui_at_fs.o: gui_at_fs.c vim.h auto/config.h feature.h os_unix.h \ 2867 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2868 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2869 globals.h farsi.h arabic.h gui_at_sb.h 2870objects/pty.o: pty.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \ 2871 keymap.h term.h macros.h option.h structs.h regexp.h gui.h gui_beval.h \ 2872 proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h 2873objects/hangulin.o: hangulin.c vim.h auto/config.h feature.h os_unix.h \ 2874 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2875 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2876 globals.h farsi.h arabic.h 2877objects/if_mzsch.o: if_mzsch.c vim.h auto/config.h feature.h os_unix.h \ 2878 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2879 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2880 globals.h farsi.h arabic.h if_mzsch.h 2881objects/if_perl.o: auto/if_perl.c ./vim.h ./auto/config.h ./feature.h ./os_unix.h \ 2882 ./auto/osdef.h ./ascii.h ./keymap.h ./term.h ./macros.h ./option.h \ 2883 ./structs.h ./regexp.h ./gui.h ./gui_beval.h proto/gui_beval.pro \ 2884 ./ex_cmds.h ./proto.h ./globals.h ./farsi.h ./arabic.h 2885objects/if_perlsfio.o: if_perlsfio.c vim.h auto/config.h feature.h os_unix.h \ 2886 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2887 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2888 globals.h farsi.h arabic.h 2889objects/if_python.o: if_python.c vim.h auto/config.h feature.h os_unix.h \ 2890 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2891 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2892 globals.h farsi.h arabic.h 2893objects/if_tcl.o: if_tcl.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2894 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2895 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2896 arabic.h 2897objects/if_ruby.o: if_ruby.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \ 2898 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \ 2899 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \ 2900 arabic.h version.h 2901objects/if_sniff.o: if_sniff.c vim.h auto/config.h feature.h os_unix.h \ 2902 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2903 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2904 globals.h farsi.h arabic.h os_unixx.h 2905objects/gui_beval.o: gui_beval.c vim.h auto/config.h feature.h os_unix.h \ 2906 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2907 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2908 globals.h farsi.h arabic.h 2909objects/workshop.o: workshop.c auto/config.h integration.h vim.h feature.h \ 2910 os_unix.h auto/osdef.h ascii.h keymap.h term.h macros.h option.h \ 2911 structs.h regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h \ 2912 proto.h globals.h farsi.h arabic.h version.h workshop.h 2913objects/wsdebug.o: wsdebug.c 2914objects/integration.o: integration.c vim.h auto/config.h feature.h os_unix.h \ 2915 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2916 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2917 globals.h farsi.h arabic.h integration.h 2918objects/netbeans.o: netbeans.c vim.h auto/config.h feature.h os_unix.h \ 2919 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 2920 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 2921 globals.h farsi.h arabic.h version.h 2922