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 \
|
119
|
43 hashtable.c \
|
7
|
44 main.c \
|
|
45 mark.c \
|
|
46 memfile.c \
|
|
47 memline.c \
|
|
48 menu.c \
|
|
49 message.c \
|
|
50 misc1.c \
|
|
51 misc2.c \
|
|
52 move.c \
|
|
53 mbyte.c \
|
|
54 normal.c \
|
|
55 ops.c \
|
|
56 option.c \
|
|
57 os_amiga.c \
|
|
58 quickfix.c \
|
|
59 regexp.c \
|
|
60 screen.c \
|
|
61 search.c \
|
221
|
62 spell.c \
|
7
|
63 syntax.c \
|
|
64 tag.c \
|
|
65 term.c \
|
|
66 ui.c \
|
|
67 undo.c \
|
|
68 window.c \
|
|
69 version.c
|
|
70
|
|
71 OBJ = o/buffer.o \
|
|
72 o/charset.o \
|
|
73 o/diff.o \
|
|
74 o/digraph.o \
|
|
75 o/edit.o \
|
|
76 o/eval.o \
|
|
77 o/ex_cmds.o \
|
|
78 o/ex_cmds2.o \
|
|
79 o/ex_docmd.o \
|
|
80 o/ex_eval.o \
|
|
81 o/ex_getln.o \
|
|
82 o/fileio.o \
|
|
83 o/fold.o \
|
|
84 o/getchar.o \
|
119
|
85 o/hashtable.o \
|
7
|
86 o/main.o \
|
|
87 o/mark.o \
|
|
88 o/memfile.o \
|
|
89 o/memline.o \
|
|
90 o/menu.o \
|
|
91 o/message.o \
|
|
92 o/misc1.o \
|
|
93 o/misc2.o \
|
|
94 o/move.o \
|
|
95 o/mbyte.o \
|
|
96 o/normal.o \
|
|
97 o/ops.o \
|
|
98 o/option.o \
|
|
99 o/os_amiga.o \
|
|
100 o/quickfix.o \
|
|
101 o/regexp.o \
|
|
102 o/screen.o \
|
|
103 o/search.o \
|
221
|
104 o/spell.o \
|
7
|
105 o/syntax.o \
|
|
106 o/tag.o \
|
|
107 o/term.o \
|
|
108 o/ui.o \
|
|
109 o/undo.o \
|
|
110 o/window.o \
|
|
111 $(TERMLIB)
|
|
112
|
|
113 Vim: $(OBJ) version.c version.h
|
|
114 ${CC} $(CFLAGS) version.c -o o/version.o
|
|
115 ${LD} -o Vim $(OBJ) o/version.o $(LIBS)
|
|
116
|
|
117 debug: $(OBJ) version.c version.h
|
|
118 ${CC} $(CFLAGS) version.c -o o/version.o
|
|
119 ${LD} -s -o Vim $(OBJ) o/version.o $(LIBS)
|
|
120
|
|
121 tags:
|
|
122 csh -c ctags $(SRC) *.h
|
|
123
|
|
124 clean:
|
|
125 delete o/*.o Vim $(SYMS)
|
|
126
|
|
127 $(SYMS) : vim.h globals.h keymap.h macros.h ascii.h term.h os_amiga.h structs.h
|
|
128 delete $(SYMS)
|
|
129
|
|
130 ###########################################################################
|
|
131
|
|
132 o/buffer.o: buffer.c $(SYMS)
|
|
133
|
|
134 o/charset.o: charset.c $(SYMS)
|
|
135
|
|
136 o/diff.o: diff.c $(SYMS)
|
|
137
|
|
138 o/digraph.o: digraph.c $(SYMS)
|
|
139
|
|
140 o/edit.o: edit.c $(SYMS)
|
|
141
|
|
142 o/eval.o: eval.c $(SYMS)
|
|
143
|
|
144 o/ex_cmds.o: ex_cmds.c $(SYMS)
|
|
145
|
|
146 o/ex_cmds2.o: ex_cmds2.c $(SYMS)
|
|
147
|
|
148 o/ex_docmd.o: ex_docmd.c $(SYMS) ex_cmds.h
|
|
149
|
|
150 o/ex_eval.o: ex_eval.c $(SYMS) ex_cmds.h
|
|
151
|
|
152 o/ex_getln.o: ex_getln.c $(SYMS)
|
|
153
|
|
154 o/fileio.o: fileio.c $(SYMS)
|
|
155
|
|
156 o/fold.o: fold.c $(SYMS)
|
|
157
|
|
158 o/getchar.o: getchar.c $(SYMS)
|
|
159
|
119
|
160 o/hashtable.o: hashtable.c $(SYMS)
|
|
161
|
7
|
162 o/main.o: main.c $(SYMS)
|
|
163
|
|
164 o/mark.o: mark.c $(SYMS)
|
|
165
|
|
166 o/memfile.o: memfile.c $(SYMS)
|
|
167
|
|
168 o/memline.o: memline.c $(SYMS)
|
|
169
|
|
170 o/menu.o: menu.c $(SYMS)
|
|
171
|
|
172 o/message.o: message.c $(SYMS)
|
|
173
|
|
174 o/misc1.o: misc1.c $(SYMS)
|
|
175
|
|
176 o/misc2.o: misc2.c $(SYMS)
|
|
177
|
|
178 o/move.o: move.c $(SYMS)
|
|
179
|
|
180 o/mbyte.o: mbyte.c $(SYMS)
|
|
181
|
|
182 o/normal.o: normal.c $(SYMS)
|
|
183
|
|
184 o/ops.o: ops.c $(SYMS)
|
|
185
|
|
186 o/option.o: option.c $(SYMS)
|
|
187 # Because of a bug in DC1 2.06.40, initialisation of unions does not
|
|
188 # work correctly. dc1-21 is DC1 2.06.21 which does work.
|
|
189 # rename dc1-21 dc1
|
|
190 ${CC} ${CFLAGS} option.c -o o/option.o
|
|
191 # rename dc1 dc1-21
|
|
192
|
|
193 o/os_amiga.o: os_amiga.c $(SYMS) os_amiga.h
|
|
194
|
|
195 o/quickfix.o: quickfix.c $(SYMS)
|
|
196
|
|
197 o/regexp.o: regexp.c $(SYMS) regexp.h
|
|
198
|
|
199 o/screen.o: screen.c $(SYMS)
|
|
200
|
|
201 o/search.o: search.c $(SYMS) regexp.h
|
|
202
|
221
|
203 o/spell.o: spell.c $(SYMS)
|
|
204
|
7
|
205 o/syntax.o: syntax.c $(SYMS)
|
|
206
|
|
207 o/tag.o: tag.c $(SYMS)
|
|
208
|
|
209 o/term.o: term.c $(SYMS) term.h
|
|
210
|
|
211 o/termlib.o: termlib.c $(SYMS)
|
|
212
|
|
213 o/ui.o: ui.c $(SYMS)
|
|
214
|
|
215 o/undo.o: undo.c $(SYMS)
|
|
216
|
|
217 o/window.o: window.c $(SYMS)
|