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