Mercurial > vim
annotate src/Make_bc5.mak @ 15634:746b95fd25ad v8.1.0825
patch 8.1.0825: code for autocommands is mixed with file I/O code
commit https://github.com/vim/vim/commit/3e460fd8b72db905fbf9f01b00371384ffc415b8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 26 16:21:07 2019 +0100
patch 8.1.0825: code for autocommands is mixed with file I/O code
Problem: Code for autocommands is mixed with file I/O code.
Solution: Move autocommand code to a separate file. (Yegappan Lakshmanan,
closes #3863)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 26 Jan 2019 16:30:13 +0100 |
parents | bb421f682528 |
children | 2d941023bd2f |
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") | |
408 DEFINES = $(DEFINES) -DFEAT_GUI_W32 -DFEAT_CLIPBOARD | |
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 \ | |
9403
9b048dced116
commit https://github.com/vim/vim/commit/75464dc434c43efac60e8bfd9bec2a8b736407e9
Christian Brabandt <cb@256bit.org>
parents:
8493
diff
changeset
|
545 $(OBJDIR)\farsi.obj \ |
7 | 546 $(OBJDIR)\fileio.obj \ |
547 $(OBJDIR)\fold.obj \ | |
548 $(OBJDIR)\getchar.obj \ | |
440 | 549 $(OBJDIR)\hardcopy.obj \ |
799 | 550 $(OBJDIR)\hashtab.obj \ |
7712
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
7435
diff
changeset
|
551 $(OBJDIR)\json.obj \ |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9536
diff
changeset
|
552 $(OBJDIR)\list.obj \ |
7 | 553 $(OBJDIR)\main.obj \ |
554 $(OBJDIR)\mark.obj \ | |
555 $(OBJDIR)\memfile.obj \ | |
556 $(OBJDIR)\memline.obj \ | |
557 $(OBJDIR)\menu.obj \ | |
558 $(OBJDIR)\message.obj \ | |
559 $(OBJDIR)\misc1.obj \ | |
560 $(OBJDIR)\misc2.obj \ | |
561 $(OBJDIR)\move.obj \ | |
562 $(OBJDIR)\mbyte.obj \ | |
563 $(OBJDIR)\normal.obj \ | |
564 $(OBJDIR)\ops.obj \ | |
565 $(OBJDIR)\option.obj \ | |
799 | 566 $(OBJDIR)\popupmnu.obj \ |
7 | 567 $(OBJDIR)\quickfix.obj \ |
568 $(OBJDIR)\regexp.obj \ | |
569 $(OBJDIR)\screen.obj \ | |
570 $(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
|
571 $(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
|
572 $(OBJDIR)\sign.obj \ |
226 | 573 $(OBJDIR)\spell.obj \ |
9583
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
9571
diff
changeset
|
574 $(OBJDIR)\spellfile.obj \ |
7 | 575 $(OBJDIR)\syntax.obj \ |
576 $(OBJDIR)\tag.obj \ | |
577 $(OBJDIR)\term.obj \ | |
578 $(OBJDIR)\ui.obj \ | |
579 $(OBJDIR)\undo.obj \ | |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9536
diff
changeset
|
580 $(OBJDIR)\userfunc.obj \ |
7 | 581 $(OBJDIR)\version.obj \ |
582 $(OBJDIR)\window.obj \ | |
583 $(OBJDIR)\pathdef.obj | |
584 | |
585 !if ("$(OLE)"=="yes") | |
586 vimobj = $(vimobj) \ | |
587 $(OBJDIR)\if_ole.obj | |
588 !endif | |
589 | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
590 !ifdef LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
591 vimobj = $(vimobj) \ |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
592 $(OBJDIR)\if_lua.obj |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
593 !endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
594 |
7 | 595 !ifdef PERL |
596 vimobj = $(vimobj) \ | |
597 $(OBJDIR)\if_perl.obj | |
598 !endif | |
599 | |
600 !ifdef PYTHON | |
601 vimobj = $(vimobj) \ | |
602 $(OBJDIR)\if_python.obj | |
603 !endif | |
604 | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
605 !ifdef PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
606 vimobj = $(vimobj) \ |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
607 $(OBJDIR)\if_python3.obj |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
608 !endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
609 |
7 | 610 !ifdef RUBY |
611 vimobj = $(vimobj) \ | |
612 $(OBJDIR)\if_ruby.obj | |
613 !endif | |
614 | |
615 !ifdef TCL | |
616 vimobj = $(vimobj) \ | |
617 $(OBJDIR)\if_tcl.obj | |
618 !endif | |
619 | |
620 !if ("$(CSCOPE)"=="yes") | |
621 vimobj = $(vimobj) \ | |
622 $(OBJDIR)\if_cscope.obj | |
623 !endif | |
624 | |
625 !if ("$(NETBEANS)"=="yes") | |
626 vimobj = $(vimobj) \ | |
185 | 627 $(OBJDIR)\netbeans.obj |
7 | 628 !endif |
629 | |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
630 !if ("$(CHANNEL)"=="yes") |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
631 vimobj = $(vimobj) \ |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
632 $(OBJDIR)\channel.obj |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
633 !endif |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
634 |
7 | 635 !ifdef XPM |
636 vimobj = $(vimobj) \ | |
637 $(OBJDIR)\xpm_w32.obj | |
638 !endif | |
639 | |
640 !if ("$(VIMDLL)"=="yes") | |
641 vimdllobj = $(vimobj) | |
642 !if ("$(DEBUG)"=="yes") | |
643 DLLTARGET = vim32d.dll | |
644 !else | |
645 DLLTARGET = vim32.dll | |
646 !endif | |
647 !else | |
648 DLLTARGET = joebob | |
649 !endif | |
650 | |
651 !if ("$(GUI)"=="yes") | |
652 vimobj = $(vimobj) \ | |
653 $(vimwinmain) \ | |
654 $(OBJDIR)\gui.obj \ | |
185 | 655 $(OBJDIR)\gui_beval.obj \ |
7 | 656 $(OBJDIR)\gui_w32.obj |
657 !endif | |
658 | |
659 vimobj = $(vimobj) \ | |
4168 | 660 $(OBJDIR)\os_win32.obj $(OBJDIR)\os_mswin.obj $(OBJDIR)\winclip.obj |
7 | 661 # Blab what we are going to do: |
662 MSG = Compiling $(OSTYPE) $(TARGET) $(OLETARGET), with: | |
663 !if ("$(GUI)"=="yes") | |
664 MSG = $(MSG) GUI | |
665 !endif | |
666 !if ("$(OLE)"=="yes") | |
667 MSG = $(MSG) OLE | |
668 !endif | |
669 !if ("$(USEDLL)"=="yes") | |
670 MSG = $(MSG) USEDLL | |
671 !endif | |
672 !if ("$(VIMDLL)"=="yes") | |
673 MSG = $(MSG) VIMDLL | |
674 !endif | |
675 !if ("$(FASTCALL)"=="yes") | |
676 MSG = $(MSG) FASTCALL | |
677 !endif | |
678 !if ("$(IME)"=="yes") | |
679 MSG = $(MSG) IME | |
680 ! if "$(DYNAMIC_IME)" == "yes" | |
681 MSG = $(MSG)(dynamic) | |
682 ! endif | |
683 !endif | |
684 !if ("$(GETTEXT)"=="yes") | |
685 MSG = $(MSG) GETTEXT | |
686 !endif | |
687 !if ("$(ICONV)"=="yes") | |
688 MSG = $(MSG) ICONV | |
689 !endif | |
690 !if ("$(DEBUG)"=="yes") | |
691 MSG = $(MSG) DEBUG | |
692 !endif | |
693 !if ("$(CODEGUARD)"=="yes") | |
694 MSG = $(MSG) CODEGUARD | |
695 !endif | |
696 !if ("$(CSCOPE)"=="yes") | |
697 MSG = $(MSG) CSCOPE | |
698 !endif | |
699 !if ("$(NETBEANS)"=="yes") | |
700 MSG = $(MSG) NETBEANS | |
701 !endif | |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
702 !if ("$(CHANNEL)"=="yes") |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
703 MSG = $(MSG) CHANNEL |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
704 !endif |
7 | 705 !ifdef XPM |
706 MSG = $(MSG) XPM | |
707 !endif | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
708 !ifdef LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
709 MSG = $(MSG) LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
710 ! if "$(DYNAMIC_LUA)" == "yes" |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
711 MSG = $(MSG)(dynamic) |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
712 ! endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
713 !endif |
7 | 714 !ifdef PERL |
715 MSG = $(MSG) PERL | |
716 ! if "$(DYNAMIC_PERL)" == "yes" | |
717 MSG = $(MSG)(dynamic) | |
718 ! endif | |
719 !endif | |
720 !ifdef PYTHON | |
721 MSG = $(MSG) PYTHON | |
722 ! if "$(DYNAMIC_PYTHON)" == "yes" | |
723 MSG = $(MSG)(dynamic) | |
724 ! endif | |
725 !endif | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
726 !ifdef PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
727 MSG = $(MSG) PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
728 ! if "$(DYNAMIC_PYTHON3)" == "yes" |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
729 MSG = $(MSG)(dynamic) |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
730 ! endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
731 !endif |
7 | 732 !ifdef RUBY |
733 MSG = $(MSG) RUBY | |
734 ! if "$(DYNAMIC_RUBY)" == "yes" | |
735 MSG = $(MSG)(dynamic) | |
736 ! endif | |
737 !endif | |
738 !ifdef TCL | |
739 MSG = $(MSG) TCL | |
740 ! if "$(DYNAMIC_TCL)" == "yes" | |
741 MSG = $(MSG)(dynamic) | |
742 ! endif | |
743 !endif | |
744 MSG = $(MSG) cpu=$(CPUARG) | |
745 MSG = $(MSG) Align=$(ALIGNARG) | |
746 | |
747 !message $(MSG) | |
748 | |
749 !if ("$(VIMDLL)"=="yes") | |
750 TARGETS = $(DLLTARGET) | |
751 !endif | |
752 TARGETS = $(TARGETS) $(TARGET) | |
753 | |
754 # Targets: | |
755 all: vim vimrun.exe install.exe xxd uninstal.exe GvimExt/gvimext.dll | |
756 | |
757 vim: $(OSTYPE) $(OBJDIR) $(OBJDIR)\bcc.cfg $(TARGETS) | |
758 @if exist $(OBJDIR)\version.obj del $(OBJDIR)\version.obj | |
759 @if exist auto\pathdef.c del auto\pathdef.c | |
760 | |
761 $(OSTYPE): | |
762 -@md $(OSTYPE) | |
763 | |
764 $(OBJDIR): | |
765 -@md $(OBJDIR) | |
766 | |
767 xxd: | |
768 @cd xxd | |
769 $(MAKE) /f Make_bc5.mak BOR="$(BOR)" BCC="$(CC)" | |
770 @cd .. | |
771 | |
772 GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h | |
773 cd GvimExt | |
774 $(MAKE) /f Make_bc5.mak USEDLL=$(USEDLL) BOR=$(BOR) | |
775 cd .. | |
776 | |
777 install.exe: dosinst.c $(OBJDIR)\bcc.cfg | |
778 $(CC) $(CCARG) -WC -DWIN32 -einstall dosinst.c | |
779 | |
780 uninstal.exe: uninstal.c $(OBJDIR)\bcc.cfg | |
781 $(CC) $(CCARG) -WC -DWIN32 -O2 -euninstal uninstal.c | |
782 | |
783 clean: | |
784 !if "$(OS)" == "Windows_NT" | |
785 # For Windows NT/2000, doesn't work on Windows 95/98... | |
786 # $(COMSPEC) needed to ensure rmdir.exe is not run | |
787 -@$(COMSPEC) /C rmdir /Q /S $(OBJDIR) | |
788 !else | |
789 # For Windows 95/98, doesn't work on Windows NT/2000... | |
790 -@deltree /y $(OBJDIR) | |
791 !endif | |
792 -@del *.res | |
793 -@del vim32*.dll | |
794 -@del vim32*.lib | |
795 -@del *vim*.exe | |
796 -@del *install*.exe | |
797 -@del *.csm | |
798 -@del *.map | |
799 -@del *.ilc | |
800 -@del *.ild | |
801 -@del *.ilf | |
802 -@del *.ils | |
803 -@del *.tds | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
804 !ifdef LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
805 -@del lua.lib |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
806 !endif |
7 | 807 !ifdef PERL |
808 -@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
|
809 -@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
|
810 -@del auto\if_perl.c |
7 | 811 !endif |
812 !ifdef PYTHON | |
813 -@del python.lib | |
814 !endif | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
815 !ifdef PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
816 -@del python3.lib |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
817 !endif |
7 | 818 !ifdef RUBY |
819 -@del ruby.lib | |
820 !endif | |
821 !ifdef TCL | |
822 -@del tcl.lib | |
823 !endif | |
824 !ifdef XPM | |
825 -@del xpm.lib | |
826 !endif | |
827 cd xxd | |
828 $(MAKE) /f Make_bc5.mak BOR="$(BOR)" clean | |
829 cd .. | |
830 cd GvimExt | |
831 $(MAKE) /f Make_bc5.mak BOR="$(BOR)" clean | |
832 cd .. | |
833 | |
834 $(DLLTARGET): $(OBJDIR) $(vimdllobj) | |
835 $(LINK) @&&| | |
836 $(LFLAGSDLL) + | |
837 c0d32.obj + | |
838 $(vimdllobj) | |
839 $<,$* | |
840 !if ("$(CODEGUARD)"=="yes") | |
841 cg32.lib+ | |
842 !endif | |
843 # $(OSTYPE)==WIN32 causes os_mswin.c compilation. FEAT_SHORTCUT in it needs OLE | |
844 ole2w32.lib + | |
845 import32.lib+ | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
846 !ifdef LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
847 $(LUA_LIB_FLAG)lua.lib+ |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
848 !endif |
7 | 849 !ifdef PERL |
850 $(PERL_LIB_FLAG)perl.lib+ | |
851 !endif | |
852 !ifdef PYTHON | |
853 $(PYTHON_LIB_FLAG)python.lib+ | |
854 !endif | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
855 !ifdef PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
856 $(PYTHON3_LIB_FLAG)python3.lib+ |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
857 !endif |
7 | 858 !ifdef RUBY |
859 $(RUBY_LIB_FLAG)ruby.lib+ | |
860 !endif | |
861 !ifdef TCL | |
862 $(TCL_LIB_FLAG)tcl.lib+ | |
863 !endif | |
864 !ifdef XPM | |
865 xpm.lib+ | |
866 !endif | |
867 !if ("$(USEDLL)"=="yes") | |
868 cw32i.lib | |
869 !else | |
870 cw32.lib | |
871 !endif | |
872 vim.def | |
873 | | |
874 | |
875 !if ("$(VIMDLL)"=="yes") | |
876 $(TARGET): $(OBJDIR) $(DLLTARGET) $(vimmain) $(OBJDIR)\$(RESFILE) | |
877 !else | |
878 $(TARGET): $(OBJDIR) $(vimobj) $(OBJDIR)\$(RESFILE) | |
879 !endif | |
880 $(LINK) @&&| | |
881 $(LFLAGS) + | |
882 $(STARTUPOBJ) + | |
883 !if ("$(VIMDLL)"=="yes") | |
884 $(vimmain) | |
885 !else | |
886 $(vimobj) | |
887 !endif | |
888 $<,$* | |
889 !if ("$(CODEGUARD)"=="yes") | |
890 cg32.lib+ | |
891 !endif | |
892 # $(OSTYPE)==WIN32 causes os_mswin.c compilation. FEAT_SHORTCUT in it needs OLE | |
893 ole2w32.lib + | |
894 import32.lib+ | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
895 !ifdef LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
896 $(LUA_LIB_FLAG)lua.lib+ |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
897 !endif |
7 | 898 !ifdef PERL |
899 $(PERL_LIB_FLAG)perl.lib+ | |
900 !endif | |
901 !ifdef PYTHON | |
902 $(PYTHON_LIB_FLAG)python.lib+ | |
903 !endif | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
904 !ifdef PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
905 $(PYTHON3_LIB_FLAG)python3.lib+ |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
906 !endif |
7 | 907 !ifdef RUBY |
908 $(RUBY_LIB_FLAG)ruby.lib+ | |
909 !endif | |
910 !ifdef TCL | |
911 $(TCL_LIB_FLAG)tcl.lib+ | |
912 !endif | |
913 !ifdef XPM | |
914 xpm.lib+ | |
915 !endif | |
916 !if ("$(USEDLL)"=="yes") | |
917 cw32i.lib | |
918 !else | |
919 cw32.lib | |
920 !endif | |
921 | |
922 $(OBJDIR)\$(RESFILE) | |
923 | | |
924 | |
925 test: | |
926 cd testdir | |
927 $(MAKE) /NOLOGO -f Make_dos.mak win32 | |
928 cd .. | |
929 | |
930 $(OBJDIR)\ex_docmd.obj: ex_docmd.c ex_cmds.h | |
931 | |
932 $(OBJDIR)\ex_eval.obj: ex_eval.c ex_cmds.h | |
933 | |
934 $(OBJDIR)\if_ole.obj: if_ole.cpp | |
935 | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
936 $(OBJDIR)\if_lua.obj: if_lua.c lua.lib |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
937 $(CC) $(CCARG) $(CC1) $(CC2)$@ -pc if_lua.c |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
938 |
14925
8b1b3228c410
patch 8.1.0474: directory where if_perl.c is written is inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
9583
diff
changeset
|
939 $(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
|
940 $(CC) $(CCARG) $(CC1) $(CC2)$@ -pc auto/if_perl.c |
7 | 941 |
14925
8b1b3228c410
patch 8.1.0474: directory where if_perl.c is written is inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
9583
diff
changeset
|
942 auto/if_perl.c: if_perl.xs typemap |
7 | 943 $(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
|
944 $(PERL)\lib\ExtUtils\typemap if_perl.xs -output $@ |
7 | 945 |
4724
450e13fe1621
updated for version 7.3.1109
Bram Moolenaar <bram@vim.org>
parents:
4168
diff
changeset
|
946 $(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
|
947 $(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
|
948 |
4724
450e13fe1621
updated for version 7.3.1109
Bram Moolenaar <bram@vim.org>
parents:
4168
diff
changeset
|
949 $(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
|
950 $(CC) -I$(PYTHON3)\include $(CCARG) $(CC1) $(CC2)$@ -pc if_python3.c |
7 | 951 |
952 $(OBJDIR)\if_ruby.obj: if_ruby.c ruby.lib | |
953 $(CC) $(CCARG) $(CC1) $(CC2)$@ -pc if_ruby.c | |
954 | |
955 $(OBJDIR)\if_tcl.obj: if_tcl.c tcl.lib | |
956 $(CC) $(CCARG) $(CC1) $(CC2)$@ -pc if_tcl.c | |
957 | |
958 $(OBJDIR)\xpm_w32.obj: xpm_w32.c xpm.lib | |
959 $(CC) $(CCARG) $(CC1) $(CC2)$@ -pc xpm_w32.c | |
960 | |
961 $(OBJDIR)\netbeans.obj: netbeans.c $(NBDEBUG_DEP) | |
962 $(CC) $(CCARG) $(CC1) $(CC2)$@ netbeans.c | |
963 | |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
964 $(OBJDIR)\channel.obj: channel.c |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
965 $(CC) $(CCARG) $(CC1) $(CC2)$@ channel.c |
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
966 |
7 | 967 $(OBJDIR)\vim.res: vim.rc version.h tools.bmp tearoff.bmp \ |
968 vim.ico vim_error.ico vim_alert.ico vim_info.ico vim_quest.ico | |
969 $(BRC) -fo$(OBJDIR)\vim.res -i $(BOR)\include -w32 -r vim.rc @&&| | |
970 $(DEFINES) | |
971 | | |
972 | |
973 $(OBJDIR)\pathdef.obj: auto\pathdef.c | |
974 $(CC) $(CCARG) $(CC1) $(CC2)$@ auto\pathdef.c | |
975 | |
976 | |
977 # Need to escape both quotes and backslashes in $INTERP_DEFINES | |
978 INTERP_DEFINES_ESC_BKS=$(INTERP_DEFINES:\=\\) | |
979 INTERP_DEFINES_ESC=$(INTERP_DEFINES_ESC_BKS:"=\") | |
980 | |
981 # Note: the silly /*"*/ below are there to trick make into accepting | |
982 # the # character as something other than a comment without messing up | |
983 # the preprocessor directive. | |
984 auto\pathdef.c:: | |
985 -@md auto | |
986 @echo creating auto/pathdef.c | |
987 @copy /y &&| | |
988 /* pathdef.c */ | |
989 /*"*/#include "vim.h"/*"*/ | |
990 | |
991 char_u *default_vim_dir = (char_u *)"$(VIMRCLOC:\=\\)"; | |
992 char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR:\=\\)"; | |
993 char_u *all_cflags = (char_u *)"$(CC:\=\\) $(CFLAGS:\=\\) $(DEFINES) $(MBDEFINES) $(INTERP_DEFINES_ESC) $(OPT) $(EXETYPE) $(CPUARG) $(ALIGNARG) $(DEBUG_FLAG) $(CODEGUARD_FLAG)"; | |
994 char_u *all_lflags = (char_u *)"$(LINK:\=\\) $(LFLAGS:\=\\)"; | |
995 char_u *compiled_user = (char_u *)"$(USERNAME)"; | |
996 char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; | |
997 | auto\pathdef.c | |
998 | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
999 lua.lib: $(LUA)\lib\lua$(LUA_VER).lib |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
1000 coff2omf $(LUA)\lib\lua$(LUA_VER).lib $@ |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
1001 |
7 | 1002 perl.lib: $(PERL)\lib\CORE\perl$(PERL_VER).lib |
1003 coff2omf $(PERL)\lib\CORE\perl$(PERL_VER).lib $@ | |
1004 | |
1005 python.lib: $(PYTHON)\libs\python$(PYTHON_VER).lib | |
1006 coff2omf $(PYTHON)\libs\python$(PYTHON_VER).lib $@ | |
1007 | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
1008 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
|
1009 coff2omf $(PYTHON3)\libs\python$(PYTHON3_VER).lib $@ |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
1010 |
7 | 1011 ruby.lib: $(RUBY)\lib\$(RUBY_INSTALL_NAME).lib |
1012 coff2omf $(RUBY)\lib\$(RUBY_INSTALL_NAME).lib $@ | |
1013 | |
1014 # For some reason, the coff2omf method doesn't work on libXpm.lib, so | |
1015 # we have to manually generate an import library straight from the DLL. | |
1016 xpm.lib: $(XPM)\lib\libXpm.lib | |
1017 implib -a $@ $(XPM)\bin\libXpm.dll | |
1018 | |
1019 tcl.lib: $(TCL_LIB) | |
1020 !if ("$(DYNAMIC_TCL)" == "yes") | |
1021 copy $(TCL_LIB) $@ | |
1022 !else | |
1023 coff2omf $(TCL_LIB) $@ | |
1024 !endif | |
1025 | |
1026 !if ("$(DYNAMIC_TCL)" == "yes") | |
1027 tclstub$(TCL_VER)-bor.lib: | |
1028 -@IF NOT EXIST $@ ECHO You must download tclstub$(TCL_VER)-bor.lib separately and\ | |
1029 place it in the src directory in order to compile a dynamic TCL-enabled\ | |
1030 (g)vim with the Borland compiler. You can get the tclstub$(TCL_VER)-bor.lib file\ | |
1031 at http://mywebpage.netscape.com/sharppeople/vim/tclstub$(TCL_VER)-bor.lib | |
1032 !endif | |
1033 | |
1034 # vimrun.exe: | |
1035 vimrun.exe: vimrun.c | |
1036 !if ("$(USEDLL)"=="yes") | |
1037 $(CC) -WC -O1 -I$(INCLUDE) -L$(LIB) -D_RTLDLL vimrun.c cw32mti.lib | |
1038 !else | |
1039 $(CC) -WC -O1 -I$(INCLUDE) -L$(LIB) vimrun.c | |
1040 !endif | |
1041 | |
1042 # The dependency on $(OBJDIR) is to have bcc.cfg generated each time. | |
1043 $(OBJDIR)\bcc.cfg: Make_bc5.mak $(OBJDIR) | |
1044 copy /y &&| | |
1045 $(CFLAGS) | |
1046 -L$(LIB) | |
1047 $(DEFINES) | |
1048 $(MBDEFINES) | |
1049 $(INTERP_DEFINES) | |
1050 $(EXETYPE) | |
1051 $(DEBUG_FLAG) | |
1052 $(OPT) | |
1053 $(CODEGUARD_FLAG) | |
1054 $(CPUARG) | |
1055 $(ALIGNARG) | |
1056 | $@ | |
1057 | |
1058 # vi:set sts=4 sw=4: | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
1059 |