blob: cd62d1c6d504f64529e9be78e7c960e218efff18 [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 \
Bram Moolenaar07cf3822014-08-10 16:31:50 +020045 crypt.o \
46 crypt_zip.o \
Bram Moolenaar071d4272004-06-13 20:20:40 +000047 diff.o \
48 digraph.o \
49 edit.o \
50 eval.o \
51 ex_cmds.o \
52 ex_cmds2.o \
53 ex_docmd.o \
54 ex_eval.o \
55 ex_getln.o \
56 fileio.o \
57 fold.o \
58 getchar.o \
Bram Moolenaar58d98232005-07-23 22:25:46 +000059 hardcopy.o \
Bram Moolenaarc01140a2006-03-24 22:21:52 +000060 hashtab.o \
Bram Moolenaar071d4272004-06-13 20:20:40 +000061 main.o \
62 mark.o \
63 memfile.o \
64 memline.o \
65 menu.o \
66 message.o \
67 misc1.o \
68 misc2.o \
69 move.o \
70 mbyte.o \
71 normal.o \
72 ops.o \
73 option.o \
Bram Moolenaarc01140a2006-03-24 22:21:52 +000074 popupmnu.o \
Bram Moolenaar071d4272004-06-13 20:20:40 +000075 quickfix.o \
76 regexp.o \
77 screen.o \
78 search.o \
Bram Moolenaaredac1852010-05-18 20:34:20 +020079 sha256.o \
Bram Moolenaar217ad922005-03-20 22:37:15 +000080 spell.o \
Bram Moolenaar071d4272004-06-13 20:20:40 +000081 syntax.o \
82 tag.o \
83 term.o \
84 ui.o \
85 undo.o \
86 window.o \
87 os_unix.o
88
89LIBS = -ltermcap
90
91# Default target is making the executable
92all: $(TARGET) $(TOOLS)
93
94# Link the target for normal use
95LFLAGS = -Zcrtdll -s -o $(TARGET) $(LIBS)
96
97$(TARGET): $(OBJ) version.c version.h
98 $(CC) $(CFLAGS) version.c $(OBJ) $(LFLAGS)
99
100xxd/xxd.exe: xxd/xxd.c
101 cd xxd & $(MAKE) -f Make_os2.mak
102
103tee/tee.exe: tee/tee.c
104 cd tee & $(MAKE) -f Makefile
105
106test:
107 cd testdir & $(MAKE) -f Make_os2.mak
108
109clean:
110 -del *.o
111 -del *.exe
112 -del *.~ *~ *.bak
113 cd xxd & $(MAKE) -f Make_os2.mak clean
114 cd tee & $(MAKE) -f Makefile clean
115
116###########################################################################
117
118os_unix.o: os_unix.c $(INCL)
Bram Moolenaaredac1852010-05-18 20:34:20 +0200119blowfish.o: blowfish.c $(INCL)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000120buffer.o: buffer.c $(INCL)
121charset.o: charset.c $(INCL)
Bram Moolenaar07cf3822014-08-10 16:31:50 +0200122crypt.o: crypt.c $(INCL)
123crypt_zip.o: crypt_zip.c $(INCL)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000124diff.o: diff.c $(INCL)
125digraph.o: digraph.c $(INCL)
126edit.o: edit.c $(INCL)
127eval.o: eval.c $(INCL)
128ex_cmds.o: ex_cmds.c $(INCL)
129ex_cmds2.o: ex_cmds2.c $(INCL)
130ex_docmd.o: ex_docmd.c $(INCL) ex_cmds.h
131ex_eval.o: ex_eval.c $(INCL) ex_cmds.h
132ex_getln.o: ex_getln.c $(INCL)
133fileio.o: fileio.c $(INCL)
134fold.o: fold.c $(INCL)
135getchar.o: getchar.c $(INCL)
Bram Moolenaar58d98232005-07-23 22:25:46 +0000136hardcopy.o: hardcopy.c $(INCL)
Bram Moolenaarc01140a2006-03-24 22:21:52 +0000137hashtab.o: hashtab.c $(INCL)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000138main.o: main.c $(INCL)
139mark.o: mark.c $(INCL)
140memfile.o: memfile.c $(INCL)
141memline.o: memline.c $(INCL)
142menu.o: menu.c $(INCL)
143message.o: message.c $(INCL)
144misc1.o: misc1.c $(INCL)
145misc2.o: misc2.c $(INCL)
146move.o: move.c $(INCL)
147mbyte.o: mbyte.c $(INCL)
148normal.o: normal.c $(INCL)
149ops.o: ops.c $(INCL)
150option.o: option.c $(INCL)
Bram Moolenaarc01140a2006-03-24 22:21:52 +0000151popupmnu.o: popupmnu.c $(INCL)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000152quickfix.o: quickfix.c $(INCL)
153regexp.o: regexp.c $(INCL)
154screen.o: screen.c $(INCL)
155search.o: search.c $(INCL)
Bram Moolenaaredac1852010-05-18 20:34:20 +0200156sha256.o: sha256.c $(INCL)
Bram Moolenaar217ad922005-03-20 22:37:15 +0000157spell.o: spell.c $(INCL)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000158syntax.o: syntax.c $(INCL)
159tag.o: tag.c $(INCL)
160term.o: term.c $(INCL)
161ui.o: ui.c $(INCL)
162undo.o: undo.c $(INCL)
163window.o: window.c $(INCL)