7
|
1 #
|
|
2 # Makefile for Vim on RISC OS - Andy Wingate
|
|
3 #
|
|
4
|
36
|
5 GCC = gcc -mthrowback
|
|
6 CFLAGS = -DRISCOS -DFEAT_GUI
|
|
7 CC = $(GCC) $(CFLAGS) -O2
|
7
|
8 # -DUP_BC_PC_EXTERN for term.c needed as BC defined in termlib.c and term.c
|
|
9
|
|
10 TERMFLAG = -DUP_BC_PC_EXTERN
|
|
11
|
|
12 ASMFLAGS = -throwback -objasm -gcc
|
|
13
|
36
|
14 OBJS = o.buffer o.charset o.diff o.digraph o.edit o.eval o.ex_cmds o.ex_cmds2 \
|
440
|
15 o.ex_docmd o.ex_eval o.ex_getln o.fileio o.fold o.getchar \
|
799
|
16 o.hardcopy o.hashtab o.main o.mark o.mbyte \
|
7
|
17 o.memfile o.memline o.menu o.message o.misc1 o.misc2 o.move \
|
799
|
18 o.normal o.ops o.option o.popupmnu o.quickfix o.regexp o.screen \
|
540
|
19 o.search \
|
227
|
20 o.spell o.syntax o.tag o.term o.termlib o.ui o.undo o.version \
|
|
21 o.window o.os_riscos o.swis o.gui o.gui_riscos
|
7
|
22
|
|
23 Vim: $(OBJS)
|
|
24 $(GCC) -o Vim $(OBJS)
|
|
25
|
|
26 install: Vim
|
|
27 squeeze -v Vim @.!Vim.Vim
|
|
28
|
36
|
29 clean:
|
7
|
30 create o.!fake! 0
|
|
31 wipe o.* ~cf
|
|
32 remove Vim
|
|
33
|
|
34 o.swis: s.swis
|
|
35 as $(ASMFLAGS) -o o.swis s.swis
|
|
36
|
|
37 # Rules for object files
|
36
|
38
|
|
39 o.%: c.%
|
|
40 $(CC) -c $< -o $@
|
7
|
41
|
|
42 o.buffer: c.buffer
|
|
43
|
|
44 o.charset: c.charset
|
|
45
|
|
46 o.digraph: c.digraph
|
|
47
|
|
48 o.diff: c.diff
|
|
49
|
|
50 o.edit: c.edit
|
|
51
|
|
52 o.eval: c.eval
|
|
53
|
|
54 o.ex_cmds: c.ex_cmds
|
|
55
|
|
56 o.ex_cmds2: c.ex_cmds2
|
|
57
|
|
58 o.ex_docmd: c.ex_docmd
|
|
59
|
|
60 o.ex_eval: c.ex_eval
|
|
61
|
|
62 o.ex_getln: c.ex_getln
|
|
63
|
|
64 o.fileio: c.fileio
|
|
65
|
|
66 o.fold: c.fold
|
|
67
|
|
68 o.getchar: c.getchar
|
|
69
|
440
|
70 o.hardcopy: c.hardcopy
|
|
71
|
799
|
72 o.hashtab: c.hashtab
|
119
|
73
|
7
|
74 o.gui: c.gui
|
|
75
|
|
76 o.gui_riscos: c.gui_riscos
|
|
77
|
|
78 o.main: c.main
|
|
79
|
|
80 o.mark: c.mark
|
|
81
|
|
82 o.mbyte: c.mbyte
|
|
83
|
|
84 o.memfile: c.memfile
|
|
85
|
|
86 o.memline: c.memline
|
|
87
|
|
88 o.menu: c.menu
|
|
89
|
|
90 o.message: c.message
|
|
91
|
|
92 o.misc1: c.misc1
|
|
93
|
|
94 o.misc2: c.misc2
|
|
95
|
|
96 o.move: c.move
|
|
97
|
|
98 o.normal: c.normal
|
|
99
|
|
100 o.ops: c.ops
|
|
101
|
|
102 o.option: c.option
|
|
103
|
|
104 o.os_riscos: c.os_riscos
|
|
105
|
|
106 o.pty: c.pty
|
|
107
|
799
|
108 o.popupmnu: c.popupmnu
|
540
|
109
|
7
|
110 o.quickfix: c.quickfix
|
|
111
|
|
112 o.regexp: c.regexp
|
|
113
|
|
114 o.screen: c.screen
|
|
115
|
|
116 o.search: c.search
|
|
117
|
227
|
118 o.spell: c.spell
|
|
119
|
7
|
120 o.syntax: c.syntax
|
|
121
|
|
122 o.tag: c.tag
|
|
123
|
|
124 o.term: c.term
|
|
125 $(CC) $(TERMFLAG) -c c.term -o o.term
|
|
126
|
|
127 o.termlib: c.termlib
|
|
128
|
|
129 o.ui: c.ui
|
|
130
|
|
131 o.undo: c.undo
|
|
132
|
|
133 o.version: c.version
|
|
134
|
|
135 o.window: c.window
|