Merge branch 'vim'
[MacVim.git] / src / Make_dice.mak
bloba5cb692202305c2e2ae7e801330d4d761bb8f1d2
2 # Makefile for VIM, using DICE 3
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
10 #>>>>> if HAVE_TGETENT is defined o/termlib.o has to be used
11 TERMLIB = o/termlib.o
12 #TERMLIB =
14 #>>>>> end of choices
15 ###########################################################################
17 CFLAGS = -c -DAMIGA -Iproto $(DEFINES)
19 SYMS = vim.syms
20 PRE = -H${SYMS}=vim.h
21 LIBS = -la
22 CC = dcc
23 LD = dcc
25 .c.o:
26 ${CC} ${PRE} ${CFLAGS} $< -o $@
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 \
43 hardcopy.c \
44 hashtab.c \
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 \
59 popupmnu.c \
60 quickfix.c \
61 regexp.c \
62 screen.c \
63 search.c \
64 spell.c \
65 syntax.c \
66 tag.c \
67 term.c \
68 ui.c \
69 undo.c \
70 window.c \
71 version.c
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 \
87 o/hardcopy.o \
88 o/hashtab.o \
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 \
103 o/popupmnu.o \
104 o/quickfix.o \
105 o/regexp.o \
106 o/screen.o \
107 o/search.o \
108 o/spell.o \
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)
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)
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)
125 tags:
126 csh -c ctags $(SRC) *.h
128 clean:
129 delete o/*.o Vim $(SYMS)
131 $(SYMS) : vim.h globals.h keymap.h macros.h ascii.h term.h os_amiga.h structs.h
132 delete $(SYMS)
134 ###########################################################################
136 o/buffer.o: buffer.c $(SYMS)
138 o/charset.o: charset.c $(SYMS)
140 o/diff.o: diff.c $(SYMS)
142 o/digraph.o: digraph.c $(SYMS)
144 o/edit.o: edit.c $(SYMS)
146 o/eval.o: eval.c $(SYMS)
148 o/ex_cmds.o: ex_cmds.c $(SYMS)
150 o/ex_cmds2.o: ex_cmds2.c $(SYMS)
152 o/ex_docmd.o: ex_docmd.c $(SYMS) ex_cmds.h
154 o/ex_eval.o: ex_eval.c $(SYMS) ex_cmds.h
156 o/ex_getln.o: ex_getln.c $(SYMS)
158 o/fileio.o: fileio.c $(SYMS)
160 o/fold.o: fold.c $(SYMS)
162 o/getchar.o: getchar.c $(SYMS)
164 o/hardcopy.o: hardcopy.c $(SYMS)
166 o/hashtab.o: hashtab.c $(SYMS)
168 o/main.o: main.c $(SYMS)
170 o/mark.o: mark.c $(SYMS)
172 o/memfile.o: memfile.c $(SYMS)
174 o/memline.o: memline.c $(SYMS)
176 o/menu.o: menu.c $(SYMS)
178 o/message.o: message.c $(SYMS)
180 o/misc1.o: misc1.c $(SYMS)
182 o/misc2.o: misc2.c $(SYMS)
184 o/move.o: move.c $(SYMS)
186 o/mbyte.o: mbyte.c $(SYMS)
188 o/normal.o: normal.c $(SYMS)
190 o/ops.o: ops.c $(SYMS)
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
199 o/os_amiga.o: os_amiga.c $(SYMS) os_amiga.h
201 o/popupmnu.o: popupmnu.c $(SYMS)
203 o/quickfix.o: quickfix.c $(SYMS)
205 o/regexp.o: regexp.c $(SYMS) regexp.h
207 o/screen.o: screen.c $(SYMS)
209 o/search.o: search.c $(SYMS) regexp.h
211 o/spell.o: spell.c $(SYMS)
213 o/syntax.o: syntax.c $(SYMS)
215 o/tag.o: tag.c $(SYMS)
217 o/term.o: term.c $(SYMS) term.h
219 o/termlib.o: termlib.c $(SYMS)
221 o/ui.o: ui.c $(SYMS)
223 o/undo.o: undo.c $(SYMS)
225 o/window.o: window.c $(SYMS)