Mercurial > vim
annotate src/Make_bc5.mak @ 10759:4267f8904d47 v8.0.0269
patch 8.0.0269: may get ml_get error when :perldo deletes lines
commit https://github.com/vim/vim/commit/85b5743d3e69f96882b6124d4b4ebf873ca24707
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 29 22:59:12 2017 +0100
patch 8.0.0269: may get ml_get error when :perldo deletes lines
Problem: May get ml_get error when :perldo deletes lines or switches to
another buffer. (Nikolai Pavlov, issue https://github.com/vim/vim/issues/1421)
Solution: Check the buffer and line every time.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 29 Jan 2017 23:00:05 +0100 |
parents | b0c7061d6439 |
children | 8b1b3228c410 |
rev | line source |
---|---|
7 | 1 # |
2 # Makefile for Vim. | |
3 # Compiler: Borland C++ 5.0 and later 32-bit compiler | |
9536
b2aada04d84e
commit https://github.com/vim/vim/commit/a06ecab7a5159e744448ace731036f0dc5f87dd4
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
4 # Targets: Win32 (Windows NT and Windows 95) (with/without GUI) |
7 | 5 # |
7435
a4b4cbf8d044
commit https://github.com/vim/vim/commit/17b609ed7f3d718e233a561f792f7473e48b0aaa
Christian Brabandt <cb@256bit.org>
parents:
6126
diff
changeset
|
6 # NOTE: THIS IS OLD AND PROBABLY NO LONGER WORKS. |
a4b4cbf8d044
commit https://github.com/vim/vim/commit/17b609ed7f3d718e233a561f792f7473e48b0aaa
Christian Brabandt <cb@256bit.org>
parents:
6126
diff
changeset
|
7 # |
7 | 8 # Contributed by Ben Singer. |
9 # Updated 4/1997 by Ron Aaron | |
8212
05b88224cea1
commit https://github.com/vim/vim/commit/48e330aff911be1c798c88a973af6437a8141fce
Christian Brabandt <cb@256bit.org>
parents:
7743
diff
changeset
|
10 # 2016: removed support for 16 bit DOS |
7 | 11 # 6/1997 - added support for 16 bit DOS |
12 # Note: this has been tested, and works, for BC5. Your mileage may vary. | |
13 # Has been reported NOT to work with BC 4.52. Maybe it can be fixed? | |
14 # 10/1997 - ron - fixed bugs w/ BC 5.02 | |
15 # 8/1998 - ron - updated with new targets, fixed some stuff | |
16 # 3/2000 - Bram: Made it work with BC 5.5 free command line compiler, | |
17 # cleaned up variables. | |
18 # 6/2001 - Dan - Added support for compiling Python and TCL | |
19 # 7/2001 - Dan - Added support for compiling Ruby | |
20 # | |
21 # It builds on Windows 95 and NT-Intel, producing the same binary in either | |
22 # case. To build using Microsoft Visual C++, use Make_mvc.mak. | |
23 # | |
24 # This should work with the free Borland command line compiler, version 5.5. | |
25 # You need at least sp1 (service pack 1). With sp2 it compiles faster. | |
26 # Use a command like this: | |
27 # <path>\bin\make /f Make_bc5.mak BOR=<path> | |
28 # | |
29 | |
30 # let the make utility do the hard work: | |
31 .AUTODEPEND | |
32 .CACHEAUTODEPEND | |
33 | |
34 # VARIABLES: | |
35 # name value (default) | |
36 # | |
37 # BOR path to root of Borland C install (c:\bc5) | |
8212
05b88224cea1
commit https://github.com/vim/vim/commit/48e330aff911be1c798c88a973af6437a8141fce
Christian Brabandt <cb@256bit.org>
parents:
7743
diff
changeset
|
38 # LINK name of the linker ($(BOR)\bin\ilink32) |
7 | 39 # GUI no or yes: set to yes if you want the GUI version (yes) |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
40 # LUA define to path to Lua dir to get Lua support (not defined) |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
41 # LUA_VER define to version of Lua being used (51) |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
42 # DYNAMIC_LUA no or yes: set to yes to load the Lua DLL dynamically (no) |
7 | 43 # PERL define to path to Perl dir to get Perl support (not defined) |
44 # PERL_VER define to version of Perl being used (56) | |
45 # DYNAMIC_PERL no or yes: set to yes to load the Perl DLL dynamically (no) | |
46 # PYTHON define to path to Python dir to get PYTHON support (not defined) | |
47 # PYTHON_VER define to version of Python being used (22) | |
48 # DYNAMIC_PYTHON no or yes: use yes to load the Python DLL dynamically (no) | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
49 # PYTHON3 define to path to Python3 dir to get PYTHON3 support (not defined) |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
50 # PYTHON3_VER define to version of Python3 being used (31) |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
51 # DYNAMIC_PYTHON3 no or yes: use yes to load the Python3 DLL dynamically (no) |
7 | 52 # TCL define to path to TCL dir to get TCL support (not defined) |
53 # TCL_VER define to version of TCL being used (83) | |
54 # DYNAMIC_TCL no or yes: use yes to load the TCL DLL dynamically (no) | |
55 # RUBY define to path to Ruby dir to get Ruby support (not defined) | |
56 # NOTE: You may have to remove the defines for uid_t and gid_t | |
57 # from the Ruby config.h header file. | |
58 # RUBY_VER define to version of Ruby being used (16) | |
59 # NOTE: compilation on WinNT/2K/XP requires | |
60 # at least version 1.6.5 of Ruby. Earlier versions | |
61 # of Ruby will cause a compile error on these systems. | |
819 | 62 # RUBY_VER_LONG same, but in format with dot. (1.6) |
7 | 63 # DYNAMIC_RUBY no or yes: use yes to load the Ruby DLL dynamically (no) |
64 # MBYTE no or yes: set to yes for multi-byte support (yes) | |
856 | 65 # NOTE: multi-byte support is broken in the Borland libraries, |
66 # not everything will work properly! Esp. handling multi-byte | |
67 # file names. | |
7 | 68 # IME no or yes: set to yes for multi-byte IME support (yes) |
69 # DYNAMIC_IME no or yes: set to yes to load imm32.dll dynamically (yes) | |
70 # GETTEXT no or yes: set to yes for multi-language support (yes) | |
71 # ICONV no or yes: set to yes for dynamic iconv support (yes) | |
72 # OLE no or yes: set to yes to make OLE gvim (no) | |
73 # DEBUG no or yes: set to yes if you wish a DEBUGging build (no) | |
74 # CODEGUARD no or yes: set to yes if you want to use CODEGUARD (no) | |
75 # CPUNR 1 through 6: select -CPU argument to compile with (3) | |
76 # 3 for 386, 4 for 486, 5 for pentium, 6 for pentium pro. | |
77 # USEDLL no or yes: set to yes to use the Runtime library DLL (no) | |
78 # For USEDLL=yes the cc3250.dll is required to run Vim. | |
79 # VIMDLL no or yes: create vim32.dll, and stub (g)vim.exe (no) | |
8212
05b88224cea1
commit https://github.com/vim/vim/commit/48e330aff911be1c798c88a973af6437a8141fce
Christian Brabandt <cb@256bit.org>
parents:
7743
diff
changeset
|
80 # ALIGN 1, 2 or 4: Alignment to use (4 for Win32) |
7 | 81 # FASTCALL no or yes: set to yes to use register-based function protocol (yes) |
82 # OPTIMIZE SPACE, SPEED, or MAXSPEED: type of optimization (MAXSPEED) | |
83 # POSTSCRIPT no or yes: set to yes for PostScript printing | |
8212
05b88224cea1
commit https://github.com/vim/vim/commit/48e330aff911be1c798c88a973af6437a8141fce
Christian Brabandt <cb@256bit.org>
parents:
7743
diff
changeset
|
84 # FEATURES TINY, SMALL, NORMAL, BIG or HUGE (BIG for WIN32) |
7 | 85 # WINVER 0x0400 or 0x0500: minimum Win32 version to support (0x0400) |
86 # CSCOPE no or yes: include support for Cscope interface (yes) | |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
87 # NETBEANS no or yes: include support for Netbeans interface; also |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
88 # requires CHANNEL (yes if GUI |
7 | 89 # is yes) |
856 | 90 # NBDEBUG no or yes: include support for debugging Netbeans interface (no) |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
91 # CHANNEL no or yes: include support for inter process communication (yes |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
92 # if GUI is yes) |
7 | 93 # XPM define to path to XPM dir to get support for loading XPM images. |
94 | |
95 ### BOR: root of the BC installation | |
96 !if ("$(BOR)"=="") | |
97 BOR = c:\bc5 | |
98 !endif | |
99 | |
8212
05b88224cea1
commit https://github.com/vim/vim/commit/48e330aff911be1c798c88a973af6437a8141fce
Christian Brabandt <cb@256bit.org>
parents:
7743
diff
changeset
|
100 ### LINK: Name of the linker: ilink32 (this is below) |
7 | 101 |
102 ### GUI: yes for GUI version, no for console version | |
103 !if ("$(GUI)"=="") | |
104 GUI = yes | |
105 !endif | |
106 | |
107 ### MBYTE: yes for multibyte support, no to disable it. | |
108 !if ("$(MBYTE)"=="") | |
109 MBYTE = yes | |
110 !endif | |
111 | |
112 ### IME: yes for multibyte support, no to disable it. | |
113 !if ("$(IME)"=="") | |
114 IME = yes | |
115 !endif | |
116 !if ("$(DYNAMIC_IME)"=="") | |
117 DYNAMIC_IME = yes | |
118 !endif | |
119 | |
120 ### GETTEXT: yes for multilanguage support, no to disable it. | |
121 !if ("$(GETTEXT)"=="") | |
122 GETTEXT = yes | |
123 !endif | |
124 | |
125 ### ICONV: yes to enable dynamic-iconv support, no to disable it | |
126 !if ("$(ICONV)"=="") | |
127 ICONV = yes | |
128 !endif | |
129 | |
130 ### CSCOPE: yes to enable Cscope support, no to disable it | |
131 !if ("$(CSCOPE)"=="") | |
132 CSCOPE = yes | |
133 !endif | |
134 | |
135 ### NETBEANS: yes to enable NetBeans interface support, no to disable it | |
136 !if ("$(NETBEANS)"=="") && ("$(GUI)"=="yes") | |
137 NETBEANS = yes | |
138 !endif | |
139 | |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
140 ### CHANNEL: yes to enable inter process communication, no to disable it |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
141 !if ("$(CHANNEL)"=="") && ("$(GUI)"=="yes") |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
142 CHANNEL = yes |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
143 !endif |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
144 |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
145 ### LUA: uncomment this line if you want lua support in vim |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
146 # LUA=c:\lua |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
147 |
7 | 148 ### PERL: uncomment this line if you want perl support in vim |
149 # PERL=c:\perl | |
150 | |
151 ### PYTHON: uncomment this line if you want python support in vim | |
152 # PYTHON=c:\python22 | |
153 | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
154 ### PYTHON3: uncomment this line if you want python3 support in vim |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
155 # PYTHON3=c:\python31 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
156 |
7 | 157 ### RUBY: uncomment this line if you want ruby support in vim |
158 # RUBY=c:\ruby | |
159 | |
160 ### TCL: uncomment this line if you want tcl support in vim | |
161 # TCL=c:\tcl | |
162 | |
163 ### OLE: no for normal gvim, yes for OLE-capable gvim (only works with GUI) | |
164 #OLE = yes | |
165 | |
166 ### DEBUG: Uncomment to make an executable for debugging | |
167 # DEBUG = yes | |
168 !if ("$(DEBUG)"=="yes") | |
169 DEBUG_FLAG = -v | |
170 !endif | |
171 | |
172 ### CODEGUARD: Uncomment to use the CODEGUARD stuff (BC 5.0 or later): | |
173 # CODEGUARD = yes | |
174 !if ("$(CODEGUARD)"=="yes") | |
175 CODEGUARD_FLAG = -vG | |
176 !endif | |
177 | |
178 ### CPUNR: set your target processor (3 to 6) | |
179 !if ("$(CPUNR)" == "i386") || ("$(CPUNR)" == "3") | |
180 CPUNR = 3 | |
181 !elif ("$(CPUNR)" == "i486") || ("$(CPUNR)" == "4") | |
182 CPUNR = 4 | |
183 !elif ("$(CPUNR)" == "i586") || ("$(CPUNR)" == "5") | |
184 CPUNR = 5 | |
185 !elif ("$(CPUNR)" == "i686") || ("$(CPUNR)" == "6") | |
186 CPUNR = 6 | |
187 !else | |
188 CPUNR = 3 | |
189 !endif | |
190 | |
191 ### Comment out to use precompiled headers (faster, but uses lots of disk!) | |
192 HEADERS = -H -H=vim.csm -Hc | |
193 | |
194 ### USEDLL: no for statically linked version of run-time, yes for DLL runtime | |
195 !if ("$(USEDLL)"=="") | |
196 USEDLL = no | |
197 !endif | |
198 | |
199 ### VIMDLL: yes for a DLL version of VIM (NOT RECOMMENDED), no otherwise | |
200 #VIMDLL = yes | |
201 | |
8212
05b88224cea1
commit https://github.com/vim/vim/commit/48e330aff911be1c798c88a973af6437a8141fce
Christian Brabandt <cb@256bit.org>
parents:
7743
diff
changeset
|
202 ### ALIGN: alignment you desire: (1,2 or 4: s/b 4 for Win32) |
7 | 203 !if ("$(ALIGN)"=="") |
204 ALIGN = 4 | |
205 !endif | |
206 | |
207 ### FASTCALL: yes to use FASTCALL calling convention (RECOMMENDED!), no otherwise | |
208 # Incompatible when calling external functions (like MSVC-compiled DLLs), so | |
209 # don't use FASTCALL when linking with external libs. | |
210 !if ("$(FASTCALL)"=="") && \ | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
211 ("$(LUA)"=="") && \ |
7 | 212 ("$(PYTHON)"=="") && \ |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
213 ("$(PYTHON3)"=="") && \ |
7 | 214 ("$(PERL)"=="") && \ |
215 ("$(TCL)"=="") && \ | |
216 ("$(RUBY)"=="") && \ | |
217 ("$(ICONV)"!="yes") && \ | |
218 ("$(IME)"!="yes") && \ | |
219 ("$(MBYTE)"!="yes") && \ | |
220 ("$(XPM)"=="") | |
221 FASTCALL = yes | |
222 !endif | |
223 | |
224 ### OPTIMIZE: SPEED to optimize for speed, SPACE otherwise (SPEED RECOMMENDED) | |
225 !if ("$(OPTIMIZE)"=="") | |
226 OPTIMIZE = MAXSPEED | |
227 !endif | |
228 | |
8212
05b88224cea1
commit https://github.com/vim/vim/commit/48e330aff911be1c798c88a973af6437a8141fce
Christian Brabandt <cb@256bit.org>
parents:
7743
diff
changeset
|
229 ### FEATURES: TINY, SMALL, NORMAL, BIG or HUGE (BIG for WIN32) |
7 | 230 !if ("$(FEATURES)"=="") |
231 FEATURES = BIG | |
232 !endif | |
233 | |
234 ### POSTSCRIPT: uncomment this line if you want PostScript printing | |
235 #POSTSCRIPT = yes | |
236 | |
237 ### | |
238 # If you have a fixed directory for $VIM or $VIMRUNTIME, other than the normal | |
239 # default, use these lines. | |
240 #VIMRCLOC = somewhere | |
241 #VIMRUNTIMEDIR = somewhere | |
242 | |
243 ### Set the default $(WINVER) to make it work with Bcc 5.5. | |
244 !ifndef WINVER | |
245 WINVER = 0x0400 | |
246 !endif | |
247 | |
248 # | |
249 # Sanity checks for the above options: | |
250 # | |
251 | |
8212
05b88224cea1
commit https://github.com/vim/vim/commit/48e330aff911be1c798c88a973af6437a8141fce
Christian Brabandt <cb@256bit.org>
parents:
7743
diff
changeset
|
252 OSTYPE = WIN32 |
7 | 253 |
254 # | |
255 # Optimizations: change as desired (RECOMMENDATION: Don't change!): | |
256 # | |
257 !if ("$(DEBUG)"=="yes") | |
258 OPT = -Od -N | |
259 !else | |
260 !if ("$(OPTIMIZE)"=="SPACE") | |
261 OPT = -O1 -f- -d | |
262 !elif ("$(OPTIMIZE)"=="MAXSPEED") | |
263 OPT = -O2 -f- -d -Ocavi -O | |
264 !else | |
265 OPT = -O2 -f- -d -Oc -O | |
266 !endif | |
267 !if ("$(FASTCALL)"=="yes") | |
268 OPT = $(OPT) -pr | |
269 !endif | |
270 !if ("$(CODEGUARD)"!="yes") | |
271 OPT = $(OPT) -vi- | |
272 !endif | |
273 !endif | |
274 # shouldn't have to change: | |
275 LIB = $(BOR)\lib | |
276 INCLUDE = $(BOR)\include;.;proto | |
277 DEFINES = -DFEAT_$(FEATURES) -DWIN32 -DHAVE_PATHDEF \ | |
278 -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) | |
279 | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
280 !ifdef LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
281 INTERP_DEFINES = $(INTERP_DEFINES) -DFEAT_LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
282 INCLUDE = $(LUA)\include;$(INCLUDE) |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
283 ! ifndef LUA_VER |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
284 LUA_VER = 51 |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
285 ! endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
286 ! if ("$(DYNAMIC_LUA)" == "yes") |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
287 INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL=\"lua$(LUA_VER).dll\" |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
288 LUA_LIB_FLAG = /nodefaultlib: |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
289 ! endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
290 !endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
291 |
7 | 292 !ifdef PERL |
293 INTERP_DEFINES = $(INTERP_DEFINES) -DFEAT_PERL | |
294 INCLUDE = $(PERL)\lib\core;$(INCLUDE) | |
295 ! ifndef PERL_VER | |
296 PERL_VER = 56 | |
297 ! endif | |
298 ! if ("$(DYNAMIC_PERL)" == "yes") | |
299 ! if ($(PERL_VER) > 55) | |
300 INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl$(PERL_VER).dll\" | |
301 PERL_LIB_FLAG = /nodefaultlib: | |
302 ! else | |
303 ! message "Cannot dynamically load Perl versions less than 5.6. Loading statically..." | |
304 ! endif | |
305 ! endif | |
306 !endif | |
307 | |
308 !ifdef PYTHON | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
309 !ifdef PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
310 DYNAMIC_PYTHON=yes |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
311 DYNAMIC_PYTHON3=yes |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
312 !endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
313 !endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
314 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
315 !ifdef PYTHON |
7 | 316 INTERP_DEFINES = $(INTERP_DEFINES) -DFEAT_PYTHON |
317 !ifndef PYTHON_VER | |
318 PYTHON_VER = 22 | |
319 !endif | |
320 !if "$(DYNAMIC_PYTHON)" == "yes" | |
321 INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python$(PYTHON_VER).dll\" | |
322 PYTHON_LIB_FLAG = /nodefaultlib: | |
323 !endif | |
324 !endif | |
325 | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
326 !ifdef PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
327 INTERP_DEFINES = $(INTERP_DEFINES) -DFEAT_PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
328 !ifndef PYTHON3_VER |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
329 PYTHON3_VER = 31 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
330 !endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
331 !if "$(DYNAMIC_PYTHON3)" == "yes" |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
332 INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=\"python$(PYTHON3_VER).dll\" |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
333 PYTHON3_LIB_FLAG = /nodefaultlib: |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
334 !endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
335 !endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
336 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
337 |
7 | 338 !ifdef RUBY |
339 !ifndef RUBY_VER | |
340 RUBY_VER = 16 | |
341 !endif | |
342 !ifndef RUBY_VER_LONG | |
343 RUBY_VER_LONG = 1.6 | |
344 !endif | |
345 | |
346 !if "$(RUBY_VER)" == "16" | |
347 !ifndef RUBY_PLATFORM | |
348 RUBY_PLATFORM = i586-mswin32 | |
349 !endif | |
350 !ifndef RUBY_INSTALL_NAME | |
351 RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_VER) | |
352 !endif | |
353 !else | |
354 !ifndef RUBY_PLATFORM | |
355 RUBY_PLATFORM = i386-mswin32 | |
356 !endif | |
357 !ifndef RUBY_INSTALL_NAME | |
358 RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_VER) | |
359 !endif | |
360 !endif | |
361 | |
362 INTERP_DEFINES = $(INTERP_DEFINES) -DFEAT_RUBY | |
363 INCLUDE = $(RUBY)\lib\ruby\$(RUBY_VER_LONG)\$(RUBY_PLATFORM);$(INCLUDE) | |
364 | |
365 !if "$(DYNAMIC_RUBY)" == "yes" | |
366 INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\" | |
367 INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_RUBY_VER=$(RUBY_VER) | |
368 RUBY_LIB_FLAG = /nodefaultlib: | |
369 !endif | |
370 !endif | |
371 | |
372 !ifdef TCL | |
373 INTERP_DEFINES = $(INTERP_DEFINES) -DFEAT_TCL | |
374 INCLUDE = $(TCL)\include;$(INCLUDE) | |
375 !ifndef TCL_VER | |
376 TCL_VER = 83 | |
377 !endif | |
378 TCL_LIB = $(TCL)\lib\tcl$(TCL_VER).lib | |
379 TCL_LIB_FLAG = | |
380 !if "$(DYNAMIC_TCL)" == "yes" | |
381 INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"tcl$(TCL_VER).dll\" | |
382 TCL_LIB = tclstub$(TCL_VER)-bor.lib | |
383 TCL_LIB_FLAG = | |
384 !endif | |
385 !endif | |
386 # | |
387 # DO NOT change below: | |
388 # | |
389 CPUARG = -$(CPUNR) | |
390 ALIGNARG = -a$(ALIGN) | |
391 # | |
392 !if ("$(DEBUG)"=="yes") | |
5588 | 393 DEFINES=$(DEFINES) -DDEBUG -D_DEBUG |
7 | 394 !endif |
395 # | |
396 !if ("$(OLE)"=="yes") | |
397 DEFINES = $(DEFINES) -DFEAT_OLE | |
398 !endif | |
399 # | |
400 !if ("$(MBYTE)"=="yes") | |
401 MBDEFINES = $(MBDEFINES) -DFEAT_MBYTE | |
402 !endif | |
403 !if ("$(IME)"=="yes") | |
404 MBDEFINES = $(MBDEFINES) -DFEAT_MBYTE_IME | |
405 !if ("$(DYNAMIC_IME)" == "yes") | |
406 MBDEFINES = $(MBDEFINES) -DDYNAMIC_IME | |
407 !endif | |
408 !endif | |
409 !if ("$(ICONV)"=="yes") | |
410 MBDEFINES = $(MBDEFINES) -DDYNAMIC_ICONV | |
411 !endif | |
412 !if ("$(GETTEXT)"=="yes") | |
413 MBDEFINES = $(MBDEFINES) -DDYNAMIC_GETTEXT | |
414 !endif | |
415 | |
416 !if ("$(CSCOPE)"=="yes") | |
417 DEFINES = $(DEFINES) -DFEAT_CSCOPE | |
418 !endif | |
419 | |
420 !if ("$(GUI)"=="yes") | |
421 DEFINES = $(DEFINES) -DFEAT_GUI_W32 -DFEAT_CLIPBOARD | |
422 !if ("$(DEBUG)"=="yes") | |
423 TARGET = gvimd.exe | |
424 !else | |
425 TARGET = gvim.exe | |
426 !endif | |
427 !if ("$(VIMDLL)"=="yes") | |
428 EXETYPE=-WD | |
429 DEFINES = $(DEFINES) -DVIMDLL | |
430 !else | |
431 EXETYPE=-W | |
432 !endif | |
433 STARTUPOBJ = c0w32.obj | |
434 LINK2 = -aa | |
435 RESFILE = vim.res | |
436 !else | |
12 | 437 !undef NETBEANS |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
438 !undef CHANNEL |
12 | 439 !undef XPM |
440 !undef VIMDLL | |
7 | 441 !if ("$(DEBUG)"=="yes") |
442 TARGET = vimd.exe | |
443 !else | |
444 # for now, anyway: VIMDLL is only for the GUI version | |
445 TARGET = vim.exe | |
446 !endif | |
447 EXETYPE=-WC | |
448 STARTUPOBJ = c0x32.obj | |
449 LINK2 = -ap -OS -o -P | |
450 RESFILE = vim.res | |
451 !endif | |
452 | |
12 | 453 !if ("$(NETBEANS)"=="yes") |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
454 !if ("$(CHANNEL)"!="yes") |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
455 # cannot use Netbeans without CHANNEL |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
456 NETBEANS = no |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
457 !else |
12 | 458 DEFINES = $(DEFINES) -DFEAT_NETBEANS_INTG |
459 !if ("$(NBDEBUG)"=="yes") | |
460 DEFINES = $(DEFINES) -DNBDEBUG | |
461 NBDEBUG_DEP = nbdebug.h nbdebug.c | |
462 !endif | |
463 !endif | |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
464 !endif |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
465 |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
466 !if ("$(CHANNEL)"=="yes") |
8493
caed4b2d305f
commit https://github.com/vim/vim/commit/509ce2a558e7e0c03242e32e844255af52f1c821
Christian Brabandt <cb@256bit.org>
parents:
8212
diff
changeset
|
467 DEFINES = $(DEFINES) -DFEAT_JOB_CHANNEL |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
468 !endif |
12 | 469 |
470 !ifdef XPM | |
471 !if ("$(GUI)"=="yes") | |
472 DEFINES = $(DEFINES) -DFEAT_XPM_W32 | |
473 INCLUDE = $(XPM)\include;$(INCLUDE) | |
474 !endif | |
475 !endif | |
476 | |
7 | 477 !if ("$(USEDLL)"=="yes") |
478 DEFINES = $(DEFINES) -D_RTLDLL | |
479 !endif | |
480 | |
481 !if ("$(DEBUG)"=="yes") | |
482 OBJDIR = $(OSTYPE)\objdbg | |
483 !else | |
484 !if ("$(GUI)"=="yes") | |
485 !if ("$(OLE)"=="yes") | |
486 OBJDIR = $(OSTYPE)\oleobj | |
487 !else | |
488 OBJDIR = $(OSTYPE)\gobj | |
489 !endif | |
490 !else | |
491 OBJDIR = $(OSTYPE)\obj | |
492 !endif | |
493 !endif | |
494 | |
495 !if ("$(POSTSCRIPT)"=="yes") | |
496 DEFINES = $(DEFINES) -DMSWINPS | |
497 !endif | |
498 | |
499 ##### BASE COMPILER/TOOLS RULES ##### | |
500 MAKE = $(BOR)\bin\make | |
501 CFLAGS = -w-aus -w-par -w-pch -w-ngu -w-csu -I$(INCLUDE) | |
502 BRC = $(BOR)\BIN\brc32 | |
503 !if ("$(LINK)"=="") | |
504 LINK = $(BOR)\BIN\ILink32 | |
505 !endif | |
506 CC = $(BOR)\BIN\Bcc32 | |
507 LFLAGS = -OS -Tpe -c -m -L$(LIB) $(DEBUG_FLAG) $(LINK2) | |
508 LFLAGSDLL = -Tpd -c -m -L$(LIB) $(DEBUG_FLAG) $(LINK2) | |
509 CFLAGS = $(CFLAGS) -d -RT- -k- -Oi $(HEADERS) -f- | |
510 | |
511 CC1 = -c | |
512 CC2 = -o | |
513 CCARG = +$(OBJDIR)\bcc.cfg | |
514 | |
515 # implicit rules: | |
516 | |
517 # Without the following, the implicit rule in BUILTINS.MAK is picked up | |
518 # for a rule for .c.obj rather than the local implicit rule | |
519 .SUFFIXES | |
520 .SUFFIXES .c .obj | |
521 .path.c = . | |
522 | |
523 {.}.c{$(OBJDIR)}.obj: | |
524 $(CC) $(CCARG) $(CC1) -n$(OBJDIR)\ {$< } | |
525 | |
526 .cpp.obj: | |
527 $(CC) $(CCARG) $(CC1) $(CC2)$@ $*.cpp | |
528 | |
529 vimmain = \ | |
530 $(OBJDIR)\os_w32exe.obj | |
531 !if ("$(VIMDLL)"=="yes") | |
532 vimwinmain = \ | |
533 $(OBJDIR)\os_w32dll.obj | |
534 !else | |
535 vimwinmain = \ | |
536 $(OBJDIR)\os_w32exe.obj | |
537 !endif | |
538 | |
539 vimobj = \ | |
9403
9b048dced116
commit https://github.com/vim/vim/commit/75464dc434c43efac60e8bfd9bec2a8b736407e9
Christian Brabandt <cb@256bit.org>
parents:
8493
diff
changeset
|
540 $(OBJDIR)\arabic.obj \ |
2180
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
856
diff
changeset
|
541 $(OBJDIR)\blowfish.obj \ |
7 | 542 $(OBJDIR)\buffer.obj \ |
543 $(OBJDIR)\charset.obj \ | |
6126 | 544 $(OBJDIR)\crypt.obj \ |
545 $(OBJDIR)\crypt_zip.obj \ | |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9536
diff
changeset
|
546 $(OBJDIR)\dict.obj \ |
7 | 547 $(OBJDIR)\diff.obj \ |
548 $(OBJDIR)\digraph.obj \ | |
549 $(OBJDIR)\edit.obj \ | |
550 $(OBJDIR)\eval.obj \ | |
9571
5eaa708ab50d
commit https://github.com/vim/vim/commit/73dad1e64cb42842d8259cb1a255a6fa59822f76
Christian Brabandt <cb@256bit.org>
parents:
9564
diff
changeset
|
551 $(OBJDIR)\evalfunc.obj \ |
7 | 552 $(OBJDIR)\ex_cmds.obj \ |
553 $(OBJDIR)\ex_cmds2.obj \ | |
554 $(OBJDIR)\ex_docmd.obj \ | |
555 $(OBJDIR)\ex_eval.obj \ | |
556 $(OBJDIR)\ex_getln.obj \ | |
9403
9b048dced116
commit https://github.com/vim/vim/commit/75464dc434c43efac60e8bfd9bec2a8b736407e9
Christian Brabandt <cb@256bit.org>
parents:
8493
diff
changeset
|
557 $(OBJDIR)\farsi.obj \ |
7 | 558 $(OBJDIR)\fileio.obj \ |
559 $(OBJDIR)\fold.obj \ | |
560 $(OBJDIR)\getchar.obj \ | |
440 | 561 $(OBJDIR)\hardcopy.obj \ |
799 | 562 $(OBJDIR)\hashtab.obj \ |
7712
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
7435
diff
changeset
|
563 $(OBJDIR)\json.obj \ |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9536
diff
changeset
|
564 $(OBJDIR)\list.obj \ |
7 | 565 $(OBJDIR)\main.obj \ |
566 $(OBJDIR)\mark.obj \ | |
567 $(OBJDIR)\memfile.obj \ | |
568 $(OBJDIR)\memline.obj \ | |
569 $(OBJDIR)\menu.obj \ | |
570 $(OBJDIR)\message.obj \ | |
571 $(OBJDIR)\misc1.obj \ | |
572 $(OBJDIR)\misc2.obj \ | |
573 $(OBJDIR)\move.obj \ | |
574 $(OBJDIR)\mbyte.obj \ | |
575 $(OBJDIR)\normal.obj \ | |
576 $(OBJDIR)\ops.obj \ | |
577 $(OBJDIR)\option.obj \ | |
799 | 578 $(OBJDIR)\popupmnu.obj \ |
7 | 579 $(OBJDIR)\quickfix.obj \ |
580 $(OBJDIR)\regexp.obj \ | |
581 $(OBJDIR)\screen.obj \ | |
582 $(OBJDIR)\search.obj \ | |
2180
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
856
diff
changeset
|
583 $(OBJDIR)\sha256.obj \ |
226 | 584 $(OBJDIR)\spell.obj \ |
9583
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
9571
diff
changeset
|
585 $(OBJDIR)\spellfile.obj \ |
7 | 586 $(OBJDIR)\syntax.obj \ |
587 $(OBJDIR)\tag.obj \ | |
588 $(OBJDIR)\term.obj \ | |
589 $(OBJDIR)\ui.obj \ | |
590 $(OBJDIR)\undo.obj \ | |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9536
diff
changeset
|
591 $(OBJDIR)\userfunc.obj \ |
7 | 592 $(OBJDIR)\version.obj \ |
593 $(OBJDIR)\window.obj \ | |
594 $(OBJDIR)\pathdef.obj | |
595 | |
596 !if ("$(OLE)"=="yes") | |
597 vimobj = $(vimobj) \ | |
598 $(OBJDIR)\if_ole.obj | |
599 !endif | |
600 | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
601 !ifdef LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
602 vimobj = $(vimobj) \ |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
603 $(OBJDIR)\if_lua.obj |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
604 !endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
605 |
7 | 606 !ifdef PERL |
607 vimobj = $(vimobj) \ | |
608 $(OBJDIR)\if_perl.obj | |
609 !endif | |
610 | |
611 !ifdef PYTHON | |
612 vimobj = $(vimobj) \ | |
613 $(OBJDIR)\if_python.obj | |
614 !endif | |
615 | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
616 !ifdef PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
617 vimobj = $(vimobj) \ |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
618 $(OBJDIR)\if_python3.obj |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
619 !endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
620 |
7 | 621 !ifdef RUBY |
622 vimobj = $(vimobj) \ | |
623 $(OBJDIR)\if_ruby.obj | |
624 !endif | |
625 | |
626 !ifdef TCL | |
627 vimobj = $(vimobj) \ | |
628 $(OBJDIR)\if_tcl.obj | |
629 !endif | |
630 | |
631 !if ("$(CSCOPE)"=="yes") | |
632 vimobj = $(vimobj) \ | |
633 $(OBJDIR)\if_cscope.obj | |
634 !endif | |
635 | |
636 !if ("$(NETBEANS)"=="yes") | |
637 vimobj = $(vimobj) \ | |
185 | 638 $(OBJDIR)\netbeans.obj |
7 | 639 !endif |
640 | |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
641 !if ("$(CHANNEL)"=="yes") |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
642 vimobj = $(vimobj) \ |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
643 $(OBJDIR)\channel.obj |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
644 !endif |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
645 |
7 | 646 !ifdef XPM |
647 vimobj = $(vimobj) \ | |
648 $(OBJDIR)\xpm_w32.obj | |
649 !endif | |
650 | |
651 !if ("$(VIMDLL)"=="yes") | |
652 vimdllobj = $(vimobj) | |
653 !if ("$(DEBUG)"=="yes") | |
654 DLLTARGET = vim32d.dll | |
655 !else | |
656 DLLTARGET = vim32.dll | |
657 !endif | |
658 !else | |
659 DLLTARGET = joebob | |
660 !endif | |
661 | |
662 !if ("$(GUI)"=="yes") | |
663 vimobj = $(vimobj) \ | |
664 $(vimwinmain) \ | |
665 $(OBJDIR)\gui.obj \ | |
185 | 666 $(OBJDIR)\gui_beval.obj \ |
7 | 667 $(OBJDIR)\gui_w32.obj |
668 !endif | |
669 | |
670 vimobj = $(vimobj) \ | |
4168 | 671 $(OBJDIR)\os_win32.obj $(OBJDIR)\os_mswin.obj $(OBJDIR)\winclip.obj |
7 | 672 # Blab what we are going to do: |
673 MSG = Compiling $(OSTYPE) $(TARGET) $(OLETARGET), with: | |
674 !if ("$(GUI)"=="yes") | |
675 MSG = $(MSG) GUI | |
676 !endif | |
677 !if ("$(OLE)"=="yes") | |
678 MSG = $(MSG) OLE | |
679 !endif | |
680 !if ("$(USEDLL)"=="yes") | |
681 MSG = $(MSG) USEDLL | |
682 !endif | |
683 !if ("$(VIMDLL)"=="yes") | |
684 MSG = $(MSG) VIMDLL | |
685 !endif | |
686 !if ("$(FASTCALL)"=="yes") | |
687 MSG = $(MSG) FASTCALL | |
688 !endif | |
689 !if ("$(MBYTE)"=="yes") | |
690 MSG = $(MSG) MBYTE | |
691 !endif | |
692 !if ("$(IME)"=="yes") | |
693 MSG = $(MSG) IME | |
694 ! if "$(DYNAMIC_IME)" == "yes" | |
695 MSG = $(MSG)(dynamic) | |
696 ! endif | |
697 !endif | |
698 !if ("$(GETTEXT)"=="yes") | |
699 MSG = $(MSG) GETTEXT | |
700 !endif | |
701 !if ("$(ICONV)"=="yes") | |
702 MSG = $(MSG) ICONV | |
703 !endif | |
704 !if ("$(DEBUG)"=="yes") | |
705 MSG = $(MSG) DEBUG | |
706 !endif | |
707 !if ("$(CODEGUARD)"=="yes") | |
708 MSG = $(MSG) CODEGUARD | |
709 !endif | |
710 !if ("$(CSCOPE)"=="yes") | |
711 MSG = $(MSG) CSCOPE | |
712 !endif | |
713 !if ("$(NETBEANS)"=="yes") | |
714 MSG = $(MSG) NETBEANS | |
715 !endif | |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
716 !if ("$(CHANNEL)"=="yes") |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
717 MSG = $(MSG) CHANNEL |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
718 !endif |
7 | 719 !ifdef XPM |
720 MSG = $(MSG) XPM | |
721 !endif | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
722 !ifdef LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
723 MSG = $(MSG) LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
724 ! if "$(DYNAMIC_LUA)" == "yes" |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
725 MSG = $(MSG)(dynamic) |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
726 ! endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
727 !endif |
7 | 728 !ifdef PERL |
729 MSG = $(MSG) PERL | |
730 ! if "$(DYNAMIC_PERL)" == "yes" | |
731 MSG = $(MSG)(dynamic) | |
732 ! endif | |
733 !endif | |
734 !ifdef PYTHON | |
735 MSG = $(MSG) PYTHON | |
736 ! if "$(DYNAMIC_PYTHON)" == "yes" | |
737 MSG = $(MSG)(dynamic) | |
738 ! endif | |
739 !endif | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
740 !ifdef PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
741 MSG = $(MSG) PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
742 ! if "$(DYNAMIC_PYTHON3)" == "yes" |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
743 MSG = $(MSG)(dynamic) |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
744 ! endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
745 !endif |
7 | 746 !ifdef RUBY |
747 MSG = $(MSG) RUBY | |
748 ! if "$(DYNAMIC_RUBY)" == "yes" | |
749 MSG = $(MSG)(dynamic) | |
750 ! endif | |
751 !endif | |
752 !ifdef TCL | |
753 MSG = $(MSG) TCL | |
754 ! if "$(DYNAMIC_TCL)" == "yes" | |
755 MSG = $(MSG)(dynamic) | |
756 ! endif | |
757 !endif | |
758 MSG = $(MSG) cpu=$(CPUARG) | |
759 MSG = $(MSG) Align=$(ALIGNARG) | |
760 | |
761 !message $(MSG) | |
762 | |
763 !if ("$(VIMDLL)"=="yes") | |
764 TARGETS = $(DLLTARGET) | |
765 !endif | |
766 TARGETS = $(TARGETS) $(TARGET) | |
767 | |
768 # Targets: | |
769 all: vim vimrun.exe install.exe xxd uninstal.exe GvimExt/gvimext.dll | |
770 | |
771 vim: $(OSTYPE) $(OBJDIR) $(OBJDIR)\bcc.cfg $(TARGETS) | |
772 @if exist $(OBJDIR)\version.obj del $(OBJDIR)\version.obj | |
773 @if exist auto\pathdef.c del auto\pathdef.c | |
774 | |
775 $(OSTYPE): | |
776 -@md $(OSTYPE) | |
777 | |
778 $(OBJDIR): | |
779 -@md $(OBJDIR) | |
780 | |
781 xxd: | |
782 @cd xxd | |
783 $(MAKE) /f Make_bc5.mak BOR="$(BOR)" BCC="$(CC)" | |
784 @cd .. | |
785 | |
786 GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h | |
787 cd GvimExt | |
788 $(MAKE) /f Make_bc5.mak USEDLL=$(USEDLL) BOR=$(BOR) | |
789 cd .. | |
790 | |
791 install.exe: dosinst.c $(OBJDIR)\bcc.cfg | |
792 $(CC) $(CCARG) -WC -DWIN32 -einstall dosinst.c | |
793 | |
794 uninstal.exe: uninstal.c $(OBJDIR)\bcc.cfg | |
795 $(CC) $(CCARG) -WC -DWIN32 -O2 -euninstal uninstal.c | |
796 | |
797 clean: | |
798 !if "$(OS)" == "Windows_NT" | |
799 # For Windows NT/2000, doesn't work on Windows 95/98... | |
800 # $(COMSPEC) needed to ensure rmdir.exe is not run | |
801 -@$(COMSPEC) /C rmdir /Q /S $(OBJDIR) | |
802 !else | |
803 # For Windows 95/98, doesn't work on Windows NT/2000... | |
804 -@deltree /y $(OBJDIR) | |
805 !endif | |
806 -@del *.res | |
807 -@del vim32*.dll | |
808 -@del vim32*.lib | |
809 -@del *vim*.exe | |
810 -@del *install*.exe | |
811 -@del *.csm | |
812 -@del *.map | |
813 -@del *.ilc | |
814 -@del *.ild | |
815 -@del *.ilf | |
816 -@del *.ils | |
817 -@del *.tds | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
818 !ifdef LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
819 -@del lua.lib |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
820 !endif |
7 | 821 !ifdef PERL |
822 -@del perl.lib | |
823 !endif | |
824 !ifdef PYTHON | |
825 -@del python.lib | |
826 !endif | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
827 !ifdef PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
828 -@del python3.lib |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
829 !endif |
7 | 830 !ifdef RUBY |
831 -@del ruby.lib | |
832 !endif | |
833 !ifdef TCL | |
834 -@del tcl.lib | |
835 !endif | |
836 !ifdef XPM | |
837 -@del xpm.lib | |
838 !endif | |
839 cd xxd | |
840 $(MAKE) /f Make_bc5.mak BOR="$(BOR)" clean | |
841 cd .. | |
842 cd GvimExt | |
843 $(MAKE) /f Make_bc5.mak BOR="$(BOR)" clean | |
844 cd .. | |
845 | |
846 $(DLLTARGET): $(OBJDIR) $(vimdllobj) | |
847 $(LINK) @&&| | |
848 $(LFLAGSDLL) + | |
849 c0d32.obj + | |
850 $(vimdllobj) | |
851 $<,$* | |
852 !if ("$(CODEGUARD)"=="yes") | |
853 cg32.lib+ | |
854 !endif | |
855 # $(OSTYPE)==WIN32 causes os_mswin.c compilation. FEAT_SHORTCUT in it needs OLE | |
856 ole2w32.lib + | |
857 import32.lib+ | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
858 !ifdef LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
859 $(LUA_LIB_FLAG)lua.lib+ |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
860 !endif |
7 | 861 !ifdef PERL |
862 $(PERL_LIB_FLAG)perl.lib+ | |
863 !endif | |
864 !ifdef PYTHON | |
865 $(PYTHON_LIB_FLAG)python.lib+ | |
866 !endif | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
867 !ifdef PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
868 $(PYTHON3_LIB_FLAG)python3.lib+ |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
869 !endif |
7 | 870 !ifdef RUBY |
871 $(RUBY_LIB_FLAG)ruby.lib+ | |
872 !endif | |
873 !ifdef TCL | |
874 $(TCL_LIB_FLAG)tcl.lib+ | |
875 !endif | |
876 !ifdef XPM | |
877 xpm.lib+ | |
878 !endif | |
879 !if ("$(USEDLL)"=="yes") | |
880 cw32i.lib | |
881 !else | |
882 cw32.lib | |
883 !endif | |
884 vim.def | |
885 | | |
886 | |
887 !if ("$(VIMDLL)"=="yes") | |
888 $(TARGET): $(OBJDIR) $(DLLTARGET) $(vimmain) $(OBJDIR)\$(RESFILE) | |
889 !else | |
890 $(TARGET): $(OBJDIR) $(vimobj) $(OBJDIR)\$(RESFILE) | |
891 !endif | |
892 $(LINK) @&&| | |
893 $(LFLAGS) + | |
894 $(STARTUPOBJ) + | |
895 !if ("$(VIMDLL)"=="yes") | |
896 $(vimmain) | |
897 !else | |
898 $(vimobj) | |
899 !endif | |
900 $<,$* | |
901 !if ("$(CODEGUARD)"=="yes") | |
902 cg32.lib+ | |
903 !endif | |
904 # $(OSTYPE)==WIN32 causes os_mswin.c compilation. FEAT_SHORTCUT in it needs OLE | |
905 ole2w32.lib + | |
906 import32.lib+ | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
907 !ifdef LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
908 $(LUA_LIB_FLAG)lua.lib+ |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
909 !endif |
7 | 910 !ifdef PERL |
911 $(PERL_LIB_FLAG)perl.lib+ | |
912 !endif | |
913 !ifdef PYTHON | |
914 $(PYTHON_LIB_FLAG)python.lib+ | |
915 !endif | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
916 !ifdef PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
917 $(PYTHON3_LIB_FLAG)python3.lib+ |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
918 !endif |
7 | 919 !ifdef RUBY |
920 $(RUBY_LIB_FLAG)ruby.lib+ | |
921 !endif | |
922 !ifdef TCL | |
923 $(TCL_LIB_FLAG)tcl.lib+ | |
924 !endif | |
925 !ifdef XPM | |
926 xpm.lib+ | |
927 !endif | |
928 !if ("$(USEDLL)"=="yes") | |
929 cw32i.lib | |
930 !else | |
931 cw32.lib | |
932 !endif | |
933 | |
934 $(OBJDIR)\$(RESFILE) | |
935 | | |
936 | |
937 test: | |
938 cd testdir | |
939 $(MAKE) /NOLOGO -f Make_dos.mak win32 | |
940 cd .. | |
941 | |
942 $(OBJDIR)\ex_docmd.obj: ex_docmd.c ex_cmds.h | |
943 | |
944 $(OBJDIR)\ex_eval.obj: ex_eval.c ex_cmds.h | |
945 | |
946 $(OBJDIR)\if_ole.obj: if_ole.cpp | |
947 | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
948 $(OBJDIR)\if_lua.obj: if_lua.c lua.lib |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
949 $(CC) $(CCARG) $(CC1) $(CC2)$@ -pc if_lua.c |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
950 |
7 | 951 $(OBJDIR)\if_perl.obj: if_perl.c perl.lib |
952 $(CC) $(CCARG) $(CC1) $(CC2)$@ -pc if_perl.c | |
953 | |
954 if_perl.c: if_perl.xs typemap | |
955 $(PERL)\bin\perl.exe $(PERL)\lib\ExtUtils\xsubpp -prototypes -typemap \ | |
956 $(PERL)\lib\ExtUtils\typemap if_perl.xs > $@ | |
957 | |
4724
450e13fe1621
updated for version 7.3.1109
Bram Moolenaar <bram@vim.org>
parents:
4168
diff
changeset
|
958 $(OBJDIR)\if_python.obj: if_python.c if_py_both.h python.lib |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
959 $(CC) -I$(PYTHON)\include $(CCARG) $(CC1) $(CC2)$@ -pc if_python.c |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
960 |
4724
450e13fe1621
updated for version 7.3.1109
Bram Moolenaar <bram@vim.org>
parents:
4168
diff
changeset
|
961 $(OBJDIR)\if_python3.obj: if_python3.c if_py_both.h python3.lib |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
962 $(CC) -I$(PYTHON3)\include $(CCARG) $(CC1) $(CC2)$@ -pc if_python3.c |
7 | 963 |
964 $(OBJDIR)\if_ruby.obj: if_ruby.c ruby.lib | |
965 $(CC) $(CCARG) $(CC1) $(CC2)$@ -pc if_ruby.c | |
966 | |
967 $(OBJDIR)\if_tcl.obj: if_tcl.c tcl.lib | |
968 $(CC) $(CCARG) $(CC1) $(CC2)$@ -pc if_tcl.c | |
969 | |
970 $(OBJDIR)\xpm_w32.obj: xpm_w32.c xpm.lib | |
971 $(CC) $(CCARG) $(CC1) $(CC2)$@ -pc xpm_w32.c | |
972 | |
973 $(OBJDIR)\netbeans.obj: netbeans.c $(NBDEBUG_DEP) | |
974 $(CC) $(CCARG) $(CC1) $(CC2)$@ netbeans.c | |
975 | |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
976 $(OBJDIR)\channel.obj: channel.c |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
977 $(CC) $(CCARG) $(CC1) $(CC2)$@ channel.c |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
978 |
7 | 979 $(OBJDIR)\vim.res: vim.rc version.h tools.bmp tearoff.bmp \ |
980 vim.ico vim_error.ico vim_alert.ico vim_info.ico vim_quest.ico | |
981 $(BRC) -fo$(OBJDIR)\vim.res -i $(BOR)\include -w32 -r vim.rc @&&| | |
982 $(DEFINES) | |
983 | | |
984 | |
985 $(OBJDIR)\pathdef.obj: auto\pathdef.c | |
986 $(CC) $(CCARG) $(CC1) $(CC2)$@ auto\pathdef.c | |
987 | |
988 | |
989 # Need to escape both quotes and backslashes in $INTERP_DEFINES | |
990 INTERP_DEFINES_ESC_BKS=$(INTERP_DEFINES:\=\\) | |
991 INTERP_DEFINES_ESC=$(INTERP_DEFINES_ESC_BKS:"=\") | |
992 | |
993 # Note: the silly /*"*/ below are there to trick make into accepting | |
994 # the # character as something other than a comment without messing up | |
995 # the preprocessor directive. | |
996 auto\pathdef.c:: | |
997 -@md auto | |
998 @echo creating auto/pathdef.c | |
999 @copy /y &&| | |
1000 /* pathdef.c */ | |
1001 /*"*/#include "vim.h"/*"*/ | |
1002 | |
1003 char_u *default_vim_dir = (char_u *)"$(VIMRCLOC:\=\\)"; | |
1004 char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR:\=\\)"; | |
1005 char_u *all_cflags = (char_u *)"$(CC:\=\\) $(CFLAGS:\=\\) $(DEFINES) $(MBDEFINES) $(INTERP_DEFINES_ESC) $(OPT) $(EXETYPE) $(CPUARG) $(ALIGNARG) $(DEBUG_FLAG) $(CODEGUARD_FLAG)"; | |
1006 char_u *all_lflags = (char_u *)"$(LINK:\=\\) $(LFLAGS:\=\\)"; | |
1007 char_u *compiled_user = (char_u *)"$(USERNAME)"; | |
1008 char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; | |
1009 | auto\pathdef.c | |
1010 | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
1011 lua.lib: $(LUA)\lib\lua$(LUA_VER).lib |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
1012 coff2omf $(LUA)\lib\lua$(LUA_VER).lib $@ |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
1013 |
7 | 1014 perl.lib: $(PERL)\lib\CORE\perl$(PERL_VER).lib |
1015 coff2omf $(PERL)\lib\CORE\perl$(PERL_VER).lib $@ | |
1016 | |
1017 python.lib: $(PYTHON)\libs\python$(PYTHON_VER).lib | |
1018 coff2omf $(PYTHON)\libs\python$(PYTHON_VER).lib $@ | |
1019 | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
1020 python3.lib: $(PYTHON3)\libs\python$(PYTHON3_VER).lib |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
1021 coff2omf $(PYTHON3)\libs\python$(PYTHON3_VER).lib $@ |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
1022 |
7 | 1023 ruby.lib: $(RUBY)\lib\$(RUBY_INSTALL_NAME).lib |
1024 coff2omf $(RUBY)\lib\$(RUBY_INSTALL_NAME).lib $@ | |
1025 | |
1026 # For some reason, the coff2omf method doesn't work on libXpm.lib, so | |
1027 # we have to manually generate an import library straight from the DLL. | |
1028 xpm.lib: $(XPM)\lib\libXpm.lib | |
1029 implib -a $@ $(XPM)\bin\libXpm.dll | |
1030 | |
1031 tcl.lib: $(TCL_LIB) | |
1032 !if ("$(DYNAMIC_TCL)" == "yes") | |
1033 copy $(TCL_LIB) $@ | |
1034 !else | |
1035 coff2omf $(TCL_LIB) $@ | |
1036 !endif | |
1037 | |
1038 !if ("$(DYNAMIC_TCL)" == "yes") | |
1039 tclstub$(TCL_VER)-bor.lib: | |
1040 -@IF NOT EXIST $@ ECHO You must download tclstub$(TCL_VER)-bor.lib separately and\ | |
1041 place it in the src directory in order to compile a dynamic TCL-enabled\ | |
1042 (g)vim with the Borland compiler. You can get the tclstub$(TCL_VER)-bor.lib file\ | |
1043 at http://mywebpage.netscape.com/sharppeople/vim/tclstub$(TCL_VER)-bor.lib | |
1044 !endif | |
1045 | |
1046 # vimrun.exe: | |
1047 vimrun.exe: vimrun.c | |
1048 !if ("$(USEDLL)"=="yes") | |
1049 $(CC) -WC -O1 -I$(INCLUDE) -L$(LIB) -D_RTLDLL vimrun.c cw32mti.lib | |
1050 !else | |
1051 $(CC) -WC -O1 -I$(INCLUDE) -L$(LIB) vimrun.c | |
1052 !endif | |
1053 | |
1054 # The dependency on $(OBJDIR) is to have bcc.cfg generated each time. | |
1055 $(OBJDIR)\bcc.cfg: Make_bc5.mak $(OBJDIR) | |
1056 copy /y &&| | |
1057 $(CFLAGS) | |
1058 -L$(LIB) | |
1059 $(DEFINES) | |
1060 $(MBDEFINES) | |
1061 $(INTERP_DEFINES) | |
1062 $(EXETYPE) | |
1063 $(DEBUG_FLAG) | |
1064 $(OPT) | |
1065 $(CODEGUARD_FLAG) | |
1066 $(CPUARG) | |
1067 $(ALIGNARG) | |
1068 | $@ | |
1069 | |
1070 # vi:set sts=4 sw=4: | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
1071 |