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