annotate src/Make_cyg_ming.mak @ 6811:cc3f3d35c549 v7.4.727

patch 7.4.727 Problem: Cannot build GvimExt with MingW. Solution: Add -lgdi32. (KF Leong)
author Bram Moolenaar <bram@vim.org>
date Wed, 06 May 2015 06:51:50 +0200
parents 26a20ce3532c
children 64ff14cbb665
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 # Makefile for VIM on Win32 (Cygwin and MinGW)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2 #
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 # This file contains common part for Cygwin and MinGW and it is included
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 # from Make_cyg.mak and Make_ming.mak.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 #
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 # Info at http://www.mingw.org
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 # Alternative x86 and 64-builds: http://mingw-w64.sourceforge.net
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 # Also requires GNU make, which you can download from the same sites.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 # Get missing libraries from http://gnuwin32.sf.net.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 #
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 # Tested on Win32 NT 4 and Win95.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 #
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 # To make everything, just 'make -f Make_ming.mak'.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 # To make just e.g. gvim.exe, 'make -f Make_ming.mak gvim.exe'.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 # After a run, you can 'make -f Make_ming.mak clean' to clean up.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 #
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 # NOTE: Sometimes 'GNU Make' will stop after building vimrun.exe -- I think
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 # it's just run out of memory or something. Run again, and it will continue
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 # with 'xxd'.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 #
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 # "make upx" makes *compressed* versions of the 32 bit GUI and console EXEs,
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 # using the excellent UPX compressor:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 # http://upx.sourceforge.net/
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 # "make mpress" uses the MPRESS compressor for 32- and 64-bit EXEs:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 # http://www.matcode.com/mpress.htm
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 #
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 # Maintained by Ron Aaron <ronaharon@yahoo.com> et al.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 # Updated 2014 Oct 13.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 #>>>>> choose options:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 # set to yes for a debug build
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 DEBUG=no
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 # set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 OPTIMIZE=MAXSPEED
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 # set to yes to make gvim, no for vim
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36 GUI=yes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37 # set to yes if you want to use DirectWrite (DirectX)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38 # MinGW-w64 is needed, and ARCH should be set to i686 or x86-64.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
39 DIRECTX=no
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
40 # FEATURES=[TINY | SMALL | NORMAL | BIG | HUGE]
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
41 # Set to TINY to make minimal version (few features).
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
42 FEATURES=BIG
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
43 # Set to one of i386, i486, i586, i686 as the minimum target processor.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
44 # For amd64/x64 architecture set ARCH=x86-64 .
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
45 ARCH=i386
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
46 # Set to yes to cross-compile from unix; no=native Windows (and Cygwin).
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
47 CROSS=no
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
48 # Set to path to iconv.h and libiconv.a to enable using 'iconv.dll'.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
49 #ICONV="."
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
50 ICONV=yes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
51 GETTEXT=yes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
52 # Set to yes to include multibyte support.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
53 MBYTE=yes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
54 # Set to yes to include IME support.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
55 IME=yes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
56 DYNAMIC_IME=yes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
57 # Set to yes to enable writing a postscript file with :hardcopy.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
58 POSTSCRIPT=no
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
59 # Set to yes to enable OLE support.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
60 OLE=no
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
61 # Set the default $(WINVER) to make it work with pre-Win2k.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
62 ifndef WINVER
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
63 WINVER = 0x0500
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
64 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
65 # Set to yes to enable Cscope support.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
66 CSCOPE=yes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
67 # Set to yes to enable Netbeans support.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
68 NETBEANS=$(GUI)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
69
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
70
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
71 # Link against the shared version of libstdc++ by default. Set
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
72 # STATIC_STDCPLUS to "yes" to link against static version instead.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
73 ifndef STATIC_STDCPLUS
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
74 STATIC_STDCPLUS=no
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
75 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
76
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
77 # If the user doesn't want gettext, undefine it.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
78 ifeq (no, $(GETTEXT))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
79 GETTEXT=
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
80 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
81 # Added by E.F. Amatria <eferna1@platea.ptic.mec.es> 2001 Feb 23
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
82 # Uncomment the first line and one of the following three if you want Native Language
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
83 # Support. You'll need gnu_gettext.win32, a MINGW32 Windows PORT of gettext by
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
84 # Franco Bez <franco.bez@gmx.de>. It may be found at
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
85 # http://home.a-city.de/franco.bez/gettext/gettext_win32_en.html
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
86 # Tested with mingw32 with GCC-2.95.2 on Win98
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
87 # Updated 2001 Jun 9
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
88 #GETTEXT=c:/gettext.win32.msvcrt
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
89 #STATIC_GETTEXT=USE_STATIC_GETTEXT
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
90 #DYNAMIC_GETTEXT=USE_GETTEXT_DLL
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
91 #DYNAMIC_GETTEXT=USE_SAFE_GETTEXT_DLL
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
92 SAFE_GETTEXT_DLL_OBJ = $(GETTEXT)/src/safe_gettext_dll/safe_gettext_dll.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
93 # Alternatively, if you uncomment the two following lines, you get a "safe" version
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
94 # without linking the safe_gettext_dll.o object file.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
95 #DYNAMIC_GETTEXT=DYNAMIC_GETTEXT
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
96 #GETTEXT_DYNAMIC=gnu_gettext.dll
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
97 INTLPATH=$(GETTEXT)/lib/mingw32
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
98 INTLLIB=gnu_gettext
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
99
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
100 # If you are using gettext-0.10.35 from http://sourceforge.net/projects/gettext
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
101 # or gettext-0.10.37 from http://sourceforge.net/projects/mingwrep/
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
102 # uncomment the following, but I can't build a static version with them, ?-(|
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
103 #GETTEXT=c:/gettext-0.10.37-20010430
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
104 #STATIC_GETTEXT=USE_STATIC_GETTEXT
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
105 #DYNAMIC_GETTEXT=DYNAMIC_GETTEXT
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
106 #INTLPATH=$(GETTEXT)/lib
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
107 #INTLLIB=intl
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
108
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
109 # Perl interface:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
110 # PERL=[Path to Perl directory] (Set inside Make_cyg.mak or Make_ming.mak)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
111 # DYNAMIC_PERL=yes (to load the Perl DLL dynamically)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
112 # PERL_VER=[Perl version, eg 56, 58, 510] (default is 56)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
113 ifdef PERL
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
114 ifndef PERL_VER
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
115 PERL_VER=56
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
116 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
117 ifndef DYNAMIC_PERL
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
118 DYNAMIC_PERL=yes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
119 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
120 # on Linux, for cross-compile, it's here:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
121 #PERLLIB=/home/ron/ActivePerl/lib
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
122 # on NT, it's here:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
123 PERLEXE=$(PERL)/bin/perl
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
124 PERLLIB=$(PERL)/lib
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
125 PERLLIBS=$(PERLLIB)/Core
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
126 ifeq ($(UNDER_CYGWIN),yes)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
127 PERLTYPEMAP:=$(shell cygpath -m $(PERLLIB)/ExtUtils/typemap)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
128 XSUBPPTRY:=$(shell cygpath -m $(PERLLIB)/ExtUtils/xsubpp)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
129 else
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
130 PERLTYPEMAP=$(PERLLIB)/ExtUtils/typemap
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
131 XSUBPPTRY=$(PERLLIB)/ExtUtils/xsubpp
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
132 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
133 XSUBPP_EXISTS=$(shell $(PERLEXE) -e "print 1 unless -e '$(XSUBPPTRY)'")
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
134 ifeq "$(XSUBPP_EXISTS)" ""
6349
5b2ff413125b updated for version 7.4.507
Bram Moolenaar <bram@vim.org>
parents: 6326
diff changeset
135 XSUBPP=$(PERLEXE) $(XSUBPPTRY)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
136 else
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
137 XSUBPP=xsubpp
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
138 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
139 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
140
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
141 # Lua interface:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
142 # LUA=[Path to Lua directory] (Set inside Make_cyg.mak or Make_ming.mak)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
143 # DYNAMIC_LUA=yes (to load the Lua DLL dynamically)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
144 # LUA_VER=[Lua version, eg 51, 52] (default is 51)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
145 ifdef LUA
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
146 ifndef DYNAMIC_LUA
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
147 DYNAMIC_LUA=yes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
148 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
149
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
150 ifndef LUA_VER
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
151 LUA_VER=51
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
152 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
153
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
154 ifeq (no,$(DYNAMIC_LUA))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
155 LUA_LIB = -L$(LUA)/lib -llua
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
156 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
157
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
158 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
159
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
160 # MzScheme interface:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
161 # MZSCHEME=[Path to MzScheme directory] (Set inside Make_cyg.mak or Make_ming.mak)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
162 # DYNAMIC_MZSCHEME=yes (to load the MzScheme DLL dynamically)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
163 # MZSCHEME_VER=[MzScheme version] (default is 205_000)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
164 # MZSCHEME_DEBUG=no
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
165 ifdef MZSCHEME
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
166 ifndef DYNAMIC_MZSCHEME
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
167 DYNAMIC_MZSCHEME=yes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
168 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
169
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
170 ifndef MZSCHEME_VER
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
171 MZSCHEME_VER=205_000
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
172 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
173
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
174 ifndef MZSCHEME_PRECISE_GC
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
175 MZSCHEME_PRECISE_GC=no
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
176 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
177
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
178 # for version 4.x we need to generate byte-code for Scheme base
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
179 ifndef MZSCHEME_GENERATE_BASE
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
180 MZSCHEME_GENERATE_BASE=no
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
181 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
182
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
183 ifndef MZSCHEME_USE_RACKET
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
184 MZSCHEME_MAIN_LIB=mzsch
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
185 else
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
186 MZSCHEME_MAIN_LIB=racket
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
187 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
188
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
189 ifeq (no,$(DYNAMIC_MZSCHEME))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
190 ifeq (yes,$(MZSCHEME_PRECISE_GC))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
191 MZSCHEME_LIB=-l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
192 else
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
193 MZSCHEME_LIB = -l$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER) -lmzgc$(MZSCHEME_VER)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
194 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
195 # the modern MinGW can dynamically link to dlls directly.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
196 # point MZSCHEME_DLLS to where you put libmzschXXXXXXX.dll and libgcXXXXXXX.dll
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
197 ifndef MZSCHEME_DLLS
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
198 MZSCHEME_DLLS=$(MZSCHEME)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
199 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
200 MZSCHEME_LIBDIR=-L$(MZSCHEME_DLLS) -L$(MZSCHEME_DLLS)\lib
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
201 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
202
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
203 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
204
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
205 # Python interface:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
206 # PYTHON=[Path to Python directory] (Set inside Make_cyg.mak or Make_ming.mak)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
207 # DYNAMIC_PYTHON=yes (to load the Python DLL dynamically)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
208 # PYTHON_VER=[Python version, eg 22, 23, ..., 27] (default is 22)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
209 ifdef PYTHON
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
210 ifndef DYNAMIC_PYTHON
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
211 DYNAMIC_PYTHON=yes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
212 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
213
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
214 ifndef PYTHON_VER
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
215 PYTHON_VER=22
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
216 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
217
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
218 ifeq (no,$(DYNAMIC_PYTHON))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
219 PYTHONLIB=-L$(PYTHON)/libs -lpython$(PYTHON_VER)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
220 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
221 # my include files are in 'win32inc' on Linux, and 'include' in the standard
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
222 # NT distro (ActiveState)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
223 ifeq ($(CROSS),no)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
224 PYTHONINC=-I $(PYTHON)/include
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
225 else
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
226 PYTHONINC=-I $(PYTHON)/win32inc
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
227 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
228 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
229
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
230 # Python3 interface:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
231 # PYTHON3=[Path to Python3 directory] (Set inside Make_cyg.mak or Make_ming.mak)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
232 # DYNAMIC_PYTHON3=yes (to load the Python3 DLL dynamically)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
233 # PYTHON3_VER=[Python3 version, eg 31, 32] (default is 31)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
234 ifdef PYTHON3
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
235 ifndef DYNAMIC_PYTHON3
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
236 DYNAMIC_PYTHON3=yes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
237 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
238
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
239 ifndef PYTHON3_VER
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
240 PYTHON3_VER=31
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
241 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
242
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
243 ifeq (no,$(DYNAMIC_PYTHON3))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
244 PYTHON3LIB=-L$(PYTHON3)/libs -lPYTHON$(PYTHON3_VER)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
245 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
246
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
247 ifeq ($(CROSS),no)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
248 PYTHON3INC=-I $(PYTHON3)/include
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
249 else
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
250 PYTHON3INC=-I $(PYTHON3)/win32inc
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
251 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
252 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
253
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
254 # TCL interface:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
255 # TCL=[Path to TCL directory] (Set inside Make_cyg.mak or Make_ming.mak)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
256 # DYNAMIC_TCL=yes (to load the TCL DLL dynamically)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
257 # TCL_VER=[TCL version, eg 83, 84] (default is 83)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
258 ifdef TCL
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
259 ifndef DYNAMIC_TCL
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
260 DYNAMIC_TCL=yes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
261 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
262 ifndef TCL_VER
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
263 TCL_VER = 83
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
264 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
265 TCLINC += -I$(TCL)/include
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
266 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
267
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
268
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
269 # Ruby interface:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
270 # RUBY=[Path to Ruby directory] (Set inside Make_cyg.mak or Make_ming.mak)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
271 # DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
272 # RUBY_VER=[Ruby version, eg 18, 19, 20] (default is 18)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
273 # RUBY_VER_LONG=[Ruby version, eg 1.8, 1.9.1, 2.0.0] (default is 1.8)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
274 # You must set RUBY_VER_LONG when changing RUBY_VER.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
275 # RUBY_API_VER is derived from RUBY_VER_LONG.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
276 # Note: If you use Ruby 1.9.3, set as follows:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
277 # RUBY_VER=19
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
278 # RUBY_VER_LONG=1.9.1 (not 1.9.3, because the API version is 1.9.1.)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
279 ifdef RUBY
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
280 ifndef DYNAMIC_RUBY
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
281 DYNAMIC_RUBY=yes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
282 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
283 # Set default value
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
284 ifndef RUBY_VER
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
285 RUBY_VER = 18
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
286 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
287 ifndef RUBY_VER_LONG
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
288 RUBY_VER_LONG = 1.8
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
289 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
290 ifndef RUBY_API_VER
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
291 RUBY_API_VER = $(subst .,,$(RUBY_VER_LONG))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
292 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
293
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
294 ifndef RUBY_PLATFORM
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
295 ifeq ($(RUBY_VER), 16)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
296 RUBY_PLATFORM = i586-mswin32
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
297 else
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
298 ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/i386-mingw32),)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
299 RUBY_PLATFORM = i386-mingw32
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
300 else
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
301 ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/x64-mingw32),)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
302 RUBY_PLATFORM = x64-mingw32
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
303 else
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
304 RUBY_PLATFORM = i386-mswin32
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
305 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
306 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
307 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
308 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
309
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
310 ifndef RUBY_INSTALL_NAME
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
311 ifeq ($(RUBY_VER), 16)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
312 RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_API_VER)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
313 else
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
314 ifeq ($(ARCH),x86-64)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
315 RUBY_INSTALL_NAME = x64-msvcrt-ruby$(RUBY_API_VER)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
316 else
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
317 RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_API_VER)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
318 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
319 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
320 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
321
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
322 ifeq (19, $(word 1,$(sort 19 $(RUBY_VER))))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
323 RUBY_19_OR_LATER = 1
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
324 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
325
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
326 RUBYINC = -I $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
327 ifdef RUBY_19_OR_LATER
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
328 RUBYINC += -I $(RUBY)/include/ruby-$(RUBY_VER_LONG) -I $(RUBY)/include/ruby-$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
329 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
330 ifeq (no, $(DYNAMIC_RUBY))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
331 RUBYLIB = -L$(RUBY)/lib -l$(RUBY_INSTALL_NAME)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
332 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
333
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
334 endif # RUBY
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
335
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
336 # See feature.h for a list of options.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
337 # Any other defines can be included here.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
338 DEF_GUI=-DFEAT_GUI_W32 -DFEAT_CLIPBOARD
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
339 DEFINES=-DWIN32 -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
340 -DHAVE_PATHDEF -DFEAT_$(FEATURES)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
341 ifeq ($(ARCH),x86-64)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
342 DEFINES+=-DMS_WIN64
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
343 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
344 ifeq ($(CROSS),yes)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
345 # cross-compiler prefix:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
346 ifndef CROSS_COMPILE
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
347 CROSS_COMPILE = i586-pc-mingw32msvc-
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
348 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
349 DEL = rm
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
350 MKDIR = mkdir -p
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
351 DIRSLASH = /
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
352 else
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
353 # normal (Windows) compilation:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
354 ifndef CROSS_COMPILE
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
355 CROSS_COMPILE =
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
356 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
357 ifneq (sh.exe, $(SHELL))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
358 DEL = rm
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
359 MKDIR = mkdir -p
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
360 DIRSLASH = /
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
361 else
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
362 DEL = del
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
363 MKDIR = mkdir
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
364 DIRSLASH = \\
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
365 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
366 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
367 CC := $(CROSS_COMPILE)gcc
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
368 CXX := $(CROSS_COMPILE)g++
6436
26a20ce3532c updated for version 7.4.548
Bram Moolenaar <bram@vim.org>
parents: 6349
diff changeset
369 ifeq ($(UNDER_CYGWIN),yes)
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
370 WINDRES := $(CROSS_COMPILE)windres
6436
26a20ce3532c updated for version 7.4.548
Bram Moolenaar <bram@vim.org>
parents: 6349
diff changeset
371 else
26a20ce3532c updated for version 7.4.548
Bram Moolenaar <bram@vim.org>
parents: 6349
diff changeset
372 WINDRES := windres
26a20ce3532c updated for version 7.4.548
Bram Moolenaar <bram@vim.org>
parents: 6349
diff changeset
373 endif
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
374 WINDRES_CC = $(CC)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
375
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
376 #>>>>> end of choices
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
377 ###########################################################################
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
378
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
379 CFLAGS = -Iproto $(DEFINES) -pipe -w -march=$(ARCH) -Wall
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
380 WINDRES_FLAGS = --preprocessor="$(WINDRES_CC) -E -xc" -DRC_INVOKED
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
381 EXTRA_LIBS =
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
382
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
383 ifdef GETTEXT
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
384 DEFINES += -DHAVE_GETTEXT -DHAVE_LOCALE_H
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
385 GETTEXTINCLUDE = $(GETTEXT)/include
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
386 GETTEXTLIB = $(INTLPATH)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
387 ifeq (yes, $(GETTEXT))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
388 DEFINES += -DDYNAMIC_GETTEXT
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
389 else
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
390 ifdef DYNAMIC_GETTEXT
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
391 DEFINES += -D$(DYNAMIC_GETTEXT)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
392 ifdef GETTEXT_DYNAMIC
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
393 DEFINES += -DGETTEXT_DYNAMIC -DGETTEXT_DLL=\"$(GETTEXT_DYNAMIC)\"
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
394 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
395 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
396 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
397 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
398
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
399 ifdef PERL
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
400 CFLAGS += -I$(PERLLIBS) -DFEAT_PERL
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
401 ifeq (yes, $(DYNAMIC_PERL))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
402 CFLAGS += -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl$(PERL_VER).dll\"
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
403 EXTRA_LIBS += -L$(PERLLIBS) -lperl$(PERL_VER)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
404 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
405 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
406
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
407 ifdef LUA
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
408 CFLAGS += -I$(LUA)/include -I$(LUA) -DFEAT_LUA
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
409 ifeq (yes, $(DYNAMIC_LUA))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
410 CFLAGS += -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL=\"lua$(LUA_VER).dll\"
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
411 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
412 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
413
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
414 ifdef MZSCHEME
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
415 CFLAGS += -I$(MZSCHEME)/include -DFEAT_MZSCHEME -DMZSCHEME_COLLECTS=\"$(MZSCHEME)/collects\"
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
416 ifeq (yes, $(DYNAMIC_MZSCHEME))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
417 CFLAGS += -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"lib$(MZSCHEME_MAIN_LIB)$(MZSCHEME_VER).dll\" -DDYNAMIC_MZGC_DLL=\"libmzgc$(MZSCHEME_VER).dll\"
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
418 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
419 ifeq (yes, "$(MZSCHEME_DEBUG)")
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
420 CFLAGS += -DMZSCHEME_FORCE_GC
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
421 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
422 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
423
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
424 ifdef RUBY
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
425 CFLAGS += -DFEAT_RUBY $(RUBYINC)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
426 ifeq (yes, $(DYNAMIC_RUBY))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
427 CFLAGS += -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\"
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
428 CFLAGS += -DDYNAMIC_RUBY_VER=$(RUBY_VER)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
429 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
430 ifneq ($(findstring w64-mingw32,$(CC)),)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
431 # A workaround for MinGW-w64
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
432 CFLAGS += -DHAVE_STRUCT_TIMESPEC -DHAVE_STRUCT_TIMEZONE
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
433 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
434 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
435
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
436 ifdef PYTHON
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
437 CFLAGS += -DFEAT_PYTHON
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
438 ifeq (yes, $(DYNAMIC_PYTHON))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
439 CFLAGS += -DDYNAMIC_PYTHON
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
440 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
441 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
442
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
443 ifdef PYTHON3
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
444 CFLAGS += -DFEAT_PYTHON3
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
445 ifeq (yes, $(DYNAMIC_PYTHON3))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
446 CFLAGS += -DDYNAMIC_PYTHON3
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
447 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
448 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
449
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
450 ifdef TCL
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
451 CFLAGS += -DFEAT_TCL $(TCLINC)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
452 ifeq (yes, $(DYNAMIC_TCL))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
453 CFLAGS += -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"tcl$(TCL_VER).dll\"
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
454 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
455 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
456
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
457 ifeq ($(POSTSCRIPT),yes)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
458 DEFINES += -DMSWINPS
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
459 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
460
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
461 ifeq (yes, $(OLE))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
462 DEFINES += -DFEAT_OLE
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
463 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
464
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
465 ifeq ($(CSCOPE),yes)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
466 DEFINES += -DFEAT_CSCOPE
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
467 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
468
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
469 ifeq ($(NETBEANS),yes)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
470 # Only allow NETBEANS for a GUI build.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
471 ifeq (yes, $(GUI))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
472 DEFINES += -DFEAT_NETBEANS_INTG
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
473
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
474 ifeq ($(NBDEBUG), yes)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
475 DEFINES += -DNBDEBUG
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
476 NBDEBUG_INCL = nbdebug.h
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
477 NBDEBUG_SRC = nbdebug.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
478 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
479 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
480 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
481
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
482 # DirectWrite (DirectX)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
483 ifeq ($(DIRECTX),yes)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
484 # Only allow DirectWrite for a GUI build.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
485 ifeq (yes, $(GUI))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
486 DEFINES += -DFEAT_DIRECTX -DDYNAMIC_DIRECTX
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
487 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
488 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
489
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
490 # Only allow XPM for a GUI build.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
491 ifeq (yes, $(GUI))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
492
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
493 ifndef XPM
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
494 ifeq ($(ARCH),i386)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
495 XPM = xpm/x86
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
496 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
497 ifeq ($(ARCH),i486)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
498 XPM = xpm/x86
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
499 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
500 ifeq ($(ARCH),i586)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
501 XPM = xpm/x86
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
502 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
503 ifeq ($(ARCH),i686)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
504 XPM = xpm/x86
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
505 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
506 ifeq ($(ARCH),x86-64)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
507 XPM = xpm/x64
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
508 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
509 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
510 ifdef XPM
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
511 ifneq ($(XPM),no)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
512 CFLAGS += -DFEAT_XPM_W32 -I $(XPM)/include -I $(XPM)/../include
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
513 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
514 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
515
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
516 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
517
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
518 ifeq ($(DEBUG),yes)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
519 CFLAGS += -g -fstack-check
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
520 DEBUG_SUFFIX=d
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
521 else
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
522 ifeq ($(OPTIMIZE), SIZE)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
523 CFLAGS += -Os
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
524 else
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
525 ifeq ($(OPTIMIZE), MAXSPEED)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
526 CFLAGS += -O3
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
527 CFLAGS += -fomit-frame-pointer -freg-struct-return
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
528 else # SPEED
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
529 CFLAGS += -O2
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
530 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
531 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
532 CFLAGS += -s
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
533 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
534
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
535 LIB = -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32 -lcomctl32 -lversion
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
536 GUIOBJ = $(OUTDIR)/gui.o $(OUTDIR)/gui_w32.o $(OUTDIR)/gui_beval.o $(OUTDIR)/os_w32exe.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
537 OBJ = \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
538 $(OUTDIR)/blowfish.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
539 $(OUTDIR)/buffer.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
540 $(OUTDIR)/charset.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
541 $(OUTDIR)/crypt.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
542 $(OUTDIR)/crypt_zip.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
543 $(OUTDIR)/diff.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
544 $(OUTDIR)/digraph.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
545 $(OUTDIR)/edit.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
546 $(OUTDIR)/eval.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
547 $(OUTDIR)/ex_cmds.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
548 $(OUTDIR)/ex_cmds2.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
549 $(OUTDIR)/ex_docmd.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
550 $(OUTDIR)/ex_eval.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
551 $(OUTDIR)/ex_getln.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
552 $(OUTDIR)/fileio.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
553 $(OUTDIR)/fold.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
554 $(OUTDIR)/getchar.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
555 $(OUTDIR)/hardcopy.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
556 $(OUTDIR)/hashtab.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
557 $(OUTDIR)/main.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
558 $(OUTDIR)/mark.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
559 $(OUTDIR)/memfile.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
560 $(OUTDIR)/memline.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
561 $(OUTDIR)/menu.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
562 $(OUTDIR)/message.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
563 $(OUTDIR)/misc1.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
564 $(OUTDIR)/misc2.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
565 $(OUTDIR)/move.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
566 $(OUTDIR)/mbyte.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
567 $(OUTDIR)/normal.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
568 $(OUTDIR)/ops.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
569 $(OUTDIR)/option.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
570 $(OUTDIR)/os_win32.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
571 $(OUTDIR)/os_mswin.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
572 $(OUTDIR)/winclip.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
573 $(OUTDIR)/pathdef.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
574 $(OUTDIR)/popupmnu.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
575 $(OUTDIR)/quickfix.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
576 $(OUTDIR)/regexp.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
577 $(OUTDIR)/screen.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
578 $(OUTDIR)/search.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
579 $(OUTDIR)/sha256.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
580 $(OUTDIR)/spell.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
581 $(OUTDIR)/syntax.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
582 $(OUTDIR)/tag.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
583 $(OUTDIR)/term.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
584 $(OUTDIR)/ui.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
585 $(OUTDIR)/undo.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
586 $(OUTDIR)/version.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
587 $(OUTDIR)/vimrc.o \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
588 $(OUTDIR)/window.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
589
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
590 ifdef PERL
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
591 OBJ += $(OUTDIR)/if_perl.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
592 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
593 ifdef LUA
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
594 OBJ += $(OUTDIR)/if_lua.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
595 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
596 ifdef MZSCHEME
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
597 OBJ += $(OUTDIR)/if_mzsch.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
598 MZSCHEME_INCL = if_mzsch.h
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
599 ifeq (yes,$(MZSCHEME_GENERATE_BASE))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
600 CFLAGS += -DINCLUDE_MZSCHEME_BASE
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
601 MZ_EXTRA_DEP += mzscheme_base.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
602 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
603 ifeq (yes,$(MZSCHEME_PRECISE_GC))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
604 CFLAGS += -DMZ_PRECISE_GC
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
605 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
606 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
607 ifdef PYTHON
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
608 OBJ += $(OUTDIR)/if_python.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
609 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
610 ifdef PYTHON3
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
611 OBJ += $(OUTDIR)/if_python3.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
612 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
613 ifdef RUBY
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
614 OBJ += $(OUTDIR)/if_ruby.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
615 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
616 ifdef TCL
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
617 OBJ += $(OUTDIR)/if_tcl.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
618 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
619 ifeq ($(CSCOPE),yes)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
620 OBJ += $(OUTDIR)/if_cscope.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
621 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
622 ifeq ($(NETBEANS),yes)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
623 # Only allow NETBEANS for a GUI build.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
624 ifeq (yes, $(GUI))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
625 OBJ += $(OUTDIR)/netbeans.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
626 LIB += -lwsock32
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
627 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
628 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
629 ifeq ($(DIRECTX),yes)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
630 # Only allow DIRECTX for a GUI build.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
631 ifeq (yes, $(GUI))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
632 OBJ += $(OUTDIR)/gui_dwrite.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
633 LIB += -ld2d1 -ldwrite
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
634 USE_STDCPLUS = yes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
635 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
636 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
637 ifneq ($(XPM),no)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
638 # Only allow XPM for a GUI build.
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
639 ifeq (yes, $(GUI))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
640 OBJ += $(OUTDIR)/xpm_w32.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
641 # You'll need libXpm.a from http://gnuwin32.sf.net
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
642 LIB += -L$(XPM)/lib -lXpm
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
643 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
644 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
645
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
646
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
647 ifdef MZSCHEME
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
648 MZSCHEME_SUFFIX = Z
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
649 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
650
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
651 ifeq ($(GUI),yes)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
652 TARGET := gvim$(DEBUG_SUFFIX).exe
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
653 DEFINES += $(DEF_GUI)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
654 OBJ += $(GUIOBJ)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
655 LFLAGS += -mwindows
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
656 OUTDIR = gobj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
657 else
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
658 TARGET := vim$(DEBUG_SUFFIX).exe
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
659 OUTDIR = obj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
660 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
661
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
662 ifdef GETTEXT
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
663 ifneq (yes, $(GETTEXT))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
664 CFLAGS += -I$(GETTEXTINCLUDE)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
665 ifndef STATIC_GETTEXT
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
666 LIB += -L$(GETTEXTLIB) -l$(INTLLIB)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
667 ifeq (USE_SAFE_GETTEXT_DLL, $(DYNAMIC_GETTEXT))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
668 OBJ+=$(SAFE_GETTEXT_DLL_OBJ)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
669 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
670 else
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
671 LIB += -L$(GETTEXTLIB) -lintl
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
672 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
673 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
674 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
675
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
676 ifdef PERL
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
677 ifeq (no, $(DYNAMIC_PERL))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
678 LIB += -L$(PERLLIBS) -lperl$(PERL_VER)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
679 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
680 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
681
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
682 ifdef TCL
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
683 LIB += -L$(TCL)/lib
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
684 ifeq (yes, $(DYNAMIC_TCL))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
685 LIB += -ltclstub$(TCL_VER)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
686 else
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
687 LIB += -ltcl$(TCL_VER)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
688 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
689 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
690
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
691 ifeq (yes, $(OLE))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
692 LIB += -loleaut32
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
693 OBJ += $(OUTDIR)/if_ole.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
694 USE_STDCPLUS = yes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
695 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
696
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
697 ifeq (yes, $(MBYTE))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
698 DEFINES += -DFEAT_MBYTE
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
699 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
700
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
701 ifeq (yes, $(IME))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
702 DEFINES += -DFEAT_MBYTE_IME
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
703 ifeq (yes, $(DYNAMIC_IME))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
704 DEFINES += -DDYNAMIC_IME
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
705 else
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
706 LIB += -limm32
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
707 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
708 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
709
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
710 ifdef ICONV
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
711 ifneq (yes, $(ICONV))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
712 LIB += -L$(ICONV)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
713 CFLAGS += -I$(ICONV)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
714 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
715 DEFINES+=-DDYNAMIC_ICONV
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
716 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
717
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
718 ifeq (yes, $(USE_STDCPLUS))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
719 ifeq (yes, $(STATIC_STDCPLUS))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
720 LIB += -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
721 else
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
722 LIB += -lstdc++
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
723 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
724 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
725
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
726 all: $(TARGET) vimrun.exe xxd/xxd.exe install.exe uninstal.exe GvimExt/gvimext.dll
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
727
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
728 vimrun.exe: vimrun.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
729 $(CC) $(CFLAGS) -o vimrun.exe vimrun.c $(LIB)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
730
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
731 install.exe: dosinst.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
732 $(CC) $(CFLAGS) -o install.exe dosinst.c $(LIB) -lole32 -luuid
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
733
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
734 uninstal.exe: uninstal.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
735 $(CC) $(CFLAGS) -o uninstal.exe uninstal.c $(LIB)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
736
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
737 $(TARGET): $(OUTDIR) $(OBJ)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
738 $(CC) $(CFLAGS) $(LFLAGS) -o $@ $(OBJ) $(LIB) -lole32 -luuid $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
739
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
740 upx: exes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
741 upx gvim.exe
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
742 upx vim.exe
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
743
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
744 mpress: exes
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
745 mpress gvim.exe
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
746 mpress vim.exe
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
747
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
748 xxd/xxd.exe: xxd/xxd.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
749 $(MAKE) -C xxd -f Make_ming.mak CC='$(CC)'
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
750
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
751 GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
752 $(MAKE) -C GvimExt -f Make_ming.mak CROSS=$(CROSS) CROSS_COMPILE=$(CROSS_COMPILE) CXX='$(CXX)' STATIC_STDCPLUS=$(STATIC_STDCPLUS)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
753
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
754 clean:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
755 -$(DEL) $(OUTDIR)$(DIRSLASH)*.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
756 -$(DEL) $(OUTDIR)$(DIRSLASH)*.res
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
757 -rmdir $(OUTDIR)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
758 -$(DEL) *.exe
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
759 -$(DEL) pathdef.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
760 ifdef PERL
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
761 -$(DEL) if_perl.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
762 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
763 ifdef MZSCHEME
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
764 -$(DEL) mzscheme_base.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
765 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
766 $(MAKE) -C GvimExt -f Make_ming.mak clean
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
767 $(MAKE) -C xxd -f Make_ming.mak clean
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
768
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
769 ###########################################################################
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
770 INCL = vim.h feature.h os_win32.h os_dos.h ascii.h keymap.h term.h macros.h \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
771 structs.h regexp.h option.h ex_cmds.h proto.h globals.h farsi.h \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
772 gui.h
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
773
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
774 $(OUTDIR)/if_python.o : if_python.c if_py_both.h $(INCL)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
775 $(CC) -c $(CFLAGS) $(PYTHONINC) -DDYNAMIC_PYTHON_DLL=\"python$(PYTHON_VER).dll\" $< -o $@
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
776
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
777 $(OUTDIR)/if_python3.o : if_python3.c if_py_both.h $(INCL)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
778 $(CC) -c $(CFLAGS) $(PYTHON3INC) -DDYNAMIC_PYTHON3_DLL=\"PYTHON$(PYTHON3_VER).dll\" $< -o $@
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
779
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
780 $(OUTDIR)/%.o : %.c $(INCL)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
781 $(CC) -c $(CFLAGS) $< -o $@
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
782
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
783 $(OUTDIR)/vimrc.o: vim.rc version.h gui_w32_rc.h
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
784 $(WINDRES) $(WINDRES_FLAGS) $(DEFINES) \
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
785 --input-format=rc --output-format=coff -i vim.rc -o $@
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
786
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
787 $(OUTDIR):
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
788 $(MKDIR) $(OUTDIR)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
789
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
790 $(OUTDIR)/ex_docmd.o: ex_docmd.c $(INCL) ex_cmds.h
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
791 $(CC) -c $(CFLAGS) ex_docmd.c -o $(OUTDIR)/ex_docmd.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
792
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
793 $(OUTDIR)/ex_eval.o: ex_eval.c $(INCL) ex_cmds.h
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
794 $(CC) -c $(CFLAGS) ex_eval.c -o $(OUTDIR)/ex_eval.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
795
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
796 $(OUTDIR)/gui_w32.o: gui_w32.c gui_w48.c $(INCL)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
797 $(CC) -c $(CFLAGS) gui_w32.c -o $(OUTDIR)/gui_w32.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
798
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
799 $(OUTDIR)/gui_dwrite.o: gui_dwrite.cpp $(INCL) gui_dwrite.h
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
800 $(CC) -c $(CFLAGS) gui_dwrite.cpp -o $(OUTDIR)/gui_dwrite.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
801
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
802 $(OUTDIR)/if_cscope.o: if_cscope.c $(INCL) if_cscope.h
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
803 $(CC) -c $(CFLAGS) if_cscope.c -o $(OUTDIR)/if_cscope.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
804
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
805 # Remove -D__IID_DEFINED__ for newer versions of the w32api
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
806 $(OUTDIR)/if_ole.o: if_ole.cpp $(INCL)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
807 $(CC) $(CFLAGS) -c -o $(OUTDIR)/if_ole.o if_ole.cpp
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
808
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
809 $(OUTDIR)/if_ruby.o: if_ruby.c $(INCL)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
810 ifeq (16, $(RUBY))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
811 $(CC) $(CFLAGS) -U_WIN32 -c -o $(OUTDIR)/if_ruby.o if_ruby.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
812 endif
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
813
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
814 if_perl.c: if_perl.xs typemap
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
815 $(XSUBPP) -prototypes -typemap \
6349
5b2ff413125b updated for version 7.4.507
Bram Moolenaar <bram@vim.org>
parents: 6326
diff changeset
816 $(PERLTYPEMAP) if_perl.xs > $@
6326
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
817
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
818 $(OUTDIR)/netbeans.o: netbeans.c $(INCL) $(NBDEBUG_INCL) $(NBDEBUG_SRC)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
819 $(CC) -c $(CFLAGS) netbeans.c -o $(OUTDIR)/netbeans.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
820
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
821 $(OUTDIR)/regexp.o: regexp.c regexp_nfa.c $(INCL)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
822 $(CC) -c $(CFLAGS) regexp.c -o $(OUTDIR)/regexp.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
823
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
824 $(OUTDIR)/if_mzsch.o: if_mzsch.c $(INCL) if_mzsch.h $(MZ_EXTRA_DEP)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
825 $(CC) -c $(CFLAGS) if_mzsch.c -o $(OUTDIR)/if_mzsch.o
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
826
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
827 mzscheme_base.c:
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
828 $(MZSCHEME)/mzc --c-mods mzscheme_base.c ++lib scheme/base
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
829
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
830 pathdef.c: $(INCL)
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
831 ifneq (sh.exe, $(SHELL))
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
832 @echo creating pathdef.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
833 @echo '/* pathdef.c */' > pathdef.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
834 @echo '#include "vim.h"' >> pathdef.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
835 @echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' >> pathdef.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
836 @echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' >> pathdef.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
837 @echo 'char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)";' >> pathdef.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
838 @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
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
839 @echo 'char_u *compiled_user = (char_u *)"$(USERNAME)";' >> pathdef.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
840 @echo 'char_u *compiled_sys = (char_u *)"$(USERDOMAIN)";' >> pathdef.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
841 else
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
842 @echo creating pathdef.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
843 @echo /* pathdef.c */ > pathdef.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
844 @echo #include "vim.h" >> pathdef.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
845 @echo char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)"; >> pathdef.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
846 @echo char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)"; >> pathdef.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
847 @echo char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)"; >> pathdef.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
848 @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
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
849 @echo char_u *compiled_user = (char_u *)"$(USERNAME)"; >> pathdef.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
850 @echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> pathdef.c
112c80234ce3 updated for version 7.4.496
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
851 endif