]> pd.if.org Git - pccts/commitdiff
auto commit for import
authorTerence Parr <>
Sat, 23 Sep 1995 22:33:26 +0000 (17:33 -0500)
committerNathan Wagner <nw@hydaspes.if.org>
Sun, 26 Feb 2017 02:16:51 +0000 (20:16 -0600)
testcpp/1/makefile [new file with mode: 0755]

diff --git a/testcpp/1/makefile b/testcpp/1/makefile
new file mode 100755 (executable)
index 0000000..481739b
--- /dev/null
@@ -0,0 +1,71 @@
+#
+# PCCTS makefile for: test.g
+#
+# Created from: ../../bin/genmk -CC -class Expr -project t test.g
+#
+# PCCTS release 1.32
+# Project: t
+# C++ output
+# DLG scanner
+# ANTLR-defined token types
+#
+TOKENS = tokens.h
+#
+# The following filenames must be consistent with ANTLR/DLG flags
+DLG_FILE = parser.dlg
+ERR = err
+HDR_FILE =
+SCAN = DLGLexer
+PCCTS = ../..
+ANTLR_H = $(PCCTS)/h
+BIN = $(PCCTS)/bin
+ANTLR = $(BIN)/antlr
+DLG = $(BIN)/dlg
+CFLAGS = -I. -I$(ANTLR_H)
+AFLAGS = -CC
+DFLAGS = -C2 -i -CC
+GRM = test.g
+SRC = test.cpp \
+      Expr.cpp \
+      $(ANTLR_H)/AParser.cpp $(ANTLR_H)/DLexerBase.cpp $(ANTLR_H)/ATokenBuffer.cpp $(SCAN).cpp
+OBJ = test.o \
+      Expr.o \
+       AParser.o DLexerBase.o ATokenBuffer.o $(SCAN).o
+ANTLR_SPAWN = test.cpp Expr.cpp \
+              Expr.h $(DLG_FILE) $(TOKENS)
+DLG_SPAWN = $(SCAN).cpp $(SCAN).h
+#CCC=g++
+CC=$(CCC)
+
+t : $(OBJ) $(SRC)
+       $(CCC) -o t $(CFLAGS) $(OBJ)
+
+test.o : $(TOKENS) $(SCAN).h test.cpp
+       $(CCC) -c $(CFLAGS) -o test.o test.cpp
+
+Expr.o : $(TOKENS) $(SCAN).h Expr.cpp Expr.h
+       $(CCC) -c $(CFLAGS) -o Expr.o Expr.cpp
+
+$(SCAN).o : $(SCAN).cpp $(TOKENS)
+       $(CCC) -c $(CFLAGS) -o $(SCAN).o $(SCAN).cpp
+
+$(ANTLR_SPAWN) : $(GRM)
+       $(ANTLR) $(AFLAGS) $(GRM)
+
+$(DLG_SPAWN) : $(DLG_FILE)
+       $(DLG) $(DFLAGS) $(DLG_FILE)
+
+AParser.o : $(ANTLR_H)/AParser.cpp
+       $(CCC) -c $(CFLAGS) -o AParser.o $(ANTLR_H)/AParser.cpp
+
+ATokenBuffer.o : $(ANTLR_H)/ATokenBuffer.cpp
+       $(CCC) -c $(CFLAGS) -o ATokenBuffer.o $(ANTLR_H)/ATokenBuffer.cpp
+
+DLexerBase.o : $(ANTLR_H)/DLexerBase.cpp
+       $(CCC) -c $(CFLAGS) -o DLexerBase.o $(ANTLR_H)/DLexerBase.cpp
+
+clean:
+       rm -f *.o core t
+
+scrub:
+       rm -f *.o core t $(ANTLR_SPAWN) $(DLG_SPAWN)