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