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