2 # PCCTS makefile for: test.g
4 # Created from: ../../bin/genmk -CC -project t -class Expr test.g -user-lexer -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)/ATokenBuffer.cpp MyLexer.cpp
34 AParser.o ATokenBuffer.o MyLexer.o
35 ANTLR_SPAWN = test.cpp Expr.cpp \
41 $(CCC) -o t $(CFLAGS) $(OBJ)
43 test.o : $(TOKENS) test.cpp
44 $(CCC) -c $(CFLAGS) -o test.o test.cpp
46 MyLexer.o : $(TOKENS) MyLexer.cpp
47 $(CCC) -c $(CFLAGS) -o MyLexer.o MyLexer.cpp
49 Expr.o : $(TOKENS) Expr.cpp Expr.h
50 $(CCC) -c $(CFLAGS) -o Expr.o Expr.cpp
52 $(ANTLR_SPAWN) : $(GRM)
53 $(ANTLR) $(AFLAGS) $(GRM)
55 AParser.o : $(ANTLR_H)/AParser.cpp
56 $(CCC) -c $(CFLAGS) -o AParser.o $(ANTLR_H)/AParser.cpp
58 ATokenBuffer.o : $(ANTLR_H)/ATokenBuffer.cpp
59 $(CCC) -c $(CFLAGS) -o ATokenBuffer.o $(ANTLR_H)/ATokenBuffer.cpp
65 rm -f *.o core t $(ANTLR_SPAWN)