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