2 # PCCTS makefile for: test.g
4 # Created from: ../../bin/genmk -CC -project t -class Expr test.g -token-types mytokens.h
10 # User-defined token types in 'mytokens.h'
12 # Make sure #tokdefs directive in ANTLR grammar lists this file:
15 # The following filenames must be consistent with ANTLR/DLG flags
25 CFLAGS = -I. -I$(ANTLR_H)
31 $(ANTLR_H)/AParser.cpp $(ANTLR_H)/DLexerBase.cpp $(ANTLR_H)/ATokenBuffer.cpp $(SCAN).cpp
34 AParser.o DLexerBase.o ATokenBuffer.o $(SCAN).o
35 ANTLR_SPAWN = test.cpp Expr.cpp \
37 DLG_SPAWN = $(SCAN).cpp $(SCAN).h
42 $(CCC) -o t $(CFLAGS) $(OBJ)
44 test.o : $(TOKENS) $(SCAN).h test.cpp
45 $(CCC) -c $(CFLAGS) -o test.o test.cpp
47 Expr.o : $(TOKENS) $(SCAN).h Expr.cpp Expr.h
48 $(CCC) -c $(CFLAGS) -o Expr.o Expr.cpp
50 $(SCAN).o : $(SCAN).cpp $(TOKENS)
51 $(CCC) -c $(CFLAGS) -o $(SCAN).o $(SCAN).cpp
53 $(ANTLR_SPAWN) : $(GRM)
54 $(ANTLR) $(AFLAGS) $(GRM)
56 $(DLG_SPAWN) : $(DLG_FILE)
57 $(DLG) $(DFLAGS) $(DLG_FILE)
59 AParser.o : $(ANTLR_H)/AParser.cpp
60 $(CCC) -c $(CFLAGS) -o AParser.o $(ANTLR_H)/AParser.cpp
62 ATokenBuffer.o : $(ANTLR_H)/ATokenBuffer.cpp
63 $(CCC) -c $(CFLAGS) -o ATokenBuffer.o $(ANTLR_H)/ATokenBuffer.cpp
65 DLexerBase.o : $(ANTLR_H)/DLexerBase.cpp
66 $(CCC) -c $(CFLAGS) -o DLexerBase.o $(ANTLR_H)/DLexerBase.cpp
72 rm -f *.o core t $(ANTLR_SPAWN) $(DLG_SPAWN)