blob: c18538ef8de43d3e05dc4e795165c5ba226fc5b9 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001#
2# Makefile for VIM on OS/2 using EMX vim:ts=8:sw=8:tw=78
3#
4# Created by: Paul Slootman
5#
6
7### This Makefile has been succesfully tested on these systems.
8### Check the (*) column for remarks, listed below.
9### Later code changes may cause small problems, otherwise Vim is supposed to
10### compile and run without problems.
11### Just to show that this is just like the Unix version!
12
13#system: configurations: version (*) tested by:
14#------------- ------------------------ ------- - ----------
15#OS/2 Warp HPFS gcc-2.7.2+emx-0.9b -GUI 4.5 Paul Slootman
16#OS/2 FAT gcc-2.6.3+emx -GUI 4.5 Karsten Sievert
17
18#>>>>> choose options:
19
20### See feature.h for a list of optionals.
21### Any other defines can be included here.
22
23DEFINES = -DUSE_SYSTEM=1
24
25#>>>>> name of the compiler and linker, name of lib directory
26CC = gcc
27
28#>>>>> end of choices
29
30### Name of target(s)
31TARGET = vim.exe
32
33### Names of the tools that are also made
34TOOLS = xxd/xxd.exe tee/tee.exe
35
36###########################################################################
37
38INCL = vim.h globals.h option.h keymap.h macros.h ascii.h term.h os_unix.h structs.h os_os2_cfg.h
39CFLAGS = -O2 -fno-strength-reduce -DOS2 -Wall -Iproto $(DEFINES)
40
41OBJ = \
42 buffer.o \
43 charset.o \
44 diff.o \
45 digraph.o \
46 edit.o \
47 eval.o \
48 ex_cmds.o \
49 ex_cmds2.o \
50 ex_docmd.o \
51 ex_eval.o \
52 ex_getln.o \
53 fileio.o \
54 fold.o \
55 getchar.o \
Bram Moolenaar383f9bc2005-01-19 22:18:32 +000056 hashtable.o \
Bram Moolenaar071d4272004-06-13 20:20:40 +000057 main.o \
58 mark.o \
59 memfile.o \
60 memline.o \
61 menu.o \
62 message.o \
63 misc1.o \
64 misc2.o \
65 move.o \
66 mbyte.o \
67 normal.o \
68 ops.o \
69 option.o \
70 quickfix.o \
71 regexp.o \
72 screen.o \
73 search.o \
Bram Moolenaar217ad922005-03-20 22:37:15 +000074 spell.o \
Bram Moolenaar071d4272004-06-13 20:20:40 +000075 syntax.o \
76 tag.o \
77 term.o \
78 ui.o \
79 undo.o \
80 window.o \
81 os_unix.o
82
83LIBS = -ltermcap
84
85# Default target is making the executable
86all: $(TARGET) $(TOOLS)
87
88# Link the target for normal use
89LFLAGS = -Zcrtdll -s -o $(TARGET) $(LIBS)
90
91$(TARGET): $(OBJ) version.c version.h
92 $(CC) $(CFLAGS) version.c $(OBJ) $(LFLAGS)
93
94xxd/xxd.exe: xxd/xxd.c
95 cd xxd & $(MAKE) -f Make_os2.mak
96
97tee/tee.exe: tee/tee.c
98 cd tee & $(MAKE) -f Makefile
99
100test:
101 cd testdir & $(MAKE) -f Make_os2.mak
102
103clean:
104 -del *.o
105 -del *.exe
106 -del *.~ *~ *.bak
107 cd xxd & $(MAKE) -f Make_os2.mak clean
108 cd tee & $(MAKE) -f Makefile clean
109
110###########################################################################
111
112os_unix.o: os_unix.c $(INCL)
113buffer.o: buffer.c $(INCL)
114charset.o: charset.c $(INCL)
115diff.o: diff.c $(INCL)
116digraph.o: digraph.c $(INCL)
117edit.o: edit.c $(INCL)
118eval.o: eval.c $(INCL)
119ex_cmds.o: ex_cmds.c $(INCL)
120ex_cmds2.o: ex_cmds2.c $(INCL)
121ex_docmd.o: ex_docmd.c $(INCL) ex_cmds.h
122ex_eval.o: ex_eval.c $(INCL) ex_cmds.h
123ex_getln.o: ex_getln.c $(INCL)
124fileio.o: fileio.c $(INCL)
125fold.o: fold.c $(INCL)
126getchar.o: getchar.c $(INCL)
Bram Moolenaar383f9bc2005-01-19 22:18:32 +0000127hashtable.o: hashtable.c $(INCL)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000128main.o: main.c $(INCL)
129mark.o: mark.c $(INCL)
130memfile.o: memfile.c $(INCL)
131memline.o: memline.c $(INCL)
132menu.o: menu.c $(INCL)
133message.o: message.c $(INCL)
134misc1.o: misc1.c $(INCL)
135misc2.o: misc2.c $(INCL)
136move.o: move.c $(INCL)
137mbyte.o: mbyte.c $(INCL)
138normal.o: normal.c $(INCL)
139ops.o: ops.c $(INCL)
140option.o: option.c $(INCL)
141quickfix.o: quickfix.c $(INCL)
142regexp.o: regexp.c $(INCL)
143screen.o: screen.c $(INCL)
144search.o: search.c $(INCL)
Bram Moolenaar217ad922005-03-20 22:37:15 +0000145spell.o: spell.c $(INCL)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000146syntax.o: syntax.c $(INCL)
147tag.o: tag.c $(INCL)
148term.o: term.c $(INCL)
149ui.o: ui.c $(INCL)
150undo.o: undo.c $(INCL)
151window.o: window.c $(INCL)