2 # Makefile for VIM on OS/2 using EMX vim:ts=8:sw=8:tw=78
4 # Created by: Paul Slootman
7 ### This Makefile has been successfully 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!
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
18 #>>>>> choose options:
20 ### See feature.h for a list of optionals.
21 ### Any other defines can be included here.
23 DEFINES
= -DUSE_SYSTEM
=1
25 #>>>>> name of the compiler and linker, name of lib directory
33 ### Names of the tools that are also made
34 TOOLS
= xxd
/xxd.exe tee
/tee.exe
36 ###########################################################################
38 INCL
= vim.h globals.h option.h keymap.h macros.h ascii.h term.h os_unix.h structs.h os_os2_cfg.h
39 CFLAGS
= -O2
-fno-strength-reduce
-DOS2
-Wall
-Iproto
$(DEFINES
)
87 # Default target is making the executable
88 all: $(TARGET
) $(TOOLS
)
90 # Link the target for normal use
91 LFLAGS
= -Zcrtdll
-s
-o
$(TARGET
) $(LIBS
)
93 $(TARGET
): $(OBJ
) version.c version.h
94 $(CC
) $(CFLAGS
) version.c
$(OBJ
) $(LFLAGS
)
96 xxd
/xxd.exe
: xxd
/xxd.c
97 cd xxd
& $(MAKE
) -f Make_os2.mak
99 tee
/tee.exe
: tee
/tee.c
100 cd tee
& $(MAKE
) -f Makefile
103 cd testdir
& $(MAKE
) -f Make_os2.mak
109 cd xxd
& $(MAKE
) -f Make_os2.mak
clean
110 cd tee
& $(MAKE
) -f Makefile
clean
112 ###########################################################################
114 os_unix.o
: os_unix.c
$(INCL
)
115 buffer.o
: buffer.c
$(INCL
)
116 charset.o
: charset.c
$(INCL
)
117 diff.o
: diff.c
$(INCL
)
118 digraph.o
: digraph.c
$(INCL
)
119 edit.o
: edit.c
$(INCL
)
120 eval.o
: eval.c
$(INCL
)
121 ex_cmds.o
: ex_cmds.c
$(INCL
)
122 ex_cmds2.o
: ex_cmds2.c
$(INCL
)
123 ex_docmd.o
: ex_docmd.c
$(INCL
) ex_cmds.h
124 ex_eval.o
: ex_eval.c
$(INCL
) ex_cmds.h
125 ex_getln.o
: ex_getln.c
$(INCL
)
126 fileio.o
: fileio.c
$(INCL
)
127 fold.o
: fold.c
$(INCL
)
128 getchar.o
: getchar.c
$(INCL
)
129 hardcopy.o
: hardcopy.c
$(INCL
)
130 hashtab.o
: hashtab.c
$(INCL
)
131 main.o
: main.c
$(INCL
)
132 mark.o
: mark.c
$(INCL
)
133 memfile.o
: memfile.c
$(INCL
)
134 memline.o
: memline.c
$(INCL
)
135 menu.o
: menu.c
$(INCL
)
136 message.o
: message.c
$(INCL
)
137 misc1.o
: misc1.c
$(INCL
)
138 misc2.o
: misc2.c
$(INCL
)
139 move.o
: move.c
$(INCL
)
140 mbyte.o
: mbyte.c
$(INCL
)
141 normal.o
: normal.c
$(INCL
)
143 option.o
: option.c
$(INCL
)
144 popupmnu.o
: popupmnu.c
$(INCL
)
145 quickfix.o
: quickfix.c
$(INCL
)
146 regexp.o
: regexp.c
$(INCL
)
147 screen.o
: screen.c
$(INCL
)
148 search.o
: search.c
$(INCL
)
149 spell.o
: spell.c
$(INCL
)
150 syntax.o
: syntax.c
$(INCL
)
152 term.o
: term.c
$(INCL
)
154 undo.o
: undo.c
$(INCL
)
155 window.o
: window.c
$(INCL
)