home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / p / pccts.zip / tutorial / makefile.2 < prev    next >
Makefile  |  1992-12-08  |  494b  |  25 lines

  1. #
  2. # Makefile for 1.0x tutorial: tut2.g
  3. # ANTLR creates parser.dlg, err.c, tut1.c
  4. # DLG creates scan.c
  5. #
  6. CFLAGS= -I. -I../h
  7. GRM=tut2
  8. ANTLR=../bin/antlr
  9. DLG=../bin/dlg
  10. SYM=../support/sym
  11. SRC=scan.c $(GRM).c err.c $(SYM)/sym.c
  12. OBJ=scan.o $(GRM).o err.o sym.o
  13.  
  14. tutorial: $(OBJ) $(SRC)
  15.     cc -o $(GRM) $(OBJ)
  16.  
  17. $(GRM).c parser.dlg : $(GRM).g
  18.     $(ANTLR) -k 2 $(GRM).g
  19.  
  20. sym.o : $(SYM)/sym.c
  21.     cc -c -o sym.o $(CFLAGS) $(SYM)/sym.c
  22.  
  23. scan.c : parser.dlg
  24.     $(DLG) -C2 parser.dlg scan.c
  25.