Mercurial > vim
annotate src/Make_sas.mak @ 4969:dbbe87b3c213
Added tag v7-3-1229 for changeset b6e693e1f946
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 23 Jun 2013 13:28:17 +0200 |
parents | 04736b4030ec |
children | ab71bb81b84e |
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 \ | |
95 diff.c \ | |
96 digraph.c \ | |
97 edit.c \ | |
98 eval.c \ | |
99 ex_cmds.c \ | |
100 ex_cmds2.c \ | |
101 ex_docmd.c \ | |
102 ex_eval.c \ | |
103 ex_getln.c \ | |
104 fileio.c \ | |
105 fold.c \ | |
106 getchar.c \ | |
440 | 107 hardcopy.c \ |
799 | 108 hashtab.c \ |
7 | 109 main.c \ |
110 mark.c \ | |
111 memfile.c \ | |
112 memline.c \ | |
113 menu.c \ | |
114 message.c \ | |
115 misc1.c \ | |
116 misc2.c \ | |
117 move.c \ | |
118 mbyte.c \ | |
119 normal.c \ | |
120 ops.c \ | |
121 option.c \ | |
122 os_amiga.c \ | |
799 | 123 popupmnu.c \ |
7 | 124 quickfix.c \ |
125 regexp.c \ | |
126 screen.c \ | |
127 search.c \ | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
128 sha256.c \ |
221 | 129 spell.c \ |
7 | 130 syntax.c \ |
131 tag.c \ | |
132 term.c \ | |
133 ui.c \ | |
134 undo.c \ | |
135 window.c \ | |
136 version.c | |
137 | |
138 OBJ = \ | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
139 blowfish.o \ |
7 | 140 buffer.o \ |
141 charset.o \ | |
142 diff.o \ | |
143 digraph.o \ | |
144 edit.o \ | |
145 eval.o \ | |
146 ex_cmds.o \ | |
147 ex_cmds2.o \ | |
148 ex_docmd.o \ | |
149 ex_eval.o \ | |
150 ex_getln.o \ | |
151 fileio.o \ | |
152 fold.o \ | |
153 getchar.o \ | |
440 | 154 hardcopy.o \ |
799 | 155 hashtab.o \ |
7 | 156 main.o \ |
157 mark.o \ | |
158 memfile.o \ | |
159 memline.o \ | |
160 menu.o \ | |
161 message.o \ | |
162 misc1.o \ | |
163 misc2.o \ | |
164 move.o \ | |
165 mbyte.o \ | |
166 normal.o \ | |
167 ops.o \ | |
168 option.o \ | |
169 os_amiga.o \ | |
799 | 170 popupmnu.o \ |
7 | 171 quickfix.o \ |
172 regexp.o \ | |
173 screen.o \ | |
174 search.o \ | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
175 sha256.o \ |
221 | 176 spell.o \ |
7 | 177 syntax.o \ |
178 tag.o \ | |
179 term.o \ | |
180 ui.o \ | |
181 undo.o \ | |
182 window.o \ | |
183 $(TERMLIB) | |
184 | |
185 PRO = \ | |
2180
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
799
diff
changeset
|
186 proto/blowfish.pro \ |
7 | 187 proto/buffer.pro \ |
188 proto/charset.pro \ | |
189 proto/diff.pro \ | |
190 proto/digraph.pro \ | |
191 proto/edit.pro \ | |
192 proto/eval.pro \ | |
193 proto/ex_cmds.pro \ | |
194 proto/ex_cmds2.pro \ | |
195 proto/ex_docmd.pro \ | |
196 proto/ex_eval.pro \ | |
197 proto/ex_getln.pro \ | |
198 proto/fileio.pro \ | |
199 proto/fold.pro \ | |
200 proto/getchar.pro \ | |
440 | 201 proto/hardcopy.pro \ |
799 | 202 proto/hashtab.pro \ |
7 | 203 proto/main.pro \ |
204 proto/mark.pro \ | |
205 proto/memfile.pro \ | |
206 proto/memline.pro \ | |
207 proto/menu.pro \ | |
208 proto/message.pro \ | |
209 proto/misc1.pro \ | |
210 proto/misc2.pro \ | |
211 proto/move.pro \ | |
212 proto/mbyte.pro \ | |
213 proto/normal.pro \ | |
214 proto/ops.pro \ | |
215 proto/option.pro \ | |
216 proto/os_amiga.pro \ | |
799 | 217 proto/popupmnu.pro \ |
7 | 218 proto/quickfix.pro \ |
219 proto/regexp.pro \ | |
220 proto/screen.pro \ | |
221 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
|
222 proto/sha256.pro \ |
221 | 223 proto/spell.pro \ |
7 | 224 proto/syntax.pro \ |
225 proto/tag.pro \ | |
226 proto/term.pro \ | |
227 proto/termlib.pro \ | |
228 proto/ui.pro \ | |
229 proto/undo.pro \ | |
230 proto/window.pro | |
231 | |
232 all: proto Vim | |
233 | |
234 Vim: scoptions $(OBJ) version.c version.h | |
235 $(CC) $(CFLAGS) version.c | |
236 $(CC) LINK $(COPTS) $(OBJ) version.o $(DBG) PNAME=Vim | |
237 | |
238 debug: scoptions $(OBJ) version.c version.h | |
239 $(CC) $(CFLAGS) version.c | |
240 $(CC) LINK $(COPTS) $(OBJ) version.o $(DBG) PNAME=Vim | |
241 | |
242 proto: $(GST) $(PRO) | |
243 | |
244 tags: | |
245 spat ctags $(SRC) *.h | |
246 # csh -c ctags $(SRC) *.h | |
247 | |
248 # can't use delete here, too many file names | |
249 clean: | |
250 $(DEL) *.o Vim $(GST) | |
251 | |
252 # generate GlobalSymbolTable, which speeds up the compile time. | |
253 # | |
4352 | 254 # A preprocessing stage is used to work around a bug in the GST generator, in |
7 | 255 # that it does not handle nested makefiles properly in this stage. |
256 # Ignore error message for not producing any code (105). | |
257 $(GST): scoptions vim.h keymap.h macros.h ascii.h term.h structs.h | |
258 $(CC) $(CFLAGS) PREPROCESSORONLY vim.h objectname pre.h | |
259 $(CC) MGST=$(GST) pre.h ignore=105 | |
260 $(DEL) pre.h | |
261 | |
262 # generate an options file, because SAS/C smake can't handle the amiga command | |
263 # line can handle the lengths that this makefile will impose on the shell. | |
264 # (Manx's make can do this). | |
265 scoptions: Make_sas.mak | |
266 @echo "Generating - $@ ..." | |
267 @echo $(CFLAGS) > scoptions | |
268 @echo $(CFLAGS1) >> scoptions | |
269 @echo $(CFLAGS2) >> scoptions | |
270 @echo $(CFLAGS3) >> scoptions | |
271 @echo $(CFLAGS4) >> scoptions | |
272 @echo $(COPTS) >>scoptions | |
273 @echo done | |
274 | |
275 ########################################################################### | |
276 | |
277 $(OBJ): $(GST) vim.h | |
278 $(PRO): $(GST) vim.h | |
279 | |
280 .c.o: | |
281 $(CC) $(CFLAGS) $*.c | |
282 | |
283 .c.pro: | |
284 $(CC) $(CFLAGS) GPFILE=proto/$*.pro $(PROPT) $*.c | |
285 | |
4352 | 286 # dependencies |
2180
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
799
diff
changeset
|
287 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
|
288 proto/blowfish.pro: blowfish.c |
7 | 289 buffer.o: buffer.c |
290 proto/buffer.pro: buffer.c | |
291 charset.o: charset.c | |
292 proto/charset.pro: charset.c | |
293 diff.o: diff.c | |
294 proto/diff.pro: diff.c | |
295 digraph.o: digraph.c | |
296 proto/digraph.pro: digraph.c | |
297 edit.o: edit.c | |
298 proto/edit.pro: edit.c | |
299 eval.o: eval.c | |
300 proto/eval.pro: eval.c | |
301 ex_cmds.o: ex_cmds.c | |
302 proto/ex_cmds.pro: ex_cmds.c | |
303 ex_cmds2.o: ex_cmds2.c | |
304 proto/ex_cmds2.pro: ex_cmds2.c | |
305 ex_docmd.o: ex_docmd.c ex_cmds.h | |
306 proto/ex_docmd.pro: ex_docmd.c ex_cmds.h | |
307 ex_eval.o: ex_eval.c ex_cmds.h | |
308 proto/ex_eval.pro: ex_eval.c ex_cmds.h | |
309 ex_getln.o: ex_getln.c | |
310 proto/ex_getln.pro: ex_getln.c | |
311 fileio.o: fileio.c | |
312 proto/fileio.pro: fileio.c | |
313 fold.o: fold.c | |
314 proto/fold.pro: fold.c | |
315 getchar.o: getchar.c | |
316 proto/getchar.pro: getchar.c | |
440 | 317 hardcopy.o: hardcopy.c |
318 proto/hardcopy.pro: hardcopy.c | |
799 | 319 hashtab.o: hashtab.c |
320 proto/hashtab.pro: hashtab.c | |
7 | 321 main.o: main.c |
322 proto/main.pro: main.c | |
323 mark.o: mark.c | |
324 proto/mark.pro: mark.c | |
325 memfile.o: memfile.c | |
326 proto/memfile.pro: memfile.c | |
327 memline.o: memline.c | |
328 proto/memline.pro: memline.c | |
329 menu.o: menu.c | |
330 proto/menu.pro: menu.c | |
331 message.o: message.c | |
332 proto/message.pro: message.c | |
333 misc1.o: misc1.c | |
334 proto/misc1.pro: misc1.c | |
335 misc2.o: misc2.c | |
336 proto/misc2.pro: misc2.c | |
337 move.o: move.c | |
338 proto/move.pro: move.c | |
339 mbyte.o: mbyte.c | |
340 proto/mbyte.pro: mbyte.c | |
341 normal.o: normal.c | |
342 proto/normal.pro: normal.c | |
343 ops.o: ops.c | |
344 proto/ops.pro: ops.c | |
345 option.o: option.c | |
346 proto/option.pro: option.c | |
347 os_amiga.o: os_amiga.c | |
348 proto/os_amiga.pro: os_amiga.c | |
799 | 349 popupmnu.o: popupmnu.c |
350 proto/popupmnu.pro: popupmnu.c | |
7 | 351 quickfix.o: quickfix.c |
352 proto/quickfix.pro: quickfix.c | |
353 regexp.o: regexp.c | |
354 proto/regexp.pro: regexp.c | |
355 screen.o: screen.c | |
356 proto/screen.pro: screen.c | |
357 search.o: search.c | |
358 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
|
359 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
|
360 proto/sha256.pro: sha256.c |
221 | 361 spell.o: spell.c |
362 proto/spell.pro: spell.c | |
7 | 363 syntax.o: syntax.c |
364 proto/syntax.pro: syntax.c | |
365 tag.o: tag.c | |
366 proto/tag.pro: tag.c | |
367 term.o: term.c | |
368 proto/term.pro: term.c | |
369 termlib.o: termlib.c | |
370 proto/termlib.pro: termlib.c | |
371 ui.o: ui.c | |
372 proto/ui.pro: ui.c | |
373 undo.o: undo.c | |
374 proto/undo.pro: undo.c | |
375 window.o: window.c |