annotate src/Make_bc3.mak @ 1597:80b9076e9e17 v7.1.310

updated for version 7.1-310
author vimboss
date Wed, 04 Jun 2008 17:37:34 +0000
parents dc38b8b94a55
children 40edf1be1cd8
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 = \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 buffer.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 charset.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 diff.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 digraph.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 edit.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 eval.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 ex_cmds.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 ex_cmds2.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 ex_docmd.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 ex_eval.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 ex_getln.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 fileio.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 fold.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 getchar.obj \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 227
diff changeset
68 hardcopy.obj \
799
6beb2c667935 updated for version 7.0b
vimboss
parents: 540
diff changeset
69 hashtab.obj \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 main.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 mark.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 memfile.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 memline.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 menu.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 message.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 misc1.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 misc2.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 move.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 os_msdos.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 normal.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 ops.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 option.obj \
799
6beb2c667935 updated for version 7.0b
vimboss
parents: 540
diff changeset
83 popupmnu.obj \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 quickfix.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 regexp.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 screen.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 search.obj \
227
ef254e0f2365 updated for version 7.0063
vimboss
parents: 119
diff changeset
88 spell.obj \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 syntax.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 tag.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 term.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 ui.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 undo.obj \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 window.obj
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 all: vim.exe install.exe uninstal.exe xxd/xxd.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 # *Explicit Rules*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 vim.exe: vim.cfg $(EXE_dependencies) version.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 $(CC) $(DEBUG_FLAG) -c version.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 $(TLINK) /x/c/L$(LIBPATH) $(DEBUG_FLAG) @&&|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 c0l.obj $(EXE_dependencies) version.obj
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 # no map file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 $(SPAWNL) cl.lib
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 |
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 install.exe: dosinst.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 $(CC) -einstall $(DEBUG_FLAG) dosinst.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 uninstal.exe: uninstal.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 $(CC) $(DEBUG_FLAG) uninstal.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 # This may fail for older make versions, building xxd will fail anyway then.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 xxd/xxd.exe: xxd/xxd.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 cd xxd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 $(MAKE) -f Make_bc3.mak BOR=$(BOR) DEBUG=$(DEBUG)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 cd ..
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 # cleaning up: Delete all generated files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 clean:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 -del *.obj
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 -del vim.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 -del vim.sym
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 -del install.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 -del uninstal.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 -del xxd\*.obj
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 -del xxd\xxd.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 -del vim.cfg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 -del testdir\*.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 # Individual File Dependencies (incomplete)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 ex_docmd.obj: ex_docmd.c ex_cmds.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 ex_eval.obj: ex_eval.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 main.obj: main.c globals.h option.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 term.obj: term.c term.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 version.obj: version.c version.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 # Compiler Configuration File
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 # The following compile options can be changed for better machines.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 # replace -1- with -2 to produce code for a 80286 or higher
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 # replace -1- with -3 to produce code for a 80386 or higher
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 # add -v for source debugging
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 vim.cfg: Make_bc3.mak
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 copy &&|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 -ml
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 -1-
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 -f-
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 -C
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 -N
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 -O
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 -Z
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 -k-
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 -d
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 -h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 -vi-
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 -H=VIM.SYM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 -w-par
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 -weas
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 -wpre
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 -Iproto
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 -I$(INCLUDEPATH)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 -L$(LIBPATH)
803
dc38b8b94a55 updated for version 7.0b01
vimboss
parents: 799
diff changeset
171 -DMSDOS;FEAT_TINY$(SPAWND)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 | vim.cfg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 test:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 cd testdir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 $(MAKE) -f Make_dos.mak small
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 cd ..