blob: 1a64c113d403be90c8535dbf77c766667eb45b15 [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 Moolenaar58d98232005-07-23 22:25:46 +000056 hardcopy.o \
Bram Moolenaar383f9bc2005-01-19 22:18:32 +000057 hashtable.o \
Bram Moolenaar071d4272004-06-13 20:20:40 +000058 main.o \
59 mark.o \
60 memfile.o \
61 memline.o \
62 menu.o \
63 message.o \
64 misc1.o \
65 misc2.o \
66 move.o \
67 mbyte.o \
68 normal.o \
69 ops.o \
70 option.o \
Bram Moolenaar1c7715d2005-10-03 22:02:18 +000071 popupmenu.o \
Bram Moolenaar071d4272004-06-13 20:20:40 +000072 quickfix.o \
73 regexp.o \
74 screen.o \
75 search.o \
Bram Moolenaar217ad922005-03-20 22:37:15 +000076 spell.o \
Bram Moolenaar071d4272004-06-13 20:20:40 +000077 syntax.o \
78 tag.o \
79 term.o \
80 ui.o \
81 undo.o \
82 window.o \
83 os_unix.o
84
85LIBS = -ltermcap
86
87# Default target is making the executable
88all: $(TARGET) $(TOOLS)
89
90# Link the target for normal use
91LFLAGS = -Zcrtdll -s -o $(TARGET) $(LIBS)
92
93$(TARGET): $(OBJ) version.c version.h
94 $(CC) $(CFLAGS) version.c $(OBJ) $(LFLAGS)
95
96xxd/xxd.exe: xxd/xxd.c
97 cd xxd & $(MAKE) -f Make_os2.mak
98
99tee/tee.exe: tee/tee.c
100 cd tee & $(MAKE) -f Makefile
101
102test:
103 cd testdir & $(MAKE) -f Make_os2.mak
104
105clean:
106 -del *.o
107 -del *.exe
108 -del *.~ *~ *.bak
109 cd xxd & $(MAKE) -f Make_os2.mak clean
110 cd tee & $(MAKE) -f Makefile clean
111
112###########################################################################
113
114os_unix.o: os_unix.c $(INCL)
115buffer.o: buffer.c $(INCL)
116charset.o: charset.c $(INCL)
117diff.o: diff.c $(INCL)
118digraph.o: digraph.c $(INCL)
119edit.o: edit.c $(INCL)
120eval.o: eval.c $(INCL)
121ex_cmds.o: ex_cmds.c $(INCL)
122ex_cmds2.o: ex_cmds2.c $(INCL)
123ex_docmd.o: ex_docmd.c $(INCL) ex_cmds.h
124ex_eval.o: ex_eval.c $(INCL) ex_cmds.h
125ex_getln.o: ex_getln.c $(INCL)
126fileio.o: fileio.c $(INCL)
127fold.o: fold.c $(INCL)
128getchar.o: getchar.c $(INCL)
Bram Moolenaar58d98232005-07-23 22:25:46 +0000129hardcopy.o: hardcopy.c $(INCL)
Bram Moolenaar383f9bc2005-01-19 22:18:32 +0000130hashtable.o: hashtable.c $(INCL)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000131main.o: main.c $(INCL)
132mark.o: mark.c $(INCL)
133memfile.o: memfile.c $(INCL)
134memline.o: memline.c $(INCL)
135menu.o: menu.c $(INCL)
136message.o: message.c $(INCL)
137misc1.o: misc1.c $(INCL)
138misc2.o: misc2.c $(INCL)
139move.o: move.c $(INCL)
140mbyte.o: mbyte.c $(INCL)
141normal.o: normal.c $(INCL)
142ops.o: ops.c $(INCL)
143option.o: option.c $(INCL)
Bram Moolenaar1c7715d2005-10-03 22:02:18 +0000144popupmenu.o: popupmenu.c $(INCL)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000145quickfix.o: quickfix.c $(INCL)
146regexp.o: regexp.c $(INCL)
147screen.o: screen.c $(INCL)
148search.o: search.c $(INCL)
Bram Moolenaar217ad922005-03-20 22:37:15 +0000149spell.o: spell.c $(INCL)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000150syntax.o: syntax.c $(INCL)
151tag.o: tag.c $(INCL)
152term.o: term.c $(INCL)
153ui.o: ui.c $(INCL)
154undo.o: undo.c $(INCL)
155window.o: window.c $(INCL)