Mercurial > vim
annotate src/Make_dice.mak @ 10158:dd0531938cb6 v7.4.2349
commit https://github.com/vim/vim/commit/2321ca2a78286bc026fa7f407281ddbeb04114bb
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 9 14:17:18 2016 +0200
patch 7.4.2349
Problem: Valgrind reports using uninitialzed memory. (Dominique Pelle)
Solution: Check the length before checking for a NUL.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 09 Sep 2016 14:30:08 +0200 |
parents | b0c7061d6439 |
children | a6330a49e036 |
rev | line source |
---|---|
7 | 1 # |
2 # Makefile for VIM, using DICE 3 | |
3 # | |
4 | |
5 #>>>>> choose options: | |
6 ### See feature.h for a list of optionals. | |
7 ### Any other defines can be included here. | |
8 DEFINES = -DHAVE_TGETENT -DUP_BC_PC_EXTERN -DOSPEED_EXTERN | |
9 | |
10 #>>>>> if HAVE_TGETENT is defined o/termlib.o has to be used | |
11 TERMLIB = o/termlib.o | |
12 #TERMLIB = | |
13 | |
14 #>>>>> end of choices | |
15 ########################################################################### | |
16 | |
17 CFLAGS = -c -DAMIGA -Iproto $(DEFINES) | |
18 | |
19 SYMS = vim.syms | |
20 PRE = -H${SYMS}=vim.h | |
21 LIBS = -la | |
22 CC = dcc | |
23 LD = dcc | |
24 | |
25 .c.o: | |
26 ${CC} ${PRE} ${CFLAGS} $< -o $@ | |
27 | |
28 SRC = \ | |
9403
9b048dced116
commit https://github.com/vim/vim/commit/75464dc434c43efac60e8bfd9bec2a8b736407e9
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
29 arabic.c \ |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
800
diff
changeset
|
30 blowfish.c \ |
7 | 31 buffer.c \ |
32 charset.c \ | |
6126 | 33 crypt.c \ |
34 crypt_zip.c \ | |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
35 dict.c \ |
7 | 36 diff.c \ |
37 digraph.c \ | |
38 edit.c \ | |
39 eval.c \ | |
9571
5eaa708ab50d
commit https://github.com/vim/vim/commit/73dad1e64cb42842d8259cb1a255a6fa59822f76
Christian Brabandt <cb@256bit.org>
parents:
9564
diff
changeset
|
40 evalfunc.c \ |
7 | 41 ex_cmds.c \ |
42 ex_cmds2.c \ | |
43 ex_docmd.c \ | |
44 ex_eval.c \ | |
45 ex_getln.c \ | |
9403
9b048dced116
commit https://github.com/vim/vim/commit/75464dc434c43efac60e8bfd9bec2a8b736407e9
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
46 farsi.c \ |
7 | 47 fileio.c \ |
48 fold.c \ | |
49 getchar.c \ | |
440 | 50 hardcopy.c \ |
800 | 51 hashtab.c \ |
7712
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
6126
diff
changeset
|
52 json.c \ |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
53 list.c \ |
7 | 54 main.c \ |
55 mark.c \ | |
56 memfile.c \ | |
57 memline.c \ | |
58 menu.c \ | |
59 message.c \ | |
60 misc1.c \ | |
61 misc2.c \ | |
62 move.c \ | |
63 mbyte.c \ | |
64 normal.c \ | |
65 ops.c \ | |
66 option.c \ | |
67 os_amiga.c \ | |
800 | 68 popupmnu.c \ |
7 | 69 quickfix.c \ |
70 regexp.c \ | |
71 screen.c \ | |
72 search.c \ | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
800
diff
changeset
|
73 sha256.c \ |
221 | 74 spell.c \ |
9583
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
9571
diff
changeset
|
75 spellfile.c \ |
7 | 76 syntax.c \ |
77 tag.c \ | |
78 term.c \ | |
79 ui.c \ | |
80 undo.c \ | |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
81 userfunc.c \ |
7 | 82 window.c \ |
83 version.c | |
84 | |
9403
9b048dced116
commit https://github.com/vim/vim/commit/75464dc434c43efac60e8bfd9bec2a8b736407e9
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
85 OBJ = o/arabic.o \ |
9b048dced116
commit https://github.com/vim/vim/commit/75464dc434c43efac60e8bfd9bec2a8b736407e9
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
86 o/blowfish.o \ |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
800
diff
changeset
|
87 o/buffer.o \ |
7 | 88 o/charset.o \ |
6126 | 89 o/crypt.o \ |
90 o/crypt_zip.o \ | |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
91 o/dict.o \ |
7 | 92 o/diff.o \ |
93 o/digraph.o \ | |
94 o/edit.o \ | |
95 o/eval.o \ | |
9571
5eaa708ab50d
commit https://github.com/vim/vim/commit/73dad1e64cb42842d8259cb1a255a6fa59822f76
Christian Brabandt <cb@256bit.org>
parents:
9564
diff
changeset
|
96 o/evalfunc.o \ |
7 | 97 o/ex_cmds.o \ |
98 o/ex_cmds2.o \ | |
99 o/ex_docmd.o \ | |
100 o/ex_eval.o \ | |
101 o/ex_getln.o \ | |
9403
9b048dced116
commit https://github.com/vim/vim/commit/75464dc434c43efac60e8bfd9bec2a8b736407e9
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
102 o/farsi.o \ |
7 | 103 o/fileio.o \ |
104 o/fold.o \ | |
105 o/getchar.o \ | |
440 | 106 o/hardcopy.o \ |
800 | 107 o/hashtab.o \ |
7712
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
6126
diff
changeset
|
108 o/json.o \ |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
109 o/list.o \ |
7 | 110 o/main.o \ |
111 o/mark.o \ | |
112 o/memfile.o \ | |
113 o/memline.o \ | |
114 o/menu.o \ | |
115 o/message.o \ | |
116 o/misc1.o \ | |
117 o/misc2.o \ | |
118 o/move.o \ | |
119 o/mbyte.o \ | |
120 o/normal.o \ | |
121 o/ops.o \ | |
122 o/option.o \ | |
123 o/os_amiga.o \ | |
800 | 124 o/popupmnu.o \ |
7 | 125 o/quickfix.o \ |
126 o/regexp.o \ | |
127 o/screen.o \ | |
128 o/search.o \ | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
800
diff
changeset
|
129 o/sha256.o \ |
221 | 130 o/spell.o \ |
9583
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
9571
diff
changeset
|
131 o/spellfile.o \ |
7 | 132 o/syntax.o \ |
133 o/tag.o \ | |
134 o/term.o \ | |
135 o/ui.o \ | |
136 o/undo.o \ | |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
137 o/userfunc.o \ |
7 | 138 o/window.o \ |
139 $(TERMLIB) | |
140 | |
141 Vim: $(OBJ) version.c version.h | |
142 ${CC} $(CFLAGS) version.c -o o/version.o | |
143 ${LD} -o Vim $(OBJ) o/version.o $(LIBS) | |
144 | |
145 debug: $(OBJ) version.c version.h | |
146 ${CC} $(CFLAGS) version.c -o o/version.o | |
147 ${LD} -s -o Vim $(OBJ) o/version.o $(LIBS) | |
148 | |
149 tags: | |
150 csh -c ctags $(SRC) *.h | |
151 | |
152 clean: | |
153 delete o/*.o Vim $(SYMS) | |
154 | |
155 $(SYMS) : vim.h globals.h keymap.h macros.h ascii.h term.h os_amiga.h structs.h | |
156 delete $(SYMS) | |
157 | |
158 ########################################################################### | |
159 | |
9403
9b048dced116
commit https://github.com/vim/vim/commit/75464dc434c43efac60e8bfd9bec2a8b736407e9
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
160 o/arabic.o: arabic.c $(SYMS) |
9b048dced116
commit https://github.com/vim/vim/commit/75464dc434c43efac60e8bfd9bec2a8b736407e9
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
161 |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
800
diff
changeset
|
162 o/blowfish.o: blowfish.c $(SYMS) |
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
800
diff
changeset
|
163 |
7 | 164 o/buffer.o: buffer.c $(SYMS) |
165 | |
166 o/charset.o: charset.c $(SYMS) | |
167 | |
6126 | 168 o/crypt.o: crypt.c $(SYMS) |
169 | |
170 o/crypt_zip.o: crypt_zip.c $(SYMS) | |
171 | |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
172 o/dict.o: dict.c $(SYMS) |
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
173 |
7 | 174 o/diff.o: diff.c $(SYMS) |
175 | |
176 o/digraph.o: digraph.c $(SYMS) | |
177 | |
178 o/edit.o: edit.c $(SYMS) | |
179 | |
180 o/eval.o: eval.c $(SYMS) | |
181 | |
9571
5eaa708ab50d
commit https://github.com/vim/vim/commit/73dad1e64cb42842d8259cb1a255a6fa59822f76
Christian Brabandt <cb@256bit.org>
parents:
9564
diff
changeset
|
182 o/evalfunc.o: evalfunc.c $(SYMS) |
5eaa708ab50d
commit https://github.com/vim/vim/commit/73dad1e64cb42842d8259cb1a255a6fa59822f76
Christian Brabandt <cb@256bit.org>
parents:
9564
diff
changeset
|
183 |
7 | 184 o/ex_cmds.o: ex_cmds.c $(SYMS) |
185 | |
186 o/ex_cmds2.o: ex_cmds2.c $(SYMS) | |
187 | |
188 o/ex_docmd.o: ex_docmd.c $(SYMS) ex_cmds.h | |
189 | |
190 o/ex_eval.o: ex_eval.c $(SYMS) ex_cmds.h | |
191 | |
192 o/ex_getln.o: ex_getln.c $(SYMS) | |
193 | |
9403
9b048dced116
commit https://github.com/vim/vim/commit/75464dc434c43efac60e8bfd9bec2a8b736407e9
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
194 o/farsi.o: farsi.c $(SYMS) |
9b048dced116
commit https://github.com/vim/vim/commit/75464dc434c43efac60e8bfd9bec2a8b736407e9
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
195 |
7 | 196 o/fileio.o: fileio.c $(SYMS) |
197 | |
198 o/fold.o: fold.c $(SYMS) | |
199 | |
200 o/getchar.o: getchar.c $(SYMS) | |
201 | |
440 | 202 o/hardcopy.o: hardcopy.c $(SYMS) |
203 | |
800 | 204 o/hashtab.o: hashtab.c $(SYMS) |
119 | 205 |
7712
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
6126
diff
changeset
|
206 o/json.o: json.c $(SYMS) |
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
6126
diff
changeset
|
207 |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
208 o/list.o: list.c $(SYMS) |
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
209 |
7 | 210 o/main.o: main.c $(SYMS) |
211 | |
212 o/mark.o: mark.c $(SYMS) | |
213 | |
214 o/memfile.o: memfile.c $(SYMS) | |
215 | |
216 o/memline.o: memline.c $(SYMS) | |
217 | |
218 o/menu.o: menu.c $(SYMS) | |
219 | |
220 o/message.o: message.c $(SYMS) | |
221 | |
222 o/misc1.o: misc1.c $(SYMS) | |
223 | |
224 o/misc2.o: misc2.c $(SYMS) | |
225 | |
226 o/move.o: move.c $(SYMS) | |
227 | |
228 o/mbyte.o: mbyte.c $(SYMS) | |
229 | |
230 o/normal.o: normal.c $(SYMS) | |
231 | |
232 o/ops.o: ops.c $(SYMS) | |
233 | |
234 o/option.o: option.c $(SYMS) | |
235 # Because of a bug in DC1 2.06.40, initialisation of unions does not | |
236 # work correctly. dc1-21 is DC1 2.06.21 which does work. | |
237 # rename dc1-21 dc1 | |
238 ${CC} ${CFLAGS} option.c -o o/option.o | |
239 # rename dc1 dc1-21 | |
240 | |
241 o/os_amiga.o: os_amiga.c $(SYMS) os_amiga.h | |
242 | |
800 | 243 o/popupmnu.o: popupmnu.c $(SYMS) |
540 | 244 |
7 | 245 o/quickfix.o: quickfix.c $(SYMS) |
246 | |
247 o/regexp.o: regexp.c $(SYMS) regexp.h | |
248 | |
249 o/screen.o: screen.c $(SYMS) | |
250 | |
251 o/search.o: search.c $(SYMS) regexp.h | |
252 | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
800
diff
changeset
|
253 o/sha256.o: sha256.c $(SYMS) |
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
800
diff
changeset
|
254 |
9583
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
9571
diff
changeset
|
255 o/spell.o: spell.c $(SYMS) spell.h |
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
9571
diff
changeset
|
256 |
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
9571
diff
changeset
|
257 o/spellfile.o: spellfile.c $(SYMS) spell.h |
221 | 258 |
7 | 259 o/syntax.o: syntax.c $(SYMS) |
260 | |
261 o/tag.o: tag.c $(SYMS) | |
262 | |
263 o/term.o: term.c $(SYMS) term.h | |
264 | |
265 o/termlib.o: termlib.c $(SYMS) | |
266 | |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
267 o/ui.o: ui.c $(SYMS) |
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
268 |
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
269 o/undo.o: undo.c $(SYMS) |
7 | 270 |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
271 o/userfunc.o: userfunc.c $(SYMS) |
7 | 272 |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
273 o/window.o: window.c $(SYMS) |