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