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