Mercurial > vim
annotate src/Make_bc3.mak @ 6104:d3a674f6c737 v7.4.390
updated for version 7.4.390
Problem: Advancing pointer over end of a string.
Solution: Init quote character to -1 instead of zero. (Dominique Pelle)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 06 Aug 2014 12:49:18 +0200 |
parents | 40edf1be1cd8 |
children | ab71bb81b84e |
rev | line source |
---|---|
7 | 1 # Makefile for Borland C++ 3.1 or 4.0 to compile a 16 bit version of Vim. |
2 # | |
3 # There are compilation options at the end of this file. | |
4 # | |
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) | |
10 | |
11 .AUTODEPEND | |
12 | |
13 !ifndef BOR | |
14 BOR = E:\BORLANDC | |
15 !endif | |
16 | |
17 !if ("$(DEBUG)" == "yes") | |
18 DEBUG_FLAG = -v | |
19 !else | |
20 DEBUG_FLAG = | |
21 !endif | |
22 | |
23 CC = $(BOR)\bin\bcc.exe +VIM.CFG | |
24 TLINK = $(BOR)\bin\tlink.exe | |
25 | |
26 !ifndef SPAWNO | |
27 SPAWNO = C:\CC\SPAWN | |
28 !endif | |
29 | |
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 | |
41 | |
42 | |
43 # *Implicit Rules* | |
44 # | |
45 # use -v for debugging | |
46 # | |
47 .c.obj: | |
48 $(CC) -c $(DEBUG_FLAG) {$< } | |
49 | |
50 # *List Macros* | |
51 | |
52 | |
53 EXE_dependencies = \ | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
803
diff
changeset
|
54 blowfish.obj \ |
7 | 55 buffer.obj \ |
56 charset.obj \ | |
57 diff.obj \ | |
58 digraph.obj \ | |
59 edit.obj \ | |
60 eval.obj \ | |
61 ex_cmds.obj \ | |
62 ex_cmds2.obj \ | |
63 ex_docmd.obj \ | |
64 ex_eval.obj \ | |
65 ex_getln.obj \ | |
66 fileio.obj \ | |
67 fold.obj \ | |
68 getchar.obj \ | |
440 | 69 hardcopy.obj \ |
799 | 70 hashtab.obj \ |
7 | 71 main.obj \ |
72 mark.obj \ | |
73 memfile.obj \ | |
74 memline.obj \ | |
75 menu.obj \ | |
76 message.obj \ | |
77 misc1.obj \ | |
78 misc2.obj \ | |
79 move.obj \ | |
80 os_msdos.obj \ | |
81 normal.obj \ | |
82 ops.obj \ | |
83 option.obj \ | |
799 | 84 popupmnu.obj \ |
7 | 85 quickfix.obj \ |
86 regexp.obj \ | |
87 screen.obj \ | |
88 search.obj \ | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
803
diff
changeset
|
89 sha256.obj \ |
227 | 90 spell.obj \ |
7 | 91 syntax.obj \ |
92 tag.obj \ | |
93 term.obj \ | |
94 ui.obj \ | |
95 undo.obj \ | |
96 window.obj | |
97 | |
98 all: vim.exe install.exe uninstal.exe xxd/xxd.exe | |
99 | |
100 # *Explicit Rules* | |
101 | |
102 vim.exe: vim.cfg $(EXE_dependencies) version.c | |
103 $(CC) $(DEBUG_FLAG) -c version.c | |
104 $(TLINK) /x/c/L$(LIBPATH) $(DEBUG_FLAG) @&&| | |
105 c0l.obj $(EXE_dependencies) version.obj | |
106 vim | |
107 # no map file | |
108 $(SPAWNL) cl.lib | |
109 | | |
110 | |
111 install.exe: dosinst.c | |
112 $(CC) -einstall $(DEBUG_FLAG) dosinst.c | |
113 | |
114 uninstal.exe: uninstal.c | |
115 $(CC) $(DEBUG_FLAG) uninstal.c | |
116 | |
117 # This may fail for older make versions, building xxd will fail anyway then. | |
118 xxd/xxd.exe: xxd/xxd.c | |
119 cd xxd | |
120 $(MAKE) -f Make_bc3.mak BOR=$(BOR) DEBUG=$(DEBUG) | |
121 cd .. | |
122 | |
123 # cleaning up: Delete all generated files | |
124 clean: | |
125 -del *.obj | |
126 -del vim.exe | |
127 -del vim.sym | |
128 -del install.exe | |
129 -del uninstal.exe | |
130 -del xxd\*.obj | |
131 -del xxd\xxd.exe | |
132 -del vim.cfg | |
133 -del testdir\*.out | |
134 | |
135 # Individual File Dependencies (incomplete) | |
136 ex_docmd.obj: ex_docmd.c ex_cmds.h | |
137 | |
138 ex_eval.obj: ex_eval.c ex_cmds.h | |
139 | |
140 main.obj: main.c globals.h option.h | |
141 | |
142 term.obj: term.c term.h | |
143 | |
144 version.obj: version.c version.h | |
145 | |
146 | |
147 # Compiler Configuration File | |
148 # | |
149 # The following compile options can be changed for better machines. | |
150 # replace -1- with -2 to produce code for a 80286 or higher | |
151 # replace -1- with -3 to produce code for a 80386 or higher | |
152 # add -v for source debugging | |
153 vim.cfg: Make_bc3.mak | |
154 copy &&| | |
155 -ml | |
156 -1- | |
157 -f- | |
158 -C | |
159 -N | |
160 -O | |
161 -Z | |
162 -k- | |
163 -d | |
164 -h | |
165 -vi- | |
166 -H=VIM.SYM | |
167 -w-par | |
168 -weas | |
169 -wpre | |
170 -Iproto | |
171 -I$(INCLUDEPATH) | |
172 -L$(LIBPATH) | |
803 | 173 -DMSDOS;FEAT_TINY$(SPAWND) |
7 | 174 | vim.cfg |
175 | |
176 test: | |
177 cd testdir | |
178 $(MAKE) -f Make_dos.mak small | |
179 cd .. |