7
|
1 #
|
|
2 # Makefile for VIM, using DICE 3
|
|
3 #
|
|
4
|
|
5 #>>>>> choose options:
|
|
6 ### See feature.h for a list of optionals.
|
|
7 ### Any other defines can be included here.
|
|
8 DEFINES = -DHAVE_TGETENT -DUP_BC_PC_EXTERN -DOSPEED_EXTERN
|
|
9
|
|
10 #>>>>> if HAVE_TGETENT is defined o/termlib.o has to be used
|
|
11 TERMLIB = o/termlib.o
|
|
12 #TERMLIB =
|
|
13
|
|
14 #>>>>> end of choices
|
|
15 ###########################################################################
|
|
16
|
|
17 CFLAGS = -c -DAMIGA -Iproto $(DEFINES)
|
|
18
|
|
19 SYMS = vim.syms
|
|
20 PRE = -H${SYMS}=vim.h
|
|
21 LIBS = -la
|
|
22 CC = dcc
|
|
23 LD = dcc
|
|
24
|
|
25 .c.o:
|
|
26 ${CC} ${PRE} ${CFLAGS} $< -o $@
|
|
27
|
|
28 SRC = \
|
|
29 buffer.c \
|
|
30 charset.c \
|
|
31 diff.c \
|
|
32 digraph.c \
|
|
33 edit.c \
|
|
34 eval.c \
|
|
35 ex_cmds.c \
|
|
36 ex_cmds2.c \
|
|
37 ex_docmd.c \
|
|
38 ex_eval.c \
|
|
39 ex_getln.c \
|
|
40 fileio.c \
|
|
41 fold.c \
|
|
42 getchar.c \
|
440
|
43 hardcopy.c \
|
800
|
44 hashtab.c \
|
7
|
45 main.c \
|
|
46 mark.c \
|
|
47 memfile.c \
|
|
48 memline.c \
|
|
49 menu.c \
|
|
50 message.c \
|
|
51 misc1.c \
|
|
52 misc2.c \
|
|
53 move.c \
|
|
54 mbyte.c \
|
|
55 normal.c \
|
|
56 ops.c \
|
|
57 option.c \
|
|
58 os_amiga.c \
|
800
|
59 popupmnu.c \
|
7
|
60 quickfix.c \
|
|
61 regexp.c \
|
|
62 screen.c \
|
|
63 search.c \
|
221
|
64 spell.c \
|
7
|
65 syntax.c \
|
|
66 tag.c \
|
|
67 term.c \
|
|
68 ui.c \
|
|
69 undo.c \
|
|
70 window.c \
|
|
71 version.c
|
|
72
|
|
73 OBJ = o/buffer.o \
|
|
74 o/charset.o \
|
|
75 o/diff.o \
|
|
76 o/digraph.o \
|
|
77 o/edit.o \
|
|
78 o/eval.o \
|
|
79 o/ex_cmds.o \
|
|
80 o/ex_cmds2.o \
|
|
81 o/ex_docmd.o \
|
|
82 o/ex_eval.o \
|
|
83 o/ex_getln.o \
|
|
84 o/fileio.o \
|
|
85 o/fold.o \
|
|
86 o/getchar.o \
|
440
|
87 o/hardcopy.o \
|
800
|
88 o/hashtab.o \
|
7
|
89 o/main.o \
|
|
90 o/mark.o \
|
|
91 o/memfile.o \
|
|
92 o/memline.o \
|
|
93 o/menu.o \
|
|
94 o/message.o \
|
|
95 o/misc1.o \
|
|
96 o/misc2.o \
|
|
97 o/move.o \
|
|
98 o/mbyte.o \
|
|
99 o/normal.o \
|
|
100 o/ops.o \
|
|
101 o/option.o \
|
|
102 o/os_amiga.o \
|
800
|
103 o/popupmnu.o \
|
7
|
104 o/quickfix.o \
|
|
105 o/regexp.o \
|
|
106 o/screen.o \
|
|
107 o/search.o \
|
221
|
108 o/spell.o \
|
7
|
109 o/syntax.o \
|
|
110 o/tag.o \
|
|
111 o/term.o \
|
|
112 o/ui.o \
|
|
113 o/undo.o \
|
|
114 o/window.o \
|
|
115 $(TERMLIB)
|
|
116
|
|
117 Vim: $(OBJ) version.c version.h
|
|
118 ${CC} $(CFLAGS) version.c -o o/version.o
|
|
119 ${LD} -o Vim $(OBJ) o/version.o $(LIBS)
|
|
120
|
|
121 debug: $(OBJ) version.c version.h
|
|
122 ${CC} $(CFLAGS) version.c -o o/version.o
|
|
123 ${LD} -s -o Vim $(OBJ) o/version.o $(LIBS)
|
|
124
|
|
125 tags:
|
|
126 csh -c ctags $(SRC) *.h
|
|
127
|
|
128 clean:
|
|
129 delete o/*.o Vim $(SYMS)
|
|
130
|
|
131 $(SYMS) : vim.h globals.h keymap.h macros.h ascii.h term.h os_amiga.h structs.h
|
|
132 delete $(SYMS)
|
|
133
|
|
134 ###########################################################################
|
|
135
|
|
136 o/buffer.o: buffer.c $(SYMS)
|
|
137
|
|
138 o/charset.o: charset.c $(SYMS)
|
|
139
|
|
140 o/diff.o: diff.c $(SYMS)
|
|
141
|
|
142 o/digraph.o: digraph.c $(SYMS)
|
|
143
|
|
144 o/edit.o: edit.c $(SYMS)
|
|
145
|
|
146 o/eval.o: eval.c $(SYMS)
|
|
147
|
|
148 o/ex_cmds.o: ex_cmds.c $(SYMS)
|
|
149
|
|
150 o/ex_cmds2.o: ex_cmds2.c $(SYMS)
|
|
151
|
|
152 o/ex_docmd.o: ex_docmd.c $(SYMS) ex_cmds.h
|
|
153
|
|
154 o/ex_eval.o: ex_eval.c $(SYMS) ex_cmds.h
|
|
155
|
|
156 o/ex_getln.o: ex_getln.c $(SYMS)
|
|
157
|
|
158 o/fileio.o: fileio.c $(SYMS)
|
|
159
|
|
160 o/fold.o: fold.c $(SYMS)
|
|
161
|
|
162 o/getchar.o: getchar.c $(SYMS)
|
|
163
|
440
|
164 o/hardcopy.o: hardcopy.c $(SYMS)
|
|
165
|
800
|
166 o/hashtab.o: hashtab.c $(SYMS)
|
119
|
167
|
7
|
168 o/main.o: main.c $(SYMS)
|
|
169
|
|
170 o/mark.o: mark.c $(SYMS)
|
|
171
|
|
172 o/memfile.o: memfile.c $(SYMS)
|
|
173
|
|
174 o/memline.o: memline.c $(SYMS)
|
|
175
|
|
176 o/menu.o: menu.c $(SYMS)
|
|
177
|
|
178 o/message.o: message.c $(SYMS)
|
|
179
|
|
180 o/misc1.o: misc1.c $(SYMS)
|
|
181
|
|
182 o/misc2.o: misc2.c $(SYMS)
|
|
183
|
|
184 o/move.o: move.c $(SYMS)
|
|
185
|
|
186 o/mbyte.o: mbyte.c $(SYMS)
|
|
187
|
|
188 o/normal.o: normal.c $(SYMS)
|
|
189
|
|
190 o/ops.o: ops.c $(SYMS)
|
|
191
|
|
192 o/option.o: option.c $(SYMS)
|
|
193 # Because of a bug in DC1 2.06.40, initialisation of unions does not
|
|
194 # work correctly. dc1-21 is DC1 2.06.21 which does work.
|
|
195 # rename dc1-21 dc1
|
|
196 ${CC} ${CFLAGS} option.c -o o/option.o
|
|
197 # rename dc1 dc1-21
|
|
198
|
|
199 o/os_amiga.o: os_amiga.c $(SYMS) os_amiga.h
|
|
200
|
800
|
201 o/popupmnu.o: popupmnu.c $(SYMS)
|
540
|
202
|
7
|
203 o/quickfix.o: quickfix.c $(SYMS)
|
|
204
|
|
205 o/regexp.o: regexp.c $(SYMS) regexp.h
|
|
206
|
|
207 o/screen.o: screen.c $(SYMS)
|
|
208
|
|
209 o/search.o: search.c $(SYMS) regexp.h
|
|
210
|
221
|
211 o/spell.o: spell.c $(SYMS)
|
|
212
|
7
|
213 o/syntax.o: syntax.c $(SYMS)
|
|
214
|
|
215 o/tag.o: tag.c $(SYMS)
|
|
216
|
|
217 o/term.o: term.c $(SYMS) term.h
|
|
218
|
|
219 o/termlib.o: termlib.c $(SYMS)
|
|
220
|
|
221 o/ui.o: ui.c $(SYMS)
|
|
222
|
|
223 o/undo.o: undo.c $(SYMS)
|
|
224
|
|
225 o/window.o: window.c $(SYMS)
|