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