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

  1. #
  2. # makefile for Watcom C using Watcom MAKE 
  3. # based on the original makefile of vile 3.46 (see the original makefile)
  4. # T.DANG (dang@cogit.ign.fr)
  5. #
  6. # $Header: /usr/build/vile/vile/RCS/makefile.wat,v 1.24 1997/11/26 16:17:33 tom Exp $
  7. #
  8. # if you use the watcom version of vile, you may want to "set DOS4G=quiet"
  9. # to suppress the DOS 4G/W banner that comes up from the Rational Systems
  10. # DOS extender otherwise.
  11. #
  12. # Tested with Watcom 10.0a (95/9/26)
  13.  
  14. SCREENDEF = DISP_IBMPC
  15. SCREEN= ibmpc 
  16. #SCREEN= ansi 
  17. #SCREENDEF = DISP_ANSI
  18.  
  19. # for regular compiler (and for version 10.x?)
  20. #CC=wcl386
  21. # for protected mode compiler (and for version 9.x?)
  22. CC=wcl386/p
  23.  
  24. #define PVGA for Paradise VGA (because there are some problems with this card)
  25. #To fix it, use /dPVGA=1
  26. #CFLAGS= /d$(SCREENDEF)=1 /dscrn_chosen=1 /dPVGA=1 
  27.  
  28. # debugging
  29. #CFLAGS= /d$(SCREENDEF)=1 /dscrn_chosen=1 /d2
  30. # normal
  31. CFLAGS= /d$(SCREENDEF)=1 /dscrn_chosen=1 /ols 
  32.  
  33. # these are normal editable headers
  34. HDRS = estruct.h edef.h proto.h dirstuff.h
  35.  
  36. # these headers are built by the mktbls program from the information in cmdtbl
  37. # and in modetbl
  38. BUILTHDRS = nebind.h neproto.h nefunc.h nemode.h nename.h nevars.h nefkeys.h nefsms.h
  39.  
  40. SRC =     main.c $(SCREEN).c &
  41.     basic.c bind.c btree.c buffer.c crypt.c &
  42.     csrch.c display.c eval.c exec.c externs.c &
  43.     fences.c file.c filec.c &
  44.     fileio.c finderr.c glob.c globals.c history.c &
  45.     input.c insert.c itbuff.c isearch.c &
  46.     line.c map.c modes.c msgs.c npopen.c &
  47.     oneliner.c opers.c path.c random.c regexp.c &
  48.     region.c search.c select.c spawn.c &
  49.     tags.c tbuff.c termio.c undo.c &
  50.     version.c window.c word.c wordmov.c
  51.  
  52. OBJ =     main.obj $(SCREEN).obj &
  53.     basic.obj bind.obj btree.obj buffer.obj crypt.obj &
  54.           csrch.obj display.obj eval.obj exec.obj externs.obj &
  55.     fences.obj file.obj filec.obj &
  56.     fileio.obj finderr.obj glob.obj globals.obj history.obj &
  57.     input.obj insert.obj itbuff.obj isearch.obj &
  58.     line.obj map.obj modes.obj msgs.obj npopen.obj &
  59.     oneliner.obj opers.obj path.obj random.obj regexp.obj &
  60.     region.obj search.obj select.obj spawn.obj &
  61.     tags.obj tbuff.obj termio.obj undo.obj &
  62.     version.obj window.obj word.obj wordmov.obj
  63.  
  64.  
  65. vile.exe: $(BUILTHDRS) $(OBJ) vile.lnk
  66.     wlink @vile 
  67.  
  68. vile.lnk: makefile.wat
  69.     echo DEBUG ALL >$^@
  70.         echo NAME vile >>$^@
  71.         echo OPTION MAP >>$^@
  72.         echo OPTION STACK=16384 >>$^@
  73.     for %i in ($(OBJ)) do echo FILE %i >>$^@
  74.  
  75. $(OBJ):    estruct.h nemode.h edef.h neproto.h proto.h config.h
  76. .c.obj:    .AUTODEPEND
  77.     $(CC) $[* /c $(CFLAGS) 
  78.  
  79. nebind.h &
  80. nefkeys.h &
  81. nefunc.h &
  82. neproto.h &
  83. nename.h :    cmdtbl MKTBLS.EXE
  84.     MKTBLS.EXE cmdtbl
  85.  
  86. nevars.h &
  87. nefsms.h &
  88. nemode.h:    modetbl MKTBLS.EXE
  89.     MKTBLS.EXE modetbl
  90.  
  91. MKTBLS.EXE:  mktbls.c
  92.     $(CC) mktbls.c
  93.     del mktbls.obj
  94.  
  95. clean:    .SYMBOLIC
  96.     -del *.err
  97.     -del *.obj
  98.     -del vile.lnk
  99.     -del ne*.h
  100.     -del MKTBLS.EXE
  101.  
  102. bind.obj:    nefunc.h
  103. eval.obj:    nevars.h
  104. exec.obj:    nefunc.h
  105. externs.obj:    nebind.h nename.h neproto.h nefunc.h
  106. filec.obj:    dirstuff.h
  107. glob.obj:    dirstuff.h
  108. globals.obj:    nefunc.h
  109. main.obj:    chgdfunc.h nevars.h
  110. modes.obj:    chgdfunc.h
  111. opers.obj:    nefunc.h
  112. path.obj:    dirstuff.h
  113. random.obj:    nefunc.h
  114. select.obj:    nefunc.h
  115. spawn.obj:    nefunc.h
  116. termio.obj:    nefunc.h
  117. version.obj:    patchlev.h
  118. word.obj:    nefunc.h
  119.