home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / p / pccts.zip / lang / c / makefile.cst < prev    next >
Makefile  |  1992-12-04  |  695b  |  35 lines

  1. SYM=../../support/sym
  2. H=../../h
  3. SRC=scan.c decl.c func.c expr.c err.c main.c $(SYM)/sym.c engl.c
  4. OBJ=scan.obj decl.obj func.obj expr.obj err.obj main.obj sym.obj engl.obj
  5. CC=icc
  6. CFLAGS=-I. -I$(H) -DLL_K=$(K) /Sa
  7. AFLAGS=-k $(K) -gt -gh
  8.  
  9. LIBS=/NOD:LLIBCE LLIBCEP
  10.  
  11. # where are dlg and antlr binaries
  12. DLG=..\..\bin\dlg
  13. ANTLR=..\..\bin\antlr
  14. K=2        # tokens of lookahead
  15.  
  16. proto.exe: $(OBJ) $(SRC)
  17.     link386 @<<
  18. $(OBJ: = +^
  19. ) /NOI
  20. $@
  21.  
  22. $(LIBS: = +^
  23. )
  24. $(DEF_FILE) $(LFLAGS) ;
  25. <<
  26.  
  27. decl.c func.c expr.c err.c parser.dlg : decl.g func.g expr.g
  28.     $(ANTLR) $(AFLAGS) decl.g func.g expr.g
  29.  
  30. scan.c : parser.dlg
  31.     $(DLG) -C2 parser.dlg scan.c
  32.  
  33. sym.obj : $(SYM)/sym.c
  34.         $(CC) -c  sym.obj $(CFLAGS) $(SYM)/sym.c
  35.