blob: 6ac2f94b50941d3eb7f05831a810e43800f83992 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001#
2# Makefile for Vim on RISC OS - Andy Wingate
3#
4
5GCC = gcc -mthrowback
6CFLAGS = -DRISCOS -DFEAT_GUI
7# Optimising on ex_docmd.c seems to cause segfaults on compilation. Needs investigation.
8CCEX_DOCMD = $(GCC) $(CFLAGS)
9CC = $(GCC) $(CFLAGS) -O2
10# -DUP_BC_PC_EXTERN for term.c needed as BC defined in termlib.c and term.c
11
12TERMFLAG = -DUP_BC_PC_EXTERN
13
14ASMFLAGS = -throwback -objasm -gcc
15
16OBJS = o.buffer o.charset o.digraph o.edit o.eval o.ex_cmds o.ex_cmds2 o.diff \
17 o.ex_docmd o.ex_eval o.ex_getln o.fileio o.fold o.getchar o.main o.mark o.mbyte \
18 o.memfile o.memline o.menu o.message o.misc1 o.misc2 o.move \
19 o.normal o.ops o.option o.quickfix o.regexp o.screen o.search \
20 o.syntax o.tag o.term o.termlib o.ui o.undo o.version o.window \
21 o.os_riscos o.swis o.gui o.gui_riscos
22
23Vim: $(OBJS)
24 $(GCC) -o Vim $(OBJS)
25
26install: Vim
27 squeeze -v Vim @.!Vim.Vim
28
29clean:
30 create o.!fake! 0
31 wipe o.* ~cf
32 remove Vim
33
34o.swis: s.swis
35 as $(ASMFLAGS) -o o.swis s.swis
36
37# Rules for object files
38# You shouldn't need to put all this information in as all but term.c have the same
39# rule (and only then to save extra defines) but some versions of make are awkward.
40
41o.buffer: c.buffer
42 $(CC) -c c.buffer -o o.buffer
43
44o.charset: c.charset
45 $(CC) -c c.charset -o o.charset
46
47o.digraph: c.digraph
48 $(CC) -c c.digraph -o o.digraph
49
50o.diff: c.diff
51 $(CC) -c c.diff -o o.diff
52
53o.edit: c.edit
54 $(CC) -c c.edit -o o.edit
55
56o.eval: c.eval
57 $(CC) -c c.eval -o o.eval
58
59o.ex_cmds: c.ex_cmds
60 $(CC) -c c.ex_cmds -o o.ex_cmds
61
62o.ex_cmds2: c.ex_cmds2
63 $(CC) -c c.ex_cmds2 -o o.ex_cmds2
64
65o.ex_docmd: c.ex_docmd
66 $(CCEX_DOCMD) -c c.ex_docmd -o o.ex_docmd
67
68o.ex_eval: c.ex_eval
69 $(CCEX_DOCMD) -c c.ex_eval -o o.ex_eval
70
71o.ex_getln: c.ex_getln
72 $(CC) -c c.ex_getln -o o.ex_getln
73
74o.fileio: c.fileio
75 $(CC) -c c.fileio -o o.fileio
76
77o.fold: c.fold
78 $(CC) -c c.fold -o o.fold
79
80o.getchar: c.getchar
81 $(CC) -c c.getchar -o o.getchar
82
83o.gui: c.gui
84 $(CC) -c c.gui -o o.gui
85
86o.gui_riscos: c.gui_riscos
87 $(CC) -c c.gui_riscos -o o.gui_riscos
88
89o.main: c.main
90 $(CC) -c c.main -o o.main
91
92o.mark: c.mark
93 $(CC) -c c.mark -o o.mark
94
95o.mbyte: c.mbyte
96 $(CC) -c c.mbyte -o o.mbyte
97
98o.memfile: c.memfile
99 $(CC) -c c.memfile -o o.memfile
100
101o.memline: c.memline
102 $(CC) -c c.memline -o o.memline
103
104o.menu: c.menu
105 $(CC) -c c.menu -o o.menu
106
107o.message: c.message
108 $(CC) -c c.message -o o.message
109
110o.misc1: c.misc1
111 $(CC) -c c.misc1 -o o.misc1
112
113o.misc2: c.misc2
114 $(CC) -c c.misc2 -o o.misc2
115
116o.move: c.move
117 $(CC) -c c.move -o o.move
118
119o.normal: c.normal
120 $(CC) -c c.normal -o o.normal
121
122o.ops: c.ops
123 $(CC) -c c.ops -o o.ops
124
125o.option: c.option
126 $(CC) -c c.option -o o.option
127
128o.os_riscos: c.os_riscos
129 $(CC) -c c.os_riscos -o o.os_riscos
130
131o.pty: c.pty
132 $(CC) -c c.pty -o p.pty
133
134o.quickfix: c.quickfix
135 $(CC) -c c.quickfix -o o.quickfix
136
137o.regexp: c.regexp
138 $(CC) -c c.regexp -o o.regexp
139
140o.screen: c.screen
141 $(CC) -c c.screen -o o.screen
142
143o.search: c.search
144 $(CC) -c c.search -o o.search
145
146o.syntax: c.syntax
147 $(CC) -c c.syntax -o o.syntax
148
149o.tag: c.tag
150 $(CC) -c c.tag -o o.tag
151
152o.term: c.term
153 $(CC) $(TERMFLAG) -c c.term -o o.term
154
155o.termlib: c.termlib
156 $(CC) -c c.termlib -o o.termlib
157
158o.ui: c.ui
159 $(CC) -c c.ui -o o.ui
160
161o.undo: c.undo
162 $(CC) -c c.undo -o o.undo
163
164o.version: c.version
165 $(CC) -c c.version -o o.version
166
167o.window: c.window
168 $(CC) -c c.window -o o.window