annotate src/Make_bc3.mak @ 7435:a4b4cbf8d044 v7.4.1021

commit https://github.com/vim/vim/commit/17b609ed7f3d718e233a561f792f7473e48b0aaa Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 1 17:56:17 2016 +0100 patch 7.4.1021 Problem: Some makefiles are outdated. Solution: Add a note to warn developers.
author Christian Brabandt <cb@256bit.org>
date Fri, 01 Jan 2016 18:00:05 +0100
parents ab71bb81b84e
children bce3b5ddb393
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 # Makefile for Borland C++ 3.1 or 4.0 to compile a 16 bit version of Vim.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 #
7435
a4b4cbf8d044 commit https://github.com/vim/vim/commit/17b609ed7f3d718e233a561f792f7473e48b0aaa
Christian Brabandt <cb@256bit.org>
parents: 6126
diff changeset
3 # NOTE: THIS IS OLD AND PROBABLY NO LONGER WORKS.
a4b4cbf8d044 commit https://github.com/vim/vim/commit/17b609ed7f3d718e233a561f792f7473e48b0aaa
Christian Brabandt <cb@256bit.org>
parents: 6126
diff changeset
4 #
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 # There are compilation options at the end of this file.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 # Command line variables:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 # BOR path to root of Borland C (E:\BORLANDC)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 # DEBUG set to "yes" for debugging (no)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 # SPAWNO path to the spawno library directory, empty if you do not have
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 # it; use 8.3 filenames! (C:\CC\SPAWN)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 .AUTODEPEND
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 !ifndef BOR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 BOR = E:\BORLANDC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 !endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 !if ("$(DEBUG)" == "yes")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 DEBUG_FLAG = -v
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 !else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 DEBUG_FLAG =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 !endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 CC = $(BOR)\bin\bcc.exe +VIM.CFG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 TLINK = $(BOR)\bin\tlink.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 !ifndef SPAWNO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 SPAWNO = C:\CC\SPAWN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 !endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 !if ("$(SPAWNO)" == "")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 LIBPATH = $(BOR)\LIB
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 INCLUDEPATH = $(BOR)\INCLUDE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 SPAWND =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 SPAWNL =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 !else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 LIBPATH = $(BOR)\LIB;$(SPAWNO)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 INCLUDEPATH = $(BOR)\INCLUDE;$(SPAWNO)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 SPAWND = ;SPAWNO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 SPAWNL = spawnl.lib
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 !endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 # *Implicit Rules*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 # use -v for debugging
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 .c.obj:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 $(CC) -c $(DEBUG_FLAG) {$< }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 # *List Macros*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 EXE_dependencies = \
2192
40edf1be1cd8 Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents: 803
diff changeset
56 blowfish.obj \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 buffer.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 charset.obj \
6126
ab71bb81b84e updated for version 7.4.401
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
59 crypt.obj \
ab71bb81b84e updated for version 7.4.401
Bram Moolenaar <bram@vim.org>
parents: 2192
diff changeset
60 crypt_zip.obj \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 diff.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 digraph.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 edit.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 eval.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 ex_cmds.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 ex_cmds2.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 ex_docmd.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 ex_eval.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 ex_getln.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 fileio.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 fold.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 getchar.obj \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 227
diff changeset
73 hardcopy.obj \
799
6beb2c667935 updated for version 7.0b
vimboss
parents: 540
diff changeset
74 hashtab.obj \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 main.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 mark.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 memfile.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 memline.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 menu.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 message.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 misc1.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 misc2.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 move.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 os_msdos.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 normal.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 ops.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 option.obj \
799
6beb2c667935 updated for version 7.0b
vimboss
parents: 540
diff changeset
88 popupmnu.obj \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 quickfix.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 regexp.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 screen.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 search.obj \
2192
40edf1be1cd8 Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents: 803
diff changeset
93 sha256.obj \
227
ef254e0f2365 updated for version 7.0063
vimboss
parents: 119
diff changeset
94 spell.obj \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syntax.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 tag.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 term.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 ui.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 undo.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 window.obj
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 all: vim.exe install.exe uninstal.exe xxd/xxd.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 # *Explicit Rules*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 vim.exe: vim.cfg $(EXE_dependencies) version.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 $(CC) $(DEBUG_FLAG) -c version.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 $(TLINK) /x/c/L$(LIBPATH) $(DEBUG_FLAG) @&&|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 c0l.obj $(EXE_dependencies) version.obj
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 # no map file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 $(SPAWNL) cl.lib
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 |
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 install.exe: dosinst.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 $(CC) -einstall $(DEBUG_FLAG) dosinst.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 uninstal.exe: uninstal.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 $(CC) $(DEBUG_FLAG) uninstal.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 # This may fail for older make versions, building xxd will fail anyway then.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 xxd/xxd.exe: xxd/xxd.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 cd xxd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 $(MAKE) -f Make_bc3.mak BOR=$(BOR) DEBUG=$(DEBUG)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 cd ..
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 # cleaning up: Delete all generated files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 clean:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 -del *.obj
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 -del vim.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 -del vim.sym
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 -del install.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 -del uninstal.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 -del xxd\*.obj
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 -del xxd\xxd.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 -del vim.cfg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 -del testdir\*.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 # Individual File Dependencies (incomplete)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 ex_docmd.obj: ex_docmd.c ex_cmds.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 ex_eval.obj: ex_eval.c ex_cmds.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 main.obj: main.c globals.h option.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 term.obj: term.c term.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 version.obj: version.c version.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 # Compiler Configuration File
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 # The following compile options can be changed for better machines.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 # replace -1- with -2 to produce code for a 80286 or higher
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 # replace -1- with -3 to produce code for a 80386 or higher
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 # add -v for source debugging
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 vim.cfg: Make_bc3.mak
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 copy &&|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 -ml
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 -1-
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 -f-
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 -C
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 -N
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 -O
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 -Z
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 -k-
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 -d
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 -h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 -vi-
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 -H=VIM.SYM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 -w-par
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 -weas
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 -wpre
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 -Iproto
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 -I$(INCLUDEPATH)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 -L$(LIBPATH)
803
dc38b8b94a55 updated for version 7.0b01
vimboss
parents: 799
diff changeset
177 -DMSDOS;FEAT_TINY$(SPAWND)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 | vim.cfg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 test:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 cd testdir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 $(MAKE) -f Make_dos.mak small
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 cd ..