home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / forth / cforthu.arc / MAKEFILE < prev    next >
Encoding:
Text File  |  1985-07-11  |  947 b   |  42 lines

  1. test:        forth.core forth
  2.  
  3. forth:        forth.o prims.o
  4.         cc -o forth forth.o prims.o
  5.  
  6. forth.o:    forth.c common.h forth.h prims.h
  7.         cc -c forth.c
  8.  
  9. prims.o:    prims.c forth.h prims.h
  10.         cc -c prims.c
  11.  
  12. all:        forth forth.core l2b b2l
  13.  
  14. nf:        nf.o lex.yy.o
  15.         cc -o nf nf.o lex.yy.o
  16.  
  17. nf.o:        nf.c forth.lex.h common.h
  18.         cc -c nf.c
  19.  
  20. lex.yy.o:    lex.yy.c forth.lex.h
  21.         cc -c lex.yy.c
  22.  
  23. lex.yy.c:    forth.lex
  24.         lex forth.lex
  25.         rm -f lex.tmp
  26.         sed "s/yylex(){/TOKEN *yylex(){/" lex.yy.c > lex.tmp
  27.         mv -f lex.tmp lex.yy.c
  28.  
  29. forth.core:    nf forth.dict
  30.         nf < forth.dict
  31.  
  32. # l2b: convert a line file to a block file. Usage: l2b < linefile > blockfile
  33. l2b:        l2b.c
  34.         cc -o l2b l2b.c
  35.  
  36. # b2l: convert a block file to a line file. Usage: b2l < blockfile > linefile
  37. b2l:        b2l.c
  38.         cc -o b2l b2l.c
  39.  
  40. # forth.line and forth.block are not included here, because you can't tell
  41. # which one is more recent. To make one from the other, use b2l and l2b.
  42.