Karsten Hopp 5e85f7
To: vim_dev@googlegroups.com
Karsten Hopp 5e85f7
Subject: Patch 7.4.496
Karsten Hopp 5e85f7
Fcc: outbox
Karsten Hopp 5e85f7
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 5e85f7
Mime-Version: 1.0
Karsten Hopp 5e85f7
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 5e85f7
Content-Transfer-Encoding: 8bit
Karsten Hopp 5e85f7
------------
Karsten Hopp 5e85f7
Karsten Hopp 5e85f7
Patch 7.4.496
Karsten Hopp 5e85f7
Problem:    Many lines are both in Make_cyg.mak and Make_ming.mak
Karsten Hopp 5e85f7
Solution:   Move the common parts to one file. (Ken Takata)
Karsten Hopp 5e85f7
Files:	    src/INSTALLpc.txt, src/Make_cyg.mak, src/Make_cyg_ming.mak,
Karsten Hopp 5e85f7
	    src/Make_ming.mak, src/Make_mvc.mak, Filelist
Karsten Hopp 5e85f7
Karsten Hopp 5e85f7
Karsten Hopp 5e85f7
*** ../vim-7.4.495/src/INSTALLpc.txt	2014-08-22 18:12:53.995244049 +0200
Karsten Hopp 5e85f7
--- src/INSTALLpc.txt	2014-11-05 13:49:27.076811946 +0100
Karsten Hopp 5e85f7
***************
Karsten Hopp 5e85f7
*** 228,238 ****
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
      http://www.mingw.org/
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
  Once you have downloaded the compiler binaries, unpack them on your hard disk
Karsten Hopp 5e85f7
  somewhere, and put them on your PATH.  If you are on Win95/98 you can edit
Karsten Hopp 5e85f7
  your AUTOEXEC.BAT file with a line like:
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
!     set PATH=C:\GCC-2.95.2\BIN;%PATH%
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
  or on NT/2000/XP, go to the Control Panel, (Performance and Maintenance),
Karsten Hopp 5e85f7
  System, Advanced, and edit the environment from there.
Karsten Hopp 5e85f7
--- 228,242 ----
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
      http://www.mingw.org/
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
+ or you can use 'MinGW-w64' compiler.
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+     http://mingw-w64.sourceforge.net/
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
  Once you have downloaded the compiler binaries, unpack them on your hard disk
Karsten Hopp 5e85f7
  somewhere, and put them on your PATH.  If you are on Win95/98 you can edit
Karsten Hopp 5e85f7
  your AUTOEXEC.BAT file with a line like:
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
!     set PATH=C:\MinGW\bin;%PATH%
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
  or on NT/2000/XP, go to the Control Panel, (Performance and Maintenance),
Karsten Hopp 5e85f7
  System, Advanced, and edit the environment from there.
Karsten Hopp 5e85f7
***************
Karsten Hopp 5e85f7
*** 240,249 ****
Karsten Hopp 5e85f7
  Test if gcc is on your path.  From a CMD (or COMMAND on '95/98) window:
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
      C:\> gcc --version
Karsten Hopp 5e85f7
!     2.95.2
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
!     C:\> make --version
Karsten Hopp 5e85f7
!     GNU Make version 3.77 (...etc...)
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
  Now you are ready to rock 'n' roll.  Unpack the vim sources (look on
Karsten Hopp 5e85f7
  www.vim.org for exactly which version of the vim files you need).
Karsten Hopp 5e85f7
--- 244,253 ----
Karsten Hopp 5e85f7
  Test if gcc is on your path.  From a CMD (or COMMAND on '95/98) window:
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
      C:\> gcc --version
Karsten Hopp 5e85f7
!     gcc (GCC) 4.8.1
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
!     C:\> mingw32-make --version
Karsten Hopp 5e85f7
!     GNU Make 3.82.90 (...etc...)
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
  Now you are ready to rock 'n' roll.  Unpack the vim sources (look on
Karsten Hopp 5e85f7
  www.vim.org for exactly which version of the vim files you need).
Karsten Hopp 5e85f7
***************
Karsten Hopp 5e85f7
*** 255,261 ****
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
  and you type:
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
!     make -f Make_ming.mak gvim.exe
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
  After churning for a while, you will end up with 'gvim.exe' in the 'vim\src'
Karsten Hopp 5e85f7
  directory.
Karsten Hopp 5e85f7
--- 259,265 ----
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
  and you type:
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
!     mingw32-make -f Make_ming.mak gvim.exe
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
  After churning for a while, you will end up with 'gvim.exe' in the 'vim\src'
Karsten Hopp 5e85f7
  directory.
Karsten Hopp 5e85f7
***************
Karsten Hopp 5e85f7
*** 264,270 ****
Karsten Hopp 5e85f7
  way.  If, for some reason, you want the console-mode-only version of vim (this
Karsten Hopp 5e85f7
  is NOT recommended on Win32, especially on '95/'98!!!), you can use:
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
!     make -f Make_ming.mak GUI=no vim.exe
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
  If you are dismayed by how big the EXE is, I strongly recommend you get 'UPX'
Karsten Hopp 5e85f7
  (also free!) and compress the file (typical compression is 50%). UPX can be
Karsten Hopp 5e85f7
--- 268,274 ----
Karsten Hopp 5e85f7
  way.  If, for some reason, you want the console-mode-only version of vim (this
Karsten Hopp 5e85f7
  is NOT recommended on Win32, especially on '95/'98!!!), you can use:
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
!     mingw32-make -f Make_ming.mak GUI=no vim.exe
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
  If you are dismayed by how big the EXE is, I strongly recommend you get 'UPX'
Karsten Hopp 5e85f7
  (also free!) and compress the file (typical compression is 50%). UPX can be
Karsten Hopp 5e85f7
***************
Karsten Hopp 5e85f7
*** 291,298 ****
Karsten Hopp 5e85f7
  Use Make_cyg.mak with Cygwin's GCC. See
Karsten Hopp 5e85f7
      http://users.skynet.be/antoine.mechelynck/vim/compile.htm
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
! The Cygnus one many not fully work yet.
Karsten Hopp 5e85f7
! With Cygnus gcc you can use the Unix Makefile instead (you need to get the
Karsten Hopp 5e85f7
  Unix archive then).  Then you get a Cygwin application (feels like Vim is
Karsten Hopp 5e85f7
  running on Unix), while with Make_cyg.mak you get a Windows application (like
Karsten Hopp 5e85f7
  with the other makefiles).
Karsten Hopp 5e85f7
--- 295,301 ----
Karsten Hopp 5e85f7
  Use Make_cyg.mak with Cygwin's GCC. See
Karsten Hopp 5e85f7
      http://users.skynet.be/antoine.mechelynck/vim/compile.htm
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
! With Cygnus gcc you should use the Unix Makefile instead (you need to get the
Karsten Hopp 5e85f7
  Unix archive then).  Then you get a Cygwin application (feels like Vim is
Karsten Hopp 5e85f7
  running on Unix), while with Make_cyg.mak you get a Windows application (like
Karsten Hopp 5e85f7
  with the other makefiles).
Karsten Hopp 5e85f7
***************
Karsten Hopp 5e85f7
*** 316,324 ****
Karsten Hopp 5e85f7
  	http://www.mingw.org/wiki/LinuxCrossMinGW
Karsten Hopp 5e85f7
  	http://www.libsdl.org/extras/win32/cross/README.txt
Karsten Hopp 5e85f7
      2) Get and unpack both the Unix sources and the extra archive
Karsten Hopp 5e85f7
!     3) in 'Make_ming.mak', set 'CROSS' to 'yes' instead of 'no'.
Karsten Hopp 5e85f7
!        Make further changes to 'Make_ming.mak' as you wish.
Karsten Hopp 5e85f7
!        If your cross-compiler prefix differs from the predefined value,
Karsten Hopp 5e85f7
         set 'CROSS_COMPILE' corresponding.
Karsten Hopp 5e85f7
      4) make -f Make_ming.mak gvim.exe
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
--- 319,327 ----
Karsten Hopp 5e85f7
  	http://www.mingw.org/wiki/LinuxCrossMinGW
Karsten Hopp 5e85f7
  	http://www.libsdl.org/extras/win32/cross/README.txt
Karsten Hopp 5e85f7
      2) Get and unpack both the Unix sources and the extra archive
Karsten Hopp 5e85f7
!     3) in 'Make_cyg_ming.mak', set 'CROSS' to 'yes' instead of 'no'.
Karsten Hopp 5e85f7
!        Make further changes to 'Make_cyg_ming.mak' and 'Make_ming.mak' as you
Karsten Hopp 5e85f7
!        wish.  If your cross-compiler prefix differs from the predefined value,
Karsten Hopp 5e85f7
         set 'CROSS_COMPILE' corresponding.
Karsten Hopp 5e85f7
      4) make -f Make_ming.mak gvim.exe
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
*** ../vim-7.4.495/src/Make_cyg.mak	2014-11-05 13:43:18.352820831 +0100
Karsten Hopp 5e85f7
--- src/Make_cyg.mak	2014-11-05 13:49:27.076811946 +0100
Karsten Hopp 5e85f7
***************
Karsten Hopp 5e85f7
*** 1,754 ****
Karsten Hopp 5e85f7
  #
Karsten Hopp 5e85f7
! # Makefile for VIM on Win32, using Cygnus gcc
Karsten Hopp 5e85f7
! # Updated by Dan Sharp.
Karsten Hopp 5e85f7
! # Last Change: 2014 Aug 10
Karsten Hopp 5e85f7
  #
Karsten Hopp 5e85f7
  # Also read INSTALLpc.txt!
Karsten Hopp 5e85f7
  #
Karsten Hopp 5e85f7
  # This compiles Vim as a Windows application.  If you want Vim to run as a
Karsten Hopp 5e85f7
  # Cygwin application use the Makefile (just like on Unix).
Karsten Hopp 5e85f7
  #
Karsten Hopp 5e85f7
! # GUI		no or yes: set to yes if you want the GUI version (yes)
Karsten Hopp 5e85f7
! # DIRECTX	no or yes: set to yes if you want use DirectWrite (no)
Karsten Hopp 5e85f7
! # PERL		define to path to Perl dir to get Perl support (not defined)
Karsten Hopp 5e85f7
! #   PERL_VER	  define to version of Perl being used (56)
Karsten Hopp 5e85f7
! #   DYNAMIC_PERL  no or yes: set to yes to load the Perl DLL dynamically (yes)
Karsten Hopp 5e85f7
! # PYTHON	define to path to Python dir to get PYTHON support (not defined)
Karsten Hopp 5e85f7
! #   PYTHON_VER	    define to version of Python being used (22)
Karsten Hopp 5e85f7
! #   DYNAMIC_PYTHON  no or yes: use yes to load the Python DLL dynamically (yes)
Karsten Hopp 5e85f7
! # PYTHON3	define to path to Python3 dir to get PYTHON3 support (not defined)
Karsten Hopp 5e85f7
! #   PYTHON3_VER	    define to version of Python3 being used (22)
Karsten Hopp 5e85f7
! #   DYNAMIC_PYTHON3  no or yes: use yes to load the Python3 DLL dynamically (yes)
Karsten Hopp 5e85f7
! # TCL		define to path to TCL dir to get TCL support (not defined)
Karsten Hopp 5e85f7
! #   TCL_VER	define to version of TCL being used (83)
Karsten Hopp 5e85f7
! #   DYNAMIC_TCL no or yes: use yes to load the TCL DLL dynamically (yes)
Karsten Hopp 5e85f7
! # RUBY		define to path to Ruby dir to get Ruby support (not defined)
Karsten Hopp 5e85f7
! #   RUBY_VER		define to version of Ruby being used (16)
Karsten Hopp 5e85f7
! #   RUBY_VER_LONG	same, but in format with dot. (1.6)
Karsten Hopp 5e85f7
! #	    You must set RUBY_VER_LONG when changing RUBY_VER.
Karsten Hopp 5e85f7
! #	    You must set RUBY_API_VER version to RUBY_VER_LONG.
Karsten Hopp 5e85f7
! #	    Don't set ruby API version to RUBY_VER like 191.
Karsten Hopp 5e85f7
! #   DYNAMIC_RUBY no or yes: use yes to load the Ruby DLL dynamically (yes)
Karsten Hopp 5e85f7
! # MZSCHEME	define to path to MzScheme dir to get MZSCHEME support (not defined)
Karsten Hopp 5e85f7
! #   MZSCHEME_VER      define to version of MzScheme being used (209_000)
Karsten Hopp 5e85f7
! #   DYNAMIC_MZSCHEME  no or yes: use yes to load the MzScheme DLLs dynamically (yes)
Karsten Hopp 5e85f7
! #   MZSCHEME_DLLS     path to MzScheme DLLs (libmzgc and libmzsch), for "static" build.
Karsten Hopp 5e85f7
! #   MZSCHEME_USE_RACKET  define to use "racket" instead of "mzsch".
Karsten Hopp 5e85f7
! # LUA	define to path to Lua dir to get Lua support (not defined)
Karsten Hopp 5e85f7
! #   LUA_VER	    define to version of Lua being used (51)
Karsten Hopp 5e85f7
! #   DYNAMIC_LUA  no or yes: use yes to load the Lua DLL dynamically (yes)
Karsten Hopp 5e85f7
! # GETTEXT	no or yes: set to yes for dynamic gettext support (yes)
Karsten Hopp 5e85f7
! # ICONV		no or yes: set to yes for dynamic iconv support (yes)
Karsten Hopp 5e85f7
! # MBYTE		no or yes: set to yes to include multibyte support (yes)
Karsten Hopp 5e85f7
! # IME		no or yes: set to yes to include IME support (yes)
Karsten Hopp 5e85f7
! #   DYNAMIC_IME no or yes: set to yes to load imm32.dll dynamically (yes)
Karsten Hopp 5e85f7
! # OLE		no or yes: set to yes to make OLE gvim (no)
Karsten Hopp 5e85f7
! # DEBUG		no or yes: set to yes if you wish a DEBUGging build (no)
Karsten Hopp 5e85f7
! # CPUNR		No longer supported, use ARCH.
Karsten Hopp 5e85f7
! # ARCH		i386 through pentium4: select -march argument to compile with
Karsten Hopp 5e85f7
! #               (i386)
Karsten Hopp 5e85f7
! # USEDLL	no or yes: set to yes to use the Runtime library DLL (no)
Karsten Hopp 5e85f7
! #		For USEDLL=yes the cygwin1.dll is required to run Vim.
Karsten Hopp 5e85f7
! #		For "no" the mingw-gcc-g++ package or the mingw64-i686-gcc-g++
Karsten Hopp 5e85f7
! #		package is required to compile Vim.  Or set CC to gcc-3 and add
Karsten Hopp 5e85f7
! #		-L/lib/w32api to EXTRA_LIBS.
Karsten Hopp 5e85f7
! # POSTSCRIPT	no or yes: set to yes for PostScript printing (no)
Karsten Hopp 5e85f7
! # FEATURES	TINY, SMALL, NORMAL, BIG or HUGE (BIG)
Karsten Hopp 5e85f7
! # WINVER	Lowest Win32 version to support.  (0x0500)
Karsten Hopp 5e85f7
! # CSCOPE	no or yes: to include cscope interface support (yes)
Karsten Hopp 5e85f7
! # OPTIMIZE	SPACE, SPEED, or MAXSPEED: set optimization level (MAXSPEED)
Karsten Hopp 5e85f7
! # NETBEANS	no or yes: to include netbeans interface support (yes when GUI
Karsten Hopp 5e85f7
! #		is yes)
Karsten Hopp 5e85f7
! # NBDEBUG	no or yes: to include netbeans interface debugging support (no)
Karsten Hopp 5e85f7
! # XPM		define to path to XPM dir to get XPM image support (not defined)
Karsten Hopp 5e85f7
! #>>>>> choose options:
Karsten Hopp 5e85f7
! ifndef GUI
Karsten Hopp 5e85f7
! GUI=yes
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef FEATURES
Karsten Hopp 5e85f7
! FEATURES = BIG
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef GETTEXT
Karsten Hopp 5e85f7
! GETTEXT = yes
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef ICONV
Karsten Hopp 5e85f7
! ICONV = yes
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef MBYTE
Karsten Hopp 5e85f7
! MBYTE = yes
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef IME
Karsten Hopp 5e85f7
! IME = yes
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef ARCH
Karsten Hopp 5e85f7
! ARCH = i386
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef DIRECTX
Karsten Hopp 5e85f7
! DIRECTX = no
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef WINVER
Karsten Hopp 5e85f7
! WINVER = 0x0500
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef CSCOPE
Karsten Hopp 5e85f7
! CSCOPE = yes
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef NETBEANS
Karsten Hopp 5e85f7
! ifeq ($(GUI),yes)
Karsten Hopp 5e85f7
! NETBEANS = yes
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef OPTIMIZE
Karsten Hopp 5e85f7
! OPTIMIZE = MAXSPEED
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! # Link against the shared version of libstdc++ by default.  Set
Karsten Hopp 5e85f7
! # STATIC_STDCPLUS to "yes" to link against static version instead.
Karsten Hopp 5e85f7
! ifndef STATIC_STDCPLUS
Karsten Hopp 5e85f7
! STATIC_STDCPLUS=no
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ### See feature.h for a list of optionals.
Karsten Hopp 5e85f7
! ### Any other defines can be included here.
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! DEFINES = -DWIN32 -DHAVE_PATHDEF -DFEAT_$(FEATURES) \
Karsten Hopp 5e85f7
! 	  -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER)
Karsten Hopp 5e85f7
! ifeq ($(ARCH),x86-64)
Karsten Hopp 5e85f7
! DEFINES+=-DMS_WIN64
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! INCLUDES = -march=$(ARCH) -Iproto
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! #>>>>> name of the compiler and linker, name of lib directory
Karsten Hopp 5e85f7
! ifeq (yes, $(USEDLL))
Karsten Hopp 5e85f7
! # CROSS_COMPILE is used for the gvimext DLL.
Karsten Hopp 5e85f7
! CROSS_COMPILE = i686-pc-mingw32-
Karsten Hopp 5e85f7
! CC = gcc
Karsten Hopp 5e85f7
! RC = windres
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! # i686-pc-mingw32-gcc, i686-w64-mingw32-gcc or gcc-3 can be used.
Karsten Hopp 5e85f7
  CROSS_COMPILE = i686-pc-mingw32-
Karsten Hopp 5e85f7
! CC = $(CROSS_COMPILE)gcc
Karsten Hopp 5e85f7
! RC = $(CROSS_COMPILE)windres
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! # DYNAMIC_PERL=yes and no both work
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! ifdef PERL
Karsten Hopp 5e85f7
! DEFINES += -DFEAT_PERL
Karsten Hopp 5e85f7
! INCLUDES += -I$(PERL)/lib/CORE
Karsten Hopp 5e85f7
! EXTRA_OBJS += $(OUTDIR)/if_perl.o
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef DYNAMIC_PERL
Karsten Hopp 5e85f7
! DYNAMIC_PERL = yes
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef PERL_VER
Karsten Hopp 5e85f7
! PERL_VER = 56
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifeq (yes, $(DYNAMIC_PERL))
Karsten Hopp 5e85f7
! DEFINES += -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl$(PERL_VER).dll\"
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! EXTRA_LIBS += -L$(PERL)/lib/CORE -lperl$(PERL_VER)
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! # DYNAMIC_PYTHON=yes works.
Karsten Hopp 5e85f7
! # DYNAMIC_PYTHON=no does not (unresolved externals on link).
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! ifdef PYTHON
Karsten Hopp 5e85f7
! DEFINES += -DFEAT_PYTHON
Karsten Hopp 5e85f7
! EXTRA_OBJS += $(OUTDIR)/if_python.o
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef DYNAMIC_PYTHON
Karsten Hopp 5e85f7
! DYNAMIC_PYTHON = yes
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef PYTHON_VER
Karsten Hopp 5e85f7
! PYTHON_VER = 22
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifeq (yes, $(DYNAMIC_PYTHON))
Karsten Hopp 5e85f7
! DEFINES += -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python$(PYTHON_VER).dll\"
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! EXTRA_LIBS += $(PYTHON)/libs/python$(PYTHON_VER).lib
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! # DYNAMIC_PYTHON3=yes works.
Karsten Hopp 5e85f7
! # DYNAMIC_PYTHON3=no does not (unresolved externals on link).
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! ifdef PYTHON3
Karsten Hopp 5e85f7
! DEFINES += -DFEAT_PYTHON3
Karsten Hopp 5e85f7
! EXTRA_OBJS += $(OUTDIR)/if_python3.o
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef DYNAMIC_PYTHON3
Karsten Hopp 5e85f7
! DYNAMIC_PYTHON3 = yes
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef PYTHON3_VER
Karsten Hopp 5e85f7
! PYTHON3_VER = 31
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifeq (yes, $(DYNAMIC_PYTHON3))
Karsten Hopp 5e85f7
! DEFINES += -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=\"python$(PYTHON3_VER).dll\"
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! EXTRA_LIBS += $(PYTHON3)/libs/python$(PYTHON3_VER).lib
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! # DYNAMIC_RUBY=yes works.
Karsten Hopp 5e85f7
! # DYNAMIC_RUBY=no does not (process exits).
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! ifdef RUBY
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef DYNAMIC_RUBY
Karsten Hopp 5e85f7
! DYNAMIC_RUBY=yes
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! #  Set default value
Karsten Hopp 5e85f7
! ifndef RUBY_VER
Karsten Hopp 5e85f7
! RUBY_VER = 16
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! ifndef RUBY_VER_LONG
Karsten Hopp 5e85f7
! RUBY_VER_LONG = 1.6
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! ifndef RUBY_API_VER
Karsten Hopp 5e85f7
! RUBY_API_VER = $(subst .,,$(RUBY_VER_LONG))
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef RUBY_PLATFORM
Karsten Hopp 5e85f7
! ifeq ($(RUBY_VER), 16)
Karsten Hopp 5e85f7
! RUBY_PLATFORM = i586-mswin32
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/i386-mingw32),)
Karsten Hopp 5e85f7
! RUBY_PLATFORM = i386-mingw32
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/x64-mingw32),)
Karsten Hopp 5e85f7
! RUBY_PLATFORM = x64-mingw32
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! RUBY_PLATFORM = i386-mswin32
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef RUBY_INSTALL_NAME
Karsten Hopp 5e85f7
! ifeq ($(RUBY_VER), 16)
Karsten Hopp 5e85f7
! RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_API_VER)
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! ifeq ($(ARCH),x86-64)
Karsten Hopp 5e85f7
! RUBY_INSTALL_NAME = x64-msvcrt-ruby$(RUBY_API_VER)
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_API_VER)
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifeq (19, $(word 1,$(sort 19 $(RUBY_VER))))
Karsten Hopp 5e85f7
! RUBY_19_OR_LATER = 1
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! DEFINES += -DFEAT_RUBY
Karsten Hopp 5e85f7
! ifneq ($(findstring w64-mingw32,$(CC)),)
Karsten Hopp 5e85f7
! # A workaround for mingw-w64
Karsten Hopp 5e85f7
! DEFINES += -DHAVE_STRUCT_TIMESPEC -DHAVE_STRUCT_TIMEZONE
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! INCLUDES += -I$(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
Karsten Hopp 5e85f7
! ifdef RUBY_19_OR_LATER
Karsten Hopp 5e85f7
! INCLUDES += -I$(RUBY)/include/ruby-$(RUBY_VER_LONG) -I$(RUBY)/include/ruby-$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! EXTRA_OBJS += $(OUTDIR)/if_ruby.o
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifeq (yes, $(DYNAMIC_RUBY))
Karsten Hopp 5e85f7
! DEFINES += -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\"
Karsten Hopp 5e85f7
! DEFINES += -DDYNAMIC_RUBY_VER=$(RUBY_VER)
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! EXTRA_LIBS += $(RUBY)/lib/$(RUBY_INSTALL_NAME)
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! # DYNAMIC_MZSCHEME=yes works
Karsten Hopp 5e85f7
! # DYNAMIC_MZSCHEME=no works too
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! ifdef MZSCHEME
Karsten Hopp 5e85f7
! DEFINES += -DFEAT_MZSCHEME
Karsten Hopp 5e85f7
! INCLUDES += -I$(MZSCHEME)/include
Karsten Hopp 5e85f7
! EXTRA_OBJS += $(OUTDIR)/if_mzsch.o
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef DYNAMIC_MZSCHEME
Karsten Hopp 5e85f7
! DYNAMIC_MZSCHEME = yes
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef MZSCHEME_VER
Karsten Hopp 5e85f7
! MZSCHEME_VER = 209_000
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef MZSCHEME_PRECISE_GC
Karsten Hopp 5e85f7
! MZSCHEME_PRECISE_GC=no
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! # for version 4.x we need to generate byte-code for Scheme base
Karsten Hopp 5e85f7
! ifndef MZSCHEME_GENERATE_BASE
Karsten Hopp 5e85f7
! MZSCHEME_GENERATE_BASE=no
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef MZSCHEME_USE_RACKET
Karsten Hopp 5e85f7
! MZSCHEME_MAIN_LIB=mzsch
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! MZSCHEME_MAIN_LIB=racket
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifeq (yes, $(DYNAMIC_MZSCHEME))
Karsten Hopp 5e85f7
! DEFINES += -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\" -DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\"
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! ifndef MZSCHEME_DLLS
Karsten Hopp 5e85f7
! MZSCHEME_DLLS = $(MZSCHEME)
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! ifeq (yes,$(MZSCHEME_PRECISE_GC))
Karsten Hopp 5e85f7
! MZSCHEME_LIB=-l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER)
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! MZSCHEME_LIB = -l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER) -lmzgc$(MZSCHEME_VER)
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! EXTRA_LIBS += -L$(MZSCHEME_DLLS) -L$(MZSCHEME_DLLS)/lib $(MZSCHEME_LIB)
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! ifeq (yes,$(MZSCHEME_GENERATE_BASE))
Karsten Hopp 5e85f7
! DEFINES += -DINCLUDE_MZSCHEME_BASE
Karsten Hopp 5e85f7
! MZ_EXTRA_DEP += mzscheme_base.c
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! ifeq (yes,$(MZSCHEME_PRECISE_GC))
Karsten Hopp 5e85f7
! DEFINES += -DMZ_PRECISE_GC
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! # DYNAMIC_TCL=yes and no both work.
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! ifdef TCL
Karsten Hopp 5e85f7
! DEFINES += -DFEAT_TCL
Karsten Hopp 5e85f7
! INCLUDES += -I$(TCL)/include
Karsten Hopp 5e85f7
! EXTRA_OBJS += $(OUTDIR)/if_tcl.o
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef DYNAMIC_TCL
Karsten Hopp 5e85f7
! DYNAMIC_TCL = yes
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef TCL_VER
Karsten Hopp 5e85f7
! TCL_VER = 83
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifeq (yes, $(DYNAMIC_TCL))
Karsten Hopp 5e85f7
! DEFINES += -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"tcl$(TCL_VER).dll\"
Karsten Hopp 5e85f7
! EXTRA_LIBS += $(TCL)/lib/tclstub$(TCL_VER).lib
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! EXTRA_LIBS += $(TCL)/lib/tcl$(TCL_VER).lib
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! # DYNAMIC_LUA=yes works.
Karsten Hopp 5e85f7
! # DYNAMIC_LUA=no does not (unresolved externals on link).
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! ifdef LUA
Karsten Hopp 5e85f7
! DEFINES += -DFEAT_LUA
Karsten Hopp 5e85f7
! INCLUDES += -I$(LUA)/include
Karsten Hopp 5e85f7
! EXTRA_OBJS += $(OUTDIR)/if_lua.o
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef DYNAMIC_LUA
Karsten Hopp 5e85f7
! DYNAMIC_LUA = yes
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef LUA_VER
Karsten Hopp 5e85f7
! LUA_VER = 51
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifeq (yes, $(DYNAMIC_LUA))
Karsten Hopp 5e85f7
! DEFINES += -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL=\"lua$(LUA_VER).dll\"
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! EXTRA_LIBS += $(LUA)/lib/lua$(LUA_VER).lib
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! ifeq (yes, $(GETTEXT))
Karsten Hopp 5e85f7
! DEFINES += -DDYNAMIC_GETTEXT
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! ifeq (yes, $(ICONV))
Karsten Hopp 5e85f7
! DEFINES += -DDYNAMIC_ICONV
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! ifeq (yes, $(MBYTE))
Karsten Hopp 5e85f7
! DEFINES += -DFEAT_MBYTE
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! ifeq (yes, $(IME))
Karsten Hopp 5e85f7
! DEFINES += -DFEAT_MBYTE_IME
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef DYNAMIC_IME
Karsten Hopp 5e85f7
! DYNAMIC_IME = yes
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifeq (yes, $(DYNAMIC_IME))
Karsten Hopp 5e85f7
! DEFINES += -DDYNAMIC_IME
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! EXTRA_LIBS += -limm32
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! ifeq (yes, $(DEBUG))
Karsten Hopp 5e85f7
! DEFINES += -DDEBUG
Karsten Hopp 5e85f7
! INCLUDES += -g -fstack-check
Karsten Hopp 5e85f7
! DEBUG_SUFFIX = d
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifeq ($(OPTIMIZE), SIZE)
Karsten Hopp 5e85f7
! OPTFLAG = -Os
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! ifeq ($(OPTIMIZE), MAXSPEED)
Karsten Hopp 5e85f7
! OPTFLAG = -O3 -fomit-frame-pointer -freg-struct-return
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! OPTFLAG = -O2
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! # A bug in the GCC <= 3.2 optimizer can cause a crash.  The
Karsten Hopp 5e85f7
! # following option removes the problem optimization.
Karsten Hopp 5e85f7
! OPTFLAG += -fno-strength-reduce
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! INCLUDES += -s
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! # USEDLL=yes will build a Cygwin32 executable that relies on cygwin1.dll.
Karsten Hopp 5e85f7
! # USEDLL=no will build a Mingw32 executable with no extra dll dependencies.
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! ifeq (yes, $(USEDLL))
Karsten Hopp 5e85f7
! DEFINES += -D_MAX_PATH=256 -D__CYGWIN__
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! ifeq (yes, $(POSTSCRIPT))
Karsten Hopp 5e85f7
! DEFINES += -DMSWINPS
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! ifeq (yes, $(CSCOPE))
Karsten Hopp 5e85f7
! DEFINES += -DFEAT_CSCOPE
Karsten Hopp 5e85f7
! EXTRA_OBJS += $(OUTDIR)/if_cscope.o
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! ifeq ($(GUI),yes)
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! ifeq (yes, $(NETBEANS))
Karsten Hopp 5e85f7
! # Only allow NETBEANS for a GUI build.
Karsten Hopp 5e85f7
! DEFINES += -DFEAT_NETBEANS_INTG
Karsten Hopp 5e85f7
! EXTRA_OBJS += $(OUTDIR)/netbeans.o
Karsten Hopp 5e85f7
! EXTRA_LIBS += -lwsock32
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifeq (yes, $(NBDEBUG))
Karsten Hopp 5e85f7
! DEFINES += -DNBDEBUG
Karsten Hopp 5e85f7
! NBDEBUG_DEP = nbdebug.h nbdebug.c
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! ifeq (yes, $(DIRECTX))
Karsten Hopp 5e85f7
! # Only allow DIRECTX for a GUI build.
Karsten Hopp 5e85f7
! DEFINES += -DFEAT_DIRECTX -DDYNAMIC_DIRECTX
Karsten Hopp 5e85f7
! EXTRA_OBJS += $(OUTDIR)/gui_dwrite.o
Karsten Hopp 5e85f7
! EXTRA_LIBS += -ld2d1 -ldwrite
Karsten Hopp 5e85f7
! USE_STDCPLUS = yes
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! ifndef XPM
Karsten Hopp 5e85f7
! ifeq ($(ARCH),i386)
Karsten Hopp 5e85f7
! XPM = xpm/x86
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! ifeq ($(ARCH),i486)
Karsten Hopp 5e85f7
! XPM = xpm/x86
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! ifeq ($(ARCH),i586)
Karsten Hopp 5e85f7
! XPM = xpm/x86
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! ifeq ($(ARCH),i686)
Karsten Hopp 5e85f7
! XPM = xpm/x86
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! ifeq ($(ARCH),x86-64)
Karsten Hopp 5e85f7
! XPM = xpm/x64
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! ifdef XPM
Karsten Hopp 5e85f7
! ifneq ($(XPM),no)
Karsten Hopp 5e85f7
! # Only allow XPM for a GUI build.
Karsten Hopp 5e85f7
! DEFINES += -DFEAT_XPM_W32
Karsten Hopp 5e85f7
! INCLUDES += -I$(XPM)/include -I$(XPM)/../include
Karsten Hopp 5e85f7
! EXTRA_OBJS += $(OUTDIR)/xpm_w32.o
Karsten Hopp 5e85f7
! EXTRA_LIBS += -L$(XPM)/lib -lXpm
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! EXE = gvim$(DEBUG_SUFFIX).exe
Karsten Hopp 5e85f7
! OUTDIR = gobj$(DEBUG_SUFFIX)
Karsten Hopp 5e85f7
! DEFINES += -DFEAT_GUI_W32 -DFEAT_CLIPBOARD
Karsten Hopp 5e85f7
! EXTRA_OBJS += $(OUTDIR)/gui.o $(OUTDIR)/gui_w32.o $(OUTDIR)/gui_beval.o $(OUTDIR)/os_w32exe.o
Karsten Hopp 5e85f7
! EXTRA_LIBS += -mwindows -lcomctl32 -lversion
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! EXE = vim$(DEBUG_SUFFIX).exe
Karsten Hopp 5e85f7
! OUTDIR = obj$(DEBUG_SUFFIX)
Karsten Hopp 5e85f7
! LIBS += -luser32 -lgdi32 -lcomdlg32
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! ifeq (yes, $(OLE))
Karsten Hopp 5e85f7
! DEFINES += -DFEAT_OLE
Karsten Hopp 5e85f7
! EXTRA_OBJS += $(OUTDIR)/if_ole.o
Karsten Hopp 5e85f7
! EXTRA_LIBS += -loleaut32
Karsten Hopp 5e85f7
! USE_STDCPLUS = yes
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! ifneq (sh.exe, $(SHELL))
Karsten Hopp 5e85f7
! DEL = rm
Karsten Hopp 5e85f7
! MKDIR = mkdir -p
Karsten Hopp 5e85f7
! DIRSLASH = /
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! DEL = del
Karsten Hopp 5e85f7
! MKDIR = mkdir
Karsten Hopp 5e85f7
! DIRSLASH = \\
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ##############################
Karsten Hopp 5e85f7
! ifeq (yes, $(USE_STDCPLUS))
Karsten Hopp 5e85f7
! ifeq (yes, $(STATIC_STDCPLUS))
Karsten Hopp 5e85f7
! EXTRA_LIBS += -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! EXTRA_LIBS += -lstdc++
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! #>>>>> end of choices
Karsten Hopp 5e85f7
! ###########################################################################
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! INCL = vim.h globals.h option.h keymap.h macros.h ascii.h term.h os_win32.h \
Karsten Hopp 5e85f7
!        structs.h version.h
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! CFLAGS = $(OPTFLAG) $(DEFINES) $(INCLUDES)
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! RCFLAGS = -O coff $(DEFINES)
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! OBJ = \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/blowfish.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/buffer.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/charset.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/crypt.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/crypt_zip.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/diff.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/digraph.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/edit.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/eval.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/ex_cmds.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/ex_cmds2.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/ex_docmd.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/ex_eval.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/ex_getln.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/fileio.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/fold.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/getchar.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/hardcopy.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/hashtab.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/main.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/mark.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/memfile.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/memline.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/menu.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/message.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/misc1.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/misc2.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/move.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/mbyte.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/normal.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/ops.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/option.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/os_win32.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/os_mswin.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/winclip.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/pathdef.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/popupmnu.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/quickfix.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/regexp.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/screen.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/search.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/sha256.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/spell.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/syntax.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/tag.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/term.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/ui.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/undo.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/version.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/vimrc.o \
Karsten Hopp 5e85f7
! 	$(OUTDIR)/window.o \
Karsten Hopp 5e85f7
! 	$(EXTRA_OBJS)
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! all: $(EXE) xxd/xxd.exe vimrun.exe install.exe uninstal.exe GvimExt/gvimext.dll
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! # According to the Cygwin doc 1.2 FAQ, kernel32 should not be specified for
Karsten Hopp 5e85f7
! # linking unless calling ld directly.
Karsten Hopp 5e85f7
! # See /usr/doc/cygwin-doc-1.2/html/faq_toc.html#TOC93 for more information.
Karsten Hopp 5e85f7
! $(EXE): $(OUTDIR) $(OBJ)
Karsten Hopp 5e85f7
! 	$(CC) $(CFLAGS) -o $(EXE) $(OBJ) $(LIBS) -luuid -lole32 $(EXTRA_LIBS)
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! xxd/xxd.exe: xxd/xxd.c
Karsten Hopp 5e85f7
! 	$(MAKE) -C xxd -f Make_cyg.mak CC=$(CC) USEDLL=$(USEDLL)
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
Karsten Hopp 5e85f7
! 	$(MAKE) -C GvimExt -f Make_cyg.mak CROSS_COMPILE=$(CROSS_COMPILE)
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! vimrun.exe: vimrun.c
Karsten Hopp 5e85f7
! 	$(CC) $(CFLAGS) -o vimrun.exe vimrun.c  $(LIBS)
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! install.exe: dosinst.c
Karsten Hopp 5e85f7
! 	$(CC) $(CFLAGS) -o install.exe dosinst.c  $(LIBS) -luuid -lole32
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! uninstal.exe: uninstal.c
Karsten Hopp 5e85f7
! 	$(CC) $(CFLAGS) -o uninstal.exe uninstal.c $(LIBS)
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! $(OUTDIR):
Karsten Hopp 5e85f7
! 	$(MKDIR) $(OUTDIR)
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! tags:
Karsten Hopp 5e85f7
! 	command /c ctags *.c $(INCL)
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! clean:
Karsten Hopp 5e85f7
! 	-$(DEL) $(OUTDIR)$(DIRSLASH)*.o
Karsten Hopp 5e85f7
! 	-rmdir $(OUTDIR)
Karsten Hopp 5e85f7
! 	-$(DEL) $(EXE) vimrun.exe install.exe uninstal.exe
Karsten Hopp 5e85f7
! ifdef PERL
Karsten Hopp 5e85f7
! 	-$(DEL) if_perl.c
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! ifdef MZSCHEME
Karsten Hopp 5e85f7
! 	-$(DEL) mzscheme_base.c
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 	-$(DEL) pathdef.c
Karsten Hopp 5e85f7
! 	$(MAKE) -C xxd -f Make_cyg.mak clean
Karsten Hopp 5e85f7
! 	$(MAKE) -C GvimExt -f Make_cyg.mak clean
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! distclean: clean
Karsten Hopp 5e85f7
! 	-$(DEL) obj$(DIRSLASH)*.o
Karsten Hopp 5e85f7
! 	-rmdir obj
Karsten Hopp 5e85f7
! 	-$(DEL) gobj$(DIRSLASH)*.o
Karsten Hopp 5e85f7
! 	-rmdir gobj
Karsten Hopp 5e85f7
! 	-$(DEL) objd$(DIRSLASH)*.o
Karsten Hopp 5e85f7
! 	-rmdir objd
Karsten Hopp 5e85f7
! 	-$(DEL) gobjd$(DIRSLASH)*.o
Karsten Hopp 5e85f7
! 	-rmdir gobjd
Karsten Hopp 5e85f7
! 	-$(DEL) *.exe
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ###########################################################################
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! $(OUTDIR)/%.o : %.c $(INCL)
Karsten Hopp 5e85f7
! 	$(CC) -c $(CFLAGS) $< -o $@
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! $(OUTDIR)/ex_docmd.o:	ex_docmd.c $(INCL) ex_cmds.h
Karsten Hopp 5e85f7
! 	$(CC) -c $(CFLAGS) ex_docmd.c -o $(OUTDIR)/ex_docmd.o
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! $(OUTDIR)/ex_eval.o:	ex_eval.c $(INCL) ex_cmds.h
Karsten Hopp 5e85f7
! 	$(CC) -c $(CFLAGS) ex_eval.c -o $(OUTDIR)/ex_eval.o
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! $(OUTDIR)/gui_w32.o:	gui_w32.c gui_w48.c $(INCL)
Karsten Hopp 5e85f7
! 	$(CC) -c $(CFLAGS) gui_w32.c -o $(OUTDIR)/gui_w32.o
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! $(OUTDIR)/gui_dwrite.o:	gui_dwrite.cpp $(INCL) gui_dwrite.h
Karsten Hopp 5e85f7
! 	$(CC) -c $(CFLAGS) gui_dwrite.cpp -o $(OUTDIR)/gui_dwrite.o
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! $(OUTDIR)/if_cscope.o:	if_cscope.c $(INCL) if_cscope.h
Karsten Hopp 5e85f7
! 	$(CC) -c $(CFLAGS) if_cscope.c -o $(OUTDIR)/if_cscope.o
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! $(OUTDIR)/if_ole.o:	if_ole.cpp $(INCL)
Karsten Hopp 5e85f7
! 	$(CC) -c $(CFLAGS) if_ole.cpp -o $(OUTDIR)/if_ole.o
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! $(OUTDIR)/if_python.o : if_python.c if_py_both.h $(INCL)
Karsten Hopp 5e85f7
! 	$(CC) -c $(CFLAGS) -I$(PYTHON)/include $< -o $@
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! $(OUTDIR)/if_python3.o : if_python3.c if_py_both.h $(INCL)
Karsten Hopp 5e85f7
! 	$(CC) -c $(CFLAGS) -I$(PYTHON3)/include $< -o $@
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! if_perl.c: if_perl.xs typemap
Karsten Hopp 5e85f7
! 	$(PERL)/bin/perl `cygpath -d $(PERL)/lib/ExtUtils/xsubpp` \
Karsten Hopp 5e85f7
! 		-prototypes -typemap \
Karsten Hopp 5e85f7
! 		`cygpath -d $(PERL)/lib/ExtUtils/typemap` if_perl.xs > $@
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! $(OUTDIR)/if_perl.o:	if_perl.c $(INCL)
Karsten Hopp 5e85f7
! ifeq (yes, $(USEDLL))
Karsten Hopp 5e85f7
! 	$(CC) -c $(CFLAGS) -I/usr/include/mingw -D__MINGW32__ if_perl.c -o $(OUTDIR)/if_perl.o
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! $(OUTDIR)/if_ruby.o:	if_ruby.c $(INCL)
Karsten Hopp 5e85f7
! ifeq (16, $(RUBY_VER))
Karsten Hopp 5e85f7
! 	$(CC) -c $(CFLAGS) -U_WIN32 if_ruby.c -o $(OUTDIR)/if_ruby.o
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! $(OUTDIR)/netbeans.o:	netbeans.c $(INCL) $(NBDEBUG_DEP)
Karsten Hopp 5e85f7
! 	$(CC) -c $(CFLAGS) netbeans.c -o $(OUTDIR)/netbeans.o
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! $(OUTDIR)/regexp.o:		regexp.c regexp_nfa.c $(INCL)
Karsten Hopp 5e85f7
! 	$(CC) -c $(CFLAGS) regexp.c -o $(OUTDIR)/regexp.o
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! $(OUTDIR)/if_mzsch.o:	if_mzsch.c $(INCL) if_mzsch.h $(MZ_EXTRA_DEP)
Karsten Hopp 5e85f7
! 	$(CC) -c $(CFLAGS) if_mzsch.c -o $(OUTDIR)/if_mzsch.o
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! $(OUTDIR)/vimrc.o:	vim.rc version.h gui_w32_rc.h
Karsten Hopp 5e85f7
! 	$(RC) $(RCFLAGS) vim.rc -o $(OUTDIR)/vimrc.o
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! mzscheme_base.c:
Karsten Hopp 5e85f7
! 	$(MZSCHEME)/mzc --c-mods mzscheme_base.c ++lib scheme/base
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! pathdef.c: $(INCL)
Karsten Hopp 5e85f7
! ifneq (sh.exe, $(SHELL))
Karsten Hopp 5e85f7
! 	@echo creating pathdef.c
Karsten Hopp 5e85f7
! 	@echo '/* pathdef.c */' > pathdef.c
Karsten Hopp 5e85f7
! 	@echo '#include "vim.h"' >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo 'char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)";' >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo 'char_u *all_lflags = (char_u *)"$(CC) -s -o $(EXE) $(LIBS) -luuid -lole32 $(EXTRA_LIBS)";' >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo 'char_u *compiled_user = (char_u *)"$(USERNAME)";' >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo 'char_u *compiled_sys = (char_u *)"$(USERDOMAIN)";' >> pathdef.c
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! 	@echo creating pathdef.c
Karsten Hopp 5e85f7
! 	@echo /* pathdef.c */ > pathdef.c
Karsten Hopp 5e85f7
! 	@echo #include "vim.h" >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)"; >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)"; >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)"; >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo char_u *all_lflags = (char_u *)"$(CC) -s -o $(EXE) $(LIBS) -luuid -lole32 $(EXTRA_LIBS)"; >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo char_u *compiled_user = (char_u *)"$(USERNAME)"; >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> pathdef.c
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
--- 1,52 ----
Karsten Hopp 5e85f7
  #
Karsten Hopp 5e85f7
! # Makefile for VIM on Win32, using MinGW cross compiler on Cygwin
Karsten Hopp 5e85f7
  #
Karsten Hopp 5e85f7
  # Also read INSTALLpc.txt!
Karsten Hopp 5e85f7
  #
Karsten Hopp 5e85f7
  # This compiles Vim as a Windows application.  If you want Vim to run as a
Karsten Hopp 5e85f7
  # Cygwin application use the Makefile (just like on Unix).
Karsten Hopp 5e85f7
  #
Karsten Hopp 5e85f7
! # The old Make_cyg.mak (maintained by Dan Sharp et al.) was merged into
Karsten Hopp 5e85f7
! # Make_cyg_ming.mak.  Note: USEDLL option was removed.
Karsten Hopp 5e85f7
! # This file contains Cygwin specific settings. Common settings are contained
Karsten Hopp 5e85f7
! # in Make_cyg_ming.mak.
Karsten Hopp 5e85f7
! #
Karsten Hopp 5e85f7
! # Last updated by Ken Takata.
Karsten Hopp 5e85f7
! # Last Change: 2014 Oct 21
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! # uncomment 'PERL' if you want a perl-enabled version
Karsten Hopp 5e85f7
! #PERL=/cygdrive/c/perl
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! # uncomment 'LUA' if you want a Lua-enabled version
Karsten Hopp 5e85f7
! #LUA=/cygdrive/c/lua
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! # uncomment 'MZSCHEME' if you want a MzScheme-enabled version
Karsten Hopp 5e85f7
! #MZSCHEME=/cygdrive/d/plt
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! # uncomment 'PYTHON' if you want a python-enabled version
Karsten Hopp 5e85f7
! #PYTHON=/cygdrive/c/python20
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! # uncomment 'PYTHON3' if you want a python3-enabled version
Karsten Hopp 5e85f7
! #PYTHON3=/cygdrive/c/python31
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! # uncomment 'TCL' if you want a Tcl-enabled version
Karsten Hopp 5e85f7
! #TCL=/cygdrive/c/tcl
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! # uncomment 'RUBY' if you want a Ruby-enabled version
Karsten Hopp 5e85f7
! #RUBY=/cygdribe/c/ruby
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! # Use MinGW(-w64) cross compiler.
Karsten Hopp 5e85f7
! # There are three MinGW packages in Cygwin:
Karsten Hopp 5e85f7
! #   32-bit: mingw-gcc-g++ and mingw64-i686-gcc-g++
Karsten Hopp 5e85f7
! #   64-bit: mingw64-x86_64-gcc-g++
Karsten Hopp 5e85f7
! # You may also need to set 'ARCH' in Make_cyg_ming.mak.
Karsten Hopp 5e85f7
  CROSS_COMPILE = i686-pc-mingw32-
Karsten Hopp 5e85f7
! #CROSS_COMPILE = i686-w64-mingw32-
Karsten Hopp 5e85f7
! #CROSS_COMPILE = x86_64-w64-mingw32-
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
+ # Do not change this.
Karsten Hopp 5e85f7
+ UNDER_CYGWIN = yes
Karsten Hopp 5e85f7
+ include Make_cyg_ming.mak
Karsten Hopp 5e85f7
*** ../vim-7.4.495/src/Make_cyg_ming.mak	2014-11-05 13:51:13.916809371 +0100
Karsten Hopp 5e85f7
--- src/Make_cyg_ming.mak	2014-11-05 13:49:27.076811946 +0100
Karsten Hopp 5e85f7
***************
Karsten Hopp 5e85f7
*** 0 ****
Karsten Hopp 5e85f7
--- 1,847 ----
Karsten Hopp 5e85f7
+ # Makefile for VIM on Win32 (Cygwin and MinGW)
Karsten Hopp 5e85f7
+ #
Karsten Hopp 5e85f7
+ # This file contains common part for Cygwin and MinGW and it is included
Karsten Hopp 5e85f7
+ # from Make_cyg.mak and Make_ming.mak.
Karsten Hopp 5e85f7
+ #
Karsten Hopp 5e85f7
+ # Info at http://www.mingw.org
Karsten Hopp 5e85f7
+ # Alternative x86 and 64-builds: http://mingw-w64.sourceforge.net
Karsten Hopp 5e85f7
+ # Also requires GNU make, which you can download from the same sites.
Karsten Hopp 5e85f7
+ # Get missing libraries from http://gnuwin32.sf.net.
Karsten Hopp 5e85f7
+ #
Karsten Hopp 5e85f7
+ # Tested on Win32 NT 4 and Win95.
Karsten Hopp 5e85f7
+ #
Karsten Hopp 5e85f7
+ # To make everything, just 'make -f Make_ming.mak'.
Karsten Hopp 5e85f7
+ # To make just e.g. gvim.exe, 'make -f Make_ming.mak gvim.exe'.
Karsten Hopp 5e85f7
+ # After a run, you can 'make -f Make_ming.mak clean' to clean up.
Karsten Hopp 5e85f7
+ #
Karsten Hopp 5e85f7
+ # NOTE: Sometimes 'GNU Make' will stop after building vimrun.exe -- I think
Karsten Hopp 5e85f7
+ # it's just run out of memory or something.  Run again, and it will continue
Karsten Hopp 5e85f7
+ # with 'xxd'.
Karsten Hopp 5e85f7
+ #
Karsten Hopp 5e85f7
+ # "make upx" makes *compressed* versions of the 32 bit GUI and console EXEs,
Karsten Hopp 5e85f7
+ # using the excellent UPX compressor:
Karsten Hopp 5e85f7
+ #     http://upx.sourceforge.net/
Karsten Hopp 5e85f7
+ # "make mpress" uses the MPRESS compressor for 32- and 64-bit EXEs:
Karsten Hopp 5e85f7
+ #     http://www.matcode.com/mpress.htm
Karsten Hopp 5e85f7
+ #
Karsten Hopp 5e85f7
+ # Maintained by Ron Aaron <ronaharon@yahoo.com> et al.
Karsten Hopp 5e85f7
+ # Updated 2014 Oct 13.
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ #>>>>> choose options:
Karsten Hopp 5e85f7
+ # set to yes for a debug build
Karsten Hopp 5e85f7
+ DEBUG=no
Karsten Hopp 5e85f7
+ # set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization
Karsten Hopp 5e85f7
+ OPTIMIZE=MAXSPEED
Karsten Hopp 5e85f7
+ # set to yes to make gvim, no for vim
Karsten Hopp 5e85f7
+ GUI=yes
Karsten Hopp 5e85f7
+ # set to yes if you want to use DirectWrite (DirectX)
Karsten Hopp 5e85f7
+ # MinGW-w64 is needed, and ARCH should be set to i686 or x86-64.
Karsten Hopp 5e85f7
+ DIRECTX=no
Karsten Hopp 5e85f7
+ # FEATURES=[TINY | SMALL | NORMAL | BIG | HUGE]
Karsten Hopp 5e85f7
+ # Set to TINY to make minimal version (few features).
Karsten Hopp 5e85f7
+ FEATURES=BIG
Karsten Hopp 5e85f7
+ # Set to one of i386, i486, i586, i686 as the minimum target processor.
Karsten Hopp 5e85f7
+ # For amd64/x64 architecture set ARCH=x86-64 .
Karsten Hopp 5e85f7
+ ARCH=i386
Karsten Hopp 5e85f7
+ # Set to yes to cross-compile from unix; no=native Windows (and Cygwin).
Karsten Hopp 5e85f7
+ CROSS=no
Karsten Hopp 5e85f7
+ # Set to path to iconv.h and libiconv.a to enable using 'iconv.dll'.
Karsten Hopp 5e85f7
+ #ICONV="."
Karsten Hopp 5e85f7
+ ICONV=yes
Karsten Hopp 5e85f7
+ GETTEXT=yes
Karsten Hopp 5e85f7
+ # Set to yes to include multibyte support.
Karsten Hopp 5e85f7
+ MBYTE=yes
Karsten Hopp 5e85f7
+ # Set to yes to include IME support.
Karsten Hopp 5e85f7
+ IME=yes
Karsten Hopp 5e85f7
+ DYNAMIC_IME=yes
Karsten Hopp 5e85f7
+ # Set to yes to enable writing a postscript file with :hardcopy.
Karsten Hopp 5e85f7
+ POSTSCRIPT=no
Karsten Hopp 5e85f7
+ # Set to yes to enable OLE support.
Karsten Hopp 5e85f7
+ OLE=no
Karsten Hopp 5e85f7
+ # Set the default $(WINVER) to make it work with pre-Win2k.
Karsten Hopp 5e85f7
+ ifndef WINVER
Karsten Hopp 5e85f7
+ WINVER = 0x0500
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ # Set to yes to enable Cscope support.
Karsten Hopp 5e85f7
+ CSCOPE=yes
Karsten Hopp 5e85f7
+ # Set to yes to enable Netbeans support.
Karsten Hopp 5e85f7
+ NETBEANS=$(GUI)
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ # Link against the shared version of libstdc++ by default.  Set
Karsten Hopp 5e85f7
+ # STATIC_STDCPLUS to "yes" to link against static version instead.
Karsten Hopp 5e85f7
+ ifndef STATIC_STDCPLUS
Karsten Hopp 5e85f7
+ STATIC_STDCPLUS=no
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ # If the user doesn't want gettext, undefine it.
Karsten Hopp 5e85f7
+ ifeq (no, $(GETTEXT))
Karsten Hopp 5e85f7
+ GETTEXT=
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ # Added by E.F. Amatria <eferna1@platea.ptic.mec.es> 2001 Feb 23
Karsten Hopp 5e85f7
+ # Uncomment the first line and one of the following three if you want Native Language
Karsten Hopp 5e85f7
+ # Support.  You'll need gnu_gettext.win32, a MINGW32 Windows PORT of gettext by
Karsten Hopp 5e85f7
+ # Franco Bez <franco.bez@gmx.de>.  It may be found at
Karsten Hopp 5e85f7
+ # http://home.a-city.de/franco.bez/gettext/gettext_win32_en.html
Karsten Hopp 5e85f7
+ # Tested with mingw32 with GCC-2.95.2 on Win98
Karsten Hopp 5e85f7
+ # Updated 2001 Jun 9
Karsten Hopp 5e85f7
+ #GETTEXT=c:/gettext.win32.msvcrt
Karsten Hopp 5e85f7
+ #STATIC_GETTEXT=USE_STATIC_GETTEXT
Karsten Hopp 5e85f7
+ #DYNAMIC_GETTEXT=USE_GETTEXT_DLL
Karsten Hopp 5e85f7
+ #DYNAMIC_GETTEXT=USE_SAFE_GETTEXT_DLL
Karsten Hopp 5e85f7
+ SAFE_GETTEXT_DLL_OBJ = $(GETTEXT)/src/safe_gettext_dll/safe_gettext_dll.o
Karsten Hopp 5e85f7
+ # Alternatively, if you uncomment the two following lines, you get a "safe" version
Karsten Hopp 5e85f7
+ # without linking the safe_gettext_dll.o object file.
Karsten Hopp 5e85f7
+ #DYNAMIC_GETTEXT=DYNAMIC_GETTEXT
Karsten Hopp 5e85f7
+ #GETTEXT_DYNAMIC=gnu_gettext.dll
Karsten Hopp 5e85f7
+ INTLPATH=$(GETTEXT)/lib/mingw32
Karsten Hopp 5e85f7
+ INTLLIB=gnu_gettext
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ # If you are using gettext-0.10.35 from http://sourceforge.net/projects/gettext
Karsten Hopp 5e85f7
+ # or gettext-0.10.37 from http://sourceforge.net/projects/mingwrep/
Karsten Hopp 5e85f7
+ # uncomment the following, but I can't build a static version with them, ?-(|
Karsten Hopp 5e85f7
+ #GETTEXT=c:/gettext-0.10.37-20010430
Karsten Hopp 5e85f7
+ #STATIC_GETTEXT=USE_STATIC_GETTEXT
Karsten Hopp 5e85f7
+ #DYNAMIC_GETTEXT=DYNAMIC_GETTEXT
Karsten Hopp 5e85f7
+ #INTLPATH=$(GETTEXT)/lib
Karsten Hopp 5e85f7
+ #INTLLIB=intl
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ #	Perl interface:
Karsten Hopp 5e85f7
+ #	  PERL=[Path to Perl directory] (Set inside Make_cyg.mak or Make_ming.mak)
Karsten Hopp 5e85f7
+ #	  DYNAMIC_PERL=yes (to load the Perl DLL dynamically)
Karsten Hopp 5e85f7
+ #	  PERL_VER=[Perl version, eg 56, 58, 510] (default is 56)
Karsten Hopp 5e85f7
+ ifdef PERL
Karsten Hopp 5e85f7
+ ifndef PERL_VER
Karsten Hopp 5e85f7
+ PERL_VER=56
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifndef DYNAMIC_PERL
Karsten Hopp 5e85f7
+ DYNAMIC_PERL=yes
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ # on Linux, for cross-compile, it's here:
Karsten Hopp 5e85f7
+ #PERLLIB=/home/ron/ActivePerl/lib
Karsten Hopp 5e85f7
+ # on NT, it's here:
Karsten Hopp 5e85f7
+ PERLEXE=$(PERL)/bin/perl
Karsten Hopp 5e85f7
+ PERLLIB=$(PERL)/lib
Karsten Hopp 5e85f7
+ PERLLIBS=$(PERLLIB)/Core
Karsten Hopp 5e85f7
+ ifeq ($(UNDER_CYGWIN),yes)
Karsten Hopp 5e85f7
+ PERLTYPEMAP:=$(shell cygpath -m $(PERLLIB)/ExtUtils/typemap)
Karsten Hopp 5e85f7
+ XSUBPPTRY:=$(shell cygpath -m $(PERLLIB)/ExtUtils/xsubpp)
Karsten Hopp 5e85f7
+ else
Karsten Hopp 5e85f7
+ PERLTYPEMAP=$(PERLLIB)/ExtUtils/typemap
Karsten Hopp 5e85f7
+ XSUBPPTRY=$(PERLLIB)/ExtUtils/xsubpp
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ XSUBPP_EXISTS=$(shell $(PERLEXE) -e "print 1 unless -e '$(XSUBPPTRY)'")
Karsten Hopp 5e85f7
+ ifeq "$(XSUBPP_EXISTS)" ""
Karsten Hopp 5e85f7
+ XSUBPP=$(PERLEXE) "$(XSUBPPTRY)"
Karsten Hopp 5e85f7
+ else
Karsten Hopp 5e85f7
+ XSUBPP=xsubpp
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ #	Lua interface:
Karsten Hopp 5e85f7
+ #	  LUA=[Path to Lua directory] (Set inside Make_cyg.mak or Make_ming.mak)
Karsten Hopp 5e85f7
+ #	  DYNAMIC_LUA=yes (to load the Lua DLL dynamically)
Karsten Hopp 5e85f7
+ #	  LUA_VER=[Lua version, eg 51, 52] (default is 51)
Karsten Hopp 5e85f7
+ ifdef LUA
Karsten Hopp 5e85f7
+ ifndef DYNAMIC_LUA
Karsten Hopp 5e85f7
+ DYNAMIC_LUA=yes
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifndef LUA_VER
Karsten Hopp 5e85f7
+ LUA_VER=51
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifeq (no,$(DYNAMIC_LUA))
Karsten Hopp 5e85f7
+ LUA_LIB = -L$(LUA)/lib -llua
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ #	MzScheme interface:
Karsten Hopp 5e85f7
+ #	  MZSCHEME=[Path to MzScheme directory] (Set inside Make_cyg.mak or Make_ming.mak)
Karsten Hopp 5e85f7
+ #	  DYNAMIC_MZSCHEME=yes (to load the MzScheme DLL dynamically)
Karsten Hopp 5e85f7
+ #	  MZSCHEME_VER=[MzScheme version] (default is 205_000)
Karsten Hopp 5e85f7
+ #	  MZSCHEME_DEBUG=no
Karsten Hopp 5e85f7
+ ifdef MZSCHEME
Karsten Hopp 5e85f7
+ ifndef DYNAMIC_MZSCHEME
Karsten Hopp 5e85f7
+ DYNAMIC_MZSCHEME=yes
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifndef MZSCHEME_VER
Karsten Hopp 5e85f7
+ MZSCHEME_VER=205_000
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifndef MZSCHEME_PRECISE_GC
Karsten Hopp 5e85f7
+ MZSCHEME_PRECISE_GC=no
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ # for version 4.x we need to generate byte-code for Scheme base
Karsten Hopp 5e85f7
+ ifndef MZSCHEME_GENERATE_BASE
Karsten Hopp 5e85f7
+ MZSCHEME_GENERATE_BASE=no
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifndef MZSCHEME_USE_RACKET
Karsten Hopp 5e85f7
+ MZSCHEME_MAIN_LIB=mzsch
Karsten Hopp 5e85f7
+ else
Karsten Hopp 5e85f7
+ MZSCHEME_MAIN_LIB=racket
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifeq (no,$(DYNAMIC_MZSCHEME))
Karsten Hopp 5e85f7
+ ifeq (yes,$(MZSCHEME_PRECISE_GC))
Karsten Hopp 5e85f7
+ MZSCHEME_LIB=-l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER)
Karsten Hopp 5e85f7
+ else
Karsten Hopp 5e85f7
+ MZSCHEME_LIB = -l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER) -lmzgc$(MZSCHEME_VER)
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ # the modern MinGW can dynamically link to dlls directly.
Karsten Hopp 5e85f7
+ # point MZSCHEME_DLLS to where you put libmzschXXXXXXX.dll and libgcXXXXXXX.dll
Karsten Hopp 5e85f7
+ ifndef MZSCHEME_DLLS
Karsten Hopp 5e85f7
+ MZSCHEME_DLLS=$(MZSCHEME)
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ MZSCHEME_LIBDIR=-L$(MZSCHEME_DLLS) -L$(MZSCHEME_DLLS)\lib
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ #	Python interface:
Karsten Hopp 5e85f7
+ #	  PYTHON=[Path to Python directory] (Set inside Make_cyg.mak or Make_ming.mak)
Karsten Hopp 5e85f7
+ #	  DYNAMIC_PYTHON=yes (to load the Python DLL dynamically)
Karsten Hopp 5e85f7
+ #	  PYTHON_VER=[Python version, eg 22, 23, ..., 27] (default is 22)
Karsten Hopp 5e85f7
+ ifdef PYTHON
Karsten Hopp 5e85f7
+ ifndef DYNAMIC_PYTHON
Karsten Hopp 5e85f7
+ DYNAMIC_PYTHON=yes
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifndef PYTHON_VER
Karsten Hopp 5e85f7
+ PYTHON_VER=22
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifeq (no,$(DYNAMIC_PYTHON))
Karsten Hopp 5e85f7
+ PYTHONLIB=-L$(PYTHON)/libs -lpython$(PYTHON_VER)
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ # my include files are in 'win32inc' on Linux, and 'include' in the standard
Karsten Hopp 5e85f7
+ # NT distro (ActiveState)
Karsten Hopp 5e85f7
+ ifeq ($(CROSS),no)
Karsten Hopp 5e85f7
+ PYTHONINC=-I $(PYTHON)/include
Karsten Hopp 5e85f7
+ else
Karsten Hopp 5e85f7
+ PYTHONINC=-I $(PYTHON)/win32inc
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ #	Python3 interface:
Karsten Hopp 5e85f7
+ #	  PYTHON3=[Path to Python3 directory] (Set inside Make_cyg.mak or Make_ming.mak)
Karsten Hopp 5e85f7
+ #	  DYNAMIC_PYTHON3=yes (to load the Python3 DLL dynamically)
Karsten Hopp 5e85f7
+ #	  PYTHON3_VER=[Python3 version, eg 31, 32] (default is 31)
Karsten Hopp 5e85f7
+ ifdef PYTHON3
Karsten Hopp 5e85f7
+ ifndef DYNAMIC_PYTHON3
Karsten Hopp 5e85f7
+ DYNAMIC_PYTHON3=yes
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifndef PYTHON3_VER
Karsten Hopp 5e85f7
+ PYTHON3_VER=31
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifeq (no,$(DYNAMIC_PYTHON3))
Karsten Hopp 5e85f7
+ PYTHON3LIB=-L$(PYTHON3)/libs -lPYTHON$(PYTHON3_VER)
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifeq ($(CROSS),no)
Karsten Hopp 5e85f7
+ PYTHON3INC=-I $(PYTHON3)/include
Karsten Hopp 5e85f7
+ else
Karsten Hopp 5e85f7
+ PYTHON3INC=-I $(PYTHON3)/win32inc
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ #	TCL interface:
Karsten Hopp 5e85f7
+ #	  TCL=[Path to TCL directory] (Set inside Make_cyg.mak or Make_ming.mak)
Karsten Hopp 5e85f7
+ #	  DYNAMIC_TCL=yes (to load the TCL DLL dynamically)
Karsten Hopp 5e85f7
+ #	  TCL_VER=[TCL version, eg 83, 84] (default is 83)
Karsten Hopp 5e85f7
+ ifdef TCL
Karsten Hopp 5e85f7
+ ifndef DYNAMIC_TCL
Karsten Hopp 5e85f7
+ DYNAMIC_TCL=yes
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifndef TCL_VER
Karsten Hopp 5e85f7
+ TCL_VER = 83
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ TCLINC += -I$(TCL)/include
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ #	Ruby interface:
Karsten Hopp 5e85f7
+ #	  RUBY=[Path to Ruby directory] (Set inside Make_cyg.mak or Make_ming.mak)
Karsten Hopp 5e85f7
+ #	  DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically)
Karsten Hopp 5e85f7
+ #	  RUBY_VER=[Ruby version, eg 18, 19, 20] (default is 18)
Karsten Hopp 5e85f7
+ #	  RUBY_VER_LONG=[Ruby version, eg 1.8, 1.9.1, 2.0.0] (default is 1.8)
Karsten Hopp 5e85f7
+ #	    You must set RUBY_VER_LONG when changing RUBY_VER.
Karsten Hopp 5e85f7
+ #	    RUBY_API_VER is derived from RUBY_VER_LONG.
Karsten Hopp 5e85f7
+ #	    Note: If you use Ruby 1.9.3, set as follows:
Karsten Hopp 5e85f7
+ #	      RUBY_VER=19
Karsten Hopp 5e85f7
+ #	      RUBY_VER_LONG=1.9.1 (not 1.9.3, because the API version is 1.9.1.)
Karsten Hopp 5e85f7
+ ifdef RUBY
Karsten Hopp 5e85f7
+ ifndef DYNAMIC_RUBY
Karsten Hopp 5e85f7
+ DYNAMIC_RUBY=yes
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ #  Set default value
Karsten Hopp 5e85f7
+ ifndef RUBY_VER
Karsten Hopp 5e85f7
+ RUBY_VER = 18
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifndef RUBY_VER_LONG
Karsten Hopp 5e85f7
+ RUBY_VER_LONG = 1.8
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifndef RUBY_API_VER
Karsten Hopp 5e85f7
+ RUBY_API_VER = $(subst .,,$(RUBY_VER_LONG))
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifndef RUBY_PLATFORM
Karsten Hopp 5e85f7
+ ifeq ($(RUBY_VER), 16)
Karsten Hopp 5e85f7
+ RUBY_PLATFORM = i586-mswin32
Karsten Hopp 5e85f7
+ else
Karsten Hopp 5e85f7
+ ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/i386-mingw32),)
Karsten Hopp 5e85f7
+ RUBY_PLATFORM = i386-mingw32
Karsten Hopp 5e85f7
+ else
Karsten Hopp 5e85f7
+ ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/x64-mingw32),)
Karsten Hopp 5e85f7
+ RUBY_PLATFORM = x64-mingw32
Karsten Hopp 5e85f7
+ else
Karsten Hopp 5e85f7
+ RUBY_PLATFORM = i386-mswin32
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifndef RUBY_INSTALL_NAME
Karsten Hopp 5e85f7
+ ifeq ($(RUBY_VER), 16)
Karsten Hopp 5e85f7
+ RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_API_VER)
Karsten Hopp 5e85f7
+ else
Karsten Hopp 5e85f7
+ ifeq ($(ARCH),x86-64)
Karsten Hopp 5e85f7
+ RUBY_INSTALL_NAME = x64-msvcrt-ruby$(RUBY_API_VER)
Karsten Hopp 5e85f7
+ else
Karsten Hopp 5e85f7
+ RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_API_VER)
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifeq (19, $(word 1,$(sort 19 $(RUBY_VER))))
Karsten Hopp 5e85f7
+ RUBY_19_OR_LATER = 1
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ RUBYINC = -I $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
Karsten Hopp 5e85f7
+ ifdef RUBY_19_OR_LATER
Karsten Hopp 5e85f7
+ RUBYINC += -I $(RUBY)/include/ruby-$(RUBY_VER_LONG) -I $(RUBY)/include/ruby-$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifeq (no, $(DYNAMIC_RUBY))
Karsten Hopp 5e85f7
+ RUBYLIB = -L$(RUBY)/lib -l$(RUBY_INSTALL_NAME)
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ endif # RUBY
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ # See feature.h for a list of options.
Karsten Hopp 5e85f7
+ # Any other defines can be included here.
Karsten Hopp 5e85f7
+ DEF_GUI=-DFEAT_GUI_W32 -DFEAT_CLIPBOARD
Karsten Hopp 5e85f7
+ DEFINES=-DWIN32 -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) \
Karsten Hopp 5e85f7
+ 	-DHAVE_PATHDEF -DFEAT_$(FEATURES)
Karsten Hopp 5e85f7
+ ifeq ($(ARCH),x86-64)
Karsten Hopp 5e85f7
+ DEFINES+=-DMS_WIN64
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifeq ($(CROSS),yes)
Karsten Hopp 5e85f7
+ # cross-compiler prefix:
Karsten Hopp 5e85f7
+ ifndef CROSS_COMPILE
Karsten Hopp 5e85f7
+ CROSS_COMPILE = i586-pc-mingw32msvc-
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ DEL = rm
Karsten Hopp 5e85f7
+ MKDIR = mkdir -p
Karsten Hopp 5e85f7
+ DIRSLASH = /
Karsten Hopp 5e85f7
+ else
Karsten Hopp 5e85f7
+ # normal (Windows) compilation:
Karsten Hopp 5e85f7
+ ifndef CROSS_COMPILE
Karsten Hopp 5e85f7
+ CROSS_COMPILE =
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifneq (sh.exe, $(SHELL))
Karsten Hopp 5e85f7
+ DEL = rm
Karsten Hopp 5e85f7
+ MKDIR = mkdir -p
Karsten Hopp 5e85f7
+ DIRSLASH = /
Karsten Hopp 5e85f7
+ else
Karsten Hopp 5e85f7
+ DEL = del
Karsten Hopp 5e85f7
+ MKDIR = mkdir
Karsten Hopp 5e85f7
+ DIRSLASH = \\
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ CC := $(CROSS_COMPILE)gcc
Karsten Hopp 5e85f7
+ CXX := $(CROSS_COMPILE)g++
Karsten Hopp 5e85f7
+ WINDRES := $(CROSS_COMPILE)windres
Karsten Hopp 5e85f7
+ WINDRES_CC = $(CC)
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ #>>>>> end of choices
Karsten Hopp 5e85f7
+ ###########################################################################
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ CFLAGS = -Iproto $(DEFINES) -pipe -w -march=$(ARCH) -Wall
Karsten Hopp 5e85f7
+ WINDRES_FLAGS = --preprocessor="$(WINDRES_CC) -E -xc" -DRC_INVOKED
Karsten Hopp 5e85f7
+ EXTRA_LIBS =
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifdef GETTEXT
Karsten Hopp 5e85f7
+ DEFINES += -DHAVE_GETTEXT -DHAVE_LOCALE_H
Karsten Hopp 5e85f7
+ GETTEXTINCLUDE = $(GETTEXT)/include
Karsten Hopp 5e85f7
+ GETTEXTLIB = $(INTLPATH)
Karsten Hopp 5e85f7
+ ifeq (yes, $(GETTEXT))
Karsten Hopp 5e85f7
+ DEFINES += -DDYNAMIC_GETTEXT
Karsten Hopp 5e85f7
+ else
Karsten Hopp 5e85f7
+ ifdef DYNAMIC_GETTEXT
Karsten Hopp 5e85f7
+ DEFINES += -D$(DYNAMIC_GETTEXT)
Karsten Hopp 5e85f7
+ ifdef GETTEXT_DYNAMIC
Karsten Hopp 5e85f7
+ DEFINES += -DGETTEXT_DYNAMIC -DGETTEXT_DLL=\"$(GETTEXT_DYNAMIC)\"
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifdef PERL
Karsten Hopp 5e85f7
+ CFLAGS += -I$(PERLLIBS) -DFEAT_PERL
Karsten Hopp 5e85f7
+ ifeq (yes, $(DYNAMIC_PERL))
Karsten Hopp 5e85f7
+ CFLAGS += -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl$(PERL_VER).dll\"
Karsten Hopp 5e85f7
+ EXTRA_LIBS += -L$(PERLLIBS) -lperl$(PERL_VER)
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifdef LUA
Karsten Hopp 5e85f7
+ CFLAGS += -I$(LUA)/include -I$(LUA) -DFEAT_LUA
Karsten Hopp 5e85f7
+ ifeq (yes, $(DYNAMIC_LUA))
Karsten Hopp 5e85f7
+ CFLAGS += -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL=\"lua$(LUA_VER).dll\"
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifdef MZSCHEME
Karsten Hopp 5e85f7
+ CFLAGS += -I$(MZSCHEME)/include -DFEAT_MZSCHEME -DMZSCHEME_COLLECTS=\"$(MZSCHEME)/collects\"
Karsten Hopp 5e85f7
+ ifeq (yes, $(DYNAMIC_MZSCHEME))
Karsten Hopp 5e85f7
+ CFLAGS += -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\" -DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\"
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifeq (yes, "$(MZSCHEME_DEBUG)")
Karsten Hopp 5e85f7
+ CFLAGS += -DMZSCHEME_FORCE_GC
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifdef RUBY
Karsten Hopp 5e85f7
+ CFLAGS += -DFEAT_RUBY $(RUBYINC)
Karsten Hopp 5e85f7
+ ifeq (yes, $(DYNAMIC_RUBY))
Karsten Hopp 5e85f7
+ CFLAGS += -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\"
Karsten Hopp 5e85f7
+ CFLAGS += -DDYNAMIC_RUBY_VER=$(RUBY_VER)
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifneq ($(findstring w64-mingw32,$(CC)),)
Karsten Hopp 5e85f7
+ # A workaround for MinGW-w64
Karsten Hopp 5e85f7
+ CFLAGS += -DHAVE_STRUCT_TIMESPEC -DHAVE_STRUCT_TIMEZONE
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifdef PYTHON
Karsten Hopp 5e85f7
+ CFLAGS += -DFEAT_PYTHON 
Karsten Hopp 5e85f7
+ ifeq (yes, $(DYNAMIC_PYTHON))
Karsten Hopp 5e85f7
+ CFLAGS += -DDYNAMIC_PYTHON
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifdef PYTHON3 
Karsten Hopp 5e85f7
+ CFLAGS += -DFEAT_PYTHON3 
Karsten Hopp 5e85f7
+ ifeq (yes, $(DYNAMIC_PYTHON3))
Karsten Hopp 5e85f7
+ CFLAGS += -DDYNAMIC_PYTHON3 
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifdef TCL
Karsten Hopp 5e85f7
+ CFLAGS += -DFEAT_TCL $(TCLINC)
Karsten Hopp 5e85f7
+ ifeq (yes, $(DYNAMIC_TCL))
Karsten Hopp 5e85f7
+ CFLAGS += -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"tcl$(TCL_VER).dll\"
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifeq ($(POSTSCRIPT),yes)
Karsten Hopp 5e85f7
+ DEFINES += -DMSWINPS
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifeq (yes, $(OLE))
Karsten Hopp 5e85f7
+ DEFINES += -DFEAT_OLE
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifeq ($(CSCOPE),yes)
Karsten Hopp 5e85f7
+ DEFINES += -DFEAT_CSCOPE
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifeq ($(NETBEANS),yes)
Karsten Hopp 5e85f7
+ # Only allow NETBEANS for a GUI build.
Karsten Hopp 5e85f7
+ ifeq (yes, $(GUI))
Karsten Hopp 5e85f7
+ DEFINES += -DFEAT_NETBEANS_INTG
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifeq ($(NBDEBUG), yes)
Karsten Hopp 5e85f7
+ DEFINES += -DNBDEBUG
Karsten Hopp 5e85f7
+ NBDEBUG_INCL = nbdebug.h
Karsten Hopp 5e85f7
+ NBDEBUG_SRC = nbdebug.c
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ # DirectWrite (DirectX)
Karsten Hopp 5e85f7
+ ifeq ($(DIRECTX),yes)
Karsten Hopp 5e85f7
+ # Only allow DirectWrite for a GUI build.
Karsten Hopp 5e85f7
+ ifeq (yes, $(GUI))
Karsten Hopp 5e85f7
+ DEFINES += -DFEAT_DIRECTX -DDYNAMIC_DIRECTX
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ # Only allow XPM for a GUI build.
Karsten Hopp 5e85f7
+ ifeq (yes, $(GUI))
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifndef XPM
Karsten Hopp 5e85f7
+ ifeq ($(ARCH),i386)
Karsten Hopp 5e85f7
+ XPM = xpm/x86
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifeq ($(ARCH),i486)
Karsten Hopp 5e85f7
+ XPM = xpm/x86
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifeq ($(ARCH),i586)
Karsten Hopp 5e85f7
+ XPM = xpm/x86
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifeq ($(ARCH),i686)
Karsten Hopp 5e85f7
+ XPM = xpm/x86
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifeq ($(ARCH),x86-64)
Karsten Hopp 5e85f7
+ XPM = xpm/x64
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifdef XPM
Karsten Hopp 5e85f7
+ ifneq ($(XPM),no)
Karsten Hopp 5e85f7
+ CFLAGS += -DFEAT_XPM_W32 -I $(XPM)/include -I $(XPM)/../include
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifeq ($(DEBUG),yes)
Karsten Hopp 5e85f7
+ CFLAGS += -g -fstack-check
Karsten Hopp 5e85f7
+ DEBUG_SUFFIX=d
Karsten Hopp 5e85f7
+ else
Karsten Hopp 5e85f7
+ ifeq ($(OPTIMIZE), SIZE)
Karsten Hopp 5e85f7
+ CFLAGS += -Os
Karsten Hopp 5e85f7
+ else
Karsten Hopp 5e85f7
+ ifeq ($(OPTIMIZE), MAXSPEED)
Karsten Hopp 5e85f7
+ CFLAGS += -O3
Karsten Hopp 5e85f7
+ CFLAGS += -fomit-frame-pointer -freg-struct-return
Karsten Hopp 5e85f7
+ else  # SPEED
Karsten Hopp 5e85f7
+ CFLAGS += -O2
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ CFLAGS += -s
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ LIB = -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32 -lcomctl32 -lversion
Karsten Hopp 5e85f7
+ GUIOBJ =  $(OUTDIR)/gui.o $(OUTDIR)/gui_w32.o $(OUTDIR)/gui_beval.o $(OUTDIR)/os_w32exe.o
Karsten Hopp 5e85f7
+ OBJ = \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/blowfish.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/buffer.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/charset.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/crypt.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/crypt_zip.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/diff.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/digraph.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/edit.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/eval.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/ex_cmds.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/ex_cmds2.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/ex_docmd.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/ex_eval.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/ex_getln.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/fileio.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/fold.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/getchar.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/hardcopy.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/hashtab.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/main.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/mark.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/memfile.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/memline.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/menu.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/message.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/misc1.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/misc2.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/move.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/mbyte.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/normal.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/ops.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/option.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/os_win32.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/os_mswin.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/winclip.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/pathdef.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/popupmnu.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/quickfix.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/regexp.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/screen.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/search.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/sha256.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/spell.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/syntax.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/tag.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/term.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/ui.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/undo.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/version.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/vimrc.o \
Karsten Hopp 5e85f7
+ 	$(OUTDIR)/window.o
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifdef PERL
Karsten Hopp 5e85f7
+ OBJ += $(OUTDIR)/if_perl.o
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifdef LUA
Karsten Hopp 5e85f7
+ OBJ += $(OUTDIR)/if_lua.o
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifdef MZSCHEME
Karsten Hopp 5e85f7
+ OBJ += $(OUTDIR)/if_mzsch.o
Karsten Hopp 5e85f7
+ MZSCHEME_INCL = if_mzsch.h
Karsten Hopp 5e85f7
+ ifeq (yes,$(MZSCHEME_GENERATE_BASE))
Karsten Hopp 5e85f7
+ CFLAGS += -DINCLUDE_MZSCHEME_BASE
Karsten Hopp 5e85f7
+ MZ_EXTRA_DEP += mzscheme_base.c
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifeq (yes,$(MZSCHEME_PRECISE_GC))
Karsten Hopp 5e85f7
+ CFLAGS += -DMZ_PRECISE_GC
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifdef PYTHON
Karsten Hopp 5e85f7
+ OBJ += $(OUTDIR)/if_python.o
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifdef PYTHON3
Karsten Hopp 5e85f7
+ OBJ += $(OUTDIR)/if_python3.o
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifdef RUBY
Karsten Hopp 5e85f7
+ OBJ += $(OUTDIR)/if_ruby.o
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifdef TCL
Karsten Hopp 5e85f7
+ OBJ += $(OUTDIR)/if_tcl.o
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifeq ($(CSCOPE),yes)
Karsten Hopp 5e85f7
+ OBJ += $(OUTDIR)/if_cscope.o
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifeq ($(NETBEANS),yes)
Karsten Hopp 5e85f7
+ # Only allow NETBEANS for a GUI build.
Karsten Hopp 5e85f7
+ ifeq (yes, $(GUI))
Karsten Hopp 5e85f7
+ OBJ += $(OUTDIR)/netbeans.o
Karsten Hopp 5e85f7
+ LIB += -lwsock32
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifeq ($(DIRECTX),yes)
Karsten Hopp 5e85f7
+ # Only allow DIRECTX for a GUI build.
Karsten Hopp 5e85f7
+ ifeq (yes, $(GUI))
Karsten Hopp 5e85f7
+ OBJ += $(OUTDIR)/gui_dwrite.o
Karsten Hopp 5e85f7
+ LIB += -ld2d1 -ldwrite
Karsten Hopp 5e85f7
+ USE_STDCPLUS = yes
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifneq ($(XPM),no)
Karsten Hopp 5e85f7
+ # Only allow XPM for a GUI build.
Karsten Hopp 5e85f7
+ ifeq (yes, $(GUI))
Karsten Hopp 5e85f7
+ OBJ += $(OUTDIR)/xpm_w32.o
Karsten Hopp 5e85f7
+ # You'll need libXpm.a from http://gnuwin32.sf.net
Karsten Hopp 5e85f7
+ LIB += -L$(XPM)/lib -lXpm
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifdef MZSCHEME
Karsten Hopp 5e85f7
+ MZSCHEME_SUFFIX = Z
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifeq ($(GUI),yes)
Karsten Hopp 5e85f7
+ TARGET := gvim$(DEBUG_SUFFIX).exe
Karsten Hopp 5e85f7
+ DEFINES += $(DEF_GUI)
Karsten Hopp 5e85f7
+ OBJ += $(GUIOBJ)
Karsten Hopp 5e85f7
+ LFLAGS += -mwindows
Karsten Hopp 5e85f7
+ OUTDIR = gobj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH)
Karsten Hopp 5e85f7
+ else
Karsten Hopp 5e85f7
+ TARGET := vim$(DEBUG_SUFFIX).exe
Karsten Hopp 5e85f7
+ OUTDIR = obj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH)
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifdef GETTEXT
Karsten Hopp 5e85f7
+ ifneq (yes, $(GETTEXT))
Karsten Hopp 5e85f7
+ CFLAGS += -I$(GETTEXTINCLUDE)
Karsten Hopp 5e85f7
+ ifndef STATIC_GETTEXT
Karsten Hopp 5e85f7
+ LIB += -L$(GETTEXTLIB) -l$(INTLLIB)
Karsten Hopp 5e85f7
+ ifeq (USE_SAFE_GETTEXT_DLL, $(DYNAMIC_GETTEXT))
Karsten Hopp 5e85f7
+ OBJ+=$(SAFE_GETTEXT_DLL_OBJ)
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ else
Karsten Hopp 5e85f7
+ LIB += -L$(GETTEXTLIB) -lintl
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifdef PERL
Karsten Hopp 5e85f7
+ ifeq (no, $(DYNAMIC_PERL))
Karsten Hopp 5e85f7
+ LIB += -L$(PERLLIBS) -lperl$(PERL_VER)
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifdef TCL
Karsten Hopp 5e85f7
+ LIB += -L$(TCL)/lib
Karsten Hopp 5e85f7
+ ifeq (yes, $(DYNAMIC_TCL))
Karsten Hopp 5e85f7
+ LIB += -ltclstub$(TCL_VER)
Karsten Hopp 5e85f7
+ else
Karsten Hopp 5e85f7
+ LIB += -ltcl$(TCL_VER)
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifeq (yes, $(OLE))
Karsten Hopp 5e85f7
+ LIB += -loleaut32
Karsten Hopp 5e85f7
+ OBJ += $(OUTDIR)/if_ole.o
Karsten Hopp 5e85f7
+ USE_STDCPLUS = yes
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifeq (yes, $(MBYTE))
Karsten Hopp 5e85f7
+ DEFINES += -DFEAT_MBYTE
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifeq (yes, $(IME))
Karsten Hopp 5e85f7
+ DEFINES += -DFEAT_MBYTE_IME
Karsten Hopp 5e85f7
+ ifeq (yes, $(DYNAMIC_IME))
Karsten Hopp 5e85f7
+ DEFINES += -DDYNAMIC_IME
Karsten Hopp 5e85f7
+ else
Karsten Hopp 5e85f7
+ LIB += -limm32
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifdef ICONV
Karsten Hopp 5e85f7
+ ifneq (yes, $(ICONV))
Karsten Hopp 5e85f7
+ LIB += -L$(ICONV)
Karsten Hopp 5e85f7
+ CFLAGS += -I$(ICONV)
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ DEFINES+=-DDYNAMIC_ICONV
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ifeq (yes, $(USE_STDCPLUS))
Karsten Hopp 5e85f7
+ ifeq (yes, $(STATIC_STDCPLUS))
Karsten Hopp 5e85f7
+ LIB += -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
Karsten Hopp 5e85f7
+ else
Karsten Hopp 5e85f7
+ LIB += -lstdc++
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ all: $(TARGET) vimrun.exe xxd/xxd.exe install.exe uninstal.exe GvimExt/gvimext.dll
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ vimrun.exe: vimrun.c
Karsten Hopp 5e85f7
+ 	$(CC) $(CFLAGS) -o vimrun.exe vimrun.c $(LIB)
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ install.exe: dosinst.c
Karsten Hopp 5e85f7
+ 	$(CC) $(CFLAGS) -o install.exe dosinst.c $(LIB) -lole32 -luuid
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ uninstal.exe: uninstal.c
Karsten Hopp 5e85f7
+ 	$(CC) $(CFLAGS) -o uninstal.exe uninstal.c $(LIB)
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ $(TARGET): $(OUTDIR) $(OBJ)
Karsten Hopp 5e85f7
+ 	$(CC) $(CFLAGS) $(LFLAGS) -o $@ $(OBJ) $(LIB) -lole32 -luuid $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB)
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ upx: exes
Karsten Hopp 5e85f7
+ 	upx gvim.exe
Karsten Hopp 5e85f7
+ 	upx vim.exe
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ mpress: exes
Karsten Hopp 5e85f7
+ 	mpress gvim.exe
Karsten Hopp 5e85f7
+ 	mpress vim.exe
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ xxd/xxd.exe: xxd/xxd.c
Karsten Hopp 5e85f7
+ 	$(MAKE) -C xxd -f Make_ming.mak CC='$(CC)'
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
Karsten Hopp 5e85f7
+ 	$(MAKE) -C GvimExt -f Make_ming.mak CROSS=$(CROSS) CROSS_COMPILE=$(CROSS_COMPILE) CXX='$(CXX)' STATIC_STDCPLUS=$(STATIC_STDCPLUS)
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ clean:
Karsten Hopp 5e85f7
+ 	-$(DEL) $(OUTDIR)$(DIRSLASH)*.o
Karsten Hopp 5e85f7
+ 	-$(DEL) $(OUTDIR)$(DIRSLASH)*.res
Karsten Hopp 5e85f7
+ 	-rmdir $(OUTDIR)
Karsten Hopp 5e85f7
+ 	-$(DEL) *.exe
Karsten Hopp 5e85f7
+ 	-$(DEL) pathdef.c
Karsten Hopp 5e85f7
+ ifdef PERL
Karsten Hopp 5e85f7
+ 	-$(DEL) if_perl.c
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ ifdef MZSCHEME
Karsten Hopp 5e85f7
+ 	-$(DEL) mzscheme_base.c
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 	$(MAKE) -C GvimExt -f Make_ming.mak clean
Karsten Hopp 5e85f7
+ 	$(MAKE) -C xxd -f Make_ming.mak clean
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ ###########################################################################
Karsten Hopp 5e85f7
+ INCL = vim.h feature.h os_win32.h os_dos.h ascii.h keymap.h term.h macros.h \
Karsten Hopp 5e85f7
+ 	structs.h regexp.h option.h ex_cmds.h proto.h globals.h farsi.h \
Karsten Hopp 5e85f7
+ 	gui.h
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ $(OUTDIR)/if_python.o : if_python.c if_py_both.h $(INCL)
Karsten Hopp 5e85f7
+ 	$(CC) -c $(CFLAGS) $(PYTHONINC) -DDYNAMIC_PYTHON_DLL=\"python$(PYTHON_VER).dll\" $< -o $@
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ $(OUTDIR)/if_python3.o : if_python3.c if_py_both.h $(INCL)
Karsten Hopp 5e85f7
+ 	$(CC) -c $(CFLAGS) $(PYTHON3INC) -DDYNAMIC_PYTHON3_DLL=\"PYTHON$(PYTHON3_VER).dll\" $< -o $@
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ $(OUTDIR)/%.o : %.c $(INCL)
Karsten Hopp 5e85f7
+ 	$(CC) -c $(CFLAGS) $< -o $@
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ $(OUTDIR)/vimrc.o: vim.rc version.h gui_w32_rc.h
Karsten Hopp 5e85f7
+ 	$(WINDRES) $(WINDRES_FLAGS) $(DEFINES) \
Karsten Hopp 5e85f7
+ 	    --input-format=rc --output-format=coff -i vim.rc -o $@
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ $(OUTDIR):
Karsten Hopp 5e85f7
+ 	$(MKDIR) $(OUTDIR)
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ $(OUTDIR)/ex_docmd.o:	ex_docmd.c $(INCL) ex_cmds.h
Karsten Hopp 5e85f7
+ 	$(CC) -c $(CFLAGS) ex_docmd.c -o $(OUTDIR)/ex_docmd.o
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ $(OUTDIR)/ex_eval.o:	ex_eval.c $(INCL) ex_cmds.h
Karsten Hopp 5e85f7
+ 	$(CC) -c $(CFLAGS) ex_eval.c -o $(OUTDIR)/ex_eval.o
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ $(OUTDIR)/gui_w32.o:	gui_w32.c gui_w48.c $(INCL)
Karsten Hopp 5e85f7
+ 	$(CC) -c $(CFLAGS) gui_w32.c -o $(OUTDIR)/gui_w32.o
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ $(OUTDIR)/gui_dwrite.o:	gui_dwrite.cpp $(INCL) gui_dwrite.h
Karsten Hopp 5e85f7
+ 	$(CC) -c $(CFLAGS) gui_dwrite.cpp -o $(OUTDIR)/gui_dwrite.o
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ $(OUTDIR)/if_cscope.o:	if_cscope.c $(INCL) if_cscope.h
Karsten Hopp 5e85f7
+ 	$(CC) -c $(CFLAGS) if_cscope.c -o $(OUTDIR)/if_cscope.o
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ # Remove -D__IID_DEFINED__ for newer versions of the w32api
Karsten Hopp 5e85f7
+ $(OUTDIR)/if_ole.o: if_ole.cpp $(INCL)
Karsten Hopp 5e85f7
+ 	$(CC) $(CFLAGS) -c -o $(OUTDIR)/if_ole.o if_ole.cpp
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ $(OUTDIR)/if_ruby.o: if_ruby.c $(INCL)
Karsten Hopp 5e85f7
+ ifeq (16, $(RUBY))
Karsten Hopp 5e85f7
+ 	$(CC) $(CFLAGS) -U_WIN32 -c -o $(OUTDIR)/if_ruby.o if_ruby.c
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ if_perl.c: if_perl.xs typemap
Karsten Hopp 5e85f7
+ 	$(XSUBPP) -prototypes -typemap \
Karsten Hopp 5e85f7
+ 	     "$(PERLTYPEMAP)" if_perl.xs > $@
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ $(OUTDIR)/netbeans.o:	netbeans.c $(INCL) $(NBDEBUG_INCL) $(NBDEBUG_SRC)
Karsten Hopp 5e85f7
+ 	$(CC) -c $(CFLAGS) netbeans.c -o $(OUTDIR)/netbeans.o
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ $(OUTDIR)/regexp.o:		regexp.c regexp_nfa.c $(INCL)
Karsten Hopp 5e85f7
+ 	$(CC) -c $(CFLAGS) regexp.c -o $(OUTDIR)/regexp.o
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ $(OUTDIR)/if_mzsch.o:	if_mzsch.c $(INCL) if_mzsch.h $(MZ_EXTRA_DEP)
Karsten Hopp 5e85f7
+ 	$(CC) -c $(CFLAGS) if_mzsch.c -o $(OUTDIR)/if_mzsch.o
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ mzscheme_base.c:
Karsten Hopp 5e85f7
+ 	$(MZSCHEME)/mzc --c-mods mzscheme_base.c ++lib scheme/base
Karsten Hopp 5e85f7
+ 
Karsten Hopp 5e85f7
+ pathdef.c: $(INCL)
Karsten Hopp 5e85f7
+ ifneq (sh.exe, $(SHELL))
Karsten Hopp 5e85f7
+ 	@echo creating pathdef.c
Karsten Hopp 5e85f7
+ 	@echo '/* pathdef.c */' > pathdef.c
Karsten Hopp 5e85f7
+ 	@echo '#include "vim.h"' >> pathdef.c
Karsten Hopp 5e85f7
+ 	@echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' >> pathdef.c
Karsten Hopp 5e85f7
+ 	@echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' >> pathdef.c
Karsten Hopp 5e85f7
+ 	@echo 'char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)";' >> pathdef.c
Karsten Hopp 5e85f7
+ 	@echo 'char_u *all_lflags = (char_u *)"$(CC) $(CFLAGS) $(LFLAGS) -o $(TARGET) $(LIB) -lole32 -luuid $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB)";' >> pathdef.c
Karsten Hopp 5e85f7
+ 	@echo 'char_u *compiled_user = (char_u *)"$(USERNAME)";' >> pathdef.c
Karsten Hopp 5e85f7
+ 	@echo 'char_u *compiled_sys = (char_u *)"$(USERDOMAIN)";' >> pathdef.c
Karsten Hopp 5e85f7
+ else
Karsten Hopp 5e85f7
+ 	@echo creating pathdef.c
Karsten Hopp 5e85f7
+ 	@echo /* pathdef.c */ > pathdef.c
Karsten Hopp 5e85f7
+ 	@echo #include "vim.h" >> pathdef.c
Karsten Hopp 5e85f7
+ 	@echo char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)"; >> pathdef.c
Karsten Hopp 5e85f7
+ 	@echo char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)"; >> pathdef.c
Karsten Hopp 5e85f7
+ 	@echo char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)"; >> pathdef.c
Karsten Hopp 5e85f7
+ 	@echo char_u *all_lflags = (char_u *)"$(CC) $(CFLAGS) $(LFLAGS) -o $(TARGET) $(LIB) -lole32 -luuid $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB)"; >> pathdef.c
Karsten Hopp 5e85f7
+ 	@echo char_u *compiled_user = (char_u *)"$(USERNAME)"; >> pathdef.c
Karsten Hopp 5e85f7
+ 	@echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> pathdef.c
Karsten Hopp 5e85f7
+ endif
Karsten Hopp 5e85f7
*** ../vim-7.4.495/src/Make_ming.mak	2014-10-15 12:07:07.610009454 +0200
Karsten Hopp 5e85f7
--- src/Make_ming.mak	2014-11-05 13:49:27.076811946 +0100
Karsten Hopp 5e85f7
***************
Karsten Hopp 5e85f7
*** 1,193 ****
Karsten Hopp 5e85f7
- # Makefile for VIM on Win32
Karsten Hopp 5e85f7
  #
Karsten Hopp 5e85f7
! # Info at http://www.mingw.org
Karsten Hopp 5e85f7
! # Alternative x86 and 64-builds: http://mingw-w64.sourceforge.net
Karsten Hopp 5e85f7
! # Also requires GNU make, which you can download from the same sites.
Karsten Hopp 5e85f7
! # Get missing libraries from http://gnuwin32.sf.net.
Karsten Hopp 5e85f7
  #
Karsten Hopp 5e85f7
! # Tested on Win32 NT 4 and Win95.
Karsten Hopp 5e85f7
  #
Karsten Hopp 5e85f7
! # To make everything, just 'make -f Make_ming.mak'.
Karsten Hopp 5e85f7
! # To make just e.g. gvim.exe, 'make -f Make_ming.mak gvim.exe'.
Karsten Hopp 5e85f7
! # After a run, you can 'make -f Make_ming.mak clean' to clean up.
Karsten Hopp 5e85f7
  #
Karsten Hopp 5e85f7
! # NOTE: Sometimes 'GNU Make' will stop after building vimrun.exe -- I think
Karsten Hopp 5e85f7
! # it's just run out of memory or something.  Run again, and it will continue
Karsten Hopp 5e85f7
! # with 'xxd'.
Karsten Hopp 5e85f7
! #
Karsten Hopp 5e85f7
! # "make upx" makes *compressed* versions of the 32 bit GUI and console EXEs,
Karsten Hopp 5e85f7
! # using the excellent UPX compressor:
Karsten Hopp 5e85f7
! #     http://upx.sourceforge.net/
Karsten Hopp 5e85f7
! # "make mpress" uses the MPRESS compressor for 32- and 64-bit EXEs:
Karsten Hopp 5e85f7
! #     http://www.matcode.com/mpress.htm
Karsten Hopp 5e85f7
! #
Karsten Hopp 5e85f7
! # Maintained by Ron Aaron <ronaharon@yahoo.com> et al.
Karsten Hopp 5e85f7
! # Updated 2014 Oct 13.
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! #>>>>> choose options:
Karsten Hopp 5e85f7
! # set to yes for a debug build
Karsten Hopp 5e85f7
! DEBUG=no
Karsten Hopp 5e85f7
! # set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization
Karsten Hopp 5e85f7
! OPTIMIZE=MAXSPEED
Karsten Hopp 5e85f7
! # set to yes to make gvim, no for vim
Karsten Hopp 5e85f7
! GUI=yes
Karsten Hopp 5e85f7
! # set to yes if you want to use DirectWrite (DirectX)
Karsten Hopp 5e85f7
! DIRECTX=no
Karsten Hopp 5e85f7
! # FEATURES=[TINY | SMALL  | NORMAL | BIG | HUGE]
Karsten Hopp 5e85f7
! # Set to TINY to make minimal version (few features).
Karsten Hopp 5e85f7
! FEATURES=BIG
Karsten Hopp 5e85f7
! # Set to one of i386, i486, i586, i686 as the minimum target processor.
Karsten Hopp 5e85f7
! # For amd64/x64 architecture set ARCH=x86-64 .
Karsten Hopp 5e85f7
! ARCH=i386
Karsten Hopp 5e85f7
! # Set to yes to cross-compile from unix; no=native Windows.
Karsten Hopp 5e85f7
! CROSS=no
Karsten Hopp 5e85f7
! # Set to path to iconv.h and libiconv.a to enable using 'iconv.dll'.
Karsten Hopp 5e85f7
! #ICONV="."
Karsten Hopp 5e85f7
! ICONV=yes
Karsten Hopp 5e85f7
! GETTEXT=yes
Karsten Hopp 5e85f7
! # Set to yes to include multibyte support.
Karsten Hopp 5e85f7
! MBYTE=yes
Karsten Hopp 5e85f7
! # Set to yes to include IME support.
Karsten Hopp 5e85f7
! IME=yes
Karsten Hopp 5e85f7
! DYNAMIC_IME=yes
Karsten Hopp 5e85f7
! # Set to yes to enable writing a postscript file with :hardcopy.
Karsten Hopp 5e85f7
! POSTSCRIPT=no
Karsten Hopp 5e85f7
! # Set to yes to enable OLE support.
Karsten Hopp 5e85f7
! OLE=no
Karsten Hopp 5e85f7
! # Set the default $(WINVER) to make it work with pre-Win2k.
Karsten Hopp 5e85f7
! ifndef WINVER
Karsten Hopp 5e85f7
! WINVER = 0x0500
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! # Set to yes to enable Cscope support.
Karsten Hopp 5e85f7
! CSCOPE=yes
Karsten Hopp 5e85f7
! # Set to yes to enable Netbeans support.
Karsten Hopp 5e85f7
! NETBEANS=$(GUI)
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! # Link against the shared version of libstdc++ by default.  Set
Karsten Hopp 5e85f7
! # STATIC_STDCPLUS to "yes" to link against static version instead.
Karsten Hopp 5e85f7
! ifndef STATIC_STDCPLUS
Karsten Hopp 5e85f7
! STATIC_STDCPLUS=no
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! # If the user doesn't want gettext, undefine it.
Karsten Hopp 5e85f7
! ifeq (no, $(GETTEXT))
Karsten Hopp 5e85f7
! GETTEXT=
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! # Added by E.F. Amatria <eferna1@platea.ptic.mec.es> 2001 Feb 23
Karsten Hopp 5e85f7
! # Uncomment the first line and one of the following three if you want Native Language
Karsten Hopp 5e85f7
! # Support.  You'll need gnu_gettext.win32, a MINGW32 Windows PORT of gettext by
Karsten Hopp 5e85f7
! # Franco Bez <franco.bez@gmx.de>.  It may be found at
Karsten Hopp 5e85f7
! # http://home.a-city.de/franco.bez/gettext/gettext_win32_en.html
Karsten Hopp 5e85f7
! # Tested with mingw32 with GCC-2.95.2 on Win98
Karsten Hopp 5e85f7
! # Updated 2001 Jun 9
Karsten Hopp 5e85f7
! #GETTEXT=c:/gettext.win32.msvcrt
Karsten Hopp 5e85f7
! #STATIC_GETTEXT=USE_STATIC_GETTEXT
Karsten Hopp 5e85f7
! #DYNAMIC_GETTEXT=USE_GETTEXT_DLL
Karsten Hopp 5e85f7
! #DYNAMIC_GETTEXT=USE_SAFE_GETTEXT_DLL
Karsten Hopp 5e85f7
! SAFE_GETTEXT_DLL_OBJ = $(GETTEXT)/src/safe_gettext_dll/safe_gettext_dll.o
Karsten Hopp 5e85f7
! # Alternatively, if you uncomment the two following lines, you get a "safe" version
Karsten Hopp 5e85f7
! # without linking the safe_gettext_dll.o object file.
Karsten Hopp 5e85f7
! #DYNAMIC_GETTEXT=DYNAMIC_GETTEXT
Karsten Hopp 5e85f7
! #GETTEXT_DYNAMIC=gnu_gettext.dll
Karsten Hopp 5e85f7
! INTLPATH=$(GETTEXT)/lib/mingw32
Karsten Hopp 5e85f7
! INTLLIB=gnu_gettext
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
- # If you are using gettext-0.10.35 from http://sourceforge.net/projects/gettext
Karsten Hopp 5e85f7
- # or gettext-0.10.37 from http://sourceforge.net/projects/mingwrep/
Karsten Hopp 5e85f7
- # uncomment the following, but I can't build a static version with them, ?-(|
Karsten Hopp 5e85f7
- #GETTEXT=c:/gettext-0.10.37-20010430
Karsten Hopp 5e85f7
- #STATIC_GETTEXT=USE_STATIC_GETTEXT
Karsten Hopp 5e85f7
- #DYNAMIC_GETTEXT=DYNAMIC_GETTEXT
Karsten Hopp 5e85f7
- #INTLPATH=$(GETTEXT)/lib
Karsten Hopp 5e85f7
- #INTLLIB=intl
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
  # uncomment 'PERL' if you want a perl-enabled version
Karsten Hopp 5e85f7
! #PERL=C:/perl
Karsten Hopp 5e85f7
! ifdef PERL
Karsten Hopp 5e85f7
! ifndef PERL_VER
Karsten Hopp 5e85f7
! PERL_VER=56
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! ifndef DYNAMIC_PERL
Karsten Hopp 5e85f7
! DYNAMIC_PERL=yes
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! # on Linux, for cross-compile, it's here:
Karsten Hopp 5e85f7
! #PERLLIB=/home/ron/ActivePerl/lib
Karsten Hopp 5e85f7
! # on NT, it's here:
Karsten Hopp 5e85f7
! PERLLIB=$(PERL)/lib
Karsten Hopp 5e85f7
! PERLLIBS=$(PERLLIB)/Core
Karsten Hopp 5e85f7
! XSUBPPTRY=$(PERLLIB)/ExtUtils/xsubpp
Karsten Hopp 5e85f7
! XSUBPP_EXISTS=$(shell perl -e "print 1 unless -e '$(XSUBPPTRY)'")
Karsten Hopp 5e85f7
! ifeq "$(XSUBPP_EXISTS)" ""
Karsten Hopp 5e85f7
! XSUBPP=perl $(XSUBPPTRY)
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! XSUBPP=xsubpp
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
  # uncomment 'LUA' if you want a Lua-enabled version
Karsten Hopp 5e85f7
! #LUA=/usr/local
Karsten Hopp 5e85f7
! ifdef LUA
Karsten Hopp 5e85f7
! ifndef DYNAMIC_LUA
Karsten Hopp 5e85f7
! DYNAMIC_LUA=yes
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef LUA_VER
Karsten Hopp 5e85f7
! LUA_VER=51
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifeq (no,$(DYNAMIC_LUA))
Karsten Hopp 5e85f7
! LUA_LIB = -L$(LUA)/lib -llua
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
  # uncomment 'MZSCHEME' if you want a MzScheme-enabled version
Karsten Hopp 5e85f7
  #MZSCHEME=d:/plt
Karsten Hopp 5e85f7
- ifdef MZSCHEME
Karsten Hopp 5e85f7
- ifndef DYNAMIC_MZSCHEME
Karsten Hopp 5e85f7
- DYNAMIC_MZSCHEME=yes
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifndef MZSCHEME_VER
Karsten Hopp 5e85f7
- MZSCHEME_VER=205_000
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifndef MZSCHEME_PRECISE_GC
Karsten Hopp 5e85f7
- MZSCHEME_PRECISE_GC=no
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- # for version 4.x we need to generate byte-code for Scheme base
Karsten Hopp 5e85f7
- ifndef MZSCHEME_GENERATE_BASE
Karsten Hopp 5e85f7
- MZSCHEME_GENERATE_BASE=no
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
! ifndef MZSCHEME_USE_RACKET
Karsten Hopp 5e85f7
! MZSCHEME_MAIN_LIB=mzsch
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! MZSCHEME_MAIN_LIB=racket
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifeq (no,$(DYNAMIC_MZSCHEME))
Karsten Hopp 5e85f7
! ifeq (yes,$(MZSCHEME_PRECISE_GC))
Karsten Hopp 5e85f7
! MZSCHEME_LIB=-l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER)
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! MZSCHEME_LIB = -l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER) -lmzgc$(MZSCHEME_VER)
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! # the modern MinGW can dynamically link to dlls directly.
Karsten Hopp 5e85f7
! # point MZSCHEME_DLLS to where you put libmzschXXXXXXX.dll and libgcXXXXXXX.dll
Karsten Hopp 5e85f7
! ifndef MZSCHEME_DLLS
Karsten Hopp 5e85f7
! MZSCHEME_DLLS=$(MZSCHEME)
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! MZSCHEME_LIBDIR=-L$(MZSCHEME_DLLS) -L$(MZSCHEME_DLLS)\lib
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! # Python support -- works with the ActiveState python 2.0 release (and others
Karsten Hopp 5e85f7
! # too, probably)
Karsten Hopp 5e85f7
! #
Karsten Hopp 5e85f7
! # uncomment 'PYTHON' to make python-enabled version
Karsten Hopp 5e85f7
  # Put the path to the python distro here.  If cross compiling from Linux, you
Karsten Hopp 5e85f7
  # will also need to convert the header files to unix instead of dos format:
Karsten Hopp 5e85f7
  #   for fil in *.h ; do vim -e -c 'set ff=unix|w|q' $fil
Karsten Hopp 5e85f7
--- 1,27 ----
Karsten Hopp 5e85f7
  #
Karsten Hopp 5e85f7
! # Makefile for VIM on Win32, using MinGW
Karsten Hopp 5e85f7
  #
Karsten Hopp 5e85f7
! # Also read INSTALLpc.txt!
Karsten Hopp 5e85f7
  #
Karsten Hopp 5e85f7
! # The old Make_ming.mak (maintained by Ron Aaron et al.) was merged into
Karsten Hopp 5e85f7
! # Make_cyg_ming.mak.
Karsten Hopp 5e85f7
! # This file contains MinGW specific settings. Common settings are contained
Karsten Hopp 5e85f7
! # in Make_cyg_ming.mak.
Karsten Hopp 5e85f7
  #
Karsten Hopp 5e85f7
! # Last updated by Ken Takata.
Karsten Hopp 5e85f7
! # Last Change: 2014 Oct 21
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
  # uncomment 'PERL' if you want a perl-enabled version
Karsten Hopp 5e85f7
! #PERL=c:/perl
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
  # uncomment 'LUA' if you want a Lua-enabled version
Karsten Hopp 5e85f7
! #LUA=c:/lua
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
  # uncomment 'MZSCHEME' if you want a MzScheme-enabled version
Karsten Hopp 5e85f7
  #MZSCHEME=d:/plt
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
! # uncomment 'PYTHON' if you want a python-enabled version
Karsten Hopp 5e85f7
  # Put the path to the python distro here.  If cross compiling from Linux, you
Karsten Hopp 5e85f7
  # will also need to convert the header files to unix instead of dos format:
Karsten Hopp 5e85f7
  #   for fil in *.h ; do vim -e -c 'set ff=unix|w|q' $fil
Karsten Hopp 5e85f7
***************
Karsten Hopp 5e85f7
*** 200,830 ****
Karsten Hopp 5e85f7
  # on my NT box, it's here:
Karsten Hopp 5e85f7
  #PYTHON=c:/python20
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
! ifdef PYTHON
Karsten Hopp 5e85f7
! ifndef DYNAMIC_PYTHON
Karsten Hopp 5e85f7
! DYNAMIC_PYTHON=yes
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef PYTHON_VER
Karsten Hopp 5e85f7
! PYTHON_VER=22
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifeq (no,$(DYNAMIC_PYTHON))
Karsten Hopp 5e85f7
! PYTHONLIB=-L$(PYTHON)/libs -lpython$(PYTHON_VER)
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! # my include files are in 'win32inc' on Linux, and 'include' in the standard
Karsten Hopp 5e85f7
! # NT distro (ActiveState)
Karsten Hopp 5e85f7
! ifeq ($(CROSS),no)
Karsten Hopp 5e85f7
! PYTHONINC=-I $(PYTHON)/include
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! PYTHONINC=-I $(PYTHON)/win32inc
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! #PYTHON3: See comment for Python 2 above
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifdef PYTHON3
Karsten Hopp 5e85f7
! ifndef DYNAMIC_PYTHON3
Karsten Hopp 5e85f7
! DYNAMIC_PYTHON3=yes
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifndef PYTHON3_VER
Karsten Hopp 5e85f7
! PYTHON3_VER=31
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifeq (no,$(DYNAMIC_PYTHON3))
Karsten Hopp 5e85f7
! PYTHON3LIB=-L$(PYTHON3)/libs -lPYTHON$(PYTHON3_VER)
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! ifeq ($(CROSS),no)
Karsten Hopp 5e85f7
! PYTHON3INC=-I $(PYTHON3)/include
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! PYTHON3INC=-I $(PYTHON3)/win32inc
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
! #	TCL interface:
Karsten Hopp 5e85f7
! #	  TCL=[Path to TCL directory]
Karsten Hopp 5e85f7
! #	  DYNAMIC_TCL=yes (to load the TCL DLL dynamically)
Karsten Hopp 5e85f7
! #	  TCL_VER=[TCL version, eg 83, 84] (default is 83)
Karsten Hopp 5e85f7
  #TCL=c:/tcl
Karsten Hopp 5e85f7
- ifdef TCL
Karsten Hopp 5e85f7
- ifndef DYNAMIC_TCL
Karsten Hopp 5e85f7
- DYNAMIC_TCL=yes
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifndef TCL_VER
Karsten Hopp 5e85f7
- TCL_VER = 83
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- TCLINC += -I$(TCL)/include
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
! 
Karsten Hopp 5e85f7
! #	Ruby interface:
Karsten Hopp 5e85f7
! #	  RUBY=[Path to Ruby directory]
Karsten Hopp 5e85f7
! #	  DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically)
Karsten Hopp 5e85f7
! #	  RUBY_VER=[Ruby version, eg 16, 17] (default is 16)
Karsten Hopp 5e85f7
! #	  RUBY_VER_LONG=[Ruby version, eg 1.6, 1.7] (default is 1.6)
Karsten Hopp 5e85f7
! #	    You must set RUBY_VER_LONG when changing RUBY_VER.
Karsten Hopp 5e85f7
! #	    You must set RUBY_API_VER version to RUBY_VER_LONG.
Karsten Hopp 5e85f7
! #	    Don't set ruby API version to RUBY_VER like 191.
Karsten Hopp 5e85f7
  #RUBY=c:/ruby
Karsten Hopp 5e85f7
- ifdef RUBY
Karsten Hopp 5e85f7
- ifndef DYNAMIC_RUBY
Karsten Hopp 5e85f7
- DYNAMIC_RUBY=yes
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- #  Set default value
Karsten Hopp 5e85f7
- ifndef RUBY_VER
Karsten Hopp 5e85f7
- RUBY_VER = 16
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifndef RUBY_VER_LONG
Karsten Hopp 5e85f7
- RUBY_VER_LONG = 1.6
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifndef RUBY_API_VER
Karsten Hopp 5e85f7
- RUBY_API_VER = $(subst .,,$(RUBY_VER_LONG))
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifndef RUBY_PLATFORM
Karsten Hopp 5e85f7
- ifeq ($(RUBY_VER), 16)
Karsten Hopp 5e85f7
- RUBY_PLATFORM = i586-mswin32
Karsten Hopp 5e85f7
- else
Karsten Hopp 5e85f7
- ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/i386-mingw32),)
Karsten Hopp 5e85f7
- RUBY_PLATFORM = i386-mingw32
Karsten Hopp 5e85f7
- else
Karsten Hopp 5e85f7
- ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/x64-mingw32),)
Karsten Hopp 5e85f7
- RUBY_PLATFORM = x64-mingw32
Karsten Hopp 5e85f7
- else
Karsten Hopp 5e85f7
- RUBY_PLATFORM = i386-mswin32
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifndef RUBY_INSTALL_NAME
Karsten Hopp 5e85f7
- ifeq ($(RUBY_VER), 16)
Karsten Hopp 5e85f7
- RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_API_VER)
Karsten Hopp 5e85f7
- else
Karsten Hopp 5e85f7
- ifeq ($(ARCH),x86-64)
Karsten Hopp 5e85f7
- RUBY_INSTALL_NAME = x64-msvcrt-ruby$(RUBY_API_VER)
Karsten Hopp 5e85f7
- else
Karsten Hopp 5e85f7
- RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_API_VER)
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifeq (19, $(word 1,$(sort 19 $(RUBY_VER))))
Karsten Hopp 5e85f7
- RUBY_19_OR_LATER = 1
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- RUBYINC = -I $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
Karsten Hopp 5e85f7
- ifdef RUBY_19_OR_LATER
Karsten Hopp 5e85f7
- RUBYINC += -I $(RUBY)/include/ruby-$(RUBY_VER_LONG) -I $(RUBY)/include/ruby-$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifeq (no, $(DYNAMIC_RUBY))
Karsten Hopp 5e85f7
- RUBYLIB = -L$(RUBY)/lib -l$(RUBY_INSTALL_NAME)
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- endif # RUBY
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- # See feature.h for a list of options.
Karsten Hopp 5e85f7
- # Any other defines can be included here.
Karsten Hopp 5e85f7
- DEF_GUI=-DFEAT_GUI_W32 -DFEAT_CLIPBOARD
Karsten Hopp 5e85f7
- DEFINES=-DWIN32 -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) \
Karsten Hopp 5e85f7
- 	-DHAVE_PATHDEF -DFEAT_$(FEATURES)
Karsten Hopp 5e85f7
- ifeq ($(ARCH),x86-64)
Karsten Hopp 5e85f7
- DEFINES+=-DMS_WIN64
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifeq ($(CROSS),yes)
Karsten Hopp 5e85f7
- # cross-compiler prefix:
Karsten Hopp 5e85f7
- CROSS_COMPILE = i586-pc-mingw32msvc-
Karsten Hopp 5e85f7
- DEL = rm
Karsten Hopp 5e85f7
- MKDIR = mkdir -p
Karsten Hopp 5e85f7
- DIRSLASH = /
Karsten Hopp 5e85f7
- else
Karsten Hopp 5e85f7
- # normal (Windows) compilation:
Karsten Hopp 5e85f7
- CROSS_COMPILE =
Karsten Hopp 5e85f7
- ifneq (sh.exe, $(SHELL))
Karsten Hopp 5e85f7
- DEL = rm
Karsten Hopp 5e85f7
- MKDIR = mkdir -p
Karsten Hopp 5e85f7
- DIRSLASH = /
Karsten Hopp 5e85f7
- else
Karsten Hopp 5e85f7
- DEL = del
Karsten Hopp 5e85f7
- MKDIR = mkdir
Karsten Hopp 5e85f7
- DIRSLASH = \\
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- CC := $(CROSS_COMPILE)gcc
Karsten Hopp 5e85f7
- WINDRES := $(CROSS_COMPILE)windres
Karsten Hopp 5e85f7
- WINDRES_CC = $(CC)
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- #>>>>> end of choices
Karsten Hopp 5e85f7
- ###########################################################################
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- CFLAGS = -Iproto $(DEFINES) -pipe -w -march=$(ARCH) -Wall
Karsten Hopp 5e85f7
- WINDRES_FLAGS = --preprocessor="$(WINDRES_CC) -E -xc" -DRC_INVOKED
Karsten Hopp 5e85f7
- EXTRA_LIBS =
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifdef GETTEXT
Karsten Hopp 5e85f7
- DEFINES += -DHAVE_GETTEXT -DHAVE_LOCALE_H
Karsten Hopp 5e85f7
- GETTEXTINCLUDE = $(GETTEXT)/include
Karsten Hopp 5e85f7
- GETTEXTLIB = $(INTLPATH)
Karsten Hopp 5e85f7
- ifeq (yes, $(GETTEXT))
Karsten Hopp 5e85f7
- DEFINES += -DDYNAMIC_GETTEXT
Karsten Hopp 5e85f7
- else
Karsten Hopp 5e85f7
- ifdef DYNAMIC_GETTEXT
Karsten Hopp 5e85f7
- DEFINES += -D$(DYNAMIC_GETTEXT)
Karsten Hopp 5e85f7
- ifdef GETTEXT_DYNAMIC
Karsten Hopp 5e85f7
- DEFINES += -DGETTEXT_DYNAMIC -DGETTEXT_DLL=\"$(GETTEXT_DYNAMIC)\"
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifdef PERL
Karsten Hopp 5e85f7
- CFLAGS += -I$(PERLLIBS) -DFEAT_PERL
Karsten Hopp 5e85f7
- ifeq (yes, $(DYNAMIC_PERL))
Karsten Hopp 5e85f7
- CFLAGS += -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl$(PERL_VER).dll\"
Karsten Hopp 5e85f7
- EXTRA_LIBS += -L$(PERLLIBS) -lperl$(PERL_VER)
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifdef LUA
Karsten Hopp 5e85f7
- CFLAGS += -I$(LUA)/include -DFEAT_LUA
Karsten Hopp 5e85f7
- ifeq (yes, $(DYNAMIC_LUA))
Karsten Hopp 5e85f7
- CFLAGS += -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL=\"lua$(LUA_VER).dll\"
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifdef MZSCHEME
Karsten Hopp 5e85f7
- CFLAGS += -I$(MZSCHEME)/include -DFEAT_MZSCHEME -DMZSCHEME_COLLECTS=\"$(MZSCHEME)/collects\"
Karsten Hopp 5e85f7
- ifeq (yes, $(DYNAMIC_MZSCHEME))
Karsten Hopp 5e85f7
- CFLAGS += -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\" -DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\"
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifeq (yes, "$(MZSCHEME_DEBUG)")
Karsten Hopp 5e85f7
- CFLAGS += -DMZSCHEME_FORCE_GC
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifdef RUBY
Karsten Hopp 5e85f7
- CFLAGS += -DFEAT_RUBY $(RUBYINC)
Karsten Hopp 5e85f7
- ifeq (yes, $(DYNAMIC_RUBY))
Karsten Hopp 5e85f7
- CFLAGS += -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\"
Karsten Hopp 5e85f7
- CFLAGS += -DDYNAMIC_RUBY_VER=$(RUBY_VER)
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifdef PYTHON
Karsten Hopp 5e85f7
- CFLAGS += -DFEAT_PYTHON 
Karsten Hopp 5e85f7
- ifeq (yes, $(DYNAMIC_PYTHON))
Karsten Hopp 5e85f7
- CFLAGS += -DDYNAMIC_PYTHON
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifdef PYTHON3 
Karsten Hopp 5e85f7
- CFLAGS += -DFEAT_PYTHON3 
Karsten Hopp 5e85f7
- ifeq (yes, $(DYNAMIC_PYTHON3))
Karsten Hopp 5e85f7
- CFLAGS += -DDYNAMIC_PYTHON3 
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifdef TCL
Karsten Hopp 5e85f7
- CFLAGS += -DFEAT_TCL $(TCLINC)
Karsten Hopp 5e85f7
- ifeq (yes, $(DYNAMIC_TCL))
Karsten Hopp 5e85f7
- CFLAGS += -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"tcl$(TCL_VER).dll\"
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifeq ($(POSTSCRIPT),yes)
Karsten Hopp 5e85f7
- DEFINES += -DMSWINPS
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifeq (yes, $(OLE))
Karsten Hopp 5e85f7
- DEFINES += -DFEAT_OLE
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifeq ($(CSCOPE),yes)
Karsten Hopp 5e85f7
- DEFINES += -DFEAT_CSCOPE
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifeq ($(NETBEANS),yes)
Karsten Hopp 5e85f7
- # Only allow NETBEANS for a GUI build.
Karsten Hopp 5e85f7
- ifeq (yes, $(GUI))
Karsten Hopp 5e85f7
- DEFINES += -DFEAT_NETBEANS_INTG
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifeq ($(NBDEBUG), yes)
Karsten Hopp 5e85f7
- DEFINES += -DNBDEBUG
Karsten Hopp 5e85f7
- NBDEBUG_INCL = nbdebug.h
Karsten Hopp 5e85f7
- NBDEBUG_SRC = nbdebug.c
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- # DirectWrite (DirectX)
Karsten Hopp 5e85f7
- ifeq ($(DIRECTX),yes)
Karsten Hopp 5e85f7
- # Only allow DirectWrite for a GUI build.
Karsten Hopp 5e85f7
- ifeq (yes, $(GUI))
Karsten Hopp 5e85f7
- DEFINES += -DFEAT_DIRECTX -DDYNAMIC_DIRECTX
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- # Only allow XPM for a GUI build.
Karsten Hopp 5e85f7
- ifeq (yes, $(GUI))
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifndef XPM
Karsten Hopp 5e85f7
- ifeq ($(ARCH),i386)
Karsten Hopp 5e85f7
- XPM = xpm/x86
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifeq ($(ARCH),i486)
Karsten Hopp 5e85f7
- XPM = xpm/x86
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifeq ($(ARCH),i586)
Karsten Hopp 5e85f7
- XPM = xpm/x86
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifeq ($(ARCH),i686)
Karsten Hopp 5e85f7
- XPM = xpm/x86
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifeq ($(ARCH),x86-64)
Karsten Hopp 5e85f7
- XPM = xpm/x64
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifdef XPM
Karsten Hopp 5e85f7
- ifneq ($(XPM),no)
Karsten Hopp 5e85f7
- CFLAGS += -DFEAT_XPM_W32 -I $(XPM)/include -I $(XPM)/../include
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifeq ($(DEBUG),yes)
Karsten Hopp 5e85f7
- CFLAGS += -g -fstack-check
Karsten Hopp 5e85f7
- DEBUG_SUFFIX=d
Karsten Hopp 5e85f7
- else
Karsten Hopp 5e85f7
- ifeq ($(OPTIMIZE), SIZE)
Karsten Hopp 5e85f7
- CFLAGS += -Os
Karsten Hopp 5e85f7
- else
Karsten Hopp 5e85f7
- ifeq ($(OPTIMIZE), MAXSPEED)
Karsten Hopp 5e85f7
- CFLAGS += -O3
Karsten Hopp 5e85f7
- CFLAGS += -fomit-frame-pointer -freg-struct-return
Karsten Hopp 5e85f7
- else  # SPEED
Karsten Hopp 5e85f7
- CFLAGS += -O2
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- CFLAGS += -s
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- LIB = -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32 -lcomctl32 -lversion
Karsten Hopp 5e85f7
- GUIOBJ =  $(OUTDIR)/gui.o $(OUTDIR)/gui_w32.o $(OUTDIR)/gui_beval.o $(OUTDIR)/os_w32exe.o
Karsten Hopp 5e85f7
- OBJ = \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/blowfish.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/buffer.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/charset.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/crypt.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/crypt_zip.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/diff.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/digraph.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/edit.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/eval.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/ex_cmds.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/ex_cmds2.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/ex_docmd.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/ex_eval.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/ex_getln.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/fileio.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/fold.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/getchar.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/hardcopy.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/hashtab.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/main.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/mark.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/memfile.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/memline.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/menu.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/message.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/misc1.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/misc2.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/move.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/mbyte.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/normal.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/ops.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/option.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/os_win32.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/os_mswin.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/winclip.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/pathdef.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/popupmnu.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/quickfix.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/regexp.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/screen.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/search.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/sha256.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/spell.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/syntax.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/tag.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/term.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/ui.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/undo.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/version.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/vimrc.o \
Karsten Hopp 5e85f7
- 	$(OUTDIR)/window.o
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifdef PERL
Karsten Hopp 5e85f7
- OBJ += $(OUTDIR)/if_perl.o
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifdef LUA
Karsten Hopp 5e85f7
- OBJ += $(OUTDIR)/if_lua.o
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifdef MZSCHEME
Karsten Hopp 5e85f7
- OBJ += $(OUTDIR)/if_mzsch.o
Karsten Hopp 5e85f7
- MZSCHEME_INCL = if_mzsch.h
Karsten Hopp 5e85f7
- ifeq (yes,$(MZSCHEME_GENERATE_BASE))
Karsten Hopp 5e85f7
- CFLAGS += -DINCLUDE_MZSCHEME_BASE
Karsten Hopp 5e85f7
- MZ_EXTRA_DEP += mzscheme_base.c
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifeq (yes,$(MZSCHEME_PRECISE_GC))
Karsten Hopp 5e85f7
- CFLAGS += -DMZ_PRECISE_GC
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifdef PYTHON
Karsten Hopp 5e85f7
- OBJ += $(OUTDIR)/if_python.o
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifdef PYTHON3
Karsten Hopp 5e85f7
- OBJ += $(OUTDIR)/if_python3.o
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifdef RUBY
Karsten Hopp 5e85f7
- OBJ += $(OUTDIR)/if_ruby.o
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifdef TCL
Karsten Hopp 5e85f7
- OBJ += $(OUTDIR)/if_tcl.o
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifeq ($(CSCOPE),yes)
Karsten Hopp 5e85f7
- OBJ += $(OUTDIR)/if_cscope.o
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifeq ($(NETBEANS),yes)
Karsten Hopp 5e85f7
- # Only allow NETBEANS for a GUI build.
Karsten Hopp 5e85f7
- ifeq (yes, $(GUI))
Karsten Hopp 5e85f7
- OBJ += $(OUTDIR)/netbeans.o
Karsten Hopp 5e85f7
- LIB += -lwsock32
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifeq ($(DIRECTX),yes)
Karsten Hopp 5e85f7
- # Only allow DIRECTX for a GUI build.
Karsten Hopp 5e85f7
- ifeq (yes, $(GUI))
Karsten Hopp 5e85f7
- OBJ += $(OUTDIR)/gui_dwrite.o
Karsten Hopp 5e85f7
- LIB += -ld2d1 -ldwrite
Karsten Hopp 5e85f7
- USE_STDCPLUS = yes
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifneq ($(XPM),no)
Karsten Hopp 5e85f7
- # Only allow XPM for a GUI build.
Karsten Hopp 5e85f7
- ifeq (yes, $(GUI))
Karsten Hopp 5e85f7
- OBJ += $(OUTDIR)/xpm_w32.o
Karsten Hopp 5e85f7
- # You'll need libXpm.a from http://gnuwin32.sf.net
Karsten Hopp 5e85f7
- LIB += -L$(XPM)/lib -lXpm
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifdef MZSCHEME
Karsten Hopp 5e85f7
- MZSCHEME_SUFFIX = Z
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifeq ($(GUI),yes)
Karsten Hopp 5e85f7
- TARGET := gvim$(DEBUG_SUFFIX).exe
Karsten Hopp 5e85f7
- DEFINES += $(DEF_GUI)
Karsten Hopp 5e85f7
- OBJ += $(GUIOBJ)
Karsten Hopp 5e85f7
- LFLAGS += -mwindows
Karsten Hopp 5e85f7
- OUTDIR = gobj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH)
Karsten Hopp 5e85f7
- else
Karsten Hopp 5e85f7
- TARGET := vim$(DEBUG_SUFFIX).exe
Karsten Hopp 5e85f7
- OUTDIR = obj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH)
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifdef GETTEXT
Karsten Hopp 5e85f7
- ifneq (yes, $(GETTEXT))
Karsten Hopp 5e85f7
- CFLAGS += -I$(GETTEXTINCLUDE)
Karsten Hopp 5e85f7
- ifndef STATIC_GETTEXT
Karsten Hopp 5e85f7
- LIB += -L$(GETTEXTLIB) -l$(INTLLIB)
Karsten Hopp 5e85f7
- ifeq (USE_SAFE_GETTEXT_DLL, $(DYNAMIC_GETTEXT))
Karsten Hopp 5e85f7
- OBJ+=$(SAFE_GETTEXT_DLL_OBJ)
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- else
Karsten Hopp 5e85f7
- LIB += -L$(GETTEXTLIB) -lintl
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifdef PERL
Karsten Hopp 5e85f7
- ifeq (no, $(DYNAMIC_PERL))
Karsten Hopp 5e85f7
- LIB += -L$(PERLLIBS) -lperl$(PERL_VER)
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifdef TCL
Karsten Hopp 5e85f7
- LIB += -L$(TCL)/lib
Karsten Hopp 5e85f7
- ifeq (yes, $(DYNAMIC_TCL))
Karsten Hopp 5e85f7
- LIB += -ltclstub$(TCL_VER)
Karsten Hopp 5e85f7
- else
Karsten Hopp 5e85f7
- LIB += -ltcl$(TCL_VER)
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifeq (yes, $(OLE))
Karsten Hopp 5e85f7
- LIB += -loleaut32
Karsten Hopp 5e85f7
- OBJ += $(OUTDIR)/if_ole.o
Karsten Hopp 5e85f7
- USE_STDCPLUS = yes
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifeq (yes, $(MBYTE))
Karsten Hopp 5e85f7
- DEFINES += -DFEAT_MBYTE
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifeq (yes, $(IME))
Karsten Hopp 5e85f7
- DEFINES += -DFEAT_MBYTE_IME
Karsten Hopp 5e85f7
- ifeq (yes, $(DYNAMIC_IME))
Karsten Hopp 5e85f7
- DEFINES += -DDYNAMIC_IME
Karsten Hopp 5e85f7
- else
Karsten Hopp 5e85f7
- LIB += -limm32
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifdef ICONV
Karsten Hopp 5e85f7
- ifneq (yes, $(ICONV))
Karsten Hopp 5e85f7
- LIB += -L$(ICONV)
Karsten Hopp 5e85f7
- CFLAGS += -I$(ICONV)
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- DEFINES+=-DDYNAMIC_ICONV
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ifeq (yes, $(USE_STDCPLUS))
Karsten Hopp 5e85f7
- ifeq (yes, $(STATIC_STDCPLUS))
Karsten Hopp 5e85f7
- LIB += -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
Karsten Hopp 5e85f7
- else
Karsten Hopp 5e85f7
- LIB += -lstdc++
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- all: $(TARGET) vimrun.exe xxd/xxd.exe install.exe uninstal.exe GvimExt/gvimext.dll
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- vimrun.exe: vimrun.c
Karsten Hopp 5e85f7
- 	$(CC) $(CFLAGS) -o vimrun.exe vimrun.c $(LIB)
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- install.exe: dosinst.c
Karsten Hopp 5e85f7
- 	$(CC) $(CFLAGS) -o install.exe dosinst.c $(LIB) -lole32 -luuid
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- uninstal.exe: uninstal.c
Karsten Hopp 5e85f7
- 	$(CC) $(CFLAGS) -o uninstal.exe uninstal.c $(LIB)
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- $(TARGET): $(OUTDIR) $(OBJ)
Karsten Hopp 5e85f7
- 	$(CC) $(CFLAGS) $(LFLAGS) -o $@ $(OBJ) $(LIB) -lole32 -luuid $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB)
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- upx: exes
Karsten Hopp 5e85f7
- 	upx gvim.exe
Karsten Hopp 5e85f7
- 	upx vim.exe
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- mpress: exes
Karsten Hopp 5e85f7
- 	mpress gvim.exe
Karsten Hopp 5e85f7
- 	mpress vim.exe
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- xxd/xxd.exe: xxd/xxd.c
Karsten Hopp 5e85f7
- 	$(MAKE) -C xxd -f Make_ming.mak CC=$(CC)
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
Karsten Hopp 5e85f7
- 	$(MAKE) -C GvimExt -f Make_ming.mak CROSS=$(CROSS) CROSS_COMPILE=$(CROSS_COMPILE)
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- clean:
Karsten Hopp 5e85f7
- 	-$(DEL) $(OUTDIR)$(DIRSLASH)*.o
Karsten Hopp 5e85f7
- 	-$(DEL) $(OUTDIR)$(DIRSLASH)*.res
Karsten Hopp 5e85f7
- 	-rmdir $(OUTDIR)
Karsten Hopp 5e85f7
- 	-$(DEL) *.exe
Karsten Hopp 5e85f7
- 	-$(DEL) pathdef.c
Karsten Hopp 5e85f7
- ifdef PERL
Karsten Hopp 5e85f7
- 	-$(DEL) if_perl.c
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- ifdef MZSCHEME
Karsten Hopp 5e85f7
- 	-$(DEL) mzscheme_base.c
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 	$(MAKE) -C GvimExt -f Make_ming.mak clean
Karsten Hopp 5e85f7
- 	$(MAKE) -C xxd -f Make_ming.mak clean
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- ###########################################################################
Karsten Hopp 5e85f7
- INCL = vim.h feature.h os_win32.h os_dos.h ascii.h keymap.h term.h macros.h \
Karsten Hopp 5e85f7
- 	structs.h regexp.h option.h ex_cmds.h proto.h globals.h farsi.h \
Karsten Hopp 5e85f7
- 	gui.h
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- $(OUTDIR)/if_python.o : if_python.c if_py_both.h $(INCL)
Karsten Hopp 5e85f7
- 	$(CC) -c $(CFLAGS) $(PYTHONINC) -DDYNAMIC_PYTHON_DLL=\"python$(PYTHON_VER).dll\" $< -o $@
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- $(OUTDIR)/if_python3.o : if_python3.c if_py_both.h $(INCL)
Karsten Hopp 5e85f7
- 	$(CC) -c $(CFLAGS) $(PYTHON3INC) -DDYNAMIC_PYTHON3_DLL=\"PYTHON$(PYTHON3_VER).dll\" $< -o $@
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- $(OUTDIR)/%.o : %.c $(INCL)
Karsten Hopp 5e85f7
- 	$(CC) -c $(CFLAGS) $< -o $@
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- $(OUTDIR)/vimrc.o: vim.rc version.h gui_w32_rc.h
Karsten Hopp 5e85f7
- 	$(WINDRES) $(WINDRES_FLAGS) $(DEFINES) \
Karsten Hopp 5e85f7
- 	    --input-format=rc --output-format=coff -i vim.rc -o $@
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- $(OUTDIR):
Karsten Hopp 5e85f7
- 	$(MKDIR) $(OUTDIR)
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- $(OUTDIR)/ex_docmd.o:	ex_docmd.c $(INCL) ex_cmds.h
Karsten Hopp 5e85f7
- 	$(CC) -c $(CFLAGS) ex_docmd.c -o $(OUTDIR)/ex_docmd.o
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- $(OUTDIR)/ex_eval.o:	ex_eval.c $(INCL) ex_cmds.h
Karsten Hopp 5e85f7
- 	$(CC) -c $(CFLAGS) ex_eval.c -o $(OUTDIR)/ex_eval.o
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- $(OUTDIR)/gui_w32.o:	gui_w32.c gui_w48.c $(INCL)
Karsten Hopp 5e85f7
- 	$(CC) -c $(CFLAGS) gui_w32.c -o $(OUTDIR)/gui_w32.o
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- $(OUTDIR)/gui_dwrite.o:	gui_dwrite.cpp $(INCL) gui_dwrite.h
Karsten Hopp 5e85f7
- 	$(CC) -c $(CFLAGS) gui_dwrite.cpp -o $(OUTDIR)/gui_dwrite.o
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- $(OUTDIR)/if_cscope.o:	if_cscope.c $(INCL) if_cscope.h
Karsten Hopp 5e85f7
- 	$(CC) -c $(CFLAGS) if_cscope.c -o $(OUTDIR)/if_cscope.o
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- # Remove -D__IID_DEFINED__ for newer versions of the w32api
Karsten Hopp 5e85f7
- $(OUTDIR)/if_ole.o: if_ole.cpp $(INCL)
Karsten Hopp 5e85f7
- 	$(CC) $(CFLAGS) -c -o $(OUTDIR)/if_ole.o if_ole.cpp
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- $(OUTDIR)/if_ruby.o: if_ruby.c $(INCL)
Karsten Hopp 5e85f7
- ifeq (16, $(RUBY))
Karsten Hopp 5e85f7
- 	$(CC) $(CFLAGS) -U_WIN32 -c -o $(OUTDIR)/if_ruby.o if_ruby.c
Karsten Hopp 5e85f7
- endif
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- if_perl.c: if_perl.xs typemap
Karsten Hopp 5e85f7
- 	$(XSUBPP) -prototypes -typemap \
Karsten Hopp 5e85f7
- 	     $(PERLLIB)/ExtUtils/typemap if_perl.xs > $@
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- $(OUTDIR)/netbeans.o:	netbeans.c $(INCL) $(NBDEBUG_INCL) $(NBDEBUG_SRC)
Karsten Hopp 5e85f7
- 	$(CC) -c $(CFLAGS) netbeans.c -o $(OUTDIR)/netbeans.o
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- $(OUTDIR)/regexp.o:		regexp.c regexp_nfa.c $(INCL)
Karsten Hopp 5e85f7
- 	$(CC) -c $(CFLAGS) regexp.c -o $(OUTDIR)/regexp.o
Karsten Hopp 5e85f7
- 
Karsten Hopp 5e85f7
- $(OUTDIR)/if_mzsch.o:	if_mzsch.c $(INCL) if_mzsch.h $(MZ_EXTRA_DEP)
Karsten Hopp 5e85f7
- 	$(CC) -c $(CFLAGS) if_mzsch.c -o $(OUTDIR)/if_mzsch.o
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
- mzscheme_base.c:
Karsten Hopp 5e85f7
- 	$(MZSCHEME)/mzc --c-mods mzscheme_base.c ++lib scheme/base
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
! pathdef.c: $(INCL)
Karsten Hopp 5e85f7
! ifneq (sh.exe, $(SHELL))
Karsten Hopp 5e85f7
! 	@echo creating pathdef.c
Karsten Hopp 5e85f7
! 	@echo '/* pathdef.c */' > pathdef.c
Karsten Hopp 5e85f7
! 	@echo '#include "vim.h"' >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo 'char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)";' >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo 'char_u *all_lflags = (char_u *)"$(CC) $(CFLAGS) $(LFLAGS) -o $(TARGET) $(LIB) -lole32 -luuid $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB)";' >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo 'char_u *compiled_user = (char_u *)"$(USERNAME)";' >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo 'char_u *compiled_sys = (char_u *)"$(USERDOMAIN)";' >> pathdef.c
Karsten Hopp 5e85f7
! else
Karsten Hopp 5e85f7
! 	@echo creating pathdef.c
Karsten Hopp 5e85f7
! 	@echo /* pathdef.c */ > pathdef.c
Karsten Hopp 5e85f7
! 	@echo #include "vim.h" >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)"; >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)"; >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)"; >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo char_u *all_lflags = (char_u *)"$(CC) $(CFLAGS) $(LFLAGS) -o $(TARGET) $(LIB) -lole32 -luuid $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB)"; >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo char_u *compiled_user = (char_u *)"$(USERNAME)"; >> pathdef.c
Karsten Hopp 5e85f7
! 	@echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> pathdef.c
Karsten Hopp 5e85f7
! endif
Karsten Hopp 5e85f7
--- 34,49 ----
Karsten Hopp 5e85f7
  # on my NT box, it's here:
Karsten Hopp 5e85f7
  #PYTHON=c:/python20
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
! # uncomment 'PYTHON3' if you want a python3-enabled version
Karsten Hopp 5e85f7
! #PYTHON3=c:/python31
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
! # uncomment 'TCL' if you want a Tcl-enabled version
Karsten Hopp 5e85f7
  #TCL=c:/tcl
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
! # uncomment 'RUBY' if you want a Ruby-enabled version
Karsten Hopp 5e85f7
  #RUBY=c:/ruby
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
  
Karsten Hopp 5e85f7
! # Do not change this.
Karsten Hopp 5e85f7
! UNDER_CYGWIN = no
Karsten Hopp 5e85f7
! include Make_cyg_ming.mak
Karsten Hopp 5e85f7
*** ../vim-7.4.495/src/Make_mvc.mak	2014-08-22 18:12:53.995244049 +0200
Karsten Hopp 5e85f7
--- src/Make_mvc.mak	2014-11-05 13:49:27.080811946 +0100
Karsten Hopp 5e85f7
***************
Karsten Hopp 5e85f7
*** 50,62 ****
Karsten Hopp 5e85f7
  #	Perl interface:
Karsten Hopp 5e85f7
  #	  PERL=[Path to Perl directory]
Karsten Hopp 5e85f7
  #	  DYNAMIC_PERL=yes (to load the Perl DLL dynamically)
Karsten Hopp 5e85f7
! #	  PERL_VER=[Perl version, in the form 55 (5.005), 56 (5.6.x), etc]
Karsten Hopp 5e85f7
  #	  (default is 56)
Karsten Hopp 5e85f7
  #
Karsten Hopp 5e85f7
  #	Python interface:
Karsten Hopp 5e85f7
  #	  PYTHON=[Path to Python directory]
Karsten Hopp 5e85f7
  #	  DYNAMIC_PYTHON=yes (to load the Python DLL dynamically)
Karsten Hopp 5e85f7
! #	  PYTHON_VER=[Python version, eg 15, 20]  (default is 22)
Karsten Hopp 5e85f7
  #
Karsten Hopp 5e85f7
  #	Python3 interface:
Karsten Hopp 5e85f7
  #	  PYTHON3=[Path to Python3 directory]
Karsten Hopp 5e85f7
--- 50,63 ----
Karsten Hopp 5e85f7
  #	Perl interface:
Karsten Hopp 5e85f7
  #	  PERL=[Path to Perl directory]
Karsten Hopp 5e85f7
  #	  DYNAMIC_PERL=yes (to load the Perl DLL dynamically)
Karsten Hopp 5e85f7
! #	  PERL_VER=[Perl version, in the form 55 (5.005), 56 (5.6.x),
Karsten Hopp 5e85f7
! #		    510 (5.10.x), etc]
Karsten Hopp 5e85f7
  #	  (default is 56)
Karsten Hopp 5e85f7
  #
Karsten Hopp 5e85f7
  #	Python interface:
Karsten Hopp 5e85f7
  #	  PYTHON=[Path to Python directory]
Karsten Hopp 5e85f7
  #	  DYNAMIC_PYTHON=yes (to load the Python DLL dynamically)
Karsten Hopp 5e85f7
! #	  PYTHON_VER=[Python version, eg 22, 23, ..., 27]  (default is 22)
Karsten Hopp 5e85f7
  #
Karsten Hopp 5e85f7
  #	Python3 interface:
Karsten Hopp 5e85f7
  #	  PYTHON3=[Path to Python3 directory]
Karsten Hopp 5e85f7
***************
Karsten Hopp 5e85f7
*** 66,76 ****
Karsten Hopp 5e85f7
  #	Ruby interface:
Karsten Hopp 5e85f7
  #	  RUBY=[Path to Ruby directory]
Karsten Hopp 5e85f7
  #	  DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically)
Karsten Hopp 5e85f7
! #	  RUBY_VER=[Ruby version, eg 16, 17] (default is 18)
Karsten Hopp 5e85f7
! #	  RUBY_VER_LONG=[Ruby version, eg 1.6, 1.7] (default is 1.8)
Karsten Hopp 5e85f7
  #	    You must set RUBY_VER_LONG when change RUBY_VER.
Karsten Hopp 5e85f7
! #	    You must set RUBY_API_VER to RUBY_VER_LONG.
Karsten Hopp 5e85f7
! #	    Don't set ruby API version to RUBY_VER like 191.
Karsten Hopp 5e85f7
  #
Karsten Hopp 5e85f7
  #	Tcl interface:
Karsten Hopp 5e85f7
  #	  TCL=[Path to Tcl directory]
Karsten Hopp 5e85f7
--- 67,79 ----
Karsten Hopp 5e85f7
  #	Ruby interface:
Karsten Hopp 5e85f7
  #	  RUBY=[Path to Ruby directory]
Karsten Hopp 5e85f7
  #	  DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically)
Karsten Hopp 5e85f7
! #	  RUBY_VER=[Ruby version, eg 18, 19, 20] (default is 18)
Karsten Hopp 5e85f7
! #	  RUBY_VER_LONG=[Ruby version, eg 1.8, 1.9.1, 2.0.0] (default is 1.8)
Karsten Hopp 5e85f7
  #	    You must set RUBY_VER_LONG when change RUBY_VER.
Karsten Hopp 5e85f7
! #	    RUBY_API_VER is derived from RUBY_VER_LONG.
Karsten Hopp 5e85f7
! #	    Note: If you use Ruby 1.9.3, set as follows:
Karsten Hopp 5e85f7
! #	      RUBY_VER=19
Karsten Hopp 5e85f7
! #	      RUBY_VER_LONG=1.9.1 (not 1.9.3, because the API version is 1.9.1.)
Karsten Hopp 5e85f7
  #
Karsten Hopp 5e85f7
  #	Tcl interface:
Karsten Hopp 5e85f7
  #	  TCL=[Path to Tcl directory]
Karsten Hopp 5e85f7
*** ../vim-7.4.495/Filelist	2014-08-29 15:12:50.950447798 +0200
Karsten Hopp 5e85f7
--- Filelist	2014-11-05 13:52:11.840807976 +0100
Karsten Hopp 5e85f7
***************
Karsten Hopp 5e85f7
*** 277,282 ****
Karsten Hopp 5e85f7
--- 277,283 ----
Karsten Hopp 5e85f7
  		src/Make_bc3.mak \
Karsten Hopp 5e85f7
  		src/Make_bc5.mak \
Karsten Hopp 5e85f7
  		src/Make_cyg.mak \
Karsten Hopp 5e85f7
+ 		src/Make_cyg_ming.mak \
Karsten Hopp 5e85f7
  		src/Make_djg.mak \
Karsten Hopp 5e85f7
  		src/Make_ivc.mak \
Karsten Hopp 5e85f7
  		src/Make_dvc.mak \
Karsten Hopp 5e85f7
*** ../vim-7.4.495/src/version.c	2014-11-05 13:43:18.352820831 +0100
Karsten Hopp 5e85f7
--- src/version.c	2014-11-05 13:51:22.216809171 +0100
Karsten Hopp 5e85f7
***************
Karsten Hopp 5e85f7
*** 743,744 ****
Karsten Hopp 5e85f7
--- 743,746 ----
Karsten Hopp 5e85f7
  {   /* Add new patch number below this line */
Karsten Hopp 5e85f7
+ /**/
Karsten Hopp 5e85f7
+     496,
Karsten Hopp 5e85f7
  /**/
Karsten Hopp 5e85f7
Karsten Hopp 5e85f7
-- 
Karsten Hopp 5e85f7
ARTHUR:        What?
Karsten Hopp 5e85f7
BLACK KNIGHT:  None shall pass.
Karsten Hopp 5e85f7
ARTHUR:        I have no quarrel with you, good Sir knight, but I must cross
Karsten Hopp 5e85f7
               this bridge.
Karsten Hopp 5e85f7
BLACK KNIGHT:  Then you shall die.
Karsten Hopp 5e85f7
                                  The Quest for the Holy Grail (Monty Python)
Karsten Hopp 5e85f7
Karsten Hopp 5e85f7
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 5e85f7
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 5e85f7
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 5e85f7
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///