Mercurial > vim
annotate src/Make_dice.mak @ 16024:7fd3a9eaeedb v8.1.1017
patch 8.1.1017: off-by-one error in filetype detection
commit https://github.com/vim/vim/commit/493fbe4abee660d30b4f2aef87b754b0a720213c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 17 17:16:12 2019 +0100
patch 8.1.1017: off-by-one error in filetype detection
Problem: Off-by-one error in filetype detection.
Solution: Also check the last line of the file.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 17 Mar 2019 17:30:14 +0100 |
parents | a6ca8cf07a98 |
children | 570a296aa0b4 |
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 \ |
15634
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
15330
diff
changeset
|
30 autocmd.c \ |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
800
diff
changeset
|
31 blowfish.c \ |
7 | 32 buffer.c \ |
33 charset.c \ | |
6126 | 34 crypt.c \ |
35 crypt_zip.c \ | |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
36 dict.c \ |
7 | 37 diff.c \ |
38 digraph.c \ | |
39 edit.c \ | |
40 eval.c \ | |
9571
5eaa708ab50d
commit https://github.com/vim/vim/commit/73dad1e64cb42842d8259cb1a255a6fa59822f76
Christian Brabandt <cb@256bit.org>
parents:
9564
diff
changeset
|
41 evalfunc.c \ |
7 | 42 ex_cmds.c \ |
43 ex_cmds2.c \ | |
44 ex_docmd.c \ | |
45 ex_eval.c \ | |
46 ex_getln.c \ | |
47 fileio.c \ | |
15814
99ebf78686a9
patch 8.1.0914: code related to findfile() is spread out
Bram Moolenaar <Bram@vim.org>
parents:
15699
diff
changeset
|
48 findfile.c \ |
7 | 49 fold.c \ |
50 getchar.c \ | |
440 | 51 hardcopy.c \ |
800 | 52 hashtab.c \ |
15699
2d941023bd2f
patch 8.1.0857: indent functionality is not separated
Bram Moolenaar <Bram@vim.org>
parents:
15634
diff
changeset
|
53 indent.c \ |
7712
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
6126
diff
changeset
|
54 json.c \ |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
55 list.c \ |
7 | 56 main.c \ |
57 mark.c \ | |
58 memfile.c \ | |
59 memline.c \ | |
60 menu.c \ | |
61 message.c \ | |
62 misc1.c \ | |
63 misc2.c \ | |
64 move.c \ | |
65 mbyte.c \ | |
66 normal.c \ | |
67 ops.c \ | |
68 option.c \ | |
69 os_amiga.c \ | |
800 | 70 popupmnu.c \ |
7 | 71 quickfix.c \ |
72 regexp.c \ | |
73 screen.c \ | |
74 search.c \ | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
800
diff
changeset
|
75 sha256.c \ |
15330
a6330a49e036
patch 8.1.0673: functionality for signs is spread out over several files
Bram Moolenaar <Bram@vim.org>
parents:
9583
diff
changeset
|
76 sign.c \ |
221 | 77 spell.c \ |
9583
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
9571
diff
changeset
|
78 spellfile.c \ |
7 | 79 syntax.c \ |
80 tag.c \ | |
81 term.c \ | |
82 ui.c \ | |
83 undo.c \ | |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
84 userfunc.c \ |
7 | 85 window.c \ |
86 version.c | |
87 | |
9403
9b048dced116
commit https://github.com/vim/vim/commit/75464dc434c43efac60e8bfd9bec2a8b736407e9
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
88 OBJ = o/arabic.o \ |
15634
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
15330
diff
changeset
|
89 o/autocmd.o \ |
9403
9b048dced116
commit https://github.com/vim/vim/commit/75464dc434c43efac60e8bfd9bec2a8b736407e9
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
90 o/blowfish.o \ |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
800
diff
changeset
|
91 o/buffer.o \ |
7 | 92 o/charset.o \ |
6126 | 93 o/crypt.o \ |
94 o/crypt_zip.o \ | |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
95 o/dict.o \ |
7 | 96 o/diff.o \ |
97 o/digraph.o \ | |
98 o/edit.o \ | |
99 o/eval.o \ | |
9571
5eaa708ab50d
commit https://github.com/vim/vim/commit/73dad1e64cb42842d8259cb1a255a6fa59822f76
Christian Brabandt <cb@256bit.org>
parents:
9564
diff
changeset
|
100 o/evalfunc.o \ |
7 | 101 o/ex_cmds.o \ |
102 o/ex_cmds2.o \ | |
103 o/ex_docmd.o \ | |
104 o/ex_eval.o \ | |
105 o/ex_getln.o \ | |
106 o/fileio.o \ | |
15814
99ebf78686a9
patch 8.1.0914: code related to findfile() is spread out
Bram Moolenaar <Bram@vim.org>
parents:
15699
diff
changeset
|
107 o/findfile.o \ |
7 | 108 o/fold.o \ |
109 o/getchar.o \ | |
440 | 110 o/hardcopy.o \ |
800 | 111 o/hashtab.o \ |
15699
2d941023bd2f
patch 8.1.0857: indent functionality is not separated
Bram Moolenaar <Bram@vim.org>
parents:
15634
diff
changeset
|
112 o/indent.o \ |
7712
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
6126
diff
changeset
|
113 o/json.o \ |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
114 o/list.o \ |
7 | 115 o/main.o \ |
116 o/mark.o \ | |
117 o/memfile.o \ | |
118 o/memline.o \ | |
119 o/menu.o \ | |
120 o/message.o \ | |
121 o/misc1.o \ | |
122 o/misc2.o \ | |
123 o/move.o \ | |
124 o/mbyte.o \ | |
125 o/normal.o \ | |
126 o/ops.o \ | |
127 o/option.o \ | |
128 o/os_amiga.o \ | |
800 | 129 o/popupmnu.o \ |
7 | 130 o/quickfix.o \ |
131 o/regexp.o \ | |
132 o/screen.o \ | |
133 o/search.o \ | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
800
diff
changeset
|
134 o/sha256.o \ |
15330
a6330a49e036
patch 8.1.0673: functionality for signs is spread out over several files
Bram Moolenaar <Bram@vim.org>
parents:
9583
diff
changeset
|
135 o/sign.o \ |
221 | 136 o/spell.o \ |
9583
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
9571
diff
changeset
|
137 o/spellfile.o \ |
7 | 138 o/syntax.o \ |
139 o/tag.o \ | |
140 o/term.o \ | |
141 o/ui.o \ | |
142 o/undo.o \ | |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
143 o/userfunc.o \ |
7 | 144 o/window.o \ |
145 $(TERMLIB) | |
146 | |
147 Vim: $(OBJ) version.c version.h | |
148 ${CC} $(CFLAGS) version.c -o o/version.o | |
149 ${LD} -o Vim $(OBJ) o/version.o $(LIBS) | |
150 | |
151 debug: $(OBJ) version.c version.h | |
152 ${CC} $(CFLAGS) version.c -o o/version.o | |
153 ${LD} -s -o Vim $(OBJ) o/version.o $(LIBS) | |
154 | |
155 tags: | |
156 csh -c ctags $(SRC) *.h | |
157 | |
158 clean: | |
159 delete o/*.o Vim $(SYMS) | |
160 | |
161 $(SYMS) : vim.h globals.h keymap.h macros.h ascii.h term.h os_amiga.h structs.h | |
162 delete $(SYMS) | |
163 | |
164 ########################################################################### | |
165 | |
9403
9b048dced116
commit https://github.com/vim/vim/commit/75464dc434c43efac60e8bfd9bec2a8b736407e9
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
166 o/arabic.o: arabic.c $(SYMS) |
9b048dced116
commit https://github.com/vim/vim/commit/75464dc434c43efac60e8bfd9bec2a8b736407e9
Christian Brabandt <cb@256bit.org>
parents:
7712
diff
changeset
|
167 |
15634
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
15330
diff
changeset
|
168 o/autocmd.o: autocmd.c $(SYMS) |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
15330
diff
changeset
|
169 |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
800
diff
changeset
|
170 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
|
171 |
7 | 172 o/buffer.o: buffer.c $(SYMS) |
173 | |
174 o/charset.o: charset.c $(SYMS) | |
175 | |
6126 | 176 o/crypt.o: crypt.c $(SYMS) |
177 | |
178 o/crypt_zip.o: crypt_zip.c $(SYMS) | |
179 | |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
180 o/dict.o: dict.c $(SYMS) |
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
181 |
7 | 182 o/diff.o: diff.c $(SYMS) |
183 | |
184 o/digraph.o: digraph.c $(SYMS) | |
185 | |
186 o/edit.o: edit.c $(SYMS) | |
187 | |
188 o/eval.o: eval.c $(SYMS) | |
189 | |
9571
5eaa708ab50d
commit https://github.com/vim/vim/commit/73dad1e64cb42842d8259cb1a255a6fa59822f76
Christian Brabandt <cb@256bit.org>
parents:
9564
diff
changeset
|
190 o/evalfunc.o: evalfunc.c $(SYMS) |
5eaa708ab50d
commit https://github.com/vim/vim/commit/73dad1e64cb42842d8259cb1a255a6fa59822f76
Christian Brabandt <cb@256bit.org>
parents:
9564
diff
changeset
|
191 |
7 | 192 o/ex_cmds.o: ex_cmds.c $(SYMS) |
193 | |
194 o/ex_cmds2.o: ex_cmds2.c $(SYMS) | |
195 | |
196 o/ex_docmd.o: ex_docmd.c $(SYMS) ex_cmds.h | |
197 | |
198 o/ex_eval.o: ex_eval.c $(SYMS) ex_cmds.h | |
199 | |
200 o/ex_getln.o: ex_getln.c $(SYMS) | |
201 | |
202 o/fileio.o: fileio.c $(SYMS) | |
203 | |
15814
99ebf78686a9
patch 8.1.0914: code related to findfile() is spread out
Bram Moolenaar <Bram@vim.org>
parents:
15699
diff
changeset
|
204 o/findfile.o: findfile.c $(SYMS) |
99ebf78686a9
patch 8.1.0914: code related to findfile() is spread out
Bram Moolenaar <Bram@vim.org>
parents:
15699
diff
changeset
|
205 |
7 | 206 o/fold.o: fold.c $(SYMS) |
207 | |
208 o/getchar.o: getchar.c $(SYMS) | |
209 | |
440 | 210 o/hardcopy.o: hardcopy.c $(SYMS) |
211 | |
800 | 212 o/hashtab.o: hashtab.c $(SYMS) |
119 | 213 |
15699
2d941023bd2f
patch 8.1.0857: indent functionality is not separated
Bram Moolenaar <Bram@vim.org>
parents:
15634
diff
changeset
|
214 o/indent.o: indent.c $(SYMS) |
2d941023bd2f
patch 8.1.0857: indent functionality is not separated
Bram Moolenaar <Bram@vim.org>
parents:
15634
diff
changeset
|
215 |
7712
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
6126
diff
changeset
|
216 o/json.o: json.c $(SYMS) |
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
6126
diff
changeset
|
217 |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
218 o/list.o: list.c $(SYMS) |
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
219 |
7 | 220 o/main.o: main.c $(SYMS) |
221 | |
222 o/mark.o: mark.c $(SYMS) | |
223 | |
224 o/memfile.o: memfile.c $(SYMS) | |
225 | |
226 o/memline.o: memline.c $(SYMS) | |
227 | |
228 o/menu.o: menu.c $(SYMS) | |
229 | |
230 o/message.o: message.c $(SYMS) | |
231 | |
232 o/misc1.o: misc1.c $(SYMS) | |
233 | |
234 o/misc2.o: misc2.c $(SYMS) | |
235 | |
236 o/move.o: move.c $(SYMS) | |
237 | |
238 o/mbyte.o: mbyte.c $(SYMS) | |
239 | |
240 o/normal.o: normal.c $(SYMS) | |
241 | |
242 o/ops.o: ops.c $(SYMS) | |
243 | |
244 o/option.o: option.c $(SYMS) | |
245 # Because of a bug in DC1 2.06.40, initialisation of unions does not | |
246 # work correctly. dc1-21 is DC1 2.06.21 which does work. | |
247 # rename dc1-21 dc1 | |
248 ${CC} ${CFLAGS} option.c -o o/option.o | |
249 # rename dc1 dc1-21 | |
250 | |
251 o/os_amiga.o: os_amiga.c $(SYMS) os_amiga.h | |
252 | |
800 | 253 o/popupmnu.o: popupmnu.c $(SYMS) |
540 | 254 |
7 | 255 o/quickfix.o: quickfix.c $(SYMS) |
256 | |
257 o/regexp.o: regexp.c $(SYMS) regexp.h | |
258 | |
259 o/screen.o: screen.c $(SYMS) | |
260 | |
261 o/search.o: search.c $(SYMS) regexp.h | |
262 | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
800
diff
changeset
|
263 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
|
264 |
15330
a6330a49e036
patch 8.1.0673: functionality for signs is spread out over several files
Bram Moolenaar <Bram@vim.org>
parents:
9583
diff
changeset
|
265 o/sign.o: sign.c $(SYMS) |
a6330a49e036
patch 8.1.0673: functionality for signs is spread out over several files
Bram Moolenaar <Bram@vim.org>
parents:
9583
diff
changeset
|
266 |
9583
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
9571
diff
changeset
|
267 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
|
268 |
b0c7061d6439
commit https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
Christian Brabandt <cb@256bit.org>
parents:
9571
diff
changeset
|
269 o/spellfile.o: spellfile.c $(SYMS) spell.h |
221 | 270 |
7 | 271 o/syntax.o: syntax.c $(SYMS) |
272 | |
273 o/tag.o: tag.c $(SYMS) | |
274 | |
275 o/term.o: term.c $(SYMS) term.h | |
276 | |
277 o/termlib.o: termlib.c $(SYMS) | |
278 | |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
279 o/ui.o: ui.c $(SYMS) |
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
280 |
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
281 o/undo.o: undo.c $(SYMS) |
7 | 282 |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
283 o/userfunc.o: userfunc.c $(SYMS) |
7 | 284 |
9564
b6a459b326f3
commit https://github.com/vim/vim/commit/6583c44857368f28c802dabe10ac7b7b0c266f50
Christian Brabandt <cb@256bit.org>
parents:
9403
diff
changeset
|
285 o/window.o: window.c $(SYMS) |