[svn:parrot] r43768 - trunk/compilers/pct

cotto at svn.parrot.org cotto at svn.parrot.org
Mon Feb 8 00:33:22 UTC 2010


Author: cotto
Date: Mon Feb  8 00:33:21 2010
New Revision: 43768
URL: https://trac.parrot.org/parrot/changeset/43768

Log:
[pct] move PCT to a two-step compilation process to simplify dependency
tracking and exercise pbc_merge

Modified:
   trunk/compilers/pct/Rules.mak

Modified: trunk/compilers/pct/Rules.mak
==============================================================================
--- trunk/compilers/pct/Rules.mak	Mon Feb  8 00:15:53 2010	(r43767)
+++ trunk/compilers/pct/Rules.mak	Mon Feb  8 00:33:21 2010	(r43768)
@@ -6,12 +6,17 @@
 
 $(LIBRARY_DIR)/PCT/PAST.pbc : compilers/pct/src/PAST.pir $(PARROT) \
     $(LIBRARY_DIR)/PCT/HLLCompiler.pbc \
-    compilers/pct/src/PCT/Node.pir \
-    compilers/pct/src/PAST/Node.pir \
-    compilers/pct/src/PAST/Compiler.pir \
-    compilers/pct/src/POST/Node.pir \
-    compilers/pct/src/POST/Compiler.pir
-	$(PARROT) -o $@ compilers/pct/src/PAST.pir
+    compilers/pct/src/PCT/Node.pbc \
+    compilers/pct/src/PAST/Node.pbc \
+    compilers/pct/src/PAST/Compiler.pbc \
+    compilers/pct/src/POST/Node.pbc \
+    compilers/pct/src/POST/Compiler.pbc
+	$(PBC_MERGE) -o $@ \
+	compilers/pct/src/PCT/Node.pbc \
+	compilers/pct/src/PAST/Node.pbc \
+	compilers/pct/src/PAST/Compiler.pbc \
+	compilers/pct/src/POST/Node.pbc \
+	compilers/pct/src/POST/Compiler.pbc
 
 $(LIBRARY_DIR)/PCT/Grammar.pbc : compilers/pct/src/PCT/Grammar.pir $(PARROT) \
     $(LIBRARY_DIR)/PGE.pbc $(LIBRARY_DIR)/PGE/Util.pbc
@@ -30,3 +35,19 @@
 
 $(LIBRARY_DIR)/PCT/Dumper.pbc : compilers/pct/src/PCT/Dumper.pir $(PARROT)
 	$(PARROT) -o $@ compilers/pct/src/PCT/Dumper.pir
+
+compilers/pct/src/PCT/Node.pbc : compilers/pct/src/PCT/Node.pir $(PARROT)
+	$(PARROT) -o $@ compilers/pct/src/PCT/Node.pir
+
+compilers/pct/src/PAST/Node.pbc : compilers/pct/src/PAST/Node.pir $(PARROT)
+	$(PARROT) -o $@ compilers/pct/src/PAST/Node.pir
+
+compilers/pct/src/PAST/Compiler.pbc : compilers/pct/src/PAST/Compiler.pir $(PARROT)
+	$(PARROT) -o $@ compilers/pct/src/PAST/Compiler.pir
+
+compilers/pct/src/POST/Node.pbc : compilers/pct/src/POST/Node.pir $(PARROT)
+	$(PARROT) -o $@ compilers/pct/src/POST/Node.pir
+
+compilers/pct/src/POST/Compiler.pbc : compilers/pct/src/POST/Compiler.pir $(PARROT)
+	$(PARROT) -o $@ compilers/pct/src/POST/Compiler.pir
+


More information about the parrot-commits mailing list