Mercurial > vim
annotate src/Make_bc3.mak @ 7867:3b79ecd05a51
Added tag v7.4.1230 for changeset 30a9f5fc3508e60c66993b2977a59bedc94cd2ec
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 01 Feb 2016 21:45:06 +0100 |
parents | bce3b5ddb393 |
children |
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 \ |
7712
bce3b5ddb393
commit https://github.com/vim/vim/commit/520e1e41f35b063ede63b41738c82d6636e78c34
Christian Brabandt <cb@256bit.org>
parents:
7435
diff
changeset
|
75 json.obj \ |
7 | 76 main.obj \ |
77 mark.obj \ | |
78 memfile.obj \ | |
79 memline.obj \ | |
80 menu.obj \ | |
81 message.obj \ | |
82 misc1.obj \ | |
83 misc2.obj \ | |
84 move.obj \ | |
85 os_msdos.obj \ | |
86 normal.obj \ | |
87 ops.obj \ | |
88 option.obj \ | |
799 | 89 popupmnu.obj \ |
7 | 90 quickfix.obj \ |
91 regexp.obj \ | |
92 screen.obj \ | |
93 search.obj \ | |
2192
40edf1be1cd8
Add blowfish and sha256 source files to more Makefiles.
Bram Moolenaar <bram@vim.org>
parents:
803
diff
changeset
|
94 sha256.obj \ |
227 | 95 spell.obj \ |
7 | 96 syntax.obj \ |
97 tag.obj \ | |
98 term.obj \ | |
99 ui.obj \ | |
100 undo.obj \ | |
101 window.obj | |
102 | |
103 all: vim.exe install.exe uninstal.exe xxd/xxd.exe | |
104 | |
105 # *Explicit Rules* | |
106 | |
107 vim.exe: vim.cfg $(EXE_dependencies) version.c | |
108 $(CC) $(DEBUG_FLAG) -c version.c | |
109 $(TLINK) /x/c/L$(LIBPATH) $(DEBUG_FLAG) @&&| | |
110 c0l.obj $(EXE_dependencies) version.obj | |
111 vim | |
112 # no map file | |
113 $(SPAWNL) cl.lib | |
114 | | |
115 | |
116 install.exe: dosinst.c | |
117 $(CC) -einstall $(DEBUG_FLAG) dosinst.c | |
118 | |
119 uninstal.exe: uninstal.c | |
120 $(CC) $(DEBUG_FLAG) uninstal.c | |
121 | |
122 # This may fail for older make versions, building xxd will fail anyway then. | |
123 xxd/xxd.exe: xxd/xxd.c | |
124 cd xxd | |
125 $(MAKE) -f Make_bc3.mak BOR=$(BOR) DEBUG=$(DEBUG) | |
126 cd .. | |
127 | |
128 # cleaning up: Delete all generated files | |
129 clean: | |
130 -del *.obj | |
131 -del vim.exe | |
132 -del vim.sym | |
133 -del install.exe | |
134 -del uninstal.exe | |
135 -del xxd\*.obj | |
136 -del xxd\xxd.exe | |
137 -del vim.cfg | |
138 -del testdir\*.out | |
139 | |
140 # Individual File Dependencies (incomplete) | |
141 ex_docmd.obj: ex_docmd.c ex_cmds.h | |
142 | |
143 ex_eval.obj: ex_eval.c ex_cmds.h | |
144 | |
145 main.obj: main.c globals.h option.h | |
146 | |
147 term.obj: term.c term.h | |
148 | |
149 version.obj: version.c version.h | |
150 | |
151 | |
152 # Compiler Configuration File | |
153 # | |
154 # The following compile options can be changed for better machines. | |
155 # replace -1- with -2 to produce code for a 80286 or higher | |
156 # replace -1- with -3 to produce code for a 80386 or higher | |
157 # add -v for source debugging | |
158 vim.cfg: Make_bc3.mak | |
159 copy &&| | |
160 -ml | |
161 -1- | |
162 -f- | |
163 -C | |
164 -N | |
165 -O | |
166 -Z | |
167 -k- | |
168 -d | |
169 -h | |
170 -vi- | |
171 -H=VIM.SYM | |
172 -w-par | |
173 -weas | |
174 -wpre | |
175 -Iproto | |
176 -I$(INCLUDEPATH) | |
177 -L$(LIBPATH) | |
803 | 178 -DMSDOS;FEAT_TINY$(SPAWND) |
7 | 179 | vim.cfg |
180 | |
181 test: | |
182 cd testdir | |
183 $(MAKE) -f Make_dos.mak small | |
184 cd .. |