blob: 7b5b0f2ccf594f0b2a7c82115317c0b8b36f9ba7 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001#
2# Makefile for Vim.
3# Compiler: Borland C++ 5.0 and later 32-bit compiler
Bram Moolenaara06ecab2016-07-16 14:47:36 +02004# Targets: Win32 (Windows NT and Windows 95) (with/without GUI)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005#
Bram Moolenaar17b609e2016-01-01 17:56:17 +01006# NOTE: THIS IS OLD AND PROBABLY NO LONGER WORKS.
7#
Bram Moolenaar071d4272004-06-13 20:20:40 +00008# Contributed by Ben Singer.
9# Updated 4/1997 by Ron Aaron
Bram Moolenaar48e330a2016-02-23 14:53:34 +010010# 2016: removed support for 16 bit DOS
Bram Moolenaar071d4272004-06-13 20:20:40 +000011# 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)
Bram Moolenaar48e330a2016-02-23 14:53:34 +010038# LINK name of the linker ($(BOR)\bin\ilink32)
Bram Moolenaar071d4272004-06-13 20:20:40 +000039# GUI no or yes: set to yes if you want the GUI version (yes)
Bram Moolenaar0ba04292010-07-14 23:23:17 +020040# LUA define to path to Lua dir to get Lua support (not defined)
41# LUA_VER define to version of Lua being used (51)
42# DYNAMIC_LUA no or yes: set to yes to load the Lua DLL dynamically (no)
Bram Moolenaar071d4272004-06-13 20:20:40 +000043# 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)
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +020049# PYTHON3 define to path to Python3 dir to get PYTHON3 support (not defined)
50# PYTHON3_VER define to version of Python3 being used (31)
51# DYNAMIC_PYTHON3 no or yes: use yes to load the Python3 DLL dynamically (no)
Bram Moolenaar071d4272004-06-13 20:20:40 +000052# 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.
Bram Moolenaar910f66f2006-04-05 20:41:53 +000062# RUBY_VER_LONG same, but in format with dot. (1.6)
Bram Moolenaar071d4272004-06-13 20:20:40 +000063# DYNAMIC_RUBY no or yes: use yes to load the Ruby DLL dynamically (no)
Bram Moolenaar071d4272004-06-13 20:20:40 +000064# 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)
Bram Moolenaar071d4272004-06-13 20:20:40 +000069# 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.
Bram Moolenaar48e330a2016-02-23 14:53:34 +010075# ALIGN 1, 2 or 4: Alignment to use (4 for Win32)
Bram Moolenaar071d4272004-06-13 20:20:40 +000076# FASTCALL no or yes: set to yes to use register-based function protocol (yes)
77# OPTIMIZE SPACE, SPEED, or MAXSPEED: type of optimization (MAXSPEED)
78# POSTSCRIPT no or yes: set to yes for PostScript printing
Bram Moolenaar48e330a2016-02-23 14:53:34 +010079# FEATURES TINY, SMALL, NORMAL, BIG or HUGE (BIG for WIN32)
Bram Moolenaar071d4272004-06-13 20:20:40 +000080# WINVER 0x0400 or 0x0500: minimum Win32 version to support (0x0400)
81# CSCOPE no or yes: include support for Cscope interface (yes)
Bram Moolenaare0874f82016-01-24 20:36:41 +010082# NETBEANS no or yes: include support for Netbeans interface; also
83# requires CHANNEL (yes if GUI
Bram Moolenaar071d4272004-06-13 20:20:40 +000084# is yes)
Bram Moolenaarc9b4b052006-04-30 18:54:39 +000085# NBDEBUG no or yes: include support for debugging Netbeans interface (no)
Bram Moolenaare0874f82016-01-24 20:36:41 +010086# CHANNEL no or yes: include support for inter process communication (yes
87# if GUI is yes)
Bram Moolenaar071d4272004-06-13 20:20:40 +000088# XPM define to path to XPM dir to get support for loading XPM images.
89
90### BOR: root of the BC installation
91!if ("$(BOR)"=="")
92BOR = c:\bc5
93!endif
94
Bram Moolenaar48e330a2016-02-23 14:53:34 +010095### LINK: Name of the linker: ilink32 (this is below)
Bram Moolenaar071d4272004-06-13 20:20:40 +000096
97### GUI: yes for GUI version, no for console version
98!if ("$(GUI)"=="")
99GUI = yes
100!endif
101
Bram Moolenaar071d4272004-06-13 20:20:40 +0000102### IME: yes for multibyte support, no to disable it.
103!if ("$(IME)"=="")
104IME = yes
105!endif
106!if ("$(DYNAMIC_IME)"=="")
107DYNAMIC_IME = yes
108!endif
109
110### GETTEXT: yes for multilanguage support, no to disable it.
111!if ("$(GETTEXT)"=="")
112GETTEXT = yes
113!endif
114
115### ICONV: yes to enable dynamic-iconv support, no to disable it
116!if ("$(ICONV)"=="")
117ICONV = yes
118!endif
119
120### CSCOPE: yes to enable Cscope support, no to disable it
121!if ("$(CSCOPE)"=="")
122CSCOPE = yes
123!endif
124
125### NETBEANS: yes to enable NetBeans interface support, no to disable it
126!if ("$(NETBEANS)"=="") && ("$(GUI)"=="yes")
127NETBEANS = yes
128!endif
129
Bram Moolenaare0874f82016-01-24 20:36:41 +0100130### CHANNEL: yes to enable inter process communication, no to disable it
131!if ("$(CHANNEL)"=="") && ("$(GUI)"=="yes")
132CHANNEL = yes
133!endif
134
Bram Moolenaar0ba04292010-07-14 23:23:17 +0200135### LUA: uncomment this line if you want lua support in vim
136# LUA=c:\lua
137
Bram Moolenaar071d4272004-06-13 20:20:40 +0000138### PERL: uncomment this line if you want perl support in vim
139# PERL=c:\perl
140
141### PYTHON: uncomment this line if you want python support in vim
142# PYTHON=c:\python22
143
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +0200144### PYTHON3: uncomment this line if you want python3 support in vim
145# PYTHON3=c:\python31
146
Bram Moolenaar071d4272004-06-13 20:20:40 +0000147### RUBY: uncomment this line if you want ruby support in vim
148# RUBY=c:\ruby
149
150### TCL: uncomment this line if you want tcl support in vim
151# TCL=c:\tcl
152
153### OLE: no for normal gvim, yes for OLE-capable gvim (only works with GUI)
154#OLE = yes
155
Bram Moolenaar071d4272004-06-13 20:20:40 +0000156### DEBUG: Uncomment to make an executable for debugging
157# DEBUG = yes
158!if ("$(DEBUG)"=="yes")
159DEBUG_FLAG = -v
160!endif
161
162### CODEGUARD: Uncomment to use the CODEGUARD stuff (BC 5.0 or later):
163# CODEGUARD = yes
164!if ("$(CODEGUARD)"=="yes")
165CODEGUARD_FLAG = -vG
166!endif
167
168### CPUNR: set your target processor (3 to 6)
169!if ("$(CPUNR)" == "i386") || ("$(CPUNR)" == "3")
170CPUNR = 3
171!elif ("$(CPUNR)" == "i486") || ("$(CPUNR)" == "4")
172CPUNR = 4
173!elif ("$(CPUNR)" == "i586") || ("$(CPUNR)" == "5")
174CPUNR = 5
175!elif ("$(CPUNR)" == "i686") || ("$(CPUNR)" == "6")
176CPUNR = 6
177!else
178CPUNR = 3
179!endif
180
181### Comment out to use precompiled headers (faster, but uses lots of disk!)
182HEADERS = -H -H=vim.csm -Hc
183
184### USEDLL: no for statically linked version of run-time, yes for DLL runtime
185!if ("$(USEDLL)"=="")
186USEDLL = no
187!endif
188
Bram Moolenaar48e330a2016-02-23 14:53:34 +0100189### ALIGN: alignment you desire: (1,2 or 4: s/b 4 for Win32)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000190!if ("$(ALIGN)"=="")
Bram Moolenaar071d4272004-06-13 20:20:40 +0000191ALIGN = 4
192!endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000193
194### FASTCALL: yes to use FASTCALL calling convention (RECOMMENDED!), no otherwise
195# Incompatible when calling external functions (like MSVC-compiled DLLs), so
196# don't use FASTCALL when linking with external libs.
197!if ("$(FASTCALL)"=="") && \
Bram Moolenaar0ba04292010-07-14 23:23:17 +0200198 ("$(LUA)"=="") && \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000199 ("$(PYTHON)"=="") && \
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +0200200 ("$(PYTHON3)"=="") && \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000201 ("$(PERL)"=="") && \
202 ("$(TCL)"=="") && \
203 ("$(RUBY)"=="") && \
204 ("$(ICONV)"!="yes") && \
205 ("$(IME)"!="yes") && \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000206 ("$(XPM)"=="")
207FASTCALL = yes
208!endif
209
210### OPTIMIZE: SPEED to optimize for speed, SPACE otherwise (SPEED RECOMMENDED)
211!if ("$(OPTIMIZE)"=="")
212OPTIMIZE = MAXSPEED
213!endif
214
Bram Moolenaar48e330a2016-02-23 14:53:34 +0100215### FEATURES: TINY, SMALL, NORMAL, BIG or HUGE (BIG for WIN32)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000216!if ("$(FEATURES)"=="")
Bram Moolenaar071d4272004-06-13 20:20:40 +0000217FEATURES = BIG
Bram Moolenaar071d4272004-06-13 20:20:40 +0000218!endif
219
220### POSTSCRIPT: uncomment this line if you want PostScript printing
221#POSTSCRIPT = yes
222
223###
224# If you have a fixed directory for $VIM or $VIMRUNTIME, other than the normal
225# default, use these lines.
226#VIMRCLOC = somewhere
227#VIMRUNTIMEDIR = somewhere
228
229### Set the default $(WINVER) to make it work with Bcc 5.5.
230!ifndef WINVER
231WINVER = 0x0400
232!endif
233
234#
235# Sanity checks for the above options:
236#
237
Bram Moolenaar48e330a2016-02-23 14:53:34 +0100238OSTYPE = WIN32
Bram Moolenaar071d4272004-06-13 20:20:40 +0000239
240#
241# Optimizations: change as desired (RECOMMENDATION: Don't change!):
242#
243!if ("$(DEBUG)"=="yes")
244OPT = -Od -N
245!else
246!if ("$(OPTIMIZE)"=="SPACE")
247OPT = -O1 -f- -d
248!elif ("$(OPTIMIZE)"=="MAXSPEED")
249OPT = -O2 -f- -d -Ocavi -O
250!else
251OPT = -O2 -f- -d -Oc -O
252!endif
253!if ("$(FASTCALL)"=="yes")
254OPT = $(OPT) -pr
255!endif
256!if ("$(CODEGUARD)"!="yes")
257OPT = $(OPT) -vi-
258!endif
259!endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000260# shouldn't have to change:
261LIB = $(BOR)\lib
262INCLUDE = $(BOR)\include;.;proto
263DEFINES = -DFEAT_$(FEATURES) -DWIN32 -DHAVE_PATHDEF \
264 -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER)
265
Bram Moolenaar0ba04292010-07-14 23:23:17 +0200266!ifdef LUA
267INTERP_DEFINES = $(INTERP_DEFINES) -DFEAT_LUA
268INCLUDE = $(LUA)\include;$(INCLUDE)
269! ifndef LUA_VER
270LUA_VER = 51
271! endif
272! if ("$(DYNAMIC_LUA)" == "yes")
273INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL=\"lua$(LUA_VER).dll\"
274LUA_LIB_FLAG = /nodefaultlib:
275! endif
276!endif
277
Bram Moolenaar071d4272004-06-13 20:20:40 +0000278!ifdef PERL
279INTERP_DEFINES = $(INTERP_DEFINES) -DFEAT_PERL
280INCLUDE = $(PERL)\lib\core;$(INCLUDE)
281! ifndef PERL_VER
282PERL_VER = 56
283! endif
284! if ("$(DYNAMIC_PERL)" == "yes")
285! if ($(PERL_VER) > 55)
286INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl$(PERL_VER).dll\"
287PERL_LIB_FLAG = /nodefaultlib:
288! else
289! message "Cannot dynamically load Perl versions less than 5.6. Loading statically..."
290! endif
291! endif
292!endif
293
294!ifdef PYTHON
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +0200295!ifdef PYTHON3
296DYNAMIC_PYTHON=yes
297DYNAMIC_PYTHON3=yes
298!endif
299!endif
300
301!ifdef PYTHON
Bram Moolenaar071d4272004-06-13 20:20:40 +0000302INTERP_DEFINES = $(INTERP_DEFINES) -DFEAT_PYTHON
Bram Moolenaar071d4272004-06-13 20:20:40 +0000303!ifndef PYTHON_VER
304PYTHON_VER = 22
305!endif
306!if "$(DYNAMIC_PYTHON)" == "yes"
307INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python$(PYTHON_VER).dll\"
308PYTHON_LIB_FLAG = /nodefaultlib:
309!endif
310!endif
311
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +0200312!ifdef PYTHON3
313INTERP_DEFINES = $(INTERP_DEFINES) -DFEAT_PYTHON3
314!ifndef PYTHON3_VER
315PYTHON3_VER = 31
316!endif
317!if "$(DYNAMIC_PYTHON3)" == "yes"
318INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=\"python$(PYTHON3_VER).dll\"
319PYTHON3_LIB_FLAG = /nodefaultlib:
320!endif
321!endif
322
323
Bram Moolenaar071d4272004-06-13 20:20:40 +0000324!ifdef RUBY
325!ifndef RUBY_VER
326RUBY_VER = 16
327!endif
328!ifndef RUBY_VER_LONG
329RUBY_VER_LONG = 1.6
330!endif
331
332!if "$(RUBY_VER)" == "16"
333!ifndef RUBY_PLATFORM
334RUBY_PLATFORM = i586-mswin32
335!endif
336!ifndef RUBY_INSTALL_NAME
337RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_VER)
338!endif
339!else
340!ifndef RUBY_PLATFORM
341RUBY_PLATFORM = i386-mswin32
342!endif
343!ifndef RUBY_INSTALL_NAME
344RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_VER)
345!endif
346!endif
347
348INTERP_DEFINES = $(INTERP_DEFINES) -DFEAT_RUBY
349INCLUDE = $(RUBY)\lib\ruby\$(RUBY_VER_LONG)\$(RUBY_PLATFORM);$(INCLUDE)
350
351!if "$(DYNAMIC_RUBY)" == "yes"
352INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"$(RUBY_INSTALL_NAME).dll\"
353INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_RUBY_VER=$(RUBY_VER)
354RUBY_LIB_FLAG = /nodefaultlib:
355!endif
356!endif
357
358!ifdef TCL
359INTERP_DEFINES = $(INTERP_DEFINES) -DFEAT_TCL
360INCLUDE = $(TCL)\include;$(INCLUDE)
361!ifndef TCL_VER
362TCL_VER = 83
363!endif
364TCL_LIB = $(TCL)\lib\tcl$(TCL_VER).lib
365TCL_LIB_FLAG =
366!if "$(DYNAMIC_TCL)" == "yes"
367INTERP_DEFINES = $(INTERP_DEFINES) -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"tcl$(TCL_VER).dll\"
368TCL_LIB = tclstub$(TCL_VER)-bor.lib
369TCL_LIB_FLAG =
370!endif
371!endif
372#
373# DO NOT change below:
374#
375CPUARG = -$(CPUNR)
376ALIGNARG = -a$(ALIGN)
377#
378!if ("$(DEBUG)"=="yes")
Bram Moolenaar78cf3f02014-01-10 18:16:07 +0100379DEFINES=$(DEFINES) -DDEBUG -D_DEBUG
Bram Moolenaar071d4272004-06-13 20:20:40 +0000380!endif
381#
382!if ("$(OLE)"=="yes")
383DEFINES = $(DEFINES) -DFEAT_OLE
384!endif
385#
Bram Moolenaar071d4272004-06-13 20:20:40 +0000386!if ("$(IME)"=="yes")
387MBDEFINES = $(MBDEFINES) -DFEAT_MBYTE_IME
388!if ("$(DYNAMIC_IME)" == "yes")
389MBDEFINES = $(MBDEFINES) -DDYNAMIC_IME
390!endif
391!endif
392!if ("$(ICONV)"=="yes")
393MBDEFINES = $(MBDEFINES) -DDYNAMIC_ICONV
394!endif
395!if ("$(GETTEXT)"=="yes")
396MBDEFINES = $(MBDEFINES) -DDYNAMIC_GETTEXT
397!endif
398
399!if ("$(CSCOPE)"=="yes")
400DEFINES = $(DEFINES) -DFEAT_CSCOPE
401!endif
402
Bram Moolenaar071d4272004-06-13 20:20:40 +0000403!if ("$(GUI)"=="yes")
Bram Moolenaar0472b6d2019-02-18 21:41:37 +0100404DEFINES = $(DEFINES) -DFEAT_GUI_MSWIN -DFEAT_CLIPBOARD
Bram Moolenaar071d4272004-06-13 20:20:40 +0000405!if ("$(DEBUG)"=="yes")
406TARGET = gvimd.exe
407!else
408TARGET = gvim.exe
409!endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000410EXETYPE=-W
Bram Moolenaar071d4272004-06-13 20:20:40 +0000411STARTUPOBJ = c0w32.obj
412LINK2 = -aa
413RESFILE = vim.res
414!else
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000415!undef NETBEANS
Bram Moolenaare0874f82016-01-24 20:36:41 +0100416!undef CHANNEL
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000417!undef XPM
Bram Moolenaar071d4272004-06-13 20:20:40 +0000418!if ("$(DEBUG)"=="yes")
419TARGET = vimd.exe
420!else
421# for now, anyway: VIMDLL is only for the GUI version
Bram Moolenaar071d4272004-06-13 20:20:40 +0000422TARGET = vim.exe
423!endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000424EXETYPE=-WC
425STARTUPOBJ = c0x32.obj
426LINK2 = -ap -OS -o -P
Bram Moolenaar071d4272004-06-13 20:20:40 +0000427RESFILE = vim.res
428!endif
429
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000430!if ("$(NETBEANS)"=="yes")
Bram Moolenaare0874f82016-01-24 20:36:41 +0100431!if ("$(CHANNEL)"!="yes")
432# cannot use Netbeans without CHANNEL
433NETBEANS = no
434!else
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000435DEFINES = $(DEFINES) -DFEAT_NETBEANS_INTG
436!if ("$(NBDEBUG)"=="yes")
437DEFINES = $(DEFINES) -DNBDEBUG
438NBDEBUG_DEP = nbdebug.h nbdebug.c
439!endif
440!endif
Bram Moolenaare0874f82016-01-24 20:36:41 +0100441!endif
442
443!if ("$(CHANNEL)"=="yes")
Bram Moolenaar509ce2a2016-03-11 22:52:15 +0100444DEFINES = $(DEFINES) -DFEAT_JOB_CHANNEL
Bram Moolenaare0874f82016-01-24 20:36:41 +0100445!endif
Bram Moolenaarcfbc5ee2004-07-02 15:38:35 +0000446
447!ifdef XPM
448!if ("$(GUI)"=="yes")
449DEFINES = $(DEFINES) -DFEAT_XPM_W32
450INCLUDE = $(XPM)\include;$(INCLUDE)
451!endif
452!endif
453
Bram Moolenaar071d4272004-06-13 20:20:40 +0000454!if ("$(USEDLL)"=="yes")
455DEFINES = $(DEFINES) -D_RTLDLL
456!endif
457
458!if ("$(DEBUG)"=="yes")
459OBJDIR = $(OSTYPE)\objdbg
460!else
461!if ("$(GUI)"=="yes")
462!if ("$(OLE)"=="yes")
463OBJDIR = $(OSTYPE)\oleobj
464!else
465OBJDIR = $(OSTYPE)\gobj
466!endif
467!else
468OBJDIR = $(OSTYPE)\obj
469!endif
470!endif
471
472!if ("$(POSTSCRIPT)"=="yes")
473DEFINES = $(DEFINES) -DMSWINPS
474!endif
475
476##### BASE COMPILER/TOOLS RULES #####
477MAKE = $(BOR)\bin\make
478CFLAGS = -w-aus -w-par -w-pch -w-ngu -w-csu -I$(INCLUDE)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000479BRC = $(BOR)\BIN\brc32
480!if ("$(LINK)"=="")
481LINK = $(BOR)\BIN\ILink32
482!endif
483CC = $(BOR)\BIN\Bcc32
484LFLAGS = -OS -Tpe -c -m -L$(LIB) $(DEBUG_FLAG) $(LINK2)
485LFLAGSDLL = -Tpd -c -m -L$(LIB) $(DEBUG_FLAG) $(LINK2)
486CFLAGS = $(CFLAGS) -d -RT- -k- -Oi $(HEADERS) -f-
Bram Moolenaar071d4272004-06-13 20:20:40 +0000487
488CC1 = -c
489CC2 = -o
490CCARG = +$(OBJDIR)\bcc.cfg
491
492# implicit rules:
493
494# Without the following, the implicit rule in BUILTINS.MAK is picked up
495# for a rule for .c.obj rather than the local implicit rule
496.SUFFIXES
497.SUFFIXES .c .obj
498.path.c = .
499
500{.}.c{$(OBJDIR)}.obj:
501 $(CC) $(CCARG) $(CC1) -n$(OBJDIR)\ {$< }
502
503.cpp.obj:
504 $(CC) $(CCARG) $(CC1) $(CC2)$@ $*.cpp
505
Bram Moolenaar071d4272004-06-13 20:20:40 +0000506vimmain = \
507 $(OBJDIR)\os_w32exe.obj
Bram Moolenaar071d4272004-06-13 20:20:40 +0000508vimwinmain = \
509 $(OBJDIR)\os_w32exe.obj
Bram Moolenaar071d4272004-06-13 20:20:40 +0000510
511vimobj = \
Bram Moolenaar75464dc2016-07-02 20:27:50 +0200512 $(OBJDIR)\arabic.obj \
Bram Moolenaar3e460fd2019-01-26 16:21:07 +0100513 $(OBJDIR)\autocmd.obj \
Bram Moolenaar40e6a712010-05-16 22:32:54 +0200514 $(OBJDIR)\blowfish.obj \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000515 $(OBJDIR)\buffer.obj \
516 $(OBJDIR)\charset.obj \
Bram Moolenaar07cf3822014-08-10 16:31:50 +0200517 $(OBJDIR)\crypt.obj \
518 $(OBJDIR)\crypt_zip.obj \
Bram Moolenaar6583c442016-07-17 18:41:47 +0200519 $(OBJDIR)\dict.obj \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000520 $(OBJDIR)\diff.obj \
521 $(OBJDIR)\digraph.obj \
522 $(OBJDIR)\edit.obj \
523 $(OBJDIR)\eval.obj \
Bram Moolenaar73dad1e2016-07-17 22:13:49 +0200524 $(OBJDIR)\evalfunc.obj \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000525 $(OBJDIR)\ex_cmds.obj \
526 $(OBJDIR)\ex_cmds2.obj \
527 $(OBJDIR)\ex_docmd.obj \
528 $(OBJDIR)\ex_eval.obj \
529 $(OBJDIR)\ex_getln.obj \
530 $(OBJDIR)\fileio.obj \
Bram Moolenaar5fd0f502019-02-13 23:13:28 +0100531 $(OBJDIR)\findfile.obj \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000532 $(OBJDIR)\fold.obj \
533 $(OBJDIR)\getchar.obj \
Bram Moolenaar58d98232005-07-23 22:25:46 +0000534 $(OBJDIR)\hardcopy.obj \
Bram Moolenaarc01140a2006-03-24 22:21:52 +0000535 $(OBJDIR)\hashtab.obj \
Bram Moolenaar4b471622019-01-31 13:48:09 +0100536 $(OBJDIR)\indent.obj \
Bram Moolenaar520e1e42016-01-23 19:46:28 +0100537 $(OBJDIR)\json.obj \
Bram Moolenaar6583c442016-07-17 18:41:47 +0200538 $(OBJDIR)\list.obj \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000539 $(OBJDIR)\main.obj \
540 $(OBJDIR)\mark.obj \
541 $(OBJDIR)\memfile.obj \
542 $(OBJDIR)\memline.obj \
543 $(OBJDIR)\menu.obj \
544 $(OBJDIR)\message.obj \
545 $(OBJDIR)\misc1.obj \
546 $(OBJDIR)\misc2.obj \
547 $(OBJDIR)\move.obj \
548 $(OBJDIR)\mbyte.obj \
549 $(OBJDIR)\normal.obj \
550 $(OBJDIR)\ops.obj \
551 $(OBJDIR)\option.obj \
Bram Moolenaarc01140a2006-03-24 22:21:52 +0000552 $(OBJDIR)\popupmnu.obj \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000553 $(OBJDIR)\quickfix.obj \
554 $(OBJDIR)\regexp.obj \
555 $(OBJDIR)\screen.obj \
556 $(OBJDIR)\search.obj \
Bram Moolenaar40e6a712010-05-16 22:32:54 +0200557 $(OBJDIR)\sha256.obj \
Bram Moolenaarbbea4702019-01-01 13:20:31 +0100558 $(OBJDIR)\sign.obj \
Bram Moolenaarfc735152005-03-22 22:54:12 +0000559 $(OBJDIR)\spell.obj \
Bram Moolenaar9ccfebd2016-07-19 16:39:08 +0200560 $(OBJDIR)\spellfile.obj \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000561 $(OBJDIR)\syntax.obj \
562 $(OBJDIR)\tag.obj \
563 $(OBJDIR)\term.obj \
564 $(OBJDIR)\ui.obj \
565 $(OBJDIR)\undo.obj \
Bram Moolenaar6583c442016-07-17 18:41:47 +0200566 $(OBJDIR)\userfunc.obj \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000567 $(OBJDIR)\version.obj \
568 $(OBJDIR)\window.obj \
569 $(OBJDIR)\pathdef.obj
570
571!if ("$(OLE)"=="yes")
572vimobj = $(vimobj) \
573 $(OBJDIR)\if_ole.obj
574!endif
575
Bram Moolenaar0ba04292010-07-14 23:23:17 +0200576!ifdef LUA
577vimobj = $(vimobj) \
578 $(OBJDIR)\if_lua.obj
579!endif
580
Bram Moolenaar071d4272004-06-13 20:20:40 +0000581!ifdef PERL
582vimobj = $(vimobj) \
583 $(OBJDIR)\if_perl.obj
584!endif
585
586!ifdef PYTHON
587vimobj = $(vimobj) \
588 $(OBJDIR)\if_python.obj
589!endif
590
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +0200591!ifdef PYTHON3
592vimobj = $(vimobj) \
593 $(OBJDIR)\if_python3.obj
594!endif
595
Bram Moolenaar071d4272004-06-13 20:20:40 +0000596!ifdef RUBY
597vimobj = $(vimobj) \
598 $(OBJDIR)\if_ruby.obj
599!endif
600
601!ifdef TCL
602vimobj = $(vimobj) \
603 $(OBJDIR)\if_tcl.obj
604!endif
605
606!if ("$(CSCOPE)"=="yes")
607vimobj = $(vimobj) \
608 $(OBJDIR)\if_cscope.obj
609!endif
610
611!if ("$(NETBEANS)"=="yes")
612vimobj = $(vimobj) \
Bram Moolenaar408fb622005-03-07 23:03:19 +0000613 $(OBJDIR)\netbeans.obj
Bram Moolenaar071d4272004-06-13 20:20:40 +0000614!endif
615
Bram Moolenaare0874f82016-01-24 20:36:41 +0100616!if ("$(CHANNEL)"=="yes")
617vimobj = $(vimobj) \
618 $(OBJDIR)\channel.obj
619!endif
620
Bram Moolenaar071d4272004-06-13 20:20:40 +0000621!ifdef XPM
622vimobj = $(vimobj) \
623 $(OBJDIR)\xpm_w32.obj
624!endif
625
Bram Moolenaar071d4272004-06-13 20:20:40 +0000626!if ("$(GUI)"=="yes")
627vimobj = $(vimobj) \
628 $(vimwinmain) \
629 $(OBJDIR)\gui.obj \
Bram Moolenaar408fb622005-03-07 23:03:19 +0000630 $(OBJDIR)\gui_beval.obj \
Bram Moolenaar071d4272004-06-13 20:20:40 +0000631 $(OBJDIR)\gui_w32.obj
632!endif
633
Bram Moolenaar071d4272004-06-13 20:20:40 +0000634vimobj = $(vimobj) \
Bram Moolenaar693e40c2013-02-26 14:56:42 +0100635 $(OBJDIR)\os_win32.obj $(OBJDIR)\os_mswin.obj $(OBJDIR)\winclip.obj
Bram Moolenaar071d4272004-06-13 20:20:40 +0000636# Blab what we are going to do:
637MSG = Compiling $(OSTYPE) $(TARGET) $(OLETARGET), with:
638!if ("$(GUI)"=="yes")
639MSG = $(MSG) GUI
640!endif
641!if ("$(OLE)"=="yes")
642MSG = $(MSG) OLE
643!endif
644!if ("$(USEDLL)"=="yes")
645MSG = $(MSG) USEDLL
646!endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000647!if ("$(FASTCALL)"=="yes")
648MSG = $(MSG) FASTCALL
649!endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000650!if ("$(IME)"=="yes")
651MSG = $(MSG) IME
652! if "$(DYNAMIC_IME)" == "yes"
653MSG = $(MSG)(dynamic)
654! endif
655!endif
656!if ("$(GETTEXT)"=="yes")
657MSG = $(MSG) GETTEXT
658!endif
659!if ("$(ICONV)"=="yes")
660MSG = $(MSG) ICONV
661!endif
662!if ("$(DEBUG)"=="yes")
663MSG = $(MSG) DEBUG
664!endif
665!if ("$(CODEGUARD)"=="yes")
666MSG = $(MSG) CODEGUARD
667!endif
668!if ("$(CSCOPE)"=="yes")
669MSG = $(MSG) CSCOPE
670!endif
671!if ("$(NETBEANS)"=="yes")
672MSG = $(MSG) NETBEANS
673!endif
Bram Moolenaare0874f82016-01-24 20:36:41 +0100674!if ("$(CHANNEL)"=="yes")
675MSG = $(MSG) CHANNEL
676!endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000677!ifdef XPM
678MSG = $(MSG) XPM
679!endif
Bram Moolenaar0ba04292010-07-14 23:23:17 +0200680!ifdef LUA
681MSG = $(MSG) LUA
682! if "$(DYNAMIC_LUA)" == "yes"
683MSG = $(MSG)(dynamic)
684! endif
685!endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000686!ifdef PERL
687MSG = $(MSG) PERL
688! if "$(DYNAMIC_PERL)" == "yes"
689MSG = $(MSG)(dynamic)
690! endif
691!endif
692!ifdef PYTHON
693MSG = $(MSG) PYTHON
694! if "$(DYNAMIC_PYTHON)" == "yes"
695MSG = $(MSG)(dynamic)
696! endif
697!endif
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +0200698!ifdef PYTHON3
699MSG = $(MSG) PYTHON3
700! if "$(DYNAMIC_PYTHON3)" == "yes"
701MSG = $(MSG)(dynamic)
702! endif
703!endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000704!ifdef RUBY
705MSG = $(MSG) RUBY
706! if "$(DYNAMIC_RUBY)" == "yes"
707MSG = $(MSG)(dynamic)
708! endif
709!endif
710!ifdef TCL
711MSG = $(MSG) TCL
712! if "$(DYNAMIC_TCL)" == "yes"
713MSG = $(MSG)(dynamic)
714! endif
715!endif
716MSG = $(MSG) cpu=$(CPUARG)
717MSG = $(MSG) Align=$(ALIGNARG)
718
719!message $(MSG)
720
Bram Moolenaar071d4272004-06-13 20:20:40 +0000721TARGETS = $(TARGETS) $(TARGET)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000722
723# Targets:
724all: vim vimrun.exe install.exe xxd uninstal.exe GvimExt/gvimext.dll
725
726vim: $(OSTYPE) $(OBJDIR) $(OBJDIR)\bcc.cfg $(TARGETS)
727 @if exist $(OBJDIR)\version.obj del $(OBJDIR)\version.obj
728 @if exist auto\pathdef.c del auto\pathdef.c
729
730$(OSTYPE):
731 -@md $(OSTYPE)
732
733$(OBJDIR):
734 -@md $(OBJDIR)
735
736xxd:
737 @cd xxd
738 $(MAKE) /f Make_bc5.mak BOR="$(BOR)" BCC="$(CC)"
739 @cd ..
740
741GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
742 cd GvimExt
743 $(MAKE) /f Make_bc5.mak USEDLL=$(USEDLL) BOR=$(BOR)
744 cd ..
745
746install.exe: dosinst.c $(OBJDIR)\bcc.cfg
Bram Moolenaar071d4272004-06-13 20:20:40 +0000747 $(CC) $(CCARG) -WC -DWIN32 -einstall dosinst.c
Bram Moolenaar071d4272004-06-13 20:20:40 +0000748
749uninstal.exe: uninstal.c $(OBJDIR)\bcc.cfg
Bram Moolenaar071d4272004-06-13 20:20:40 +0000750 $(CC) $(CCARG) -WC -DWIN32 -O2 -euninstal uninstal.c
Bram Moolenaar071d4272004-06-13 20:20:40 +0000751
752clean:
753!if "$(OS)" == "Windows_NT"
754 # For Windows NT/2000, doesn't work on Windows 95/98...
755 # $(COMSPEC) needed to ensure rmdir.exe is not run
756 -@$(COMSPEC) /C rmdir /Q /S $(OBJDIR)
757!else
758 # For Windows 95/98, doesn't work on Windows NT/2000...
759 -@deltree /y $(OBJDIR)
760!endif
761 -@del *.res
762 -@del vim32*.dll
763 -@del vim32*.lib
764 -@del *vim*.exe
765 -@del *install*.exe
766 -@del *.csm
767 -@del *.map
768 -@del *.ilc
769 -@del *.ild
770 -@del *.ilf
771 -@del *.ils
772 -@del *.tds
Bram Moolenaar0ba04292010-07-14 23:23:17 +0200773!ifdef LUA
774 -@del lua.lib
775!endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000776!ifdef PERL
777 -@del perl.lib
Bram Moolenaara16bc542018-10-14 16:25:10 +0200778 -@del if_perl.c
779 -@del auto\if_perl.c
Bram Moolenaar071d4272004-06-13 20:20:40 +0000780!endif
781!ifdef PYTHON
782 -@del python.lib
783!endif
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +0200784!ifdef PYTHON3
785 -@del python3.lib
786!endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000787!ifdef RUBY
788 -@del ruby.lib
789!endif
790!ifdef TCL
791 -@del tcl.lib
792!endif
793!ifdef XPM
794 -@del xpm.lib
795!endif
796 cd xxd
797 $(MAKE) /f Make_bc5.mak BOR="$(BOR)" clean
798 cd ..
799 cd GvimExt
800 $(MAKE) /f Make_bc5.mak BOR="$(BOR)" clean
801 cd ..
802
Bram Moolenaar071d4272004-06-13 20:20:40 +0000803
Bram Moolenaar071d4272004-06-13 20:20:40 +0000804$(TARGET): $(OBJDIR) $(vimobj) $(OBJDIR)\$(RESFILE)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000805 $(LINK) @&&|
806 $(LFLAGS) +
807 $(STARTUPOBJ) +
Bram Moolenaar071d4272004-06-13 20:20:40 +0000808 $(vimobj)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000809 $<,$*
Bram Moolenaar071d4272004-06-13 20:20:40 +0000810!if ("$(CODEGUARD)"=="yes")
811 cg32.lib+
812!endif
813# $(OSTYPE)==WIN32 causes os_mswin.c compilation. FEAT_SHORTCUT in it needs OLE
Bram Moolenaar071d4272004-06-13 20:20:40 +0000814 ole2w32.lib +
Bram Moolenaar071d4272004-06-13 20:20:40 +0000815 import32.lib+
Bram Moolenaar0ba04292010-07-14 23:23:17 +0200816!ifdef LUA
817 $(LUA_LIB_FLAG)lua.lib+
818!endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000819!ifdef PERL
820 $(PERL_LIB_FLAG)perl.lib+
821!endif
822!ifdef PYTHON
823 $(PYTHON_LIB_FLAG)python.lib+
824!endif
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +0200825!ifdef PYTHON3
826 $(PYTHON3_LIB_FLAG)python3.lib+
827!endif
Bram Moolenaar071d4272004-06-13 20:20:40 +0000828!ifdef RUBY
829 $(RUBY_LIB_FLAG)ruby.lib+
830!endif
831!ifdef TCL
832 $(TCL_LIB_FLAG)tcl.lib+
833!endif
834!ifdef XPM
835 xpm.lib+
836!endif
837!if ("$(USEDLL)"=="yes")
838 cw32i.lib
839!else
840 cw32.lib
841!endif
842
843 $(OBJDIR)\$(RESFILE)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000844|
845
846test:
847 cd testdir
848 $(MAKE) /NOLOGO -f Make_dos.mak win32
849 cd ..
850
851$(OBJDIR)\ex_docmd.obj: ex_docmd.c ex_cmds.h
852
853$(OBJDIR)\ex_eval.obj: ex_eval.c ex_cmds.h
854
855$(OBJDIR)\if_ole.obj: if_ole.cpp
856
Bram Moolenaar0ba04292010-07-14 23:23:17 +0200857$(OBJDIR)\if_lua.obj: if_lua.c lua.lib
858 $(CC) $(CCARG) $(CC1) $(CC2)$@ -pc if_lua.c
859
Bram Moolenaara16bc542018-10-14 16:25:10 +0200860$(OBJDIR)\if_perl.obj: auto/if_perl.c perl.lib
861 $(CC) $(CCARG) $(CC1) $(CC2)$@ -pc auto/if_perl.c
Bram Moolenaar071d4272004-06-13 20:20:40 +0000862
Bram Moolenaara16bc542018-10-14 16:25:10 +0200863auto/if_perl.c: if_perl.xs typemap
Bram Moolenaar071d4272004-06-13 20:20:40 +0000864 $(PERL)\bin\perl.exe $(PERL)\lib\ExtUtils\xsubpp -prototypes -typemap \
Bram Moolenaara16bc542018-10-14 16:25:10 +0200865 $(PERL)\lib\ExtUtils\typemap if_perl.xs -output $@
Bram Moolenaar071d4272004-06-13 20:20:40 +0000866
Bram Moolenaardd9a4a42013-06-03 20:12:51 +0200867$(OBJDIR)\if_python.obj: if_python.c if_py_both.h python.lib
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +0200868 $(CC) -I$(PYTHON)\include $(CCARG) $(CC1) $(CC2)$@ -pc if_python.c
869
Bram Moolenaardd9a4a42013-06-03 20:12:51 +0200870$(OBJDIR)\if_python3.obj: if_python3.c if_py_both.h python3.lib
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +0200871 $(CC) -I$(PYTHON3)\include $(CCARG) $(CC1) $(CC2)$@ -pc if_python3.c
Bram Moolenaar071d4272004-06-13 20:20:40 +0000872
873$(OBJDIR)\if_ruby.obj: if_ruby.c ruby.lib
874 $(CC) $(CCARG) $(CC1) $(CC2)$@ -pc if_ruby.c
875
876$(OBJDIR)\if_tcl.obj: if_tcl.c tcl.lib
877 $(CC) $(CCARG) $(CC1) $(CC2)$@ -pc if_tcl.c
878
879$(OBJDIR)\xpm_w32.obj: xpm_w32.c xpm.lib
880 $(CC) $(CCARG) $(CC1) $(CC2)$@ -pc xpm_w32.c
881
882$(OBJDIR)\netbeans.obj: netbeans.c $(NBDEBUG_DEP)
883 $(CC) $(CCARG) $(CC1) $(CC2)$@ netbeans.c
884
Bram Moolenaare0874f82016-01-24 20:36:41 +0100885$(OBJDIR)\channel.obj: channel.c
886 $(CC) $(CCARG) $(CC1) $(CC2)$@ channel.c
887
Bram Moolenaar071d4272004-06-13 20:20:40 +0000888$(OBJDIR)\vim.res: vim.rc version.h tools.bmp tearoff.bmp \
889 vim.ico vim_error.ico vim_alert.ico vim_info.ico vim_quest.ico
890 $(BRC) -fo$(OBJDIR)\vim.res -i $(BOR)\include -w32 -r vim.rc @&&|
891 $(DEFINES)
892|
893
894$(OBJDIR)\pathdef.obj: auto\pathdef.c
895 $(CC) $(CCARG) $(CC1) $(CC2)$@ auto\pathdef.c
896
897
898# Need to escape both quotes and backslashes in $INTERP_DEFINES
899INTERP_DEFINES_ESC_BKS=$(INTERP_DEFINES:\=\\)
900INTERP_DEFINES_ESC=$(INTERP_DEFINES_ESC_BKS:"=\")
901
902# Note: the silly /*"*/ below are there to trick make into accepting
903# the # character as something other than a comment without messing up
904# the preprocessor directive.
905auto\pathdef.c::
906 -@md auto
907 @echo creating auto/pathdef.c
908 @copy /y &&|
909/* pathdef.c */
910/*"*/#include "vim.h"/*"*/
911
912char_u *default_vim_dir = (char_u *)"$(VIMRCLOC:\=\\)";
913char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR:\=\\)";
914char_u *all_cflags = (char_u *)"$(CC:\=\\) $(CFLAGS:\=\\) $(DEFINES) $(MBDEFINES) $(INTERP_DEFINES_ESC) $(OPT) $(EXETYPE) $(CPUARG) $(ALIGNARG) $(DEBUG_FLAG) $(CODEGUARD_FLAG)";
915char_u *all_lflags = (char_u *)"$(LINK:\=\\) $(LFLAGS:\=\\)";
916char_u *compiled_user = (char_u *)"$(USERNAME)";
917char_u *compiled_sys = (char_u *)"$(USERDOMAIN)";
918| auto\pathdef.c
919
Bram Moolenaar0ba04292010-07-14 23:23:17 +0200920lua.lib: $(LUA)\lib\lua$(LUA_VER).lib
921 coff2omf $(LUA)\lib\lua$(LUA_VER).lib $@
922
Bram Moolenaar071d4272004-06-13 20:20:40 +0000923perl.lib: $(PERL)\lib\CORE\perl$(PERL_VER).lib
924 coff2omf $(PERL)\lib\CORE\perl$(PERL_VER).lib $@
925
926python.lib: $(PYTHON)\libs\python$(PYTHON_VER).lib
927 coff2omf $(PYTHON)\libs\python$(PYTHON_VER).lib $@
928
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +0200929python3.lib: $(PYTHON3)\libs\python$(PYTHON3_VER).lib
930 coff2omf $(PYTHON3)\libs\python$(PYTHON3_VER).lib $@
931
Bram Moolenaar071d4272004-06-13 20:20:40 +0000932ruby.lib: $(RUBY)\lib\$(RUBY_INSTALL_NAME).lib
933 coff2omf $(RUBY)\lib\$(RUBY_INSTALL_NAME).lib $@
934
935# For some reason, the coff2omf method doesn't work on libXpm.lib, so
936# we have to manually generate an import library straight from the DLL.
937xpm.lib: $(XPM)\lib\libXpm.lib
938 implib -a $@ $(XPM)\bin\libXpm.dll
939
940tcl.lib: $(TCL_LIB)
941!if ("$(DYNAMIC_TCL)" == "yes")
942 copy $(TCL_LIB) $@
943!else
944 coff2omf $(TCL_LIB) $@
945!endif
946
947!if ("$(DYNAMIC_TCL)" == "yes")
948tclstub$(TCL_VER)-bor.lib:
949 -@IF NOT EXIST $@ ECHO You must download tclstub$(TCL_VER)-bor.lib separately and\
950 place it in the src directory in order to compile a dynamic TCL-enabled\
951 (g)vim with the Borland compiler. You can get the tclstub$(TCL_VER)-bor.lib file\
952 at http://mywebpage.netscape.com/sharppeople/vim/tclstub$(TCL_VER)-bor.lib
953!endif
954
955# vimrun.exe:
956vimrun.exe: vimrun.c
957!if ("$(USEDLL)"=="yes")
958 $(CC) -WC -O1 -I$(INCLUDE) -L$(LIB) -D_RTLDLL vimrun.c cw32mti.lib
959!else
960 $(CC) -WC -O1 -I$(INCLUDE) -L$(LIB) vimrun.c
961!endif
962
963# The dependency on $(OBJDIR) is to have bcc.cfg generated each time.
964$(OBJDIR)\bcc.cfg: Make_bc5.mak $(OBJDIR)
965 copy /y &&|
966 $(CFLAGS)
967 -L$(LIB)
968 $(DEFINES)
969 $(MBDEFINES)
970 $(INTERP_DEFINES)
971 $(EXETYPE)
972 $(DEBUG_FLAG)
973 $(OPT)
974 $(CODEGUARD_FLAG)
975 $(CPUARG)
976 $(ALIGNARG)
977| $@
978
979# vi:set sts=4 sw=4:
Bram Moolenaarbd5e15f2010-07-17 21:19:38 +0200980