## XXX does not cover .includes of core .pasm files

$(LIBRARY_DIR)/PCT.pbc : $(PARROT) compilers/pct/PCT.pir \
    $(LIBRARY_DIR)/PCT/Grammar.pbc $(LIBRARY_DIR)/PCT/PAST.pbc
	$(PARROT) -o $@ compilers/pct/PCT.pir
	@$(ADDGENERATED) "$@" "[main]"

$(LIBRARY_DIR)/PCT/PAST.pbc : compilers/pct/src/PAST.pir $(PARROT) $(PBC_MERGE) \
    $(LIBRARY_DIR)/PCT/HLLCompiler.pbc \
    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
	@$(ADDGENERATED) "$@" "[main]"

$(LIBRARY_DIR)/PCT/Grammar.pbc : compilers/pct/src/PCT/Grammar.pir $(PARROT) \
    $(LIBRARY_DIR)/PGE.pbc $(LIBRARY_DIR)/PGE/Util.pbc
	$(PARROT) -o $@ compilers/pct/src/PCT/Grammar.pir
	@$(ADDGENERATED) "$@" "[main]"

$(LIBRARY_DIR)/PCT/HLLCompiler.pbc : compilers/pct/src/PCT/HLLCompiler.pir \
    $(PARROT) \
    $(LIBRARY_DIR)/PGE/Dumper.pbc \
    $(LIBRARY_DIR)/P6object.pbc \
    $(LIBRARY_DIR)/Parrot/Exception.pbc \
    $(LIBRARY_DIR)/config.pir \
    $(LIBRARY_DIR)/Getopt/Obj.pbc \
    $(LIBRARY_DIR)/dumper.pbc \
    $(LIBRARY_DIR)/PCT/Dumper.pbc
	$(PARROT) -o $@ compilers/pct/src/PCT/HLLCompiler.pir
	@$(ADDGENERATED) "$@" "[main]"

$(LIBRARY_DIR)/PCT/Dumper.pbc : compilers/pct/src/PCT/Dumper.pir $(PARROT)
	$(PARROT) -o $@ compilers/pct/src/PCT/Dumper.pir
	@$(ADDGENERATED) "$@" "[main]"

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

# Local variables:
#   mode: makefile
# End:
# vim: ft=make:
