7
|
1 #
|
|
2 # Makefile for VIM on the Amiga, using Aztec/Manx C 5.0 or later
|
|
3 #
|
|
4 # Note: Not all dependencies are included. This was done to avoid having
|
|
5 # to compile everything when a global variable or function is added.
|
|
6 # Careful when changing a global struct or variable!
|
|
7 #
|
|
8
|
|
9 #>>>>> choose options:
|
|
10
|
|
11 ### See feature.h for a list of optionals.
|
|
12 ### Any other defines can be included here.
|
|
13 DEFINES =
|
|
14
|
|
15 #>>>>> if HAVE_TGETENT is defined obj/termlib.o has to be used
|
|
16 #TERMLIB = obj/termlib.o
|
|
17 TERMLIB =
|
|
18
|
|
19 #>>>>> choose between debugging (-bs) or optimizing (-so)
|
|
20 OPTIONS = -so
|
|
21 #OPTIONS = -bs
|
|
22
|
|
23 #>>>>> end of choices
|
|
24 ###########################################################################
|
|
25
|
|
26 CFLAGS = $(OPTIONS) -wapruq -ps -qf -Iproto $(DEFINES) -DAMIGA
|
|
27
|
|
28 LIBS = -lc16
|
|
29 SYMS = vim.syms
|
|
30 CC = cc
|
|
31 LN = ln
|
|
32 LNFLAGS = +q
|
|
33 SHELL = csh
|
|
34 REN = $(SHELL) -c mv -f
|
|
35 DEL = $(SHELL) -c rm -f
|
|
36
|
|
37 SRC = buffer.c \
|
|
38 charset.c \
|
|
39 diff.c \
|
|
40 digraph.c \
|
|
41 edit.c \
|
|
42 eval.c \
|
|
43 ex_cmds.c \
|
|
44 ex_cmds2.c \
|
|
45 ex_docmd.c \
|
|
46 ex_eval.c \
|
|
47 ex_getln.c \
|
|
48 fileio.c \
|
|
49 fold.c \
|
|
50 getchar.c \
|
|
51 main.c \
|
|
52 mark.c \
|
|
53 memfile.c \
|
|
54 memline.c \
|
|
55 menu.c \
|
|
56 message.c \
|
|
57 misc1.c \
|
|
58 misc2.c \
|
|
59 move.c \
|
|
60 mbyte.c \
|
|
61 normal.c \
|
|
62 ops.c \
|
|
63 option.c \
|
|
64 os_amiga.c \
|
|
65 quickfix.c \
|
|
66 regexp.c \
|
|
67 screen.c \
|
|
68 search.c \
|
|
69 syntax.c \
|
|
70 tag.c \
|
|
71 term.c \
|
|
72 ui.c \
|
|
73 undo.c \
|
|
74 window.c \
|
|
75 version.c
|
|
76
|
|
77 INCL = vim.h feature.h keymap.h macros.h ascii.h term.h structs.h os_amiga.h
|
|
78
|
|
79 OBJ = obj/buffer.o \
|
|
80 obj/charset.o \
|
|
81 obj/diff.o \
|
|
82 obj/digraph.o \
|
|
83 obj/edit.o \
|
|
84 obj/eval.o \
|
|
85 obj/ex_cmds.o \
|
|
86 obj/ex_cmds2.o \
|
|
87 obj/ex_docmd.o \
|
|
88 obj/ex_eval.o \
|
|
89 obj/ex_getln.o \
|
|
90 obj/fileio.o \
|
|
91 obj/fold.o \
|
|
92 obj/getchar.o \
|
|
93 obj/main.o \
|
|
94 obj/mark.o \
|
|
95 obj/memfile.o \
|
|
96 obj/memline.o \
|
|
97 obj/menu.o \
|
|
98 obj/message.o \
|
|
99 obj/misc1.o \
|
|
100 obj/misc2.o \
|
|
101 obj/move.o \
|
|
102 obj/mbyte.o \
|
|
103 obj/normal.o \
|
|
104 obj/ops.o \
|
|
105 obj/option.o \
|
|
106 obj/os_amiga.o \
|
|
107 obj/quickfix.o \
|
|
108 obj/regexp.o \
|
|
109 obj/screen.o \
|
|
110 obj/search.o \
|
|
111 obj/syntax.o \
|
|
112 obj/tag.o \
|
|
113 obj/term.o \
|
|
114 obj/ui.o \
|
|
115 obj/undo.o \
|
|
116 obj/window.o \
|
|
117 $(TERMLIB)
|
|
118
|
|
119 PRO = proto/buffer.pro \
|
|
120 proto/charset.pro \
|
|
121 proto/diff.pro \
|
|
122 proto/digraph.pro \
|
|
123 proto/edit.pro \
|
|
124 proto/eval.pro \
|
|
125 proto/ex_cmds.pro \
|
|
126 proto/ex_cmds2.pro \
|
|
127 proto/ex_docmd.pro \
|
|
128 proto/ex_eval.pro \
|
|
129 proto/ex_getln.pro \
|
|
130 proto/fileio.pro \
|
|
131 proto/fold.pro \
|
|
132 proto/getchar.pro \
|
|
133 proto/main.pro \
|
|
134 proto/mark.pro \
|
|
135 proto/memfile.pro \
|
|
136 proto/memline.pro \
|
|
137 proto/menu.pro \
|
|
138 proto/message.pro \
|
|
139 proto/misc1.pro \
|
|
140 proto/misc2.pro \
|
|
141 proto/move.pro \
|
|
142 proto/mbyte.pro \
|
|
143 proto/normal.pro \
|
|
144 proto/ops.pro \
|
|
145 proto/option.pro \
|
|
146 proto/os_amiga.pro \
|
|
147 proto/quickfix.pro \
|
|
148 proto/regexp.pro \
|
|
149 proto/screen.pro \
|
|
150 proto/search.pro \
|
|
151 proto/syntax.pro \
|
|
152 proto/tag.pro \
|
|
153 proto/term.pro \
|
|
154 proto/termlib.pro \
|
|
155 proto/ui.pro \
|
|
156 proto/undo.pro \
|
|
157 proto/window.pro
|
|
158
|
|
159 all: Vim xxd/Xxd
|
|
160
|
|
161 Vim: obj $(OBJ) version.c version.h
|
|
162 $(CC) $(CFLAGS) version.c -o obj/version.o
|
|
163 $(LN) $(LNFLAGS) -m -o Vim $(OBJ) obj/version.o $(LIBS)
|
|
164
|
|
165 debug: obj $(OBJ) version.c version.h
|
|
166 $(CC) $(CFLAGS) version.c -o obj/version.o
|
|
167 $(LN) $(LNFLAGS) -m -g -o Vim $(OBJ) obj/version.o $(LIBS)
|
|
168
|
|
169 xxd/Xxd: xxd/xxd.c
|
|
170 $(SHELL) -c cd xxd; make -f Make_amiga.mak; cd ..
|
|
171
|
|
172 # Making prototypes with Manx has been removed, because it caused too many
|
|
173 # problems.
|
|
174 #proto: $(SYMS) $(PRO)
|
|
175
|
|
176 obj:
|
|
177 makedir obj
|
|
178
|
|
179 tags: $(SRC) $(INCL)
|
|
180 $(SHELL) -c ctags $(SRC) *.h
|
|
181
|
|
182 # can't use delete here, too many file names
|
|
183 clean:
|
|
184 $(DEL) $(OBJ) obj/version.o \
|
|
185 obj/termlib.o Vim $(SYMS) xxd/Xxd
|
|
186
|
|
187 test:
|
|
188 $(SHELL) -c cd testdir; make -f Make_amiga.mak; cd ..
|
|
189
|
|
190 $(SYMS): $(INCL) $(PRO)
|
|
191 $(CC) $(CFLAGS) -ho$(SYMS) vim.h
|
|
192
|
|
193 ###########################################################################
|
|
194
|
|
195 # Unfortunately, Manx's make doesn't understand a .c.o rule, so each
|
|
196 # compilation command has to be given explicitly.
|
|
197
|
|
198 CCSYM = $(CC) $(CFLAGS) -hi$(SYMS) -o
|
|
199 CCNOSYM = $(CC) $(CFLAGS) -o
|
|
200
|
|
201 $(OBJ): $(SYMS)
|
|
202
|
|
203 obj/buffer.o: buffer.c
|
|
204 $(CCSYM) $@ buffer.c
|
|
205
|
|
206 obj/charset.o: charset.c
|
|
207 $(CCSYM) $@ charset.c
|
|
208
|
|
209 obj/diff.o: diff.c
|
|
210 $(CCSYM) $@ diff.c
|
|
211
|
|
212 obj/digraph.o: digraph.c
|
|
213 $(CCSYM) $@ digraph.c
|
|
214
|
|
215 obj/edit.o: edit.c
|
|
216 $(CCSYM) $@ edit.c
|
|
217
|
|
218 obj/eval.o: eval.c
|
|
219 $(CCSYM) $@ eval.c
|
|
220
|
|
221 obj/ex_cmds.o: ex_cmds.c
|
|
222 $(CCSYM) $@ ex_cmds.c
|
|
223
|
|
224 obj/ex_cmds2.o: ex_cmds2.c
|
|
225 $(CCSYM) $@ ex_cmds2.c
|
|
226
|
|
227 # Don't use $(SYMS) here, because ex_docmd.c defines DO_DECLARE_EXCMD
|
|
228 obj/ex_docmd.o: ex_docmd.c ex_cmds.h
|
|
229 $(CCNOSYM) $@ ex_docmd.c
|
|
230
|
|
231 obj/ex_eval.o: ex_eval.c ex_cmds.h
|
|
232 $(CCSYM) $@ ex_eval.c
|
|
233
|
|
234 obj/ex_getln.o: ex_getln.c
|
|
235 $(CCSYM) $@ ex_getln.c
|
|
236
|
|
237 obj/fileio.o: fileio.c
|
|
238 $(CCSYM) $@ fileio.c
|
|
239
|
|
240 obj/fold.o: fold.c
|
|
241 $(CCSYM) $@ fold.c
|
|
242
|
|
243 obj/getchar.o: getchar.c
|
|
244 $(CCSYM) $@ getchar.c
|
|
245
|
|
246 # Don't use $(SYMS) here, because main.c defines EXTERN
|
|
247 obj/main.o: main.c option.h globals.h
|
|
248 $(CCNOSYM) $@ main.c
|
|
249
|
|
250 obj/mark.o: mark.c
|
|
251 $(CCSYM) $@ mark.c
|
|
252
|
|
253 obj/memfile.o: memfile.c
|
|
254 $(CCSYM) $@ memfile.c
|
|
255
|
|
256 obj/memline.o: memline.c
|
|
257 $(CCSYM) $@ memline.c
|
|
258
|
|
259 obj/menu.o: menu.c
|
|
260 $(CCSYM) $@ menu.c
|
|
261
|
|
262 # Don't use $(SYMS) here, because message.c defines MESSAGE_FILE
|
|
263 obj/message.o: message.c
|
|
264 $(CCNOSYM) $@ message.c
|
|
265
|
|
266 obj/misc1.o: misc1.c
|
|
267 $(CCSYM) $@ misc1.c
|
|
268
|
|
269 obj/misc2.o: misc2.c
|
|
270 $(CCSYM) $@ misc2.c
|
|
271
|
|
272 obj/move.o: move.c
|
|
273 $(CCSYM) $@ move.c
|
|
274
|
|
275 obj/mbyte.o: mbyte.c
|
|
276 $(CCSYM) $@ mbyte.c
|
|
277
|
|
278 obj/normal.o: normal.c
|
|
279 $(CCSYM) $@ normal.c
|
|
280
|
|
281 obj/ops.o: ops.c
|
|
282 $(CCSYM) $@ ops.c
|
|
283
|
|
284 # Don't use $(SYMS) here, because option.h defines variables here
|
|
285 obj/option.o: option.c
|
|
286 $(CCNOSYM) $@ option.c
|
|
287
|
|
288 obj/os_amiga.o: os_amiga.c
|
|
289 $(CCSYM) $@ os_amiga.c
|
|
290
|
|
291 obj/quickfix.o: quickfix.c
|
|
292 $(CCSYM) $@ quickfix.c
|
|
293
|
|
294 obj/regexp.o: regexp.c
|
|
295 $(CCSYM) $@ regexp.c
|
|
296
|
|
297 obj/screen.o: screen.c
|
|
298 $(CCSYM) $@ screen.c
|
|
299
|
|
300 obj/search.o: search.c
|
|
301 $(CCSYM) $@ search.c
|
|
302
|
|
303 obj/syntax.o: syntax.c
|
|
304 $(CCSYM) $@ syntax.c
|
|
305
|
|
306 obj/tag.o: tag.c
|
|
307 $(CCSYM) $@ tag.c
|
|
308
|
|
309 obj/term.o: term.c term.h
|
|
310 $(CCSYM) $@ term.c
|
|
311
|
|
312 obj/termlib.o: termlib.c
|
|
313 $(CCSYM) $@ termlib.c
|
|
314
|
|
315 obj/ui.o: ui.c
|
|
316 $(CCSYM) $@ ui.c
|
|
317
|
|
318 obj/undo.o: undo.c
|
|
319 $(CCSYM) $@ undo.c
|
|
320
|
|
321 obj/window.o: window.c
|
|
322 $(CCSYM) $@ window.c
|