Update runtime files
[MacVim/KaoriYa.git] / src / Make_sas.mak
blob98ec528be8856ebd37ce568aac5539881ab0a860
1 # vim: set ft=make :
2 # Makefile for VIM on the Amiga, using SAS/Lattice C 6.0 to 6.58
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.
11 # You should use Manx Aztec C whenever possible, because it has been tested.
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.
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.
20 #>>>>> choose options:
22 ### See feature.h for a list of optionals.
23 ### Any other defines can be included here.
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"
30 #>>>>> if HAVE_TGETENT is defined termlib.o has to be used
31 #TERMLIB = termlib.o
32 TERMLIB =
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
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
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
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
59 #Error reporting - rexx or console
60 ERROR = ERRORCONSOLE ERRORSOURCE ERRORHIGHLIGHT
61 #ERROR = ERRORREXX ERRORCONSOLE ERRORSOURCE ERRORHIGHLIGHT
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
69 #MEMSIZE - this is for compile time only for speed of compilation
70 #MEMSIZE=HUGE
71 MEMSIZE=LARGE
72 #MEMSIZE=SMALL
74 #>>>>> end of choices
75 ###########################################################################
77 CC = sc
78 GST = vim.gst
79 COPTS = SINT SCODE SDATA
80 SHELL = csh
81 DEL = $(SHELL) -c rm -f
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)
89 PROPT = DEF=PROTO GPROTO GPPARM MAXIMUMERRORS=999 GENPROTOSTATICS GENPROTOPARAMETERS
91 SRC = \
92 buffer.c \
93 charset.c \
94 diff.c \
95 digraph.c \
96 edit.c \
97 eval.c \
98 ex_cmds.c \
99 ex_cmds2.c \
100 ex_docmd.c \
101 ex_eval.c \
102 ex_getln.c \
103 fileio.c \
104 fold.c \
105 getchar.c \
106 hardcopy.c \
107 hashtab.c \
108 main.c \
109 mark.c \
110 memfile.c \
111 memline.c \
112 menu.c \
113 message.c \
114 misc1.c \
115 misc2.c \
116 move.c \
117 mbyte.c \
118 normal.c \
119 ops.c \
120 option.c \
121 os_amiga.c \
122 popupmnu.c \
123 quickfix.c \
124 regexp.c \
125 screen.c \
126 search.c \
127 spell.c \
128 syntax.c \
129 tag.c \
130 term.c \
131 ui.c \
132 undo.c \
133 window.c \
134 version.c
136 OBJ = \
137 buffer.o \
138 charset.o \
139 diff.o \
140 digraph.o \
141 edit.o \
142 eval.o \
143 ex_cmds.o \
144 ex_cmds2.o \
145 ex_docmd.o \
146 ex_eval.o \
147 ex_getln.o \
148 fileio.o \
149 fold.o \
150 getchar.o \
151 hardcopy.o \
152 hashtab.o \
153 main.o \
154 mark.o \
155 memfile.o \
156 memline.o \
157 menu.o \
158 message.o \
159 misc1.o \
160 misc2.o \
161 move.o \
162 mbyte.o \
163 normal.o \
164 ops.o \
165 option.o \
166 os_amiga.o \
167 popupmnu.o \
168 quickfix.o \
169 regexp.o \
170 screen.o \
171 search.o \
172 spell.o \
173 syntax.o \
174 tag.o \
175 term.o \
176 ui.o \
177 undo.o \
178 window.o \
179 $(TERMLIB)
181 PRO = \
182 proto/buffer.pro \
183 proto/charset.pro \
184 proto/diff.pro \
185 proto/digraph.pro \
186 proto/edit.pro \
187 proto/eval.pro \
188 proto/ex_cmds.pro \
189 proto/ex_cmds2.pro \
190 proto/ex_docmd.pro \
191 proto/ex_eval.pro \
192 proto/ex_getln.pro \
193 proto/fileio.pro \
194 proto/fold.pro \
195 proto/getchar.pro \
196 proto/hardcopy.pro \
197 proto/hashtab.pro \
198 proto/main.pro \
199 proto/mark.pro \
200 proto/memfile.pro \
201 proto/memline.pro \
202 proto/menu.pro \
203 proto/message.pro \
204 proto/misc1.pro \
205 proto/misc2.pro \
206 proto/move.pro \
207 proto/mbyte.pro \
208 proto/normal.pro \
209 proto/ops.pro \
210 proto/option.pro \
211 proto/os_amiga.pro \
212 proto/popupmnu.pro \
213 proto/quickfix.pro \
214 proto/regexp.pro \
215 proto/screen.pro \
216 proto/search.pro \
217 proto/spell.pro \
218 proto/syntax.pro \
219 proto/tag.pro \
220 proto/term.pro \
221 proto/termlib.pro \
222 proto/ui.pro \
223 proto/undo.pro \
224 proto/window.pro
226 all: proto Vim
228 Vim: scoptions $(OBJ) version.c version.h
229 $(CC) $(CFLAGS) version.c
230 $(CC) LINK $(COPTS) $(OBJ) version.o $(DBG) PNAME=Vim
232 debug: scoptions $(OBJ) version.c version.h
233 $(CC) $(CFLAGS) version.c
234 $(CC) LINK $(COPTS) $(OBJ) version.o $(DBG) PNAME=Vim
236 proto: $(GST) $(PRO)
238 tags:
239 spat ctags $(SRC) *.h
240 # csh -c ctags $(SRC) *.h
242 # can't use delete here, too many file names
243 clean:
244 $(DEL) *.o Vim $(GST)
246 # generate GlobalSymbolTable, which speeds up the compile time.
248 # A preprocessing stage is used to work arounda bug in the GST generator, in
249 # that it does not handle nested makefiles properly in this stage.
250 # Ignore error message for not producing any code (105).
251 $(GST): scoptions vim.h keymap.h macros.h ascii.h term.h structs.h
252 $(CC) $(CFLAGS) PREPROCESSORONLY vim.h objectname pre.h
253 $(CC) MGST=$(GST) pre.h ignore=105
254 $(DEL) pre.h
256 # generate an options file, because SAS/C smake can't handle the amiga command
257 # line can handle the lengths that this makefile will impose on the shell.
258 # (Manx's make can do this).
259 scoptions: Make_sas.mak
260 @echo "Generating - $@ ..."
261 @echo $(CFLAGS) > scoptions
262 @echo $(CFLAGS1) >> scoptions
263 @echo $(CFLAGS2) >> scoptions
264 @echo $(CFLAGS3) >> scoptions
265 @echo $(CFLAGS4) >> scoptions
266 @echo $(COPTS) >>scoptions
267 @echo done
269 ###########################################################################
271 $(OBJ): $(GST) vim.h
272 $(PRO): $(GST) vim.h
274 .c.o:
275 $(CC) $(CFLAGS) $*.c
277 .c.pro:
278 $(CC) $(CFLAGS) GPFILE=proto/$*.pro $(PROPT) $*.c
280 # dependancies
281 buffer.o: buffer.c
282 proto/buffer.pro: buffer.c
283 charset.o: charset.c
284 proto/charset.pro: charset.c
285 diff.o: diff.c
286 proto/diff.pro: diff.c
287 digraph.o: digraph.c
288 proto/digraph.pro: digraph.c
289 edit.o: edit.c
290 proto/edit.pro: edit.c
291 eval.o: eval.c
292 proto/eval.pro: eval.c
293 ex_cmds.o: ex_cmds.c
294 proto/ex_cmds.pro: ex_cmds.c
295 ex_cmds2.o: ex_cmds2.c
296 proto/ex_cmds2.pro: ex_cmds2.c
297 ex_docmd.o: ex_docmd.c ex_cmds.h
298 proto/ex_docmd.pro: ex_docmd.c ex_cmds.h
299 ex_eval.o: ex_eval.c ex_cmds.h
300 proto/ex_eval.pro: ex_eval.c ex_cmds.h
301 ex_getln.o: ex_getln.c
302 proto/ex_getln.pro: ex_getln.c
303 fileio.o: fileio.c
304 proto/fileio.pro: fileio.c
305 fold.o: fold.c
306 proto/fold.pro: fold.c
307 getchar.o: getchar.c
308 proto/getchar.pro: getchar.c
309 hardcopy.o: hardcopy.c
310 proto/hardcopy.pro: hardcopy.c
311 hashtab.o: hashtab.c
312 proto/hashtab.pro: hashtab.c
313 main.o: main.c
314 proto/main.pro: main.c
315 mark.o: mark.c
316 proto/mark.pro: mark.c
317 memfile.o: memfile.c
318 proto/memfile.pro: memfile.c
319 memline.o: memline.c
320 proto/memline.pro: memline.c
321 menu.o: menu.c
322 proto/menu.pro: menu.c
323 message.o: message.c
324 proto/message.pro: message.c
325 misc1.o: misc1.c
326 proto/misc1.pro: misc1.c
327 misc2.o: misc2.c
328 proto/misc2.pro: misc2.c
329 move.o: move.c
330 proto/move.pro: move.c
331 mbyte.o: mbyte.c
332 proto/mbyte.pro: mbyte.c
333 normal.o: normal.c
334 proto/normal.pro: normal.c
335 ops.o: ops.c
336 proto/ops.pro: ops.c
337 option.o: option.c
338 proto/option.pro: option.c
339 os_amiga.o: os_amiga.c
340 proto/os_amiga.pro: os_amiga.c
341 popupmnu.o: popupmnu.c
342 proto/popupmnu.pro: popupmnu.c
343 quickfix.o: quickfix.c
344 proto/quickfix.pro: quickfix.c
345 regexp.o: regexp.c
346 proto/regexp.pro: regexp.c
347 screen.o: screen.c
348 proto/screen.pro: screen.c
349 search.o: search.c
350 proto/search.pro: search.c
351 spell.o: spell.c
352 proto/spell.pro: spell.c
353 syntax.o: syntax.c
354 proto/syntax.pro: syntax.c
355 tag.o: tag.c
356 proto/tag.pro: tag.c
357 term.o: term.c
358 proto/term.pro: term.c
359 termlib.o: termlib.c
360 proto/termlib.pro: termlib.c
361 ui.o: ui.c
362 proto/ui.pro: ui.c
363 undo.o: undo.c
364 proto/undo.pro: undo.c
365 window.o: window.c