[svn:parrot] r39892 - in branches/ops_pct: compilers/opsc compilers/opsc/compiler compilers/opsc/op compilers/opsc/runcore config/gen/makefiles
cotto at svn.parrot.org
cotto at svn.parrot.org
Sun Jul 5 16:37:39 UTC 2009
Author: cotto
Date: Sun Jul 5 16:37:37 2009
New Revision: 39892
URL: https://trac.parrot.org/parrot/changeset/39892
Log:
[opsc] add a makefile template and a bunch of empty files
Added:
branches/ops_pct/compilers/opsc/
branches/ops_pct/compilers/opsc/builtins.pir
branches/ops_pct/compilers/opsc/compiler/
branches/ops_pct/compilers/opsc/compiler/actions.pm
branches/ops_pct/compilers/opsc/compiler/grammar.pg
branches/ops_pct/compilers/opsc/op/
branches/ops_pct/compilers/opsc/op/op.pir
branches/ops_pct/compilers/opsc/op/op.pm
branches/ops_pct/compilers/opsc/runcore/
branches/ops_pct/compilers/opsc/runcore/c.pm
branches/ops_pct/compilers/opsc/runcore/cgoto.pm
branches/ops_pct/compilers/opsc/runcore/cgp.pm
branches/ops_pct/compilers/opsc/runcore/cprederef.pm
branches/ops_pct/compilers/opsc/runcore/cswitch.pm
branches/ops_pct/compilers/opsc/runcore/runcore.pm
branches/ops_pct/config/gen/makefiles/opsc.in
Added: branches/ops_pct/compilers/opsc/builtins.pir
==============================================================================
Added: branches/ops_pct/compilers/opsc/compiler/actions.pm
==============================================================================
Added: branches/ops_pct/compilers/opsc/compiler/grammar.pg
==============================================================================
Added: branches/ops_pct/compilers/opsc/op/op.pir
==============================================================================
Added: branches/ops_pct/compilers/opsc/op/op.pm
==============================================================================
Added: branches/ops_pct/compilers/opsc/runcore/c.pm
==============================================================================
Added: branches/ops_pct/compilers/opsc/runcore/cgoto.pm
==============================================================================
Added: branches/ops_pct/compilers/opsc/runcore/cgp.pm
==============================================================================
Added: branches/ops_pct/compilers/opsc/runcore/cprederef.pm
==============================================================================
Added: branches/ops_pct/compilers/opsc/runcore/cswitch.pm
==============================================================================
Added: branches/ops_pct/compilers/opsc/runcore/runcore.pm
==============================================================================
Added: branches/ops_pct/config/gen/makefiles/opsc.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ branches/ops_pct/config/gen/makefiles/opsc.in Sun Jul 5 16:37:37 2009 (r39892)
@@ -0,0 +1,101 @@
+# Copyright (C) 2007-2009, Parrot Foundation.
+# $Id$
+
+# Setup some commands
+PERL := @perl@
+RM_F := @rm_f@
+PARROT := ../../parrot at exe@
+
+BUILD_DIR := @build_dir@
+NQP := $(BUILD_DIR)/compilers/nqp/nqp.pbc
+PCT := $(BUILD_DIR)/runtime/parrot/library/PCT.pbc
+PARROT_LIBRARY := @build_dir@/runtime/parrot/library
+PGE_LIBRARY := @build_dir@/runtime/parrot/library/PGE
+
+all: opsc.pbc
+
+SOURCES := \
+ opsc.pir \
+ builtins.pir \
+ op/op.pir \
+ op/gen_op.pir \
+ compiler/gen_grammar.pir \
+ compiler/gen_actions.pir \
+ runcore/gen_base.pir \
+# runcore/gen_cswitch.pir \
+# runcore/gen_cgoto.pir \
+# runcore/gen_cgp.pir \
+# runcore/gen_cprederef.pir
+ runcore/gen_c.pir
+
+# the default target
+opsc.pbc: $(PARROT) $(PGE_LIBRARY)/Perl6Grammar.pir $(SOURCES)
+ $(PARROT) -o opsc.pbc opsc.pir
+
+compiler/gen_grammar.pir: $(PGE_LIBRARY) compiler/grammar.pg
+ $(PARROT) $(PARROT_ARGS) $(PGE_LIBRARY)/Perl6Grammar.pir \
+ --output=compiler/gen_grammar.pir compiler/grammar.pg
+
+compiler/gen_actions.pir: $(NQP) $(PCT) compiler/actions.pm op/gen_op.pir
+ $(PARROT) $(PARROT_ARGS) $(NQP) --output=compiler/gen_actions.pir \
+ --target=pir compiler/actions.pm
+
+op/gen_op.pir: $(NQP) $(PCT) op/op.pm
+ $(PARROT) $(PARROT_ARGS) $(NQP) --output=op/gen_op.pir \
+ --target=pir op/op.pm
+
+runcore/gen_base.pir: $(NQP) $(PCT) runcore/base.pm
+ $(PARROT) $(PARROT_ARGS) $(NQP) --output=runcore/gen_base.pir \
+ --target=pir runcore/base.pm
+
+runcore/gen_c.pir: $(NQP) $(PCT) runcore/c.pm runcore/gen_base.pir
+ $(PARROT) $(PARROT_ARGS) $(NQP) --output=runcore/gen_c.pir \
+ --target=pir runcore/c.pm
+
+# This is a listing of all targets, that are meant to be called by users
+help:
+ @echo ""
+ @echo "Following targets are available for the user:"
+ @echo ""
+ @echo " all: opsc.pbc"
+ @echo " This is the default."
+ @echo "Testing:"
+ @echo " test: Run the test suite."
+ @echo " testclean: Clean up test results."
+ @echo ""
+ @echo "Cleaning:"
+ @echo " clean: Basic cleaning up."
+ @echo " realclean: Removes also files generated by 'Configure.pl'"
+ @echo " distclean: Removes also anything built, in theory"
+ @echo ""
+ @echo "Misc:"
+ @echo " help: Print this help message."
+ @echo ""
+
+test: all
+ $(PERL) t/harness t
+
+# this target has nothing to do
+testclean:
+
+CLEANUPS := \
+ opsc.pbc \
+ compiler/gen_grammar.pir \
+ compiler/gen_actions.pir \
+ op/gen_op.pir \
+ runcore/gen_base.pir \
+ runcore/gen_c.pir \
+
+
+clean:
+ $(RM_F) $(CLEANUPS)
+
+realclean: clean
+ $(RM_F) Makefile
+
+distclean: realclean
+
+# Local variables:
+# mode: makefile
+# End:
+# vim: ft=make:
More information about the parrot-commits
mailing list