- be/mips/mips_spec.pl \
- be/mips/bearch_mips.h \
- be/mips/bearch_mips_t.h \
- be/mips/mips_emitter.h \
- be/mips/mips_map_regs.h \
- be/mips/mips_new_nodes.h \
- be/mips/mips_nodes_attr.h \
- be/mips/mips_scheduler.h \
- be/mips/mips_transform.h \
- be/mips/mips_util.h
-
-# conservative aproximation of dependencies
-$(mips_sources): $(srcdir)/be/mips/gen_mips_new_nodes.h \
- $(srcdir)/be/mips/gen_mips_regalloc_if.h \
- $(srcdir)/be/mips/gen_mips_machine.h \
- $(srcdir)/be/mips/gen_mips_regalloc_if.h \
- $(srcdir)/be/mips/gen_mips_new_nodes.c.inl \
- $(srcdir)/be/mips/gen_mips_emitter.h
-
-$(srcdir)/be/mips/gen_mips_new_nodes.c.inl $(srcdir)/be/mips/gen_mips_new_nodes.h: \
- be/mips/mips_spec.pl be/scripts/generate_new_opcodes.pl
- $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
-
-$(srcdir)/be/mips/gen_mips_emitter.c $(srcdir)/be/mips/gen_mips_emitter.h: \
- be/mips/mips_spec.pl be/scripts/generate_emitter.pl
- $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
-
-$(srcdir)/be/mips/gen_mips_machine.c $(srcdir)/be/mips/gen_mips_machine.h: \
- be/mips/mips_spec.pl be/scripts/generate_machine.pl
- $(PERL) $(srcdir)/be/scripts/generate_machine.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
-
-$(srcdir)/be/mips/gen_mips_regalloc_if.c $(srcdir)/be/mips/gen_mips_regalloc_if.h: \
- be/mips/mips_spec.pl be/scripts/generate_machine.pl
- $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/mips/mips_spec.pl $(srcdir)/be/mips
-
-# ppc32 backend
-
-ppc32_sources = \
- be/ppc32/bearch_ppc32.c \
- be/ppc32/ppc32_emitter.c \
- be/ppc32/ppc32_map_regs.c \
- be/ppc32/ppc32_new_nodes.c \
- be/ppc32/ppc32_transform.c \
- be/ppc32/ppc32_transform_conv.c
-libfirm_la_SOURCES += $(ppc32_sources)
+ be/amd64/amd64_emitter.h \
+ be/amd64/amd64_new_nodes.h \
+ be/amd64/amd64_nodes_attr.h \
+ be/amd64/amd64_spec.pl \
+ be/amd64/amd64_transform.h \
+ be/amd64/bearch_amd64_t.h
+
+$(srcdir)/be/amd64/gen_amd64_new_nodes.c.inl $(srcdir)/be/amd64/gen_amd64_new_nodes.h: \
+ be/amd64/amd64_spec.pl be/scripts/generate_new_opcodes.pl
+ $(PERL) $(srcdir)/be/scripts/generate_new_opcodes.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
+
+$(srcdir)/be/amd64/gen_amd64_emitter.c $(srcdir)/be/amd64/gen_amd64_emitter.h: \
+ be/amd64/amd64_spec.pl be/scripts/generate_emitter.pl
+ $(PERL) $(srcdir)/be/scripts/generate_emitter.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
+
+$(srcdir)/be/amd64/gen_amd64_regalloc_if.c $(srcdir)/be/amd64/gen_amd64_regalloc_if.h: \
+ be/amd64/amd64_spec.pl be/scripts/generate_regalloc_if.pl
+ $(PERL) $(srcdir)/be/scripts/generate_regalloc_if.pl $(srcdir)/be/amd64/amd64_spec.pl $(srcdir)/be/amd64
+
+
+# TEMPLATE backend
+
+TEMPLATE_sources = \
+ be/TEMPLATE/TEMPLATE_emitter.c \
+ be/TEMPLATE/TEMPLATE_new_nodes.c \
+ be/TEMPLATE/TEMPLATE_transform.c \
+ be/TEMPLATE/bearch_TEMPLATE.c
+TEMPLATE_built_sources = \
+ be/TEMPLATE/gen_TEMPLATE_emitter.c \
+ be/TEMPLATE/gen_TEMPLATE_emitter.h \
+ be/TEMPLATE/gen_TEMPLATE_new_nodes.c.inl \
+ be/TEMPLATE/gen_TEMPLATE_new_nodes.h \
+ be/TEMPLATE/gen_TEMPLATE_regalloc_if.c \
+ be/TEMPLATE/gen_TEMPLATE_regalloc_if.h
+MAINTAINERCLEANFILES += $(TEMPLATE_built_sources)
+BUILT_SOURCES += $(TEMPLATE_built_sources)
+libfirm_la_SOURCES += $(TEMPLATE_sources) $(TEMPLATE_built_sources)