annotate src/Make_bc3.mak @ 4079:0b140173d14f

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