1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363
|
# This is a makefile for mktbls and vile under Turbo-C
# $Header: /usr/build/vile/vile/RCS/makefile.tbc,v 1.24 1999/03/26 00:27:02 tom Exp $
.AUTODEPEND
# *Translator Definitions*
#for Turbo C
CC = tcc +vile.cfg
#for Borland C+:
#CC = bcc +vile.cfg
#to use the faster direct video driver:
SCREEN=ibmpc
#to use the "console i/o" driver:
# (also need to change to "#define DISP_BORLAND 1" in estruct.h)
#SCREEN=borland
# where are the libs?
LIBPATH = C:\tc\LIB
INCLUDEPATH = C:\tc\INCLUDE
#LIBPATH = C:\bc4\LIB
#INCLUDEPATH = C:\bc4\INCLUDE
TASM = TASM
TLIB = tlib
TLINK = tlink
LINKOPTS = /x/c/L$(LIBPATH) # use /v option to get debug-info
THIS = makefile.tbc
MKTBLS = .\mktbls.exe
TARGET = vile.exe
BUILTHDRS = nebind.h neproto.h nefunc.h nemode.h nename.h nevars.h nefkeys.h nefsms.h
all: $(TARGET)
clean:
-del *.obj
-del vile.cfg
-del *.bak
-del ne*.h
-del $(MKTBLS)
clobber: clean
-del $(TARGET)
# *Implicit Rules*
.c.obj:
$(CC) -c {$< }
.cpp.obj:
$(CC) -c {$< }
# *List Macros*
MKTBLS_DEPS = \
mktbls.obj
# *Explicit Rules*
$(MKTBLS): vile.cfg $(MKTBLS_DEPS)
$(TLINK) $(LINKOPTS) @&&|
c0l.obj+
mktbls.obj
mktbls
# no map file
emu.lib+
mathl.lib+
cl.lib
|
# for Borland on OS/2
#$(MKTBLS): vile.cfg $(MKTBLS_DEPS)
# $(TLINK) $(LINKOPTS) @&&|
#c02.obj+
#mktbls.obj
#mktbls
# # no map file
#c2.lib+
#os2.lib+
#|
# *Individual File Dependencies*
mktbls.obj: vile.cfg mktbls.c
VILE_DEPS = \
basic.obj \
bind.obj \
btree.obj \
buffer.obj \
csrch.obj \
display.obj \
eval.obj \
exec.obj \
externs.obj \
fences.obj \
file.obj \
filec.obj \
fileio.obj \
finderr.obj \
glob.obj \
globals.obj \
history.obj \
input.obj \
insert.obj \
itbuff.obj \
isearch.obj \
line.obj \
map.obj \
modes.obj \
msgs.obj \
npopen.obj \
oneliner.obj \
opers.obj \
path.obj \
random.obj \
regexp.obj \
region.obj \
search.obj \
select.obj \
statevar.obj \
spawn.obj \
tags.obj \
tbuff.obj \
termio.obj \
ucrypt.obj \
undo.obj \
version.obj \
window.obj \
word.obj \
wordmov.obj \
main.obj \
$(SCREEN).obj
# *Explicit Rules*
# Use /v option of tlink to get debugging info
# Change c0l.obj to c02.obj for Borland on OS/2
$(TARGET): vile.cfg $(VILE_DEPS)
$(CC) -c version.c
$(TLINK) $(LINKOPTS) @&&|
c0l.obj+
basic.obj+
bind.obj+
btree.obj+
buffer.obj+
csrch.obj+
display.obj+
eval.obj+
exec.obj+
externs.obj+
fences.obj+
file.obj+
filec.obj+
fileio.obj+
finderr.obj+
glob.obj+
globals.obj+
history.obj+
input.obj+
insert.obj+
isearch.obj+
itbuff.obj+
line.obj+
map.obj+
modes.obj+
msgs.obj+
npopen.obj+
oneliner.obj+
opers.obj+
path.obj+
random.obj+
regexp.obj+
region.obj+
search.obj+
statevar.obj+
select.obj+
spawn.obj+
tags.obj+
tbuff.obj+
termio.obj+
ucrypt.obj+
undo.obj+
version.obj+
window.obj+
word.obj+
wordmov.obj+
main.obj+
$(SCREEN).obj
vile
# no map file
emu.lib+
mathl.lib+
cl.lib
|
# change above three libs to the following for Borland on OS/2
# c2.lib+
# os2.lib+
# *Individual File Dependencies*
VILE_CFG= vile.cfg estruct.h nefkeys.h nemode.h edef.h proto.h
basic.obj: $(VILE_CFG) basic.c
bind.obj: $(VILE_CFG) bind.c nefunc.h
btree.obj: $(VILE_CFG) btree.c
buffer.obj: $(VILE_CFG) buffer.c
csrch.obj: $(VILE_CFG) csrch.c
display.obj: $(VILE_CFG) display.c
eval.obj: $(VILE_CFG) eval.c nevars.h
exec.obj: $(VILE_CFG) exec.c nefunc.h
externs.obj: $(VILE_CFG) externs.c nebind.h nename.h nefunc.h
fences.obj: $(VILE_CFG) fences.c
file.obj: $(VILE_CFG) file.c
filec.obj: $(VILE_CFG) filec.c dirstuff.h
fileio.obj: $(VILE_CFG) fileio.c
finderr.obj: $(VILE_CFG) finderr.c
glob.obj: $(VILE_CFG) glob.c dirstuff.h
globals.obj: $(VILE_CFG) globals.c nefunc.h
history.obj: $(VILE_CFG) history.c
input.obj: $(VILE_CFG) input.c
insert.obj: $(VILE_CFG) insert.c
isearch.obj: $(VILE_CFG) isearch.c
itbuff.obj: $(VILE_CFG) itbuff.c
line.obj: $(VILE_CFG) line.c
map.obj: $(VILE_CFG) map.c
modes.obj: $(VILE_CFG) modes.c
msgs.obj: $(VILE_CFG) msgs.c
npopen.obj: $(VILE_CFG) npopen.c
oneliner.obj: $(VILE_CFG) oneliner.c
opers.obj: $(VILE_CFG) opers.c nefunc.h
path.obj: $(VILE_CFG) path.c dirstuff.h
random.obj: $(VILE_CFG) random.c nefunc.h
regexp.obj: $(VILE_CFG) regexp.c
region.obj: $(VILE_CFG) region.c
search.obj: $(VILE_CFG) search.c
select.obj: $(VILE_CFG) select.c nefunc.h
statevar.obj: $(VILE_CFG) statevar.c nevars.h
spawn.obj: $(VILE_CFG) spawn.c nefunc.h
tags.obj: $(VILE_CFG) tags.c
tbuff.obj: $(VILE_CFG) tbuff.c
termio.obj: $(VILE_CFG) termio.c nefunc.h
ucrypt.obj: $(VILE_CFG) ucrypt.c
undo.obj: $(VILE_CFG) undo.c
version.obj: $(VILE_CFG) version.c patchlev.h
window.obj: $(VILE_CFG) window.c
word.obj: $(VILE_CFG) word.c nefunc.h
wordmov.obj: $(VILE_CFG) wordmov.c
main.obj: $(VILE_CFG) main.c nevars.h
$(SCREEN).obj: $(VILE_CFG) $(SCREEN).c
nebind.h \
nefunc.h \
nefkeys.h \
nename.h : cmdtbl $(MKTBLS)
@echo making $@
$(MKTBLS) cmdtbl
nevars.h \
nefsms.h \
nemode.h: modetbl $(MKTBLS)
@echo making $@
$(MKTBLS) modetbl
# *Compiler Configuration File*
# Except for unused-parameters, this turns on all applicable warning messages.
vile.cfg: $(THIS)
copy &&|
-ml
-d
-v
-vi-
-wamb
-wamp
-wasm
-waus
-wbbf
-wbig
-wccc
-wcln
-wcpt
-wdef
-wdpu
-wdup
-weas
-weff
-wext
-will
-wnod
-w-par
-wpia
-wpin
-wpro
-wrch
-wret
-wrvl
-wsig
-wstu
-wstv
-wsus
-wucp
-wuse
-wvoi
-wzdi
-w-nci
-w-inl
-w-ibc
-w-pre
-w-nst
-I$(INCLUDEPATH)
-L$(LIBPATH)
| vile.cfg
|