blob: f9ceb50c5c970daa8a7c116ce939cef57dd0841a [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001#
2# Makefile for VIM, using MorphOS SDK (gcc 2.95.3)
3#
4
5# Uncomment the following two lines and comment the two after in
6# case you want to play with GVIM MorphOS. But it's still known
7# to not work at all. So meanwhile it's better to stick with VIM.
8
9# GVIM = -DFEAT_GUI_AMIGA
10# GVIMSRC = gui_amiga.c gui.c
11
12GVIM =
13GVIMSRC =
14
15CFLAGS = -c \
16 -pipe \
17 -O2 \
18 -Wall \
19 \
20 -DNO_ARP \
21 -DUSE_TMPNAM \
22 ${GVIM} \
23 \
24 -I proto \
25 \
26 -noixemul
27
28PRG = Vim
29LIBS = -noixemul -s
30CC = gcc
31LD = gcc
32OBJDUMP = objdump
33RM = rm
34
35.c.o:
36 ${CC} ${CFLAGS} $< -o $@
37
38SRC = buffer.c \
39 charset.c \
40 diff.c \
41 digraph.c \
42 edit.c \
43 eval.c \
44 ex_cmds.c \
45 ex_cmds2.c \
46 ex_docmd.c \
47 ex_eval.c \
48 ex_getln.c \
49 fileio.c \
50 fold.c \
51 getchar.c \
52 main.c \
53 mark.c \
54 mbyte.c \
55 memfile.c \
56 memline.c \
57 menu.c \
58 message.c \
59 misc1.c \
60 misc2.c \
61 move.c \
62 normal.c \
63 ops.c \
64 option.c \
65 os_amiga.c \
66 quickfix.c \
67 regexp.c \
68 screen.c \
69 search.c \
70 syntax.c \
71 tag.c \
72 term.c \
73 ui.c \
74 undo.c \
75 version.c \
76 window.c \
77 ${GVIMSRC}
78
79OBJ = $(SRC:.c=.o)
80
81$(PRG): $(OBJ)
82 ${LD} -o $(PRG) $(OBJ) $(LIBS)
83
84dump: $(PRG)
85 $(OBJDUMP) --reloc --disassemble-all $(PRG) > $(PRG).s
86
87clean:
88 $(RM) -fv $(OBJ) $(PRG) $(PRG).s