Mercurial > vim
annotate src/Make_sas.mak @ 8583:537bbbd4e987 v7.4.1581
commit https://github.com/vim/vim/commit/65639032bb7b17996cd255d1508a1df4ad528a1f
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 16 21:40:30 2016 +0100
patch 7.4.1581
Problem: Using ":call dict.func()" where the function is a partial does
not work. Using "dict.func()" where the function does not take a
Dictionary does not work.
Solution: Handle partial properly in ":call". (Yasuhiro Matsumoto)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 16 Mar 2016 21:45:04 +0100 |
parents | bce3b5ddb393 |
children | 9b048dced116 |
rev | line source |
---|---|
7 | 1 # vim: set ft=make : |
2 # Makefile for VIM on the Amiga, using SAS/Lattice C 6.0 to 6.58 | |
3 # | |
4 # Do NOT use the peephole optimizer with a version before 6.56! | |
5 # It messes up all kinds of things: | |
6 # For 6.0 and 6.1, expand_env() will not work correctly. | |
7 # For 6.2 and 6.3 the call to free_line in u_freeentry is wrong. | |
8 # The "read.me" file for version 6.56 includes a remark about a fix for the | |
9 # peephole optimizer. Everything before 6.56 will probably fail. | |
10 # | |
11 # You should use Manx Aztec C whenever possible, because it has been tested. | |
12 # | |
13 # The prototypes from Manx and SAS are incompatible. If the prototypes | |
14 # were generated by Manx, first do "touch *.c; make proto" before "make". | |
15 # The prototypes generated on Unix work for both. | |
16 # | |
17 # Note: Not all dependencies are included. This was done to avoid having | |
18 # to compile everything when a global variable or function is added. | |
19 | |
20 #>>>>> choose options: | |
21 | |
22 ### See feature.h for a list of optionals. | |
23 ### Any other defines can be included here. | |
24 | |
25 # NO_ARP Don't include ARP functions | |
26 # SASC=658 Sas/C version number | |
27 # NEWSASC fixes a bug in the syntax highlighting? | |
28 DEFINES = DEF=NO_ARP DEF=NEWSASC DEF="SASC=658" | |
29 | |
30 #>>>>> if HAVE_TGETENT is defined termlib.o has to be used | |
31 #TERMLIB = termlib.o | |
32 TERMLIB = | |
33 | |
34 #>>>>> choose NODEBUG for normal compiling, the other for debugging and | |
35 # profiling | |
36 # don't switch on debugging when generating proto files, it crashes the | |
37 # compiler. | |
38 DBG = NODEBUG | |
39 #DBG = DBG=SF | |
40 | |
41 #>>>>> choose NOOPTPEEP for 6.0 to 6.3, NOOPT for debugging | |
42 # with version 6.56 and later you can probably use OPT | |
43 OPTIMIZE = OPT | |
44 #OPTIMIZE = NOOPTPEEP | |
45 #OPTIMIZE = NOOPT | |
46 | |
47 # for 6.58 you can use the line below, but be warned it takes a loooonnnggg time | |
48 #OPTIMIZE=OPT OPTIMIZERSCHEDULER OPTIMIZERTIME NoOPTIMIZERALIAS \ | |
49 OptimizerComplexity=10 OptimizerDepth=10 OptimizerRecurDepth=10 \ | |
50 OptimizerInLocal OPTPEEP | |
51 | |
52 #generate code for your processor - 68060 will work for 040's as well. | |
53 CPU=68000 | |
54 #CPU=68020 | |
55 #CPU=68030 | |
56 #CPU=68040 | |
57 #CPU=68060 | |
58 | |
59 #Error reporting - rexx or console | |
60 ERROR = ERRORCONSOLE ERRORSOURCE ERRORHIGHLIGHT | |
61 #ERROR = ERRORREXX ERRORCONSOLE ERRORSOURCE ERRORHIGHLIGHT | |
62 | |
63 #memory types, if you have fast use it :->, | |
64 # ANY = will work on all machines | |
65 # FAST = this is the best option, for speed | |
66 #MEMORYTYPE=FAST | |
67 MEMORYTYPE=ANY | |
68 | |
69 #MEMSIZE - this is for compile time only for speed of compilation | |
70 #MEMSIZE=HUGE | |
71 MEMSIZE=LARGE | |
72 #MEMSIZE=SMALL | |
73 | |
74 #>>>>> end of choices | |
75 ########################################################################### | |
76 | |
77 CC = sc | |
78 GST = vim.gst | |
79 COPTS = SINT SCODE SDATA | |
80 SHELL = csh | |
81 DEL = $(SHELL) -c rm -f | |
82 | |
83 # ignore error messages for uninitialized variables, they are mostly not correct | |
84 CFLAGS = NOLINK $(DBG) CPU=$(CPU) NOSTACKCHECK DEF=AMIGA CODE=FAR idir=proto ignore=317 | |
85 CFLAGS2 = $(OPTIMIZE) $(ERROR) GSTIMMEDIATE GST=$(GST) | |
86 CFLAGS3 = $(COPTS) STRINGMERGE MEMSIZE=$(MEMSIZE) | |
87 CFLAGS4 = $(DEFINES) DATAMEMORY=$(MEMORYTYPE) | |
88 | |
89 PROPT = DEF=PROTO GPROTO GPPARM MAXIMUMERRORS=999 GENPROTOSTATICS GENPROTOPARAMETERS | |
90 | |
91 SRC = \ | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
92 blowfish.c \ |
7 | 93 buffer.c \ |
94 charset.c \ | |
6126 | 95 crypt.c \ |
96 crypt_zip.c \ | |
7 | 97 diff.c \ |
98 digraph.c \ | |
99 edit.c \ | |
100 eval.c \ | |
101 ex_cmds.c \ | |
102 ex_cmds2.c \ | |
103 ex_docmd.c \ | |
104 ex_eval.c \ | |
105 ex_getln.c \ | |
106 fileio.c \ | |
107 fold.c \ | |
108 getchar.c \ | |
440 | 109 hardcopy.c \ |
799 | 110 hashtab.c \ |
7712
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
6126
diff
changeset
|
111 json.c \ |
7 | 112 main.c \ |
113 mark.c \ | |
114 memfile.c \ | |
115 memline.c \ | |
116 menu.c \ | |
117 message.c \ | |
118 misc1.c \ | |
119 misc2.c \ | |
120 move.c \ | |
121 mbyte.c \ | |
122 normal.c \ | |
123 ops.c \ | |
124 option.c \ | |
125 os_amiga.c \ | |
799 | 126 popupmnu.c \ |
7 | 127 quickfix.c \ |
128 regexp.c \ | |
129 screen.c \ | |
130 search.c \ | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
131 sha256.c \ |
221 | 132 spell.c \ |
7 | 133 syntax.c \ |
134 tag.c \ | |
135 term.c \ | |
136 ui.c \ | |
137 undo.c \ | |
138 window.c \ | |
139 version.c | |
140 | |
141 OBJ = \ | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
142 blowfish.o \ |
7 | 143 buffer.o \ |
144 charset.o \ | |
6126 | 145 crypt.o \ |
146 crypt_zip.o \ | |
7 | 147 diff.o \ |
148 digraph.o \ | |
149 edit.o \ | |
150 eval.o \ | |
151 ex_cmds.o \ | |
152 ex_cmds2.o \ | |
153 ex_docmd.o \ | |
154 ex_eval.o \ | |
155 ex_getln.o \ | |
156 fileio.o \ | |
157 fold.o \ | |
158 getchar.o \ | |
440 | 159 hardcopy.o \ |
799 | 160 hashtab.o \ |
7712
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
6126
diff
changeset
|
161 json.o \ |
7 | 162 main.o \ |
163 mark.o \ | |
164 memfile.o \ | |
165 memline.o \ | |
166 menu.o \ | |
167 message.o \ | |
168 misc1.o \ | |
169 misc2.o \ | |
170 move.o \ | |
171 mbyte.o \ | |
172 normal.o \ | |
173 ops.o \ | |
174 option.o \ | |
175 os_amiga.o \ | |
799 | 176 popupmnu.o \ |
7 | 177 quickfix.o \ |
178 regexp.o \ | |
179 screen.o \ | |
180 search.o \ | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
181 sha256.o \ |
221 | 182 spell.o \ |
7 | 183 syntax.o \ |
184 tag.o \ | |
185 term.o \ | |
186 ui.o \ | |
187 undo.o \ | |
188 window.o \ | |
189 $(TERMLIB) | |
190 | |
191 PRO = \ | |
2180
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
799
diff
changeset
|
192 proto/blowfish.pro \ |
7 | 193 proto/buffer.pro \ |
194 proto/charset.pro \ | |
6126 | 195 proto/crypt.pro \ |
196 proto/crypt_zip.pro \ | |
7 | 197 proto/diff.pro \ |
198 proto/digraph.pro \ | |
199 proto/edit.pro \ | |
200 proto/eval.pro \ | |
201 proto/ex_cmds.pro \ | |
202 proto/ex_cmds2.pro \ | |
203 proto/ex_docmd.pro \ | |
204 proto/ex_eval.pro \ | |
205 proto/ex_getln.pro \ | |
206 proto/fileio.pro \ | |
207 proto/fold.pro \ | |
208 proto/getchar.pro \ | |
440 | 209 proto/hardcopy.pro \ |
799 | 210 proto/hashtab.pro \ |
7712
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
6126
diff
changeset
|
211 proto/json.pro \ |
7 | 212 proto/main.pro \ |
213 proto/mark.pro \ | |
214 proto/memfile.pro \ | |
215 proto/memline.pro \ | |
216 proto/menu.pro \ | |
217 proto/message.pro \ | |
218 proto/misc1.pro \ | |
219 proto/misc2.pro \ | |
220 proto/move.pro \ | |
221 proto/mbyte.pro \ | |
222 proto/normal.pro \ | |
223 proto/ops.pro \ | |
224 proto/option.pro \ | |
225 proto/os_amiga.pro \ | |
799 | 226 proto/popupmnu.pro \ |
7 | 227 proto/quickfix.pro \ |
228 proto/regexp.pro \ | |
229 proto/screen.pro \ | |
230 proto/search.pro \ | |
2180
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
799
diff
changeset
|
231 proto/sha256.pro \ |
221 | 232 proto/spell.pro \ |
7 | 233 proto/syntax.pro \ |
234 proto/tag.pro \ | |
235 proto/term.pro \ | |
236 proto/termlib.pro \ | |
237 proto/ui.pro \ | |
238 proto/undo.pro \ | |
239 proto/window.pro | |
240 | |
241 all: proto Vim | |
242 | |
243 Vim: scoptions $(OBJ) version.c version.h | |
244 $(CC) $(CFLAGS) version.c | |
245 $(CC) LINK $(COPTS) $(OBJ) version.o $(DBG) PNAME=Vim | |
246 | |
247 debug: scoptions $(OBJ) version.c version.h | |
248 $(CC) $(CFLAGS) version.c | |
249 $(CC) LINK $(COPTS) $(OBJ) version.o $(DBG) PNAME=Vim | |
250 | |
251 proto: $(GST) $(PRO) | |
252 | |
253 tags: | |
254 spat ctags $(SRC) *.h | |
255 # csh -c ctags $(SRC) *.h | |
256 | |
257 # can't use delete here, too many file names | |
258 clean: | |
259 $(DEL) *.o Vim $(GST) | |
260 | |
261 # generate GlobalSymbolTable, which speeds up the compile time. | |
262 # | |
4352 | 263 # A preprocessing stage is used to work around a bug in the GST generator, in |
7 | 264 # that it does not handle nested makefiles properly in this stage. |
265 # Ignore error message for not producing any code (105). | |
266 $(GST): scoptions vim.h keymap.h macros.h ascii.h term.h structs.h | |
267 $(CC) $(CFLAGS) PREPROCESSORONLY vim.h objectname pre.h | |
268 $(CC) MGST=$(GST) pre.h ignore=105 | |
269 $(DEL) pre.h | |
270 | |
271 # generate an options file, because SAS/C smake can't handle the amiga command | |
272 # line can handle the lengths that this makefile will impose on the shell. | |
273 # (Manx's make can do this). | |
274 scoptions: Make_sas.mak | |
275 @echo "Generating - $@ ..." | |
276 @echo $(CFLAGS) > scoptions | |
277 @echo $(CFLAGS1) >> scoptions | |
278 @echo $(CFLAGS2) >> scoptions | |
279 @echo $(CFLAGS3) >> scoptions | |
280 @echo $(CFLAGS4) >> scoptions | |
281 @echo $(COPTS) >>scoptions | |
282 @echo done | |
283 | |
284 ########################################################################### | |
285 | |
286 $(OBJ): $(GST) vim.h | |
287 $(PRO): $(GST) vim.h | |
288 | |
289 .c.o: | |
290 $(CC) $(CFLAGS) $*.c | |
291 | |
292 .c.pro: | |
293 $(CC) $(CFLAGS) GPFILE=proto/$*.pro $(PROPT) $*.c | |
294 | |
4352 | 295 # dependencies |
2180
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
799
diff
changeset
|
296 blowfish.o: blowfish.c |
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
799
diff
changeset
|
297 proto/blowfish.pro: blowfish.c |
7 | 298 buffer.o: buffer.c |
299 proto/buffer.pro: buffer.c | |
300 charset.o: charset.c | |
301 proto/charset.pro: charset.c | |
6126 | 302 crypt.o: crypt.c |
303 proto/crypt.pro: crypt.c | |
304 crypt_zip.o: crypt_zip.c | |
305 proto/crypt_zip.pro: crypt_zip.c | |
7 | 306 diff.o: diff.c |
307 proto/diff.pro: diff.c | |
308 digraph.o: digraph.c | |
309 proto/digraph.pro: digraph.c | |
310 edit.o: edit.c | |
311 proto/edit.pro: edit.c | |
312 eval.o: eval.c | |
313 proto/eval.pro: eval.c | |
314 ex_cmds.o: ex_cmds.c | |
315 proto/ex_cmds.pro: ex_cmds.c | |
316 ex_cmds2.o: ex_cmds2.c | |
317 proto/ex_cmds2.pro: ex_cmds2.c | |
318 ex_docmd.o: ex_docmd.c ex_cmds.h | |
319 proto/ex_docmd.pro: ex_docmd.c ex_cmds.h | |
320 ex_eval.o: ex_eval.c ex_cmds.h | |
321 proto/ex_eval.pro: ex_eval.c ex_cmds.h | |
322 ex_getln.o: ex_getln.c | |
323 proto/ex_getln.pro: ex_getln.c | |
324 fileio.o: fileio.c | |
325 proto/fileio.pro: fileio.c | |
326 fold.o: fold.c | |
327 proto/fold.pro: fold.c | |
328 getchar.o: getchar.c | |
329 proto/getchar.pro: getchar.c | |
440 | 330 hardcopy.o: hardcopy.c |
331 proto/hardcopy.pro: hardcopy.c | |
799 | 332 hashtab.o: hashtab.c |
333 proto/hashtab.pro: hashtab.c | |
7712
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
6126
diff
changeset
|
334 json.o: json.c |
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
6126
diff
changeset
|
335 proto/json.pro: json.c |
7 | 336 main.o: main.c |
337 proto/main.pro: main.c | |
338 mark.o: mark.c | |
339 proto/mark.pro: mark.c | |
340 memfile.o: memfile.c | |
341 proto/memfile.pro: memfile.c | |
342 memline.o: memline.c | |
343 proto/memline.pro: memline.c | |
344 menu.o: menu.c | |
345 proto/menu.pro: menu.c | |
346 message.o: message.c | |
347 proto/message.pro: message.c | |
348 misc1.o: misc1.c | |
349 proto/misc1.pro: misc1.c | |
350 misc2.o: misc2.c | |
351 proto/misc2.pro: misc2.c | |
352 move.o: move.c | |
353 proto/move.pro: move.c | |
354 mbyte.o: mbyte.c | |
355 proto/mbyte.pro: mbyte.c | |
356 normal.o: normal.c | |
357 proto/normal.pro: normal.c | |
358 ops.o: ops.c | |
359 proto/ops.pro: ops.c | |
360 option.o: option.c | |
361 proto/option.pro: option.c | |
362 os_amiga.o: os_amiga.c | |
363 proto/os_amiga.pro: os_amiga.c | |
799 | 364 popupmnu.o: popupmnu.c |
365 proto/popupmnu.pro: popupmnu.c | |
7 | 366 quickfix.o: quickfix.c |
367 proto/quickfix.pro: quickfix.c | |
368 regexp.o: regexp.c | |
369 proto/regexp.pro: regexp.c | |
370 screen.o: screen.c | |
371 proto/screen.pro: screen.c | |
372 search.o: search.c | |
373 proto/search.pro: search.c | |
2180
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
799
diff
changeset
|
374 sha256.o: sha256.c |
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
799
diff
changeset
|
375 proto/sha256.pro: sha256.c |
221 | 376 spell.o: spell.c |
377 proto/spell.pro: spell.c | |
7 | 378 syntax.o: syntax.c |
379 proto/syntax.pro: syntax.c | |
380 tag.o: tag.c | |
381 proto/tag.pro: tag.c | |
382 term.o: term.c | |
383 proto/term.pro: term.c | |
384 termlib.o: termlib.c | |
385 proto/termlib.pro: termlib.c | |
386 ui.o: ui.c | |
387 proto/ui.pro: ui.c | |
388 undo.o: undo.c | |
389 proto/undo.pro: undo.c | |
390 window.o: window.c |