home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / vile-src.zip / vile-8.1 / makefile.tbc < prev    next >
Makefile  |  1997-11-26  |  5KB  |  360 lines

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