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