blob: 42dbdb346eaa1952eb6e2ede776dd69d7b945e48 [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
Bram Moolenaar446cb832008-06-24 21:56:24 +00007### This Makefile has been successfully tested on these systems.
Bram Moolenaar071d4272004-06-13 20:20:40 +00008### 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 = \
Bram Moolenaaredac1852010-05-18 20:34:20 +020042 blowfish.o \
Bram Moolenaar071d4272004-06-13 20:20:40 +000043 buffer.o \
44 charset.o \
45 diff.o \
46 digraph.o \
47 edit.o \
48 eval.o \
49 ex_cmds.o \
50 ex_cmds2.o \
51 ex_docmd.o \
52 ex_eval.o \
53 ex_getln.o \
54 fileio.o \
55 fold.o \
56 getchar.o \
Bram Moolenaar58d98232005-07-23 22:25:46 +000057 hardcopy.o \
Bram Moolenaarc01140a2006-03-24 22:21:52 +000058 hashtab.o \
Bram Moolenaar071d4272004-06-13 20:20:40 +000059 main.o \
60 mark.o \
61 memfile.o \
62 memline.o \
63 menu.o \
64 message.o \
65 misc1.o \
66 misc2.o \
67 move.o \
68 mbyte.o \
69 normal.o \
70 ops.o \
71 option.o \
Bram Moolenaarc01140a2006-03-24 22:21:52 +000072 popupmnu.o \
Bram Moolenaar071d4272004-06-13 20:20:40 +000073 quickfix.o \
74 regexp.o \
75 screen.o \
76 search.o \
Bram Moolenaaredac1852010-05-18 20:34:20 +020077 sha256.o \
Bram Moolenaar217ad922005-03-20 22:37:15 +000078 spell.o \
Bram Moolenaar071d4272004-06-13 20:20:40 +000079 syntax.o \
80 tag.o \
81 term.o \
82 ui.o \
83 undo.o \
84 window.o \
85 os_unix.o
86
87LIBS = -ltermcap
88
89# Default target is making the executable
90all: $(TARGET) $(TOOLS)
91
92# Link the target for normal use
93LFLAGS = -Zcrtdll -s -o $(TARGET) $(LIBS)
94
95$(TARGET): $(OBJ) version.c version.h
96 $(CC) $(CFLAGS) version.c $(OBJ) $(LFLAGS)
97
98xxd/xxd.exe: xxd/xxd.c
99 cd xxd & $(MAKE) -f Make_os2.mak
100
101tee/tee.exe: tee/tee.c
102 cd tee & $(MAKE) -f Makefile
103
104test:
105 cd testdir & $(MAKE) -f Make_os2.mak
106
107clean:
108 -del *.o
109 -del *.exe
110 -del *.~ *~ *.bak
111 cd xxd & $(MAKE) -f Make_os2.mak clean
112 cd tee & $(MAKE) -f Makefile clean
113
114###########################################################################
115
116os_unix.o: os_unix.c $(INCL)
Bram Moolenaaredac1852010-05-18 20:34:20 +0200117blowfish.o: blowfish.c $(INCL)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000118buffer.o: buffer.c $(INCL)
119charset.o: charset.c $(INCL)
120diff.o: diff.c $(INCL)
121digraph.o: digraph.c $(INCL)
122edit.o: edit.c $(INCL)
123eval.o: eval.c $(INCL)
124ex_cmds.o: ex_cmds.c $(INCL)
125ex_cmds2.o: ex_cmds2.c $(INCL)
126ex_docmd.o: ex_docmd.c $(INCL) ex_cmds.h
127ex_eval.o: ex_eval.c $(INCL) ex_cmds.h
128ex_getln.o: ex_getln.c $(INCL)
129fileio.o: fileio.c $(INCL)
130fold.o: fold.c $(INCL)
131getchar.o: getchar.c $(INCL)
Bram Moolenaar58d98232005-07-23 22:25:46 +0000132hardcopy.o: hardcopy.c $(INCL)
Bram Moolenaarc01140a2006-03-24 22:21:52 +0000133hashtab.o: hashtab.c $(INCL)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000134main.o: main.c $(INCL)
135mark.o: mark.c $(INCL)
136memfile.o: memfile.c $(INCL)
137memline.o: memline.c $(INCL)
138menu.o: menu.c $(INCL)
139message.o: message.c $(INCL)
140misc1.o: misc1.c $(INCL)
141misc2.o: misc2.c $(INCL)
142move.o: move.c $(INCL)
143mbyte.o: mbyte.c $(INCL)
144normal.o: normal.c $(INCL)
145ops.o: ops.c $(INCL)
146option.o: option.c $(INCL)
Bram Moolenaarc01140a2006-03-24 22:21:52 +0000147popupmnu.o: popupmnu.c $(INCL)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000148quickfix.o: quickfix.c $(INCL)
149regexp.o: regexp.c $(INCL)
150screen.o: screen.c $(INCL)
151search.o: search.c $(INCL)
Bram Moolenaaredac1852010-05-18 20:34:20 +0200152sha256.o: sha256.c $(INCL)
Bram Moolenaar217ad922005-03-20 22:37:15 +0000153spell.o: spell.c $(INCL)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000154syntax.o: syntax.c $(INCL)
155tag.o: tag.c $(INCL)
156term.o: term.c $(INCL)
157ui.o: ui.c $(INCL)
158undo.o: undo.c $(INCL)
159window.o: window.c $(INCL)