[7.2.350] Win32: When changing font the window may jump from the secondary
[vim_mainline.git] / src / Make_manx.mak
blobb8e7852de535c4f017bbb091c9cb283d1c25f825
2 # Makefile for VIM on the Amiga, using Aztec/Manx C 5.0 or later
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!
9 #>>>>> choose options:
11 ### See feature.h for a list of optionals.
12 ### Any other defines can be included here.
13 DEFINES =
15 #>>>>> if HAVE_TGETENT is defined obj/termlib.o has to be used
16 #TERMLIB = obj/termlib.o
17 TERMLIB =
19 #>>>>> choose between debugging (-bs) or optimizing (-so)
20 OPTIONS = -so
21 #OPTIONS = -bs
23 #>>>>> end of choices
24 ###########################################################################
26 CFLAGS = $(OPTIONS) -wapruq -ps -qf -Iproto $(DEFINES) -DAMIGA
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
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 hardcopy.c \
52 hashtab.c \
53 main.c \
54 mark.c \
55 memfile.c \
56 memline.c \
57 menu.c \
58 message.c \
59 misc1.c \
60 misc2.c \
61 move.c \
62 mbyte.c \
63 normal.c \
64 ops.c \
65 option.c \
66 os_amiga.c \
67 popupmnu.c \
68 quickfix.c \
69 regexp.c \
70 screen.c \
71 search.c \
72 spell.c \
73 syntax.c \
74 tag.c \
75 term.c \
76 ui.c \
77 undo.c \
78 window.c \
79 version.c
81 INCL = vim.h feature.h keymap.h macros.h ascii.h term.h structs.h os_amiga.h
83 OBJ = obj/buffer.o \
84 obj/charset.o \
85 obj/diff.o \
86 obj/digraph.o \
87 obj/edit.o \
88 obj/eval.o \
89 obj/ex_cmds.o \
90 obj/ex_cmds2.o \
91 obj/ex_docmd.o \
92 obj/ex_eval.o \
93 obj/ex_getln.o \
94 obj/fileio.o \
95 obj/fold.o \
96 obj/getchar.o \
97 obj/hardcopy.o \
98 obj/hashtab.o \
99 obj/main.o \
100 obj/mark.o \
101 obj/memfile.o \
102 obj/memline.o \
103 obj/menu.o \
104 obj/message.o \
105 obj/misc1.o \
106 obj/misc2.o \
107 obj/move.o \
108 obj/mbyte.o \
109 obj/normal.o \
110 obj/ops.o \
111 obj/option.o \
112 obj/os_amiga.o \
113 obj/popupmnu.o \
114 obj/quickfix.o \
115 obj/regexp.o \
116 obj/screen.o \
117 obj/search.o \
118 obj/spell.o \
119 obj/syntax.o \
120 obj/tag.o \
121 obj/term.o \
122 obj/ui.o \
123 obj/undo.o \
124 obj/window.o \
125 $(TERMLIB)
127 PRO = proto/buffer.pro \
128 proto/charset.pro \
129 proto/diff.pro \
130 proto/digraph.pro \
131 proto/edit.pro \
132 proto/eval.pro \
133 proto/ex_cmds.pro \
134 proto/ex_cmds2.pro \
135 proto/ex_docmd.pro \
136 proto/ex_eval.pro \
137 proto/ex_getln.pro \
138 proto/fileio.pro \
139 proto/fold.pro \
140 proto/getchar.pro \
141 proto/hardcopy.pro \
142 proto/hashtab.pro \
143 proto/main.pro \
144 proto/mark.pro \
145 proto/memfile.pro \
146 proto/memline.pro \
147 proto/menu.pro \
148 proto/message.pro \
149 proto/misc1.pro \
150 proto/misc2.pro \
151 proto/move.pro \
152 proto/mbyte.pro \
153 proto/normal.pro \
154 proto/ops.pro \
155 proto/option.pro \
156 proto/os_amiga.pro \
157 proto/popupmnu.pro \
158 proto/quickfix.pro \
159 proto/regexp.pro \
160 proto/screen.pro \
161 proto/search.pro \
162 proto/spell.pro \
163 proto/syntax.pro \
164 proto/tag.pro \
165 proto/term.pro \
166 proto/termlib.pro \
167 proto/ui.pro \
168 proto/undo.pro \
169 proto/window.pro
171 all: Vim xxd/Xxd
173 Vim: obj $(OBJ) version.c version.h
174 $(CC) $(CFLAGS) version.c -o obj/version.o
175 $(LN) $(LNFLAGS) -m -o Vim $(OBJ) obj/version.o $(LIBS)
177 debug: obj $(OBJ) version.c version.h
178 $(CC) $(CFLAGS) version.c -o obj/version.o
179 $(LN) $(LNFLAGS) -m -g -o Vim $(OBJ) obj/version.o $(LIBS)
181 xxd/Xxd: xxd/xxd.c
182 $(SHELL) -c cd xxd; make -f Make_amiga.mak; cd ..
184 # Making prototypes with Manx has been removed, because it caused too many
185 # problems.
186 #proto: $(SYMS) $(PRO)
188 obj:
189 makedir obj
191 tags: $(SRC) $(INCL)
192 $(SHELL) -c ctags $(SRC) *.h
194 # can't use delete here, too many file names
195 clean:
196 $(DEL) $(OBJ) obj/version.o \
197 obj/termlib.o Vim $(SYMS) xxd/Xxd
199 test:
200 $(SHELL) -c cd testdir; make -f Make_amiga.mak; cd ..
202 $(SYMS): $(INCL) $(PRO)
203 $(CC) $(CFLAGS) -ho$(SYMS) vim.h
205 ###########################################################################
207 # Unfortunately, Manx's make doesn't understand a .c.o rule, so each
208 # compilation command has to be given explicitly.
210 CCSYM = $(CC) $(CFLAGS) -hi$(SYMS) -o
211 CCNOSYM = $(CC) $(CFLAGS) -o
213 $(OBJ): $(SYMS)
215 obj/buffer.o: buffer.c
216 $(CCSYM) $@ buffer.c
218 obj/charset.o: charset.c
219 $(CCSYM) $@ charset.c
221 obj/diff.o: diff.c
222 $(CCSYM) $@ diff.c
224 obj/digraph.o: digraph.c
225 $(CCSYM) $@ digraph.c
227 obj/edit.o: edit.c
228 $(CCSYM) $@ edit.c
230 obj/eval.o: eval.c
231 $(CCSYM) $@ eval.c
233 obj/ex_cmds.o: ex_cmds.c
234 $(CCSYM) $@ ex_cmds.c
236 obj/ex_cmds2.o: ex_cmds2.c
237 $(CCSYM) $@ ex_cmds2.c
239 # Don't use $(SYMS) here, because ex_docmd.c defines DO_DECLARE_EXCMD
240 obj/ex_docmd.o: ex_docmd.c ex_cmds.h
241 $(CCNOSYM) $@ ex_docmd.c
243 obj/ex_eval.o: ex_eval.c ex_cmds.h
244 $(CCSYM) $@ ex_eval.c
246 obj/ex_getln.o: ex_getln.c
247 $(CCSYM) $@ ex_getln.c
249 obj/fileio.o: fileio.c
250 $(CCSYM) $@ fileio.c
252 obj/fold.o: fold.c
253 $(CCSYM) $@ fold.c
255 obj/getchar.o: getchar.c
256 $(CCSYM) $@ getchar.c
258 obj/hardcopy.o: hardcopy.c
259 $(CCSYM) $@ hardcopy.c
261 obj/hashtab.o: hashtab.c
262 $(CCSYM) $@ hashtab.c
264 # Don't use $(SYMS) here, because main.c defines EXTERN
265 obj/main.o: main.c option.h globals.h
266 $(CCNOSYM) $@ main.c
268 obj/mark.o: mark.c
269 $(CCSYM) $@ mark.c
271 obj/memfile.o: memfile.c
272 $(CCSYM) $@ memfile.c
274 obj/memline.o: memline.c
275 $(CCSYM) $@ memline.c
277 obj/menu.o: menu.c
278 $(CCSYM) $@ menu.c
280 # Don't use $(SYMS) here, because message.c defines MESSAGE_FILE
281 obj/message.o: message.c
282 $(CCNOSYM) $@ message.c
284 obj/misc1.o: misc1.c
285 $(CCSYM) $@ misc1.c
287 obj/misc2.o: misc2.c
288 $(CCSYM) $@ misc2.c
290 obj/move.o: move.c
291 $(CCSYM) $@ move.c
293 obj/mbyte.o: mbyte.c
294 $(CCSYM) $@ mbyte.c
296 obj/normal.o: normal.c
297 $(CCSYM) $@ normal.c
299 obj/ops.o: ops.c
300 $(CCSYM) $@ ops.c
302 # Don't use $(SYMS) here, because option.h defines variables here
303 obj/option.o: option.c
304 $(CCNOSYM) $@ option.c
306 obj/os_amiga.o: os_amiga.c
307 $(CCSYM) $@ os_amiga.c
309 obj/popupmnu.o: popupmnu.c
310 $(CCSYM) $@ popupmnu.c
312 obj/quickfix.o: quickfix.c
313 $(CCSYM) $@ quickfix.c
315 obj/regexp.o: regexp.c
316 $(CCSYM) $@ regexp.c
318 obj/screen.o: screen.c
319 $(CCSYM) $@ screen.c
321 obj/search.o: search.c
322 $(CCSYM) $@ search.c
324 obj/spell.o: spell.c
325 $(CCSYM) $@ spell.c
327 obj/syntax.o: syntax.c
328 $(CCSYM) $@ syntax.c
330 obj/tag.o: tag.c
331 $(CCSYM) $@ tag.c
333 obj/term.o: term.c term.h
334 $(CCSYM) $@ term.c
336 obj/termlib.o: termlib.c
337 $(CCSYM) $@ termlib.c
339 obj/ui.o: ui.c
340 $(CCSYM) $@ ui.c
342 obj/undo.o: undo.c
343 $(CCSYM) $@ undo.c
345 obj/window.o: window.c
346 $(CCSYM) $@ window.c