Mercurial > vim
annotate src/Make_dice.mak @ 8829:a2c27f6aaf3a v7.4.1702
commit https://github.com/vim/vim/commit/4afc7c5d4a73340831077a02bfe1f74935e7f4a1
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 3 14:56:52 2016 +0200
patch 7.4.1702
Problem: Using freed memory when parsing 'printoptions' fails.
Solution: Save the old options and restore them in case of an error.
(Dominique)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 03 Apr 2016 15:00:06 +0200 |
parents | bce3b5ddb393 |
children | 9b048dced116 |
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 = \ | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
800
diff
changeset
|
29 blowfish.c \ |
7 | 30 buffer.c \ |
31 charset.c \ | |
6126 | 32 crypt.c \ |
33 crypt_zip.c \ | |
7 | 34 diff.c \ |
35 digraph.c \ | |
36 edit.c \ | |
37 eval.c \ | |
38 ex_cmds.c \ | |
39 ex_cmds2.c \ | |
40 ex_docmd.c \ | |
41 ex_eval.c \ | |
42 ex_getln.c \ | |
43 fileio.c \ | |
44 fold.c \ | |
45 getchar.c \ | |
440 | 46 hardcopy.c \ |
800 | 47 hashtab.c \ |
7712
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
6126
diff
changeset
|
48 json.c \ |
7 | 49 main.c \ |
50 mark.c \ | |
51 memfile.c \ | |
52 memline.c \ | |
53 menu.c \ | |
54 message.c \ | |
55 misc1.c \ | |
56 misc2.c \ | |
57 move.c \ | |
58 mbyte.c \ | |
59 normal.c \ | |
60 ops.c \ | |
61 option.c \ | |
62 os_amiga.c \ | |
800 | 63 popupmnu.c \ |
7 | 64 quickfix.c \ |
65 regexp.c \ | |
66 screen.c \ | |
67 search.c \ | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
800
diff
changeset
|
68 sha256.c \ |
221 | 69 spell.c \ |
7 | 70 syntax.c \ |
71 tag.c \ | |
72 term.c \ | |
73 ui.c \ | |
74 undo.c \ | |
75 window.c \ | |
76 version.c | |
77 | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
800
diff
changeset
|
78 OBJ = o/blowfish.o \ |
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
800
diff
changeset
|
79 o/buffer.o \ |
7 | 80 o/charset.o \ |
6126 | 81 o/crypt.o \ |
82 o/crypt_zip.o \ | |
7 | 83 o/diff.o \ |
84 o/digraph.o \ | |
85 o/edit.o \ | |
86 o/eval.o \ | |
87 o/ex_cmds.o \ | |
88 o/ex_cmds2.o \ | |
89 o/ex_docmd.o \ | |
90 o/ex_eval.o \ | |
91 o/ex_getln.o \ | |
92 o/fileio.o \ | |
93 o/fold.o \ | |
94 o/getchar.o \ | |
440 | 95 o/hardcopy.o \ |
800 | 96 o/hashtab.o \ |
7712
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
6126
diff
changeset
|
97 o/json.o \ |
7 | 98 o/main.o \ |
99 o/mark.o \ | |
100 o/memfile.o \ | |
101 o/memline.o \ | |
102 o/menu.o \ | |
103 o/message.o \ | |
104 o/misc1.o \ | |
105 o/misc2.o \ | |
106 o/move.o \ | |
107 o/mbyte.o \ | |
108 o/normal.o \ | |
109 o/ops.o \ | |
110 o/option.o \ | |
111 o/os_amiga.o \ | |
800 | 112 o/popupmnu.o \ |
7 | 113 o/quickfix.o \ |
114 o/regexp.o \ | |
115 o/screen.o \ | |
116 o/search.o \ | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
800
diff
changeset
|
117 o/sha256.o \ |
221 | 118 o/spell.o \ |
7 | 119 o/syntax.o \ |
120 o/tag.o \ | |
121 o/term.o \ | |
122 o/ui.o \ | |
123 o/undo.o \ | |
124 o/window.o \ | |
125 $(TERMLIB) | |
126 | |
127 Vim: $(OBJ) version.c version.h | |
128 ${CC} $(CFLAGS) version.c -o o/version.o | |
129 ${LD} -o Vim $(OBJ) o/version.o $(LIBS) | |
130 | |
131 debug: $(OBJ) version.c version.h | |
132 ${CC} $(CFLAGS) version.c -o o/version.o | |
133 ${LD} -s -o Vim $(OBJ) o/version.o $(LIBS) | |
134 | |
135 tags: | |
136 csh -c ctags $(SRC) *.h | |
137 | |
138 clean: | |
139 delete o/*.o Vim $(SYMS) | |
140 | |
141 $(SYMS) : vim.h globals.h keymap.h macros.h ascii.h term.h os_amiga.h structs.h | |
142 delete $(SYMS) | |
143 | |
144 ########################################################################### | |
145 | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
800
diff
changeset
|
146 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
|
147 |
7 | 148 o/buffer.o: buffer.c $(SYMS) |
149 | |
150 o/charset.o: charset.c $(SYMS) | |
151 | |
6126 | 152 o/crypt.o: crypt.c $(SYMS) |
153 | |
154 o/crypt_zip.o: crypt_zip.c $(SYMS) | |
155 | |
7 | 156 o/diff.o: diff.c $(SYMS) |
157 | |
158 o/digraph.o: digraph.c $(SYMS) | |
159 | |
160 o/edit.o: edit.c $(SYMS) | |
161 | |
162 o/eval.o: eval.c $(SYMS) | |
163 | |
164 o/ex_cmds.o: ex_cmds.c $(SYMS) | |
165 | |
166 o/ex_cmds2.o: ex_cmds2.c $(SYMS) | |
167 | |
168 o/ex_docmd.o: ex_docmd.c $(SYMS) ex_cmds.h | |
169 | |
170 o/ex_eval.o: ex_eval.c $(SYMS) ex_cmds.h | |
171 | |
172 o/ex_getln.o: ex_getln.c $(SYMS) | |
173 | |
174 o/fileio.o: fileio.c $(SYMS) | |
175 | |
176 o/fold.o: fold.c $(SYMS) | |
177 | |
178 o/getchar.o: getchar.c $(SYMS) | |
179 | |
440 | 180 o/hardcopy.o: hardcopy.c $(SYMS) |
181 | |
800 | 182 o/hashtab.o: hashtab.c $(SYMS) |
119 | 183 |
7712
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
6126
diff
changeset
|
184 o/json.o: json.c $(SYMS) |
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
6126
diff
changeset
|
185 |
7 | 186 o/main.o: main.c $(SYMS) |
187 | |
188 o/mark.o: mark.c $(SYMS) | |
189 | |
190 o/memfile.o: memfile.c $(SYMS) | |
191 | |
192 o/memline.o: memline.c $(SYMS) | |
193 | |
194 o/menu.o: menu.c $(SYMS) | |
195 | |
196 o/message.o: message.c $(SYMS) | |
197 | |
198 o/misc1.o: misc1.c $(SYMS) | |
199 | |
200 o/misc2.o: misc2.c $(SYMS) | |
201 | |
202 o/move.o: move.c $(SYMS) | |
203 | |
204 o/mbyte.o: mbyte.c $(SYMS) | |
205 | |
206 o/normal.o: normal.c $(SYMS) | |
207 | |
208 o/ops.o: ops.c $(SYMS) | |
209 | |
210 o/option.o: option.c $(SYMS) | |
211 # Because of a bug in DC1 2.06.40, initialisation of unions does not | |
212 # work correctly. dc1-21 is DC1 2.06.21 which does work. | |
213 # rename dc1-21 dc1 | |
214 ${CC} ${CFLAGS} option.c -o o/option.o | |
215 # rename dc1 dc1-21 | |
216 | |
217 o/os_amiga.o: os_amiga.c $(SYMS) os_amiga.h | |
218 | |
800 | 219 o/popupmnu.o: popupmnu.c $(SYMS) |
540 | 220 |
7 | 221 o/quickfix.o: quickfix.c $(SYMS) |
222 | |
223 o/regexp.o: regexp.c $(SYMS) regexp.h | |
224 | |
225 o/screen.o: screen.c $(SYMS) | |
226 | |
227 o/search.o: search.c $(SYMS) regexp.h | |
228 | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
800
diff
changeset
|
229 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
|
230 |
221 | 231 o/spell.o: spell.c $(SYMS) |
232 | |
7 | 233 o/syntax.o: syntax.c $(SYMS) |
234 | |
235 o/tag.o: tag.c $(SYMS) | |
236 | |
237 o/term.o: term.c $(SYMS) term.h | |
238 | |
239 o/termlib.o: termlib.c $(SYMS) | |
240 | |
241 o/ui.o: ui.c $(SYMS) | |
242 | |
243 o/undo.o: undo.c $(SYMS) | |
244 | |
245 o/window.o: window.c $(SYMS) |