PageRenderTime 63ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 1ms

/branches/vim7.2/src/Makefile

#
Makefile | 1741 lines | 509 code | 227 blank | 1005 comment | 1 complexity | b5280479b10b2e43ec0208bc16755b8c MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  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 = --disable-xsmp" if you have the
  34. # X11 Session Management Protocol (XSMP) library (libSM) but do not
  35. # want to use it.
  36. # This can speedup Vim startup but Vim loses the ability to catch the
  37. # user logging out from session-managers like GNOME and work
  38. # could be lost.
  39. # - Uncomment one or more of these lines to include an interface;
  40. # each makes Vim quite a bit bigger:
  41. # --enable-perlinterp for Perl interpreter
  42. # --enable-pythoninterp for Python interpreter
  43. # --enable-rubyinterp for Ruby interpreter
  44. # --enable-tclinterp for Tcl interpreter
  45. # --enable-cscope for Cscope interface
  46. # - Uncomment one of the lines with --with-features= to enable a set of
  47. # features (but not the interfaces just mentioned).
  48. # - Uncomment the line with --disable-acl to disable ACL support even
  49. # though your system supports it.
  50. # - Uncomment the line with --disable-gpm to disable gpm support
  51. # even though you have gpm libraries and includes.
  52. # - Uncomment the line with --disable-sysmouse to disable sysmouse
  53. # support even though you have /dev/sysmouse and includes.
  54. # - Uncomment one of the lines with CFLAGS and/or CC if you have
  55. # something very special or want to tune the optimizer.
  56. # - Search for the name of your system to see if it needs anything
  57. # special.
  58. # - A few versions of make use '.include "file"' instead of 'include
  59. # file'. Adjust the include line below if yours does.
  60. #
  61. # 2. Edit feature.h {{{1
  62. # Only if you do not agree with the default compile features, e.g.:
  63. # - you want Vim to be as vi compatible as it can be
  64. # - you want to use Emacs tags files
  65. # - you want right-to-left editing (Hebrew)
  66. # - you want 'langmap' support (Greek)
  67. # - you want to remove features to make Vim smaller
  68. #
  69. # 3. "make" {{{1
  70. # Will first run ./configure with the options in this file. Then it will
  71. # start make again on this Makefile to do the compiling. You can also do
  72. # this in two steps with:
  73. # make config
  74. # make
  75. # The configuration phase creates/overwrites auto/config.h and
  76. # auto/config.mk.
  77. # The configure script is created with "make autoconf". It can detect
  78. # different features of your system and act accordingly. However, it is
  79. # not correct for all systems. Check this:
  80. # - If you have X windows, but configure could not find it or reported
  81. # another include/library directory then you wanted to use, you have
  82. # to set CONF_OPT_X below. You might also check the installation of
  83. # xmkmf.
  84. # - If you have --enable-gui=motif and have Motif on your system, but
  85. # configure reports "checking for location of gui... <not found>", you
  86. # have to set GUI_INC_LOC and GUI_LIB_LOC below.
  87. # If you changed something, do this to run configure again:
  88. # make reconfig
  89. #
  90. # - If you do not trust the automatic configuration code, then inspect
  91. # auto/config.h and auto/config.mk, before starting the actual build
  92. # phase. If possible edit this Makefile, rather than auto/config.mk --
  93. # especially look at the definition of VIMLOC below. Note that the
  94. # configure phase overwrites auto/config.mk and auto/config.h again.
  95. # - If you get error messages, find out what is wrong and try to correct
  96. # it in this Makefile. You may need to do "make reconfig" when you
  97. # change anything that configure uses (e.g. switching from an old C
  98. # compiler to an ANSI C compiler). Only when auto/configure does
  99. # something wrong you may need to change one of the other files. If
  100. # you find a clean way to fix the problem, consider sending a note to
  101. # the author of autoconf (bug-gnu-utils@prep.ai.mit.edu) or Vim
  102. # (Bram@vim.org). Don't bother to do that when you made a hack
  103. # solution for a non-standard system.
  104. #
  105. # 4. "make test" {{{1
  106. # This is optional. This will run Vim scripts on a number of test
  107. # files, and compare the produced output with the expected output.
  108. # If all is well, you will get the "ALL DONE" message in the end. If a
  109. # test fails you get "TEST FAILURE". See below (search for "/^test").
  110. #
  111. # 5. "make install" {{{1
  112. # If the new Vim seems to be working OK you can install it and the
  113. # documentation in the appropriate location. The default is
  114. # "/usr/local". Change "prefix" below to change the location.
  115. # "auto/pathdef.c" will be compiled again after changing this to make
  116. # the executable know where the help files are located.
  117. # Note that any existing executable is removed or overwritten. If you
  118. # want to keep it you will have to make a backup copy first.
  119. # The runtime files are in a different directory for each version. You
  120. # might want to delete an older version.
  121. # If you don't want to install everything, there are other targets:
  122. # make installvim only installs Vim, not the tools
  123. # make installvimbin only installs the Vim executable
  124. # make installruntime installs most of the runtime files
  125. # make installrtbase only installs the Vim help and
  126. # runtime files
  127. # make installlinks only installs the Vim binary links
  128. # make installmanlinks only installs the Vim manpage links
  129. # make installmacros only installs the Vim macros
  130. # make installtutorbin only installs the Vim tutor program
  131. # make installtutor only installs the Vim tutor files
  132. # make installspell only installs the spell files
  133. # make installtools only installs xxd
  134. # If you install Vim, not to install for real but to prepare a package
  135. # or RPM, set DESTDIR to the root of the tree.
  136. #
  137. # 6. Use Vim until a new version comes out. {{{1
  138. #
  139. # 7. "make uninstall_runtime" {{{1
  140. # Will remove the runtime files for the current version. This is safe
  141. # to use while another version is being used, only version-specific
  142. # files will be deleted.
  143. # To remove the runtime files of another version:
  144. # make uninstall_runtime VIMRTDIR=/vim54
  145. # If you want to delete all installed files, use:
  146. # make uninstall
  147. # Note that this will delete files that have the same name for any
  148. # version, thus you might need to do a "make install" soon after this.
  149. # Be careful not to remove a version of Vim that is still being used!
  150. # To find out which files and directories will be deleted, use:
  151. # make -n uninstall
  152. # }}}
  153. #
  154. ### This Makefile has been successfully tested on many systems. {{{
  155. ### Only the ones that require special options are mentioned here.
  156. ### Check the (*) column for remarks, listed below.
  157. ### Later code changes may cause small problems, otherwise Vim is supposed to
  158. ### compile and run without problems.
  159. #system: configurations: version (*) tested by:
  160. #------------- ------------------------ ------- - ----------
  161. #AIX 3.2.5 cc (not gcc) - 4.5 (M) Will Fiveash
  162. #AIX 4 cc +X11 -GUI 3.27 (4) Axel Kielhorn
  163. #AIX 4.1.4 cc +X11 +GUI 4.5 (5) Nico Bakker
  164. #AIX 4.2.1 cc 5.2k (C) Will Fiveash
  165. #AIX 4.3.3.12 xic 3.6.6 5.6 (5) David R. Favor
  166. #A/UX 3.1.1 gcc +X11 4.0 (6) Jim Jagielski
  167. #BeOS PR mwcc DR3 5.0n (T) Olaf Seibert
  168. #BSDI 2.1 (x86) shlicc2 gcc-2.6.3 -X11 X11R6 4.5 (1) Jos Backus
  169. #BSD/OS 3.0 (x86) gcc gcc-2.7.2.1 -X11 X11R6 4.6c (1) Jos Backus
  170. #CX/UX 6.2 cc +X11 +GUI_Mofif 5.4 (V) Kipp E. Howard
  171. #DG/UX 5.4* gcc 2.5.8 GUI 5.0e (H) Jonas Schlein
  172. #DG/UX 5.4R4.20 gcc 2.7.2 GUI 5.0s (H) Rocky Olive
  173. #HP-UX (most) c89 cc 5.1 (2) Bram Moolenaar
  174. #HP-UX_9.04 cc +X11 +Motif 5.0 (2) Carton Lao
  175. #Irix 6.3 (O2) cc ? 4.5 (L) Edouard Poor
  176. #Irix 6.4 cc ? 5.0m (S) Rick Sayre
  177. #Irix 6.5 cc ? 6.0 (S) David Harrison
  178. #Irix 64 bit 4.5 (K) Jon Wright
  179. #Linux 2.0 gcc-2.7.2 Infomagic Motif 4.3 (3) Ronald Rietman
  180. #Linux 2.0.31 gcc +X11 +GUI Athena 5.0w (U) Darren Hiebert
  181. #LynxOS 3.0.1 2.9-gnupro-98r2 +X11 +GUI Athena 5.7.1(O) Lorenz Hahn
  182. #LynxOS 3.1.0 2.9-gnupro-98r2 +X11 +GUI Athena 5.7.1(O) Lorenz Hahn
  183. #NEC UP4800 UNIX_SV 4.2MP cc +X11R6 Motif,Athena4.6b (Q) Lennart Schultz
  184. #NetBSD 1.0A gcc-2.4.5 -X11 -GUI 3.21 (X) Juergen Weigert
  185. #QNX 4.2 wcc386-10.6 -X11 4.2 (D) G.F. Desrochers
  186. #QNX 4.23 Watcom -X11 4.2 (F) John Oleynick
  187. #SCO Unix v3.2.5 cc +X11 Motif 3.27 (C) M. Kuperblum
  188. #SCO Open Server 5 gcc 2.7.2.3 +X11 +GUI Motif 5.3 (A) Glauber Ribeiro
  189. #SINIX-N 5.43 RM400 R4000 cc +X11 +GUI 5.0l (I) Martin Furter
  190. #SINIX-Z 5.42 i386 gcc 2.7.2.3 +X11 +GUI Motif 5.1 (I) Joachim Fehn
  191. #SINIX-Y 5.43 RM600 R4000 gcc 2.7.2.3 +X11 +GUI Motif 5.1 (I) Joachim Fehn
  192. #Reliant/SINIX 5.44 cc +X11 +GUI 5.5a (I) B. Pruemmer
  193. #SNI Targon31 TOS 4.1.11 gcc-2.4.5 +X11 -GUI 4.6c (B) Paul Slootman
  194. #Solaris 2.4 (Sparc) cc +X11 +GUI 3.29 (9) Glauber
  195. #Solaris 2.4/2.5 clcc +X11 -GUI openwin 3.20 (7) Robert Colon
  196. #Solaris 2.5 (sun4m) cc (SC4.0) +X11R6 +GUI (CDE) 4.6b (E) Andrew Large
  197. #Solaris 2.5 cc +X11 +GUI Athena 4.2 (9) Sonia Heimann
  198. #Solaris 2.5 gcc 2.5.6 +X11 Motif 5.0m (R) Ant. Colombo
  199. #Solaris 2.6 gcc 2.8.1 ncursus 5.3 (G) Larry W. Virden
  200. #Solaris with -lthread 5.5 (W) K. Nagano
  201. #Solaris gcc (b) Riccardo
  202. #SunOS 4.1.x +X11 -GUI 5.1b (J) Bram Moolenaar
  203. #SunOS 4.1.3_U1 (sun4c) gcc +X11 +GUI Athena 5.0w (J) Darren Hiebert
  204. #SUPER-UX 6.2 (NEC SX-4) cc +X11R6 Motif,Athena4.6b (P) Lennart Schultz
  205. #Tandem/NSK (c) Matthew Woehlke
  206. #Unisys 6035 cc +X11 Motif 5.3 (8) Glauber Ribeiro
  207. #ESIX V4.2 cc +X11 6.0 (a) Reinhard Wobst
  208. #Mac OS X 10.[23] gcc Carbon 6.2 (x) Bram Moolenaar
  209. # }}}
  210. # (*) Remarks: {{{
  211. #
  212. # (1) Uncomment line below for shlicc2
  213. # (2) HPUX with compile problems or wrong digraphs, uncomment line below
  214. # (3) Infomagic Motif needs GUI_LIB_LOC and GUI_INC_LOC set, see below.
  215. # And add "-lXpm" to MOTIF_LIBS2.
  216. # (4) For cc the optimizer must be disabled (use CFLAGS= after running
  217. # configure) (symptom: ":set termcap" output looks weird).
  218. # (5) Compiler may need extra argument, see below.
  219. # (6) See below for a few lines to uncomment
  220. # (7) See below for lines which enable the use of clcc
  221. # (8) Needs some EXTRA_LIBS, search for Unisys below
  222. # (9) Needs an extra compiler flag to compile gui_at_sb.c, see below.
  223. # (A) May need EXTRA_LIBS, see below
  224. # (B) Can't compile GUI because there is no waitpid()... Disable GUI below.
  225. # (C) Force the use of curses instead of termcap, see below.
  226. # (D) Uncomment lines below for QNX
  227. # (E) You might want to use termlib instead of termcap, see below.
  228. # (F) See below for instructions.
  229. # (G) Using ncursus version 4.2 has reported to cause a crash. Use the
  230. # Sun cursus library instead.
  231. # (H) See line for EXTRA_LIBS below.
  232. # (I) SINIX-N 5.42 and 5.43 need some EXTRA_LIBS. Also for Reliant-Unix.
  233. # (J) If you get undefined symbols, see below for a solution.
  234. # (K) See lines to uncomment below for machines with 64 bit pointers.
  235. # (L) For Silicon Graphics O2 workstations remove "-lnsl" from auto/config.mk
  236. # (M) gcc version cygnus-2.0.1 does NOT work (symptom: "dl" deletes two
  237. # characters instead of one).
  238. # (N) SCO with decmouse.
  239. # (O) LynxOS needs EXTRA_LIBS, see below.
  240. # (P) For SuperUX 6.2 on NEC SX-4 see a few lines below to uncomment.
  241. # (Q) For UNIXSVR 4.2MP on NEC UP4800 see below for lines to uncomment.
  242. # (R) For Solaris 2.5 (or 2.5.1) with gcc > 2.5.6, uncomment line below.
  243. # (S) For Irix 6.x with MipsPro compiler, use -OPT:Olimit. See line below.
  244. # (T) See ../doc/os_beos.txt.
  245. # (U) Must uncomment CONF_OPT_PYTHON option below to disable Python
  246. # detection, since the configure script runs into an error when it
  247. # detects Python (probably because of the bash shell).
  248. # (V) See lines to uncomment below.
  249. # (X) Need to use the .include "auto/config.mk" line below
  250. # (Y) See line with c89 below
  251. # (Z) See lines with cc or c89 below
  252. # (a) See line with EXTRA_LIBS below.
  253. # (b) When using gcc with the Solaris linker, make sure you don't use GNU
  254. # strip, otherwise the binary may not run: "Cannot find ELF".
  255. # (c) Add -lfloss to EXTRA_LIBS, see below.
  256. # (x) When you get warnings for precompiled header files, run
  257. # "sudo fixPrecomps". Also see CONF_OPT_DARWIN below.
  258. # }}}
  259. #DO NOT CHANGE the next line, we need it for configure to find the compiler
  260. #instead of using the default from the "make" program.
  261. #Use a line further down to change the value for CC.
  262. CC=
  263. # Change and use these defines if configure cannot find your Motif stuff.
  264. # Unfortunately there is no "standard" location for Motif. {{{
  265. # These defines can contain a single directory (recommended) or a list of
  266. # directories (for when you are working with several systems). The LAST
  267. # directory that exists is used.
  268. # When changed, run "make reconfig" next!
  269. #GUI_INC_LOC = -I/usr/include/Motif2.0 -I/usr/include/Motif1.2
  270. #GUI_LIB_LOC = -L/usr/lib/Motif2.0 -L/usr/lib/Motif1.2
  271. ### Use these two lines for Infomagic Motif (3)
  272. #GUI_INC_LOC = -I/usr/X11R6/include
  273. #GUI_LIB_LOC = -L/usr/X11R6/lib
  274. # }}}
  275. ######################## auto/config.mk ######################## {{{1
  276. # At this position auto/config.mk is included. When starting from the
  277. # distribution it is almost empty. After running auto/configure it contains
  278. # settings that have been discovered for your system. Settings below this
  279. # include override settings in auto/config.mk!
  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. # (X) How to include auto/config.mk depends on the version of "make" you have,
  283. # if the current choice doesn't work, try the other one.
  284. include auto/config.mk
  285. #.include "auto/config.mk"
  286. CClink = $(CC)
  287. #}}}
  288. # Include the configuration choices first, so we can override everything
  289. # below. As shipped, this file contains a target that causes to run
  290. # configure. Once configure was run, this file contains a list of
  291. # make variables with predefined values instead. Thus any second invocation
  292. # of make, will build Vim.
  293. # CONFIGURE - configure arguments {{{1
  294. # You can give a lot of options to configure.
  295. # Change this to your desire and do 'make config' afterwards
  296. # examples (can only use one!):
  297. #CONF_ARGS = --exec-prefix=/usr
  298. #CONF_ARGS = --with-vim-name=vim7 --with-ex-name=ex7 --with-view-name=view7
  299. #CONF_ARGS = --with-global-runtime=/etc/vim
  300. #CONF_ARGS = --with-local-dir=/usr/share
  301. #CONF_ARGS = --without-local-dir
  302. # Use this one if you distribute a modified version of Vim.
  303. #CONF_ARGS = --with-modified-by="John Doe"
  304. # GUI - For creating Vim with GUI (gvim) (B)
  305. # Uncomment this line when you don't want to get the GUI version, although you
  306. # have GTK, Motif and/or Athena. Also use --without-x if you don't want X11
  307. # at all.
  308. #CONF_OPT_GUI = --disable-gui
  309. # Uncomment one of these lines if you have that GUI but don't want to use it.
  310. # The automatic check will use another one that can be found.
  311. # Gnome is disabled by default, it may cause trouble.
  312. #CONF_OPT_GUI = --disable-gtk-check
  313. #CONF_OPT_GUI = --disable-gtk2-check
  314. #CONF_OPT_GUI = --enable-gnome-check
  315. #CONF_OPT_GUI = --enable-gnome2-check
  316. #CONF_OPT_GUI = --disable-motif-check
  317. #CONF_OPT_GUI = --disable-athena-check
  318. #CONF_OPT_GUI = --disable-nextaw-check
  319. # Uncomment one of these lines to select a specific GUI to use.
  320. # When using "yes" or nothing, configure will use the first one found: GTK+,
  321. # Motif or Athena.
  322. #
  323. # GTK versions that are known not to work 100% are rejected.
  324. # Use "--disable-gtktest" to accept them anyway.
  325. #
  326. # GNOME means GTK with Gnome support. If using GTK and --enable-gnome-check
  327. # is used then GNOME will automatically be used if it is found. If you have
  328. # GNOME, but do not want to use it (e.g., want a GTK-only version), then use
  329. # --enable-gui=gtk or leave out --enable-gnome-check.
  330. #
  331. # If the selected GUI isn't found, the GUI is disabled automatically
  332. #CONF_OPT_GUI = --enable-gui=gtk
  333. #CONF_OPT_GUI = --enable-gui=gtk --disable-gtktest
  334. #CONF_OPT_GUI = --enable-gui=gtk2
  335. #CONF_OPT_GUI = --enable-gui=gtk2 --disable-gtktest
  336. #CONF_OPT_GUI = --enable-gui=gnome
  337. #CONF_OPT_GUI = --enable-gui=gnome2
  338. #CONF_OPT_GUI = --enable-gui=gnome2 --disable-gtktest
  339. #CONF_OPT_GUI = --enable-gui=motif
  340. #CONF_OPT_GUI = --enable-gui=motif --with-motif-lib="-static -lXm -shared"
  341. #CONF_OPT_GUI = --enable-gui=athena
  342. #CONF_OPT_GUI = --enable-gui=nextaw
  343. # DARWIN - detecting Mac OS X
  344. # Uncomment this line when you want to compile a Unix version of Vim on
  345. # Darwin. None of the Mac specific options or files will be used.
  346. #CONF_OPT_DARWIN = --disable-darwin
  347. # Select the architecture supported. Default is to build for the current
  348. # platform. Use "both" for a universal binary. That probably doesn't work
  349. # when including Perl, Python, etc.
  350. #CONF_OPT_DARWIN = --with-mac-arch=i386
  351. #CONF_OPT_DARWIN = --with-mac-arch=ppc
  352. #CONF_OPT_DARWIN = --with-mac-arch=both
  353. # PERL
  354. # Uncomment this when you want to include the Perl interface.
  355. # The Perl option sometimes causes problems, because it adds extra flags
  356. # to the command line. If you see strange flags during compilation, check in
  357. # auto/config.mk where they come from. If it's PERL_CFLAGS, try commenting
  358. # the next line.
  359. # When you get an error for a missing "perl.exp" file, try creating an emtpy
  360. # one: "touch perl.exp".
  361. # This requires at least "small" features, "tiny" doesn't work.
  362. #CONF_OPT_PERL = --enable-perlinterp
  363. # PYTHON
  364. # Uncomment this when you want to include the Python interface.
  365. # NOTE: This may cause threading to be enabled, which has side effects (such
  366. # as using different libraries and debugging becomes more difficult).
  367. # NOTE: Using this together with Perl may cause a crash in initialization.
  368. #CONF_OPT_PYTHON = --enable-pythoninterp
  369. # TCL
  370. # Uncomment this when you want to include the Tcl interface.
  371. #CONF_OPT_TCL = --enable-tclinterp
  372. #CONF_OPT_TCL = --enable-tclinterp --with-tclsh=tclsh8.4
  373. # RUBY
  374. # Uncomment this when you want to include the Ruby interface.
  375. # Note: you need the development package (e.g., ruby1.9.1-dev on Ubuntu).
  376. # CONF_OPT_RUBY = --enable-rubyinterp
  377. # CONF_OPT_RUBY = --enable-rubyinterp --with-ruby-command=ruby1.9.1
  378. # MZSCHEME
  379. # Uncomment this when you want to include the MzScheme interface.
  380. #CONF_OPT_MZSCHEME = --enable-mzschemeinterp
  381. # PLT/mrscheme/drscheme Home dir; the PLTHOME environment variable also works
  382. #CONF_OPT_PLTHOME = --with-plthome=/usr/local/plt
  383. #CONF_OPT_PLTHOME = --with-plthome=/usr/local/drscheme
  384. #CONF_OPT_PLTHOME = --with-plthome=/home/me/mz
  385. # CSCOPE
  386. # Uncomment this when you want to include the Cscope interface.
  387. #CONF_OPT_CSCOPE = --enable-cscope
  388. # WORKSHOP - Sun Visual Workshop interface. Only works with Motif!
  389. #CONF_OPT_WORKSHOP = --enable-workshop
  390. # NETBEANS - NetBeans interface. Only works with Motif, GTK, and gnome.
  391. # Motif version must have XPM libraries (see |workshop-xpm|).
  392. # Uncomment this when you do not want the netbeans interface.
  393. #CONF_OPT_NETBEANS = --disable-netbeans
  394. # SNIFF - Include support for SNiFF+.
  395. #CONF_OPT_SNIFF = --enable-sniff
  396. # MULTIBYTE - To edit multi-byte characters.
  397. # Uncomment this when you want to edit a multibyte language.
  398. # It's automatically enabled with big features or IME support.
  399. # Note: Compile on a machine where setlocale() actually works, otherwise the
  400. # configure tests may fail.
  401. #CONF_OPT_MULTIBYTE = --enable-multibyte
  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. # XIM - X Input Method. Special character input support for X11 (Chinese,
  407. # Japanese, special symbols, etc). Also needed for dead-key support.
  408. # When omitted it's automatically enabled for the X-windows GUI.
  409. # HANGUL - Input Hangul (Korean) language using internal routines.
  410. # Uncomment one of these when you want to input a multibyte language.
  411. #CONF_OPT_INPUT = --enable-xim
  412. #CONF_OPT_INPUT = --disable-xim
  413. #CONF_OPT_INPUT = --enable-hangulinput
  414. # FONTSET - X fontset support for output of languages with many characters.
  415. # Uncomment this when you want to output a multibyte language.
  416. #CONF_OPT_OUTPUT = --enable-fontset
  417. # ACL - Uncomment this when you do not want to include ACL support, even
  418. # though your system does support it. E.g., when it's buggy.
  419. #CONF_OPT_ACL = --disable-acl
  420. # gpm - For mouse support on Linux console via gpm
  421. # Uncomment this when you do not want to include gpm support, even
  422. # though you have gpm libraries and includes.
  423. #CONF_OPT_GPM = --disable-gpm
  424. # sysmouse - For mouse support on FreeBSD and DragonFly console via sysmouse
  425. # Uncomment this when you do not want do include sysmouse support, even
  426. # though you have /dev/sysmouse and includes.
  427. #CONF_OPT_SYSMOUSE = --disable-sysmouse
  428. # FEATURES - For creating Vim with more or less features
  429. # Uncomment one of these lines when you want to include few to many features.
  430. # The default is "normal".
  431. #CONF_OPT_FEAT = --with-features=tiny
  432. #CONF_OPT_FEAT = --with-features=small
  433. #CONF_OPT_FEAT = --with-features=normal
  434. #CONF_OPT_FEAT = --with-features=big
  435. #CONF_OPT_FEAT = --with-features=huge
  436. # COMPILED BY - For including a specific e-mail address for ":version".
  437. #CONF_OPT_COMPBY = "--with-compiledby=John Doe <JohnDoe@yahoo.com>"
  438. # X WINDOWS DISABLE - For creating a plain Vim without any X11 related fancies
  439. # (otherwise Vim configure will try to include xterm titlebar access)
  440. # Also disable the GUI above, otherwise it will be included anyway.
  441. # When both GUI and X11 have been disabled this may save about 15% of the
  442. # code and make Vim startup quicker.
  443. #CONF_OPT_X = --without-x
  444. # X WINDOWS DIRECTORY - specify X directories
  445. # If configure can't find you X stuff, or if you have multiple X11 derivatives
  446. # installed, you may wish to specify which one to use.
  447. # Select nothing to let configure choose.
  448. # This here selects openwin (as found on sun).
  449. #XROOT = /usr/openwin
  450. #CONF_OPT_X = --x-include=$(XROOT)/include --x-libraries=$(XROOT)/lib
  451. # X11 Session Management Protocol support
  452. # Vim will try to use XSMP to catch the user logging out if there are unsaved
  453. # files. Uncomment this line to disable that (it prevents vim trying to open
  454. # communications with the session manager).
  455. #CONF_OPT_XSMP = --disable-xsmp
  456. # You may wish to include xsmp but use exclude xsmp-interact if the logout
  457. # XSMP functionality does not work well with your session-manager (at time of
  458. # writing, this would be early GNOME-1 gnome-session: it 'freezes' other
  459. # applications after Vim has cancelled a logout (until Vim quits). This
  460. # *might* be the Vim code, but is more likely a bug in early GNOME-1.
  461. # This disables the dialog that asks you if you want to save files or not.
  462. #CONF_OPT_XSMP = --disable-xsmp-interact
  463. # COMPILER - Name of the compiler {{{1
  464. # The default from configure will mostly be fine, no need to change this, just
  465. # an example. If a compiler is defined here, configure will use it rather than
  466. # probing for one. It is dangerous to change this after configure was run.
  467. # Make will use your choice then -- but beware: Many things may change with
  468. # another compiler. It is wise to run 'make reconfig' to start all over
  469. # again.
  470. #CC = cc
  471. #CC = gcc
  472. # COMPILER FLAGS - change as you please. Either before running {{{1
  473. # configure or afterwards. For examples see below.
  474. # When using -g with some older versions of Linux you might get a
  475. # statically linked executable.
  476. # When not defined, configure will try to use -O2 -g for gcc and -O for cc.
  477. #CFLAGS = -g
  478. #CFLAGS = -O
  479. # Optimization limits - depends on the compiler. Automatic check in configure
  480. # doesn't work very well, because many compilers only give a warning for
  481. # unrecognized arguments.
  482. #CFLAGS = -O -OPT:Olimit=2600
  483. #CFLAGS = -O -Olimit 2000
  484. #CFLAGS = -O -FOlimit,2000
  485. # Often used for GCC: mixed optimizing, lot of optimizing, debugging
  486. #CFLAGS = -g -O2 -fno-strength-reduce -Wall -Wshadow -Wmissing-prototypes
  487. #CFLAGS = -g -O2 -fno-strength-reduce -Wall -Wmissing-prototypes
  488. #CFLAGS = -g -Wall -Wmissing-prototypes
  489. #CFLAGS = -O6 -fno-strength-reduce -Wall -Wshadow -Wmissing-prototypes
  490. #CFLAGS = -g -DDEBUG -Wall -Wshadow -Wmissing-prototypes
  491. #CFLAGS = -g -O2 '-DSTARTUPTIME="vimstartup"' -fno-strength-reduce -Wall -Wmissing-prototypes
  492. # Use this with GCC to check for mistakes, unused arguments, etc.
  493. #CFLAGS = -g -Wall -Wextra -Wmissing-prototypes -Wunreachable-code
  494. #PYTHON_CFLAGS_EXTRA = -Wno-missing-field-initializers
  495. #MZSCHEME_CFLAGS_EXTRA = -Wno-unreachable-code -Wno-unused-parameter
  496. # EFENCE - Electric-Fence malloc debugging: catches memory accesses beyond
  497. # allocated memory (and makes every malloc()/free() very slow).
  498. # Electric Fence is free (search ftp sites).
  499. # You may want to set the EF_PROTECT_BELOW environment variable to check the
  500. # other side of allocated memory.
  501. # On FreeBSD you might need to enlarge the number of mmaps allowed. Do this
  502. # as root: sysctl -w vm.max_proc_mmap=30000
  503. #EXTRA_LIBS = /usr/local/lib/libefence.a
  504. # PURIFY - remove the # to use the "purify" program (hoi Nia++!)
  505. #PURIFY = purify
  506. # NBDEBUG - debugging the netbeans interface.
  507. #EXTRA_DEFS = -DNBDEBUG
  508. # }}}
  509. # LINT - for running lint
  510. # For standard Unix lint
  511. LINT = lint
  512. LINT_OPTIONS = -beprxzF
  513. # For splint
  514. # It doesn't work well, crashes on include files and non-ascii characters.
  515. #LINT = splint
  516. #LINT_OPTIONS = +unixlib -weak -macrovarprefixexclude -showfunc -linelen 9999
  517. # PROFILING - Uncomment the next two lines to do profiling with gcc and gprof.
  518. # Might not work with GUI or Perl.
  519. # For unknown reasons adding "-lc" fixes a linking problem with GCC. That's
  520. # probably a bug in the "-pg" implementation.
  521. # Need to recompile everything after changing this: "make clean" "make".
  522. #PROFILE_CFLAGS = -pg -g -DWE_ARE_PROFILING
  523. #PROFILE_LIBS = -pg
  524. #PROFILE_LIBS = -pg -lc
  525. # MEMORY LEAK DETECTION
  526. # Requires installing the ccmalloc library.
  527. # Configuration is in the .ccmalloc or ~/.ccmalloc file.
  528. # Doesn't work very well, since memory linked to from global variables
  529. # (in libraries) is also marked as leaked memory.
  530. #PROFILE_CFLAGS = -DEXITFREE
  531. #PROFILE_LIBS = -lccmalloc
  532. #####################################################
  533. ### Specific systems, check if yours is listed! ### {{{
  534. #####################################################
  535. ### Uncomment things here only if the values chosen by configure are wrong.
  536. ### It's better to adjust configure.in and "make autoconf", if you can!
  537. ### Then send the required changes to configure.in to the bugs list.
  538. ### (1) BSD/OS 2.0.1, 2.1 or 3.0 using shared libraries
  539. ###
  540. #CC = shlicc2
  541. #CFLAGS = -O2 -g -m486 -Wall -Wshadow -Wmissing-prototypes -fno-builtin
  542. ### (2) HP-UX with a non-ANSI cc, use the c89 ANSI compiler
  543. ### The first probably works on all systems
  544. ### The second should work a bit better on newer systems
  545. ### The third should work a bit better on HPUX 11.11
  546. ### Information provided by: Richard Allen <ra@rhi.hi.is>
  547. #CC = c89 -D_HPUX_SOURCE
  548. #CC = c89 -O +Onolimit +ESlit -D_HPUX_SOURCE
  549. #CC = c89 -O +Onolimit +ESlit +e -D_HPUX_SOURCE
  550. ### (2) For HP-UX: Enable the use of a different set of digraphs. Use this
  551. ### when the default (ISO) digraphs look completely wrong.
  552. ### After changing this do "touch digraph.c; make".
  553. #EXTRA_DEFS = -DHPUX_DIGRAPHS
  554. ### (2) For HP-UX: 9.04 cpp default macro definition table of 128000 bytes
  555. ### is too small to compile many routines. It produces too much defining
  556. ### and no space errors.
  557. ### Uncomment the following to specify a larger macro definition table.
  558. #CFLAGS = -Wp,-H256000
  559. ### (2) For HP-UX 10.20 using the HP cc, with X11R6 and Motif 1.2, with
  560. ### libraries in /usr/lib instead of /lib (avoiding transition links).
  561. ### Information provided by: David Green
  562. #XROOT = /usr
  563. #CONF_OPT_X = --x-include=$(XROOT)/include/X11R6 --x-libraries=$(XROOT)/lib/X11R6
  564. #GUI_INC_LOC = -I/usr/include/Motif1.2
  565. #GUI_LIB_LOC = -L/usr/lib/Motif1.2_R6
  566. ### (5) AIX 4.1.4 with cc
  567. #CFLAGS = -O -qmaxmem=8192
  568. ### AIX with c89 (Walter Briscoe)
  569. #CC = c89
  570. #CPPFLAGS = -D_ALL_SOURCE
  571. ### AIX 4.3.3.12 with xic 3.6.6 (David R. Favor)
  572. # needed to avoid a problem where strings.h gets included
  573. #CFLAGS = -qsrcmsg -O2 -qmaxmem=8192 -D__STR31__
  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. ### (7) Solaris 2.4/2.5 with Centerline compiler
  578. #CC = clcc
  579. #X_LIBS_DIR = -L/usr/openwin/lib -R/usr/openwin/lib
  580. #CFLAGS = -O
  581. ### (9) Solaris 2.x with cc (SunPro), using Athena.
  582. ### Only required for compiling gui_at_sb.c.
  583. ### Symptom: "identifier redeclared: vim_XawScrollbarSetThumb"
  584. ### Use one of the lines (either Full ANSI or no ANSI at all)
  585. #CFLAGS = $(CFLAGS) -Xc
  586. #CFLAGS = $(CFLAGS) -Xs
  587. ### Solaris 2.3 with X11 and specific cc
  588. #CC=/opt/SUNWspro/bin/cc -O -Xa -v -R/usr/openwin/lib
  589. ### Solaris with /usr/ucb/cc (it is rejected by autoconf as "cc")
  590. #CC = /usr/ucb/cc
  591. #EXTRA_LIBS = -R/usr/ucblib
  592. ### Solaris with Forte Developer and FEAT_SUN_WORKSHOP
  593. # The Xpm library is available from http://koala.ilog.fr/ftp/pub/xpm.
  594. #CC = cc
  595. #XPM_DIR = /usr/local/xpm/xpm-3.4k-solaris
  596. #XPM_LIB = -L$(XPM_DIR)/lib -R$(XPM_DIR)/lib -lXpm
  597. #XPM_IPATH = -I$(XPM_DIR)/include
  598. #EXTRA_LIBS = $(XPM_LIB)
  599. #EXTRA_IPATHS = $(XPM_IPATH)
  600. #EXTRA_DEFS = -xCC -DHAVE_X11_XPM_H
  601. ### Solaris with workshop compilers: Vim is unstable when compiled with
  602. # "-fast". Use this instead. (Shea Martin)
  603. #CFLAGS = -x02 -xtarget=ultra
  604. ### (R) for Solaris 2.5 (or 2.5.1) with gcc > 2.5.6 you might need this:
  605. #LDFLAGS = -lw -ldl -lXmu
  606. #GUI_LIB_LOC = -L/usr/local/lib
  607. ### (8) Unisys 6035 (Glauber Ribeiro)
  608. #EXTRA_LIBS = -lnsl -lsocket -lgen
  609. ### When builtin functions cause problems with gcc (for Sun 4.1.x)
  610. #CFLAGS = -O2 -Wall -traditional -Wno-implicit
  611. ### Apollo DOMAIN (with SYSTYPE = bsd4.3) (TESTED for version 3.0)
  612. #EXTRA_DEFS = -DDOMAIN
  613. #CFLAGS= -O -A systype,bsd4.3
  614. ### Coherent 4.2.10 on Intel 386 platform
  615. #EXTRA_DEFS = -Dvoid=int
  616. #EXTRA_LIBS = -lterm -lsocket
  617. ### SCO 3.2, with different library name for terminfo
  618. #EXTRA_LIBS = -ltinfo
  619. ### UTS2 for Amdahl UTS 2.1.x
  620. #EXTRA_DEFS = -DUTS2
  621. #EXTRA_LIBS = -lsocket
  622. ### UTS4 for Amdahl UTS 4.x
  623. #EXTRA_DEFS = -DUTS4 -Xa
  624. ### USL for Unix Systems Laboratories (SYSV 4.2)
  625. #EXTRA_DEFS = -DUSL
  626. ### RISCos on MIPS without X11
  627. #EXTRA_DEFS = -DMIPS
  628. ### RISCos on MIPS with X11
  629. #EXTRA_LIBS = -lsun
  630. ### (6) A/UX 3.1.1 with gcc (Jim Jagielski)
  631. #CC= gcc -D_POSIX_SOURCE
  632. #CFLAGS= -O2
  633. #EXTRA_LIBS = -lposix -lbsd -ltermcap -lX11
  634. ### (A) Some versions of SCO Open Server 5 (Jan Christiaan van Winkel)
  635. ### Also use the CONF_TERM_LIB below!
  636. #EXTRA_LIBS = -lgen
  637. ### (D) QNX (by G.F. Desrochers)
  638. #CFLAGS = -g -O -mf -4
  639. ### (F) QNX (by John Oleynick)
  640. # 1. If you don't have an X server: Comment out CONF_OPT_GUI and uncomment
  641. # CONF_OPT_X = --without-x.
  642. # 2. make config
  643. # 3. edit auto/config.mk and remove -ldir and -ltermcap from LIBS. It doesn't
  644. # have -ldir (does config find it somewhere?) and -ltermcap has at
  645. # least one problem so I use termlib.o instead. The problem with
  646. # termcap is that it segfaults if you call it with the name of
  647. # a non-existent terminal type.
  648. # 4. edit auto/config.h and add #define USE_TMPNAM
  649. # 5. add termlib.o to OBJ
  650. # 6. make
  651. ### (H) for Data general DG/UX 5.4.2 and 5.4R3.10 (Jonas J. Schlein)
  652. #EXTRA_LIBS = -lgen
  653. ### (I) SINIX-N 5.42 or 5.43 RM400 R4000 (also SINIX-Y and SINIX-Z)
  654. #EXTRA_LIBS = -lgen -lnsl
  655. ### For SINIX-Y this is needed for the right prototype of gettimeofday()
  656. #EXTRA_DEFS = -D_XPG_IV
  657. ### (I) Reliant-Unix (aka SINIX) 5.44 with standard cc
  658. # Use both "-F O3" lines for optimization or the "-g" line for debugging
  659. #EXTRA_LIBS = -lgen -lsocket -lnsl -lSM -lICE
  660. #CFLAGS = -F O3 -DSINIXN
  661. #LDFLAGS = -F O3
  662. #CFLAGS = -g -DSINIXN
  663. ### (P) SCO 3.2.42, with different termcap names for some useful keys DJB
  664. #EXTRA_DEFS = -DSCOKEYS -DNETTERM_MOUSE -DDEC_MOUSE -DXTERM_MOUSE -DHAVE_GETTIMEOFDAY
  665. #EXTRA_LIBS = -lsocket -ltermcap -lmalloc -lc_s
  666. ### (P) SuperUX 6.2 on NEC SX-4 (Lennart Schultz)
  667. #GUI_INC_LOC = -I/usr/include
  668. #GUI_LIB_LOC = -L/usr/lib
  669. #EXTRA_LIBS = -lgen
  670. ### (Q) UNIXSVR 4.2MP on NEC UP4800 (Lennart Schultz)
  671. #GUI_INC_LOC = -I/usr/necccs/include
  672. #GUI_LIB_LOC = -L/usr/necccs/lib/X11R6
  673. #XROOT = /usr/necccs
  674. #CONF_OPT_X = --x-include=$(XROOT)/include --x-libraries=$(XROOT)/lib/X11R6
  675. #EXTRA_LIBS = -lsocket -lgen
  676. ### Irix 4.0 & 5.2 (Silicon Graphics Machines, __sgi will be defined)
  677. # Not needed for Irix 5.3, Ives Aerts reported
  678. #EXTRA_LIBS = -lmalloc -lc_s
  679. # Irix 4.0, when regexp and regcmp cannot be found when linking:
  680. #EXTRA_LIBS = -lmalloc -lc_s -lPW
  681. ### (S) Irix 6.x (MipsPro compiler): Uses different Olimit flag:
  682. # Note: This newer option style is used with the MipsPro compilers ONLY if
  683. # you are compiling an "n32" or "64" ABI binary (use either a -n32
  684. # flag or a -64 flag for CFLAGS). If you explicitly use a -o32 flag,
  685. # then the CFLAGS option format will be the typical style (i.e.
  686. # -Olimit 3000).
  687. #CFLAGS = -OPT:Olimit=3000 -O
  688. ### (S) Irix 6.5 with MipsPro C compiler. Try this as a test to see new
  689. # compiler features! Beware, the optimization is EXTREMELY thorough
  690. # and takes quite a long time.
  691. # Note: See the note above. Here, the -mips3 option automatically
  692. # enables either the "n32" or "64" ABI, depending on what machine you
  693. # are compiling on (n32 is explicitly enabled here, just to make sure).
  694. #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
  695. #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
  696. ### (K) for SGI Irix machines with 64 bit pointers ("uname -s" says IRIX64)
  697. ### Suggested by Jon Wright <jon@gate.sinica.edu.tw>.
  698. ### Tested on R8000 IRIX6.1 Power Indigo2.
  699. ### Check /etc/compiler.defaults for your compiler settings.
  700. # either (for 64 bit pointers) uncomment the following line
  701. #GUI_LIB_LOC = -L/usr/lib64
  702. # then
  703. # 1) make config
  704. # 2) edit auto/config.mk and delete the -lelf entry in the LIBS line
  705. # 3) make
  706. #
  707. # or (for 32bit pointers) uncomment the following line
  708. #EXTRA_DEFS = -n32
  709. #GUI_LIB_LOC = -L/usr/lib32
  710. # then
  711. # 1) make config
  712. # 2) edit auto/config.mk, add -n32 to LDFLAGS
  713. # 3) make
  714. #
  715. #Alternatively: use -o32 instead of -n32.
  716. ###
  717. ### (C) On SCO Unix v3.2.5 (and probably other versions) the termcap library,
  718. ### which is found by configure, doesn't work correctly. Symptom is the
  719. ### error message "Termcap entry too long". Uncomment the next line.
  720. ### On AIX 4.2.1 (and other versions probably), libtermcap is reported
  721. ### not to display properly.
  722. ### after changing this, you need to do "make reconfig".
  723. #CONF_TERM_LIB = --with-tlib=curses
  724. ### (E) If you want to use termlib library instead of the automatically found
  725. ### one. After changing this, you need to do "make reconfig".
  726. #CONF_TERM_LIB = --with-tlib=termlib
  727. ### (a) ESIX V4.2 (Reinhard Wobst)
  728. #EXTRA_LIBS = -lnsl -lsocket -lgen -lXIM -lXmu -lXext
  729. ### (c) Tandem/NSK (Matthew Woehlke)
  730. #EXTRA_LIBS = -lfloss
  731. ### If you want to use ncurses library instead of the automatically found one
  732. ### after changing this, you need to do "make reconfig".
  733. #CONF_TERM_LIB = --with-tlib=ncurses
  734. ### For GCC on MSDOS, the ".exe" suffix will be added.
  735. #EXEEXT = .exe
  736. #LNKEXT = .exe
  737. ### (O) For LynxOS 2.5.0, tested on PC.
  738. #EXTRA_LIBS = -lXext -lSM -lICE -lbsd
  739. ### For LynxOS 3.0.1, tested on PPC
  740. #EXTRA_LIBS= -lXext -lSM -lICE -lnetinet -lXmu -liberty -lX11
  741. ### For LynxOS 3.1.0, tested on PC
  742. #EXTRA_LIBS= -lXext -lSM -lICE -lnetinet -lXmu
  743. ### (V) For CX/UX 6.2 (on Harris/Concurrent NightHawk 4800, 5800). Remove
  744. ### -Qtarget if only in a 5800 environment. (Kipp E. Howard)
  745. #CFLAGS = -O -Qtarget=m88110compat
  746. #EXTRA_LIBS = -lgen
  747. ##################### end of system specific lines ################### }}}
  748. ### Names of the programs and targets {{{1
  749. VIMTARGET = $(VIMNAME)$(EXEEXT)
  750. EXTARGET = $(EXNAME)$(LNKEXT)
  751. VIEWTARGET = $(VIEWNAME)$(LNKEXT)
  752. GVIMNAME = g$(VIMNAME)
  753. GVIMTARGET = $(GVIMNAME)$(LNKEXT)
  754. GVIEWNAME = g$(VIEWNAME)
  755. GVIEWTARGET = $(GVIEWNAME)$(LNKEXT)
  756. RVIMNAME = r$(VIMNAME)
  757. RVIMTARGET = $(RVIMNAME)$(LNKEXT)
  758. RVIEWNAME = r$(VIEWNAME)
  759. RVIEWTARGET = $(RVIEWNAME)$(LNKEXT)
  760. RGVIMNAME = r$(GVIMNAME)
  761. RGVIMTARGET = $(RGVIMNAME)$(LNKEXT)
  762. RGVIEWNAME = r$(GVIEWNAME)
  763. RGVIEWTARGET = $(RGVIEWNAME)$(LNKEXT)
  764. VIMDIFFNAME = $(VIMNAME)diff
  765. GVIMDIFFNAME = g$(VIMDIFFNAME)
  766. VIMDIFFTARGET = $(VIMDIFFNAME)$(LNKEXT)
  767. GVIMDIFFTARGET = $(GVIMDIFFNAME)$(LNKEXT)
  768. EVIMNAME = e$(VIMNAME)
  769. EVIMTARGET = $(EVIMNAME)$(LNKEXT)
  770. EVIEWNAME = e$(VIEWNAME)
  771. EVIEWTARGET = $(EVIEWNAME)$(LNKEXT)
  772. ### Names of the tools that are also made {{{1
  773. TOOLS = xxd/xxd$(EXEEXT)
  774. ### Installation directories. The defaults come from configure. {{{1
  775. #
  776. ### prefix the top directory for the data (default "/usr/local")
  777. #
  778. # Uncomment the next line to install Vim in your home directory.
  779. #prefix = $(HOME)
  780. ### exec_prefix is the top directory for the executable (default $(prefix))
  781. #
  782. # Uncomment the next line to install the Vim executable in "/usr/machine/bin"
  783. #exec_prefix = /usr/machine
  784. ### BINDIR dir for the executable (default "$(exec_prefix)/bin")
  785. ### MANDIR dir for the manual pages (default "$(prefix)/man")
  786. ### DATADIR dir for the other files (default "$(prefix)/lib" or
  787. # "$(prefix)/share")
  788. # They may be different when using different architectures for the
  789. # executable and a common directory for the other files.
  790. #
  791. # Uncomment the next line to install Vim in "/usr/bin"
  792. #BINDIR = /usr/bin
  793. # Uncomment the next line to install Vim manuals in "/usr/share/man/man1"
  794. #MANDIR = /usr/share/man
  795. # Uncomment the next line to install Vim help files in "/usr/share/vim"
  796. #DATADIR = /usr/share
  797. ### DESTDIR root of the installation tree. This is prepended to the other
  798. # directories. This directory must exist.
  799. #DESTDIR = ~/pkg/vim
  800. ### Directory of the man pages
  801. MAN1DIR = /man1
  802. ### Vim version (adjusted by a script)
  803. VIMMAJOR = 7
  804. VIMMINOR = 2
  805. ### Location of Vim files (should not need to be changed, and {{{1
  806. ### some things might not work when they are changed!)
  807. VIMDIR = /vim
  808. VIMRTDIR = /vim$(VIMMAJOR)$(VIMMINOR)
  809. HELPSUBDIR = /doc
  810. COLSUBDIR = /colors
  811. SYNSUBDIR = /syntax
  812. INDSUBDIR = /indent
  813. AUTOSUBDIR = /autoload
  814. PLUGSUBDIR = /plugin
  815. FTPLUGSUBDIR = /ftplugin
  816. LANGSUBDIR = /lang
  817. COMPSUBDIR = /compiler
  818. KMAPSUBDIR = /keymap
  819. MACROSUBDIR = /macros
  820. TOOLSSUBDIR = /tools
  821. TUTORSUBDIR = /tutor
  822. SPELLSUBDIR = /spell
  823. PRINTSUBDIR = /print
  824. PODIR = po
  825. ### VIMLOC common root of the Vim files (all versions)
  826. ### VIMRTLOC common root of the runtime Vim files (this version)
  827. ### VIMRCLOC compiled-in location for global [g]vimrc files (all versions)
  828. ### VIMRUNTIMEDIR compiled-in location for runtime files (optional)
  829. ### HELPSUBLOC location for help files
  830. ### COLSUBLOC location for colorscheme files
  831. ### SYNSUBLOC location for syntax files
  832. ### INDSUBLOC location for indent files
  833. ### AUTOSUBLOC location for standard autoload files
  834. ### PLUGSUBLOC location for standard plugin files
  835. ### FTPLUGSUBLOC location for ftplugin files
  836. ### LANGSUBLOC location for language files
  837. ### COMPSUBLOC location for compiler files
  838. ### KMAPSUBLOC location for keymap files
  839. ### MACROSUBLOC location for macro files
  840. ### TOOLSSUBLOC location for tools files
  841. ### TUTORSUBLOC location for tutor files
  842. ### SPELLSUBLOC location for spell files
  843. ### PRINTSUBLOC location for PostScript files (prolog, latin1, ..)
  844. ### SCRIPTLOC location for script files (menu.vim, bugreport.vim, ..)
  845. ### You can override these if you want to install them somewhere else.
  846. ### Edit feature.h for compile-time settings.
  847. VIMLOC = $(DATADIR)$(VIMDIR)
  848. VIMRTLOC = $(DATADIR)$(VIMDIR)$(VIMRTDIR)
  849. VIMRCLOC = $(VIMLOC)
  850. HELPSUBLOC = $(VIMRTLOC)$(HELPSUBDIR)
  851. COLSUBLOC = $(VIMRTLOC)$(COLSUBDIR)
  852. SYNSUBLOC = $(VIMRTLOC)$(SYNSUBDIR)
  853. INDSUBLOC = $(VIMRTLOC)$(INDSUBDIR)
  854. AUTOSUBLOC = $(VIMRTLOC)$(AUTOSUBDIR)
  855. PLUGSUBLOC = $(VIMRTLOC)$(PLUGSUBDIR)
  856. FTPLUGSUBLOC = $(VIMRTLOC)$(FTPLUGSUBDIR)
  857. LANGSUBLOC = $(VIMRTLOC)$(LANGSUBDIR)
  858. COMPSUBLOC = $(VIMRTLOC)$(COMPSUBDIR)
  859. KMAPSUBLOC = $(VIMRTLOC)$(KMAPSUBDIR)
  860. MACROSUBLOC = $(VIMRTLOC)$(MACROSUBDIR)
  861. TOOLSSUBLOC = $(VIMRTLOC)$(TOOLSSUBDIR)
  862. TUTORSUBLOC = $(VIMRTLOC)$(TUTORSUBDIR)
  863. SPELLSUBLOC = $(VIMRTLOC)$(SPELLSUBDIR)
  864. PRINTSUBLOC = $(VIMRTLOC)$(PRINTSUBDIR)
  865. SCRIPTLOC = $(VIMRTLOC)
  866. ### Only set VIMRUNTIMEDIR when VIMRTLOC is set to a different location and
  867. ### the runtime directory is not below it.
  868. #VIMRUNTIMEDIR = $(VIMRTLOC)
  869. ### Name of the evim file target.
  870. EVIM_FILE = $(DESTDIR)$(SCRIPTLOC)/evim.vim
  871. MSWIN_FILE = $(DESTDIR)$(SCRIPTLOC)/mswin.vim
  872. ### Name of the menu file target.
  873. SYS_MENU_FILE = $(DESTDIR)$(SCRIPTLOC)/menu.vim
  874. SYS_SYNMENU_FILE = $(DESTDIR)$(SCRIPTLOC)/synmenu.vim
  875. SYS_DELMENU_FILE = $(DESTDIR)$(SCRIPTLOC)/delmenu.vim
  876. ### Name of the bugreport file target.
  877. SYS_BUGR_FILE = $(DESTDIR)$(SCRIPTLOC)/bugreport.vim
  878. ### Name of the file type detection file target.
  879. SYS_FILETYPE_FILE = $(DESTDIR)$(SCRIPTLOC)/filetype.vim
  880. ### Name of the file type detection file target.
  881. SYS_FTOFF_FILE = $(DESTDIR)$(SCRIPTLOC)/ftoff.vim
  882. ### Name of the file type detection script file target.
  883. SYS_SCRIPTS_FILE = $(DESTDIR)$(SCRIPTLOC)/scripts.vim
  884. ### Name of the ftplugin-on file target.
  885. SYS_FTPLUGIN_FILE = $(DESTDIR)$(SCRIPTLOC)/ftplugin.vim
  886. ### Name of the ftplugin-off file target.
  887. SYS_FTPLUGOF_FILE = $(DESTDIR)$(SCRIPTLOC)/ftplugof.vim
  888. ### Name of the indent-on file target.
  889. SYS_INDENT_FILE = $(DESTDIR)$(SCRIPTLOC)/indent.vim
  890. ### Name of the indent-off file target.
  891. SYS_INDOFF_FILE = $(DESTDIR)$(SCRIPTLOC)/indoff.vim
  892. ### Name of the option window script file target.
  893. SYS_OPTWIN_FILE = $(DESTDIR)$(SCRIPTLOC)/optwin.vim
  894. # Program to install the program in the target directory. Could also be "mv".
  895. INSTALL_PROG = cp
  896. # Program to install the data in the target directory. Cannot be "mv"!
  897. INSTALL_DATA = cp
  898. INSTALL_DATA_R = cp -r
  899. ### Program to run on installed binary
  900. #STRIP = strip
  901. ### Permissions for binaries {{{1
  902. BINMOD = 755
  903. ### Permissions for man page
  904. MANMOD = 644
  905. ### Permissions for help files
  906. HELPMOD = 644
  907. ### Permissions for Perl and shell scripts
  908. SCRIPTMOD = 755
  909. ### Permission for Vim script files (menu.vim, bugreport.vim, ..)
  910. VIMSCRIPTMOD = 644
  911. ### Permissions for all directories that are created
  912. DIRMOD = 755
  913. ### Permissions for all other files that are created
  914. FILEMOD = 644
  915. # Where to copy the man and help files from
  916. HELPSOURCE = ../runtime/doc
  917. # Where to copy the script files from (menu, bugreport)
  918. SCRIPTSOURCE = ../runtime
  919. # Where to copy the colorscheme files from
  920. COLSOURCE = ../runtime/colors
  921. # Where to copy the syntax files from
  922. SYNSOURCE = ../runtime/syntax
  923. # Where to copy the indent files from
  924. INDSOURCE = ../runtime/indent
  925. # Where to copy the standard plugin files from
  926. AUTOSOURCE = ../runtime/autoload
  927. # Where to copy the standard plugin files from
  928. PLUGSOURCE = ../runtime/plugin
  929. # Where to copy the ftplugin files from
  930. FTPLUGSOURCE = ../runtime/ftplugin
  931. # Where to copy the macro files from
  932. MACROSOURCE = ../runtime/macros
  933. # Where to copy the tools files from
  934. TOOLSSOURCE = ../runtime/tools
  935. # Where to copy the tutor files from
  936. TUTORSOURCE = ../runtime/tutor
  937. # Where to copy the spell files from
  938. SPELLSOURCE = ../runtime/spell
  939. # Where to look for language specific files
  940. LANGSOURCE = ../runtime/lang
  941. # Where to look for compiler files
  942. COMPSOURCE = ../runtime/compiler
  943. # Where to look for keymap files
  944. KMAPSOURCE = ../runtime/keymap
  945. # Where to look for print resource files
  946. PRINTSOURCE = ../runtime/print
  947. # If you are using Linux, you might want to use this to make vim the
  948. # default vi editor, it will create a link from vi to Vim when doing
  949. # "make install". An existing file will be overwritten!
  950. # When not using it, some make programs can't handle an undefined $(LINKIT).
  951. #LINKIT = ln -f -s $(DEST_BIN)/$(VIMTARGET) $(DESTDIR)/usr/bin/vi
  952. LINKIT = @echo >/dev/null
  953. ###
  954. ### GRAPHICAL USER INTERFACE (GUI). {{{1
  955. ### 'configure --enable-gui' can enable one of these for you if you did set
  956. ### a corresponding CONF_OPT_GUI above and have X11.
  957. ### Override configures choice by uncommenting all the following lines.
  958. ### As they are, the GUI is disabled. Replace "NONE" with "ATHENA" or "MOTIF"
  959. ### for enabling the Athena or Motif GUI.
  960. #GUI_SRC = $(NONE_SRC)
  961. #GUI_OBJ = $(NONE_OBJ)
  962. #GUI_DEFS = $(NONE_DEFS)
  963. #GUI_IPATH = $(NONE_IPATH)
  964. #GUI_LIBS_DIR = $(NONE_LIBS_DIR)
  965. #GUI_LIBS1 = $(NONE_LIBS1)
  966. #GUI_LIBS2 = $(NONE_LIBS2)
  967. #GUI_INSTALL = $(NONE_INSTALL)
  968. #GUI_TARGETS = $(NONE_TARGETS)
  969. #GUI_MAN_TARGETS= $(NONE_MAN_TARGETS)
  970. #GUI_TESTTARGET = $(NONE_TESTTARGET)
  971. #GUI_BUNDLE = $(NONE_BUNDLE)
  972. # Without a GUI install the normal way.
  973. NONE_INSTALL = install_normal
  974. ### GTK GUI
  975. GTK_SRC = gui.c gui_gtk.c gui_gtk_x11.c pty.c gui_gtk_f.c \
  976. gui_beval.c
  977. GTK_OBJ = objects/gui.o objects/gui_gtk.o objects/gui_gtk_x11.o \
  978. objects/pty.o objects/gui_gtk_f.o \
  979. objects/gui_beval.o
  980. GTK_DEFS = -DFEAT_GUI_GTK $(NARROW_PROTO)
  981. GTK_IPATH = $(GUI_INC_LOC)
  982. GTK_LIBS_DIR = $(GUI_LIB_LOC)
  983. GTK_LIBS1 =
  984. GTK_LIBS2 = $(GTK_LIBNAME)
  985. GTK_INSTALL = install_normal install_gui_extra
  986. GTK_TARGETS = installglinks
  987. GTK_MAN_TARGETS = yes
  988. GTK_TESTTARGET = gui
  989. GTK_BUNDLE =
  990. ### Motif GUI
  991. MOTIF_SRC = gui.c gui_motif.c gui_x11.c pty.c gui_beval.c \
  992. gui_xmdlg.c gui_xmebw.c
  993. MOTIF_OBJ = objects/gui.o objects/gui_motif.o objects/gui_x11.o \
  994. objects/pty.o objects/gui_beval.o \
  995. objects/gui_xmdlg.o objects/gui_xmebw.o
  996. MOTIF_DEFS = -DFEAT_GUI_MOTIF $(NARROW_PROTO)
  997. MOTIF_IPATH = $(GUI_INC_LOC)
  998. MOTIF_LIBS_DIR = $(GUI_LIB_LOC)
  999. MOTIF_LIBS1 =
  1000. MOTIF_LIBS2 = $(MOTIF_LIBNAME) -lXt
  1001. MOTIF_INSTALL = install_normal install_gui_extra
  1002. MOTIF_TARGETS = installglinks
  1003. MOTIF_MAN_TARGETS = yes
  1004. MOTIF_TESTTARGET = gui
  1005. MOTIF_BUNDLE =
  1006. ### Athena GUI
  1007. ### Use Xaw3d to make the menus look a little bit nicer
  1008. #XAW_LIB = -lXaw3d
  1009. XAW_LIB = -lXaw
  1010. ### When using Xaw3d, uncomment/comment the following lines to also get the
  1011. ### scrollbars from Xaw3d.
  1012. #ATHENA_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c gui_at_fs.c
  1013. #ATHENA_OBJ = objects/gui.o objects/gui_athena.o objects/gui_x11.o \
  1014. # objects/pty.o objects/gui_beval.o objects/gui_at_fs.o
  1015. #ATHENA_DEFS = -DFEAT_GUI_ATHENA $(NARROW_PROTO) \
  1016. # -Dvim_scrollbarWidgetClass=scrollbarWidgetClass \
  1017. # -Dvim_XawScrollbarSetThumb=XawScrollbarSetThumb
  1018. ATHENA_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c \
  1019. gui_at_sb.c gui_at_fs.c
  1020. ATHENA_OBJ = objects/gui.o objects/gui_athena.o objects/gui_x11.o \
  1021. objects/pty.o objects/gui_beval.o \
  1022. objects/gui_at_sb.o objects/gui_at_fs.o
  1023. ATHENA_DEFS = -DFEAT_GUI_ATHENA $(NARROW_PROTO)
  1024. ATHENA_IPATH = $(GUI_INC_LOC)
  1025. ATHENA_LIBS_DIR = $(GUI_LIB_LOC)
  1026. ATHENA_LIBS1 = $(XAW_LIB)
  1027. ATHENA_LIBS2 = -lXt
  1028. ATHENA_INSTALL = install_normal install_gui_extra
  1029. ATHENA_TARGETS = installglinks
  1030. ATHENA_MAN_TARGETS = yes
  1031. ATHENA_TESTTARGET = gui
  1032. ATHENA_BUNDLE =
  1033. ### neXtaw GUI
  1034. NEXTAW_LIB = -lneXtaw
  1035. NEXTAW_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c gui_at_fs.c
  1036. NEXTAW_OBJ = objects/gui.o objects/gui_athena.o objects/gui_x11.o \
  1037. objects/pty.o objects/gui_beval.o objects/gui_at_fs.o
  1038. NEXTAW_DEFS = -DFEAT_GUI_ATHENA -DFEAT_GUI_NEXTAW $(NARROW_PROTO)
  1039. NEXTAW_IPATH = $(GUI_INC_LOC)
  1040. NEXTAW_LIBS_DIR = $(GUI_LIB_LOC)
  1041. NEXTAW_LIBS1 = $(NEXTAW_LIB)
  1042. NEXTAW_LIBS2 = -lXt
  1043. NEXTAW_INSTALL = install_normal install_gui_extra
  1044. NEXTAW_TARGETS = installglinks
  1045. NEXTAW_MAN_TARGETS = yes
  1046. NEXTAW_TESTTARGET = gui
  1047. NEXTAW_BUNDLE =
  1048. ### (J) Sun OpenWindows 3.2 (SunOS 4.1.x) or earlier that produce these ld
  1049. # errors: ld: Undefined symbol
  1050. # _get_wmShellWidgetClass
  1051. # _get_applicationShellWidgetClass
  1052. # then you need to get patches 100512-02 and 100573-03 from Sun. In the
  1053. # meantime, uncomment the following GUI_X_LIBS definition as a workaround:
  1054. #GUI_X_LIBS = -Bstatic -lXmu -Bdynamic -lXext
  1055. # If you also get cos, sin etc. as undefined symbols, try uncommenting this
  1056. # too:
  1057. #EXTRA_LIBS = /usr/openwin/lib/libXmu.sa -lm
  1058. # PHOTON GUI
  1059. PHOTONGUI_SRC = gui.c gui_photon.c pty.c
  1060. PHOTONGUI_OBJ = objects/gui.o objects/gui_photon.o objects/pty.o
  1061. PHOTONGUI_DEFS = -DFEAT_GUI_PHOTON
  1062. PHOTONGUI_IPATH =
  1063. PHOTONGUI_LIBS_DIR =
  1064. PHOTONGUI_LIBS1 = -lph -lphexlib
  1065. PHOTONGUI_LIBS2 =
  1066. PHOTONGUI_INSTALL = install_normal install_gui_extra
  1067. PHOTONGUI_TARGETS = installglinks
  1068. PHOTONGUI_MAN_TARGETS = yes
  1069. PHOTONGUI_TESTTARGET = gui
  1070. PHOTONGUI_BUNDLE =
  1071. # CARBON GUI
  1072. CARBONGUI_SRC = gui.c gui_mac.c
  1073. CARBONGUI_OBJ = objects/gui.o objects/gui_mac.o objects/pty.o
  1074. CARBONGUI_DEFS = -DFEAT_GUI_MAC -fno-common -fpascal-strings \
  1075. -Wall -Wno-unknown-pragmas \
  1076. -mdynamic-no-pic -pipe
  1077. CARBONGUI_IPATH = -I. -Iproto
  1078. CARBONGUI_LIBS_DIR =
  1079. CARBONGUI_LIBS1 = -framework Carbon
  1080. CARBONGUI_LIBS2 =
  1081. CARBONGUI_INSTALL = install_macosx
  1082. CARBONGUI_TARGETS =
  1083. CARBONGUI_MAN_TARGETS =
  1084. CARB

Large files files are truncated, but you can click here to view the full file