2 # PCCTS makefile for: test.g
4 # Created from: ../../bin/genmk -CC -project t -class Expr test.g -user-lexer
10 # ANTLR-defined token types
14 # The following filenames must be consistent with ANTLR/DLG flags
24 CFLAGS = -I. -I$(ANTLR_H)
30 $(ANTLR_H)/AParser.cpp $(ANTLR_H)/ATokenBuffer.cpp MyLexer.cpp
33 AParser.o ATokenBuffer.o MyLexer.o
34 ANTLR_SPAWN = test.cpp Expr.cpp \
40 $(CCC) -o t $(CFLAGS) $(OBJ)
42 test.o : $(TOKENS) test.cpp
43 $(CCC) -c $(CFLAGS) -o test.o test.cpp
45 MyLexer.o : $(TOKENS) MyLexer.cpp
46 $(CCC) -c $(CFLAGS) -o MyLexer.o MyLexer.cpp
48 Expr.o : $(TOKENS) Expr.cpp Expr.h
49 $(CCC) -c $(CFLAGS) -o Expr.o Expr.cpp
51 $(ANTLR_SPAWN) : $(GRM)
52 $(ANTLR) $(AFLAGS) $(GRM)
54 AParser.o : $(ANTLR_H)/AParser.cpp
55 $(CCC) -c $(CFLAGS) -o AParser.o $(ANTLR_H)/AParser.cpp
57 ATokenBuffer.o : $(ANTLR_H)/ATokenBuffer.cpp
58 $(CCC) -c $(CFLAGS) -o ATokenBuffer.o $(ANTLR_H)/ATokenBuffer.cpp
64 rm -f *.o core t $(ANTLR_SPAWN)