From 08881ee2600d16c9a8056f8b7674f56d5bf8e942 Mon Sep 17 00:00:00 2001 From: Terence Parr <> Date: Tue, 3 Oct 1995 18:40:00 -0500 Subject: [PATCH] auto commit for import --- testcpp/6/makefile2 | 58 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100755 testcpp/6/makefile2 diff --git a/testcpp/6/makefile2 b/testcpp/6/makefile2 new file mode 100755 index 0000000..c299007 --- /dev/null +++ b/testcpp/6/makefile2 @@ -0,0 +1,58 @@ +# +# PCCTS makefile for: test2.g +# +# PCCTS release 1.21 +# Project: t +# C++ output +# D scanner +# A-defined token types +# +TOKENS = B/tokens.h +# +# The following filenames must be consistent with A/D flags +D_FILE = B/parser.dlg +ERR = B/err +HDR_FILE = +SCAN = B/BLexer +PCCTS = ../.. +A_H = $(PCCTS)/h +BIN = $(PCCTS)/bin +A = $(BIN)/antlr +D = $(BIN)/dlg +CFLAGS = -I. -I$(A_H) -IB -g +AFLAGS = -o B -CC +DFLAGS = -C2 -i -CC -cl BLexer -o B +GRM = test2.g +SRC = B/test2.cpp \ + B/B.cpp \ + $(SCAN).cpp +OBJ = B/test2.o B/B.o $(SCAN).o +A_SPAWN = B/test2.cpp B/B.cpp \ + B/B.h \ + $(HDR_FILE) $(D_FILE) $(TOKENS) +D_SPAWN = $(SCAN).cpp $(SCAN).h +#CCC=g++ +CC=$(CCC) + +t: $(OBJ) $(SRC) + +B/test2.o : $(TOKENS) $(SCAN).h B/test2.cpp $(HDR_FILE) + $(CCC) -c $(CFLAGS) -o B/test2.o B/test2.cpp + +B/B.o : $(TOKENS) $(SCAN).h B/B.cpp B/B.h $(HDR_FILE) + $(CCC) -c $(CFLAGS) -o B/B.o B/B.cpp + +$(SCAN).o : $(SCAN).cpp $(TOKENS) + $(CCC) -c $(CFLAGS) -o $(SCAN).o $(SCAN).cpp + +$(A_SPAWN) : $(GRM) + $(A) $(AFLAGS) $(GRM) + +$(D_SPAWN) : $(D_FILE) + $(D) $(DFLAGS) $(D_FILE) + +clean: + rm -f *.o core t B/*.o + +scrub: + rm -f *.o core t B/*.o $(A_SPAWN) $(D_SPAWN) -- 2.40.0