home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / lr.zip / SAMPLE.MAK < prev    next >
Text File  |  1993-05-15  |  1KB  |  31 lines

  1.  #╔══════════════════════════════════════════════════════════════════════════╗
  2.  #║ Copyright (C)  Transcendental Automation ,1993.                          ║
  3.  #╟──────────────────────────────────────────────────────────────────────────╢
  4.  #║ SAMPLE.MAK                                                               ║
  5.  #╟──────────────────────────────────────────────────────────────────────────╢
  6.  #║ This makefile create program 'sample.exe' which is an example of         ║
  7.  #║ usage of LR. Sample.exe is a simple interpreter. The syntax of input     ║
  8.  #║ language of it is discribed in file sample.gr.                           ║
  9.  #╚══════════════════════════════════════════════════════════════════════════╝
  10.  
  11. LRDIR = .
  12.  
  13. CC=ICC -c -Ss -I$(LRDIR)
  14. LINK=LINK386 /W /PM:VIO /NOE
  15. LRP=$(LRDIR)\LRP.EXE
  16.  
  17. SAMPLE.EXE : SAMPLE.OBJ TABLE.OBJ COMMANDS.OBJ
  18.          $(LINK) SAMPLE.OBJ+TABLE.OBJ+COMMANDS.OBJ, SAMPLE.EXE, NUL, $(LRDIR)\LRX.LIB;
  19.  
  20. SAMPLE.OBJ : SAMPLE.C SAMPLE.H SAMPLE.STR
  21.          $(CC)  SAMPLE.C
  22.  
  23. TABLE.OBJ : TABLE.C SAMPLE.H
  24.          $(CC)  TABLE.C
  25.  
  26. COMMANDS.OBJ : COMMANDS.C SAMPLE.H SAMPLE.STR
  27.          $(CC) COMMANDS.C
  28.  
  29. SAMPLE.STR : SAMPLE.GR
  30.          $(LRP) SAMPLE.GR
  31.