Merge branch 'vim-with-runtime' into fix/fast-join
[vim_extended.git] / src / Make_bc3.mak
blob1aa82a351dcd63b595cf58ffa922995b899e45fc
1 # Makefile for Borland C++ 3.1 or 4.0 to compile a 16 bit version of Vim.
3 # There are compilation options at the end of this file.
5 # Command line variables:
6 # BOR path to root of Borland C (E:\BORLANDC)
7 # DEBUG set to "yes" for debugging (no)
8 # SPAWNO path to the spawno library directory, empty if you do not have
9 # it; use 8.3 filenames! (C:\CC\SPAWN)
11 .AUTODEPEND
13 !ifndef BOR
14 BOR = E:\BORLANDC
15 !endif
17 !if ("$(DEBUG)" == "yes")
18 DEBUG_FLAG = -v
19 !else
20 DEBUG_FLAG =
21 !endif
23 CC = $(BOR)\bin\bcc.exe +VIM.CFG
24 TLINK = $(BOR)\bin\tlink.exe
26 !ifndef SPAWNO
27 SPAWNO = C:\CC\SPAWN
28 !endif
30 !if ("$(SPAWNO)" == "")
31 LIBPATH = $(BOR)\LIB
32 INCLUDEPATH = $(BOR)\INCLUDE
33 SPAWND =
34 SPAWNL =
35 !else
36 LIBPATH = $(BOR)\LIB;$(SPAWNO)
37 INCLUDEPATH = $(BOR)\INCLUDE;$(SPAWNO)
38 SPAWND = ;SPAWNO
39 SPAWNL = spawnl.lib
40 !endif
43 # *Implicit Rules*
45 # use -v for debugging
47 .c.obj:
48 $(CC) -c $(DEBUG_FLAG) {$< }
50 # *List Macros*
53 EXE_dependencies = \
54 buffer.obj \
55 charset.obj \
56 diff.obj \
57 digraph.obj \
58 edit.obj \
59 eval.obj \
60 ex_cmds.obj \
61 ex_cmds2.obj \
62 ex_docmd.obj \
63 ex_eval.obj \
64 ex_getln.obj \
65 fileio.obj \
66 fold.obj \
67 getchar.obj \
68 hardcopy.obj \
69 hashtab.obj \
70 main.obj \
71 mark.obj \
72 memfile.obj \
73 memline.obj \
74 menu.obj \
75 message.obj \
76 misc1.obj \
77 misc2.obj \
78 move.obj \
79 os_msdos.obj \
80 normal.obj \
81 ops.obj \
82 option.obj \
83 popupmnu.obj \
84 quickfix.obj \
85 regexp.obj \
86 screen.obj \
87 search.obj \
88 spell.obj \
89 syntax.obj \
90 tag.obj \
91 term.obj \
92 ui.obj \
93 undo.obj \
94 window.obj
96 all: vim.exe install.exe uninstal.exe xxd/xxd.exe
98 # *Explicit Rules*
100 vim.exe: vim.cfg $(EXE_dependencies) version.c
101 $(CC) $(DEBUG_FLAG) -c version.c
102 $(TLINK) /x/c/L$(LIBPATH) $(DEBUG_FLAG) @&&|
103 c0l.obj $(EXE_dependencies) version.obj
105 # no map file
106 $(SPAWNL) cl.lib
109 install.exe: dosinst.c
110 $(CC) -einstall $(DEBUG_FLAG) dosinst.c
112 uninstal.exe: uninstal.c
113 $(CC) $(DEBUG_FLAG) uninstal.c
115 # This may fail for older make versions, building xxd will fail anyway then.
116 xxd/xxd.exe: xxd/xxd.c
117 cd xxd
118 $(MAKE) -f Make_bc3.mak BOR=$(BOR) DEBUG=$(DEBUG)
119 cd ..
121 # cleaning up: Delete all generated files
122 clean:
123 -del *.obj
124 -del vim.exe
125 -del vim.sym
126 -del install.exe
127 -del uninstal.exe
128 -del xxd\*.obj
129 -del xxd\xxd.exe
130 -del vim.cfg
131 -del testdir\*.out
133 # Individual File Dependencies (incomplete)
134 ex_docmd.obj: ex_docmd.c ex_cmds.h
136 ex_eval.obj: ex_eval.c ex_cmds.h
138 main.obj: main.c globals.h option.h
140 term.obj: term.c term.h
142 version.obj: version.c version.h
145 # Compiler Configuration File
147 # The following compile options can be changed for better machines.
148 # replace -1- with -2 to produce code for a 80286 or higher
149 # replace -1- with -3 to produce code for a 80386 or higher
150 # add -v for source debugging
151 vim.cfg: Make_bc3.mak
152 copy &&|
163 -vi-
164 -H=VIM.SYM
165 -w-par
166 -weas
167 -wpre
168 -Iproto
169 -I$(INCLUDEPATH)
170 -L$(LIBPATH)
171 -DMSDOS;FEAT_TINY$(SPAWND)
172 | vim.cfg
174 test:
175 cd testdir
176 $(MAKE) -f Make_dos.mak small
177 cd ..